/* ─────────────────────────────────────────────────────────────────────────
   Blog Listing  |  protecht theme  (home.php)
   Palette: page bg #FBF8F5 · card white #fff · teal #2A9D8F · orange #E8825C
───────────────────────────────────────────────────────────────────────── */

.ptb-bl-wrap {
  background: #FBF8F5;
  min-height: 60vh;
}

/* ── Masthead ── */
.ptb-bl-masthead {
  padding: 56px 24px 36px;
  text-align: center;
  border-bottom: 1px solid rgba(45, 45, 45, 0.07);
}

.ptb-bl-masthead-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #2A9D8F;
  margin-bottom: 14px;
}

.ptb-bl-masthead-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 600;
  color: #2D2D2D;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.ptb-bl-masthead-sub {
  max-width: 560px;
  margin: 0 auto;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: #6B6760;
}

/* ── Category Filters ── */
.ptb-bl-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 26px 24px;
  border-bottom: 1px solid rgba(45, 45, 45, 0.07);
}

.ptb-bl-filter-pill {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(45, 45, 45, 0.12);
  background: #fff;
  color: #4A5568;
  transition: background 0.16s, color 0.16s, border-color 0.16s;
}

.ptb-bl-filter-pill:hover {
  background: #EFE9DF;
  color: #2D2D2D;
  border-color: rgba(45, 45, 45, 0.2);
}

.ptb-bl-filter-active,
.ptb-bl-filter-active:hover {
  background: #2D2D2D;
  color: #fff;
  font-weight: 600;
  border-color: #2D2D2D;
}

/* ── Body ── */
.ptb-bl-body {
  max-width: 1080px;
  margin: 0 auto;
  padding: 44px 24px 64px;
}

/* ── Featured Card ── */
.ptb-bl-featured {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(45, 45, 45, 0.08);
  border: 1px solid rgba(45, 45, 45, 0.06);
  text-decoration: none;
  margin-bottom: 44px;
  transition: box-shadow 0.22s, transform 0.22s;
  min-height: 380px;
}

.ptb-bl-featured:hover {
  box-shadow: 0 20px 48px rgba(45, 45, 45, 0.13);
  transform: translateY(-3px);
}

.ptb-bl-featured-thumb {
  position: relative;
  min-height: 320px;
  overflow: hidden;
}

.ptb-bl-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ptb-bl-blob {
  position: absolute;
  right: -20px;
  bottom: -30px;
  width: 320px;
  height: 320px;
  opacity: 0.16;
  pointer-events: none;
}

.ptb-bl-featured-quote {
  position: absolute;
  bottom: 28px;
  left: 28px;
  right: 28px;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 500;
  font-style: italic;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.3;
  margin: 0;
}

.ptb-bl-featured-cat-badge {
  position: absolute;
  top: 26px;
  left: 26px;
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 7px 13px;
  border-radius: 999px;
}

.ptb-bl-featured-body {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ptb-bl-featured-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2A9D8F;
  margin-bottom: 14px;
}

.ptb-bl-featured-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 2.5vw, 2.125rem);
  font-weight: 600;
  color: #2D2D2D;
  margin: 0 0 16px;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.ptb-bl-featured-excerpt {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: #6B6760;
  margin: 0 0 24px;
}

.ptb-bl-featured-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ptb-bl-featured-avatar {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  object-fit: cover;
  flex-shrink: 0;
}

.ptb-bl-featured-meta-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #2D2D2D;
}

.ptb-bl-featured-meta-date {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8125rem;
  color: #8B8680;
}

/* ── Grid Header ── */
.ptb-bl-grid-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 22px;
}

.ptb-bl-grid-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #2D2D2D;
  margin: 0;
}

/* ── Post Card Grid ── */
.ptb-bl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-bottom: 48px;
}

.ptb-bl-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(45, 45, 45, 0.07);
  border: 1px solid rgba(45, 45, 45, 0.06);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ptb-bl-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(45, 45, 45, 0.12);
}

.ptb-bl-card-thumb {
  position: relative;
  height: 188px;
  overflow: hidden;
  flex-shrink: 0;
}

.ptb-bl-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ptb-bl-card-blob {
  position: absolute;
  right: -10px;
  bottom: -24px;
  width: 200px;
  height: 200px;
  opacity: 0.16;
  pointer-events: none;
}

.ptb-bl-card-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ptb-bl-card-cat {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 11px;
}

.ptb-bl-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #2D2D2D;
  margin: 0 0 10px;
  line-height: 1.22;
}

.ptb-bl-card-excerpt {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #6B6760;
  margin: 0 0 18px;
  flex: 1;
}

.ptb-bl-card-meta {
  margin-top: auto;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8125rem;
  color: #8B8680;
}

/* ── Pagination ── */
.ptb-bl-pagination {
  margin-bottom: 48px;
  display: flex;
  justify-content: center;
}

.ptb-bl-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #4A5568;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s;
}

.ptb-bl-pagination .page-numbers:hover {
  background: #EFE9DF;
  color: #2D2D2D;
}

.ptb-bl-pagination .page-numbers.current {
  background: #2D2D2D;
  color: #fff;
  font-weight: 600;
  border-color: #2D2D2D;
}

.ptb-bl-pagination .page-numbers.dots {
  border: none;
  background: none;
}

/* ── No Posts ── */
.ptb-bl-no-posts {
  text-align: center;
  padding: 48px 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.0625rem;
  color: #8B8680;
}

/* ── Newsletter Strip ── */
.ptb-bl-newsletter {
  background: linear-gradient(135deg, #2A9D8F 0%, #1A7A6E 100%);
  border-radius: 20px;
  padding: 40px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.ptb-bl-newsletter-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.625rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 8px;
}

.ptb-bl-newsletter-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.ptb-bl-newsletter-form {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.ptb-bl-newsletter-input {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  padding: 13px 18px;
  border-radius: 999px;
  width: 220px;
  outline: none;
  transition: background 0.18s, border-color 0.18s;
}

.ptb-bl-newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.ptb-bl-newsletter-input:focus {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.55);
}

.ptb-bl-newsletter-btn {
  background: #fff;
  color: #1A7A6E;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s, transform 0.18s;
}

.ptb-bl-newsletter-btn:hover {
  background: #EFE9DF;
  transform: translateY(-2px);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .ptb-bl-grid { grid-template-columns: repeat(2, 1fr); }

  .ptb-bl-featured {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .ptb-bl-featured-thumb { min-height: 260px; }
  .ptb-bl-featured-body { padding: 28px 28px 32px; }
  .ptb-bl-featured-title { font-size: 1.625rem; }
}

@media (max-width: 640px) {
  .ptb-bl-masthead { padding: 40px 20px 28px; }
  .ptb-bl-filters { padding: 18px 20px; gap: 8px; flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; }
  .ptb-bl-filter-pill { white-space: nowrap; }
  .ptb-bl-body { padding: 28px 16px 48px; }
  .ptb-bl-featured { margin-bottom: 28px; }
  .ptb-bl-grid { grid-template-columns: 1fr; gap: 16px; }

  /* Mobile: horizontal list cards */
  .ptb-bl-card {
    flex-direction: row;
    border-radius: 16px;
    min-height: 0;
  }
  .ptb-bl-card-thumb {
    width: 100px;
    height: auto;
    min-height: 120px;
    flex-shrink: 0;
    border-radius: 0;
  }
  .ptb-bl-card-blob {
    width: 130px;
    height: 130px;
  }
  .ptb-bl-card-title { font-size: 1rem; }
  .ptb-bl-card-excerpt { display: none; }

  .ptb-bl-newsletter {
    flex-direction: column;
    padding: 28px 24px;
    gap: 20px;
  }
  .ptb-bl-newsletter-form { flex-direction: column; align-items: stretch; width: 100%; }
  .ptb-bl-newsletter-input { width: 100%; }
}
