/* ==========================================================================
   Blog Detail Page - article typography and the blocks around it
   ========================================================================== */
.bd-section {
  padding: 70px 0 90px;
  background: #FFFDFB;
}

/* ---- Meta line under the banner ---------------------------------------- */
.bd-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(23, 7, 10, 0.08);
  font-size: 0.88rem;
  color: #6b6267;
}
.bd-meta i { color: var(--primary); margin-right: 6px; }
.bd-cat {
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(211, 24, 38, 0.08);
  color: var(--primary);
  font-family: var(--font-edu);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---- Featured image ----------------------------------------------------- */
.bd-hero {
  margin-bottom: 30px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 22px 44px -30px rgba(23, 7, 10, 0.55);
}
.bd-hero img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ---- Lead paragraph ----------------------------------------------------- */
.bd-lead {
  margin-bottom: 28px;
  padding: 18px 22px;
  border-left: 4px solid var(--primary);
  border-radius: 0 12px 12px 0;
  background: #FBF7F7;
  color: #4a4247;
  font-size: 1.02rem;
  line-height: 1.8;
}

/* ---- Article body ------------------------------------------------------- */
.bd-body {
  color: #4a4247;
  font-size: 1.02rem;
  line-height: 1.9;
}
.bd-body > *:first-child { margin-top: 0; }
.bd-body p { margin: 0 0 18px; }
.bd-body h2 {
  margin: 42px 0 16px;
  padding-top: 28px;
  border-top: 1px solid rgba(23, 7, 10, 0.08);
  font-family: var(--font-edu);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 900;
  line-height: 1.3;
  color: var(--ink);
}
.bd-body h3 {
  margin: 30px 0 12px;
  font-family: var(--font-edu);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
}
.bd-body h4 {
  margin: 24px 0 10px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
}
.bd-body a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.bd-body strong { color: var(--ink); font-weight: 700; }
.bd-body img {
  display: block;
  width: 100%;
  height: auto;
  margin: 26px 0;
  border-radius: 14px;
}
.bd-body hr {
  margin: 36px 0;
  border: 0;
  border-top: 1px solid rgba(23, 7, 10, 0.1);
  opacity: 1;
}

/* Lists */
.bd-body ul,
.bd-body ol { margin: 0 0 20px; padding-left: 0; }
.bd-body ul { list-style: none; }
.bd-body ul li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 30px;
}
.bd-body ul li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}
.bd-body ol { padding-left: 22px; }
.bd-body ol li { margin-bottom: 10px; padding-left: 6px; }
.bd-body ol li::marker { color: var(--primary); font-weight: 700; }

/* Tables */
.bd-body table {
  width: 100%;
  margin: 24px 0 28px;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: #FFFFFF;
  border: 1px solid rgba(23, 7, 10, 0.09);
  border-radius: 12px;
  overflow: hidden;
}
.bd-body th,
.bd-body td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(23, 7, 10, 0.07);
  text-align: left;
  vertical-align: top;
}
.bd-body thead th {
  background: rgba(211, 24, 38, 0.07);
  font-family: var(--font-edu);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
}
.bd-body tbody tr:last-child td { border-bottom: 0; }
.bd-body tbody tr:nth-child(even) { background: #FCFAFA; }

/* Quotes */
.bd-body blockquote {
  margin: 26px 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid rgba(211, 24, 38, 0.25);
  color: #5b5257;
  font-style: italic;
}

/* ---- Inline CTA box ----------------------------------------------------- */
.bd-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 34px 0;
  padding: 26px 28px;
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(211, 24, 38, 0.07), rgba(245, 166, 35, 0.12));
  border: 1px solid rgba(211, 24, 38, 0.14);
}
.bd-cta h4 {
  margin: 0 0 4px;
  font-family: var(--font-edu);
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--ink);
}
.bd-cta p { margin: 0; font-size: 0.92rem; color: #6b6267; }
.bd-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.bd-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #FFFFFF;
  font-family: var(--font-edu);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.bd-cta-btn:hover {
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 14px 24px -14px rgba(211, 24, 38, 0.8);
}
.bd-cta-btn.is-ghost {
  background: #FFFFFF;
  color: var(--primary);
  border: 1px solid rgba(211, 24, 38, 0.25);
}
.bd-cta-btn.is-ghost:hover { color: var(--primary); }

/* ---- Share row ---------------------------------------------------------- */
.bd-share {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(23, 7, 10, 0.08);
}
.bd-share span {
  font-family: var(--font-edu);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a8186;
}
.bd-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid rgba(23, 7, 10, 0.1);
  color: #6b6267;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.bd-share a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* ---- FAQ ---------------------------------------------------------------- */
.bd-faq { margin-top: 46px; }
.bd-faq-title {
  margin: 0 0 18px;
  font-family: var(--font-edu);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 900;
  color: var(--ink);
}
.bd-faq-item {
  margin-bottom: 12px;
  padding: 18px 22px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1px solid rgba(23, 7, 10, 0.08);
}
.bd-faq-item h4 {
  margin: 0 0 8px;
  font-family: var(--font-edu);
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
}
.bd-faq-item p { margin: 0; color: #5b5257; line-height: 1.8; font-size: 0.96rem; }

/* ---- Related posts ------------------------------------------------------ */
.bd-related { margin-top: 56px; }
.bd-related-title {
  margin: 0 0 20px;
  font-family: var(--font-edu);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 900;
  color: var(--ink);
}
.bd-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.bd-related-card {
  display: block;
  background: #FFFFFF;
  border: 1px solid rgba(23, 7, 10, 0.08);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.bd-related-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 40px -28px rgba(23, 7, 10, 0.5);
}
.bd-related-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.bd-rc-body { padding: 16px 18px 20px; }
.bd-rc-cat {
  font-family: var(--font-edu);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}
.bd-related-card h4 {
  margin: 8px 0 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}

@media (max-width: 575px) {
  .bd-section { padding: 48px 0 64px; }
  .bd-cta { padding: 22px 20px; }
  .bd-body { font-size: 0.98rem; }
}
