/* ============================================================
   BFF Blog Detail Pages — Layout, Sidebar, Content
   ============================================================ */

/* ── Post Banner ───────────────────────────────────────────── */
.post-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #4A235A 60%, var(--navy) 100%);
  padding: 140px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.post-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(255,107,157,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.post-banner-tag {
  display: inline-block;
  background: rgba(255,107,157,0.2);
  border: 1px solid rgba(255,107,157,0.4);
  color: #FFD6EC;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.post-banner h1 {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
  line-height: 1.3;
}

.post-banner-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  position: relative;
  z-index: 1;
}

.post-banner .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.post-banner .breadcrumb a { color: var(--pink); }
.post-banner .breadcrumb span { color: rgba(255,255,255,0.35); }

/* ── Post Layout ───────────────────────────────────────────── */
.post-body {
  padding: 48px 0 80px;
  background: var(--light);
}

.post-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

/* ── Main Content ──────────────────────────────────────────── */
.post-main {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(196,69,105,0.08);
  border: 1px solid rgba(255,107,157,0.08);
}

.post-featured-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.post-content {
  padding: 40px 40px 48px;
}

.post-content .meta-desc {
  background: linear-gradient(135deg, #FFF0F7, #F5E6FF);
  border-left: 4px solid var(--pink);
  padding: 16px 20px;
  margin-bottom: 32px;
  font-size: 0.95rem;
  color: #4A3560;
  line-height: 1.7;
  border-radius: 0 12px 12px 0;
}

.post-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  margin: 32px 0 16px;
  padding-top: 8px;
}

.post-content h2:first-of-type { margin-top: 0; }

.post-content h2 span {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.post-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin: 24px 0 12px;
}

.post-content p {
  color: #4A3560;
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 18px;
}

.post-content h2,
.post-content h3,
.post-content p,
.post-content li,
.post-content td,
.post-content th {
  overflow-wrap: anywhere;
}

.post-content ul, .post-content ol {
  margin: 16px 0 24px;
  padding-left: 24px;
}

.post-content ul li, .post-content ol li {
  margin-bottom: 10px;
  color: #4A3560;
  line-height: 1.75;
}

.post-content ul li::marker { color: var(--pink); }
.post-content ol li::marker { color: var(--pink); font-weight: 700; }

.post-content a {
  color: var(--pink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-content a:hover { color: var(--rose); }

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(196,69,105,0.08);
}

.post-content table th,
.post-content table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(255,107,157,0.12);
}

.post-content table th {
  background: linear-gradient(135deg, var(--pink), var(--rose));
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

.post-content table tr:last-child td { border-bottom: none; }
.post-content table tr:nth-child(even) { background: #FFF5F9; }

/* FAQs */
.faq-section {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,107,157,0.15);
}

.faq-section h2 { margin-top: 0; }

.faq-item {
  background: #FFF5F9;
  border: 1px solid rgba(255,107,157,0.12);
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
}

.faq-item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  padding: 18px 22px;
  margin: 0;
  cursor: default;
}

.faq-item p {
  margin: 0;
  padding: 0 22px 18px;
  font-size: 0.95rem;
}

/* ── Sidebar (Sticky) ──────────────────────────────────────── */
.post-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-widget {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid rgba(255,107,157,0.1);
  box-shadow: 0 4px 20px rgba(196,69,105,0.06);
}

.sidebar-widget h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(255,107,157,0.2);
}

.sidebar-widget ul { list-style: none; padding: 0; margin: 0; }

.sidebar-widget ul li { margin-bottom: 10px; }

.sidebar-widget ul li a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  color: #4A3560;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
}

.sidebar-widget ul li a:hover {
  background: #FFF5F9;
  color: var(--pink);
  padding-left: 18px;
}

.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sidebar-tags a {
  display: inline-block;
  padding: 6px 14px;
  background: #FFF5F9;
  border: 1px solid rgba(255,107,157,0.2);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  transition: all var(--transition);
}

.sidebar-tags a:hover {
  background: var(--pink);
  color: #fff;
  border-color: var(--pink);
}

.sidebar-info-card {
  background: linear-gradient(135deg, var(--pink), var(--rose));
  color: #fff;
  padding: 24px;
  border-radius: 16px;
  text-align: center;
}

.sidebar-info-card h3 { color: #fff; border-color: rgba(255,255,255,0.3); }
.sidebar-info-card p { color: rgba(255,255,255,0.95); margin: 0 0 16px; font-size: 0.9rem; }
.sidebar-info-card .btn {
  display: inline-block;
  background: #fff;
  color: var(--rose);
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all var(--transition);
}

.sidebar-info-card .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.sidebar-email-form input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(255,107,157,0.25);
  border-radius: 10px;
  font-size: 0.9rem;
  margin-bottom: 10px;
  outline: none;
  transition: border-color var(--transition);
}

.sidebar-email-form input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255,107,157,0.15);
}

.sidebar-email-form button {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
}

.sidebar-email-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,107,157,0.4);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .post-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .post-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .post-sidebar .sidebar-info-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .post-banner {
    padding: 120px 0 40px;
  }
  .post-banner h1 {
    font-size: 1.5rem;
    line-height: 1.35;
  }
  .post-banner-meta {
    gap: 12px;
    font-size: 0.82rem;
  }
  .post-banner .breadcrumb {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    font-size: 0.8rem;
    padding: 0 16px;
  }
  .post-body {
    padding: 32px 0 60px;
  }
  .post-layout {
    gap: 28px;
  }
  .post-main {
    border-radius: 16px;
  }
  .post-featured-img {
    aspect-ratio: 16/10;
    min-height: 200px;
  }
  .post-content {
    padding: 24px 20px 32px;
  }
  .post-content .meta-desc {
    padding: 14px 16px;
    margin-bottom: 24px;
    font-size: 0.9rem;
  }
  .post-content h2 {
    font-size: 1.25rem;
    margin: 28px 0 12px;
  }
  .post-content h3 {
    font-size: 1.1rem;
    margin: 20px 0 10px;
  }
  .post-content p {
    font-size: 0.95rem;
    margin-bottom: 14px;
  }
  .post-content ul,
  .post-content ol {
    padding-left: 20px;
    margin: 12px 0 18px;
  }
  .post-content table {
    margin: 18px 0;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .post-content table th,
  .post-content table td {
    padding: 10px 12px;
    font-size: 0.88rem;
    min-width: 100px;
  }
  .faq-section {
    margin-top: 32px;
    padding-top: 24px;
  }
  .faq-item h4 {
    padding: 14px 16px;
    font-size: 0.95rem;
  }
  .faq-item p {
    padding: 0 16px 14px;
    font-size: 0.9rem;
  }
  .post-sidebar {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .sidebar-widget {
    padding: 20px;
    margin-bottom: 20px;
  }
  .sidebar-widget h3 {
    font-size: 0.95rem;
  }
  .sidebar-tags {
    gap: 6px;
  }
  .sidebar-tags a {
    padding: 5px 12px;
    font-size: 0.78rem;
  }
}

@media (max-width: 480px) {
  .post-banner {
    padding: 100px 0 32px;
  }
  .post-banner h1 {
    font-size: 1.35rem;
  }
  .post-banner-tag {
    font-size: 0.72rem;
    padding: 5px 14px;
  }
  .post-banner .breadcrumb {
    font-size: 0.75rem;
  }
  .post-body {
    padding: 24px 0 48px;
  }
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .post-content {
    padding: 20px 16px 28px;
  }
  .post-content .meta-desc {
    padding: 12px 14px;
    font-size: 0.88rem;
  }
  .post-content h2 {
    font-size: 1.15rem;
    margin: 24px 0 10px;
  }
  .post-content h3 {
    font-size: 1.05rem;
  }
  .post-content table th,
  .post-content table td {
    padding: 8px 10px;
    font-size: 0.82rem;
    min-width: 80px;
  }
  .sidebar-info-card {
    padding: 20px 16px;
  }
  .sidebar-info-card .btn {
    padding: 10px 20px;
    font-size: 0.88rem;
  }
}
