/*
Theme Name: Buddha Dham Theme v3.0
Theme URI: https://buddhadham.com
Author: Buddha Dham Team
Author URI: https://buddhadham.com
Description: Premium Digital Museum + Encyclopedia theme for Gautama Buddha life, history & teachings on BuddhaDham.com. Clean, historical, AdSense-ready, multilingual foundation. Dark brown / ivory / muted gold palette.
Version: 3.0.5
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: buddhastory
Tags: blog, education, history, custom-menu, featured-images, translation-ready, two-columns, right-sidebar
*/

/* =====================================================
   CSS VARIABLES — Digital Museum Palette
   ===================================================== */
:root {
  --bs-ivory: #F8F4EC;
  --bs-sand: #EDE6D9;
  --bs-cream: #F5F0E6;
  --bs-dark-brown: #3C2A21;
  --bs-brown: #5C4033;
  --bs-medium-brown: #7A5C45;
  --bs-muted-gold: #C9A86C;
  --bs-soft-gold: #D4B98A;
  --bs-deep-maroon: #6B2D3C;
  --bs-text: #2C211A;
  --bs-text-light: #5A4A3F;
  --bs-white: #FFFFFF;
  --bs-border: #E0D6C8;
  --bs-shadow: rgba(60, 42, 33, 0.08);
  --bs-radius: 10px;
  --bs-radius-lg: 16px;
  --bs-font-heading: 'Noto Serif', 'Georgia', serif;
  --bs-font-body: 'Noto Sans', 'Segoe UI', system-ui, sans-serif;
  --bs-font-hindi: 'Noto Sans Devanagari', 'Noto Sans', sans-serif;
  --bs-container: 1180px;
  --bs-transition: 0.25s ease;
}

/* =====================================================
   RESET & BASE
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--bs-font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--bs-text);
  background: var(--bs-ivory);
  -webkit-font-smoothing: antialiased;
}

body.hindi-lang,
.lang-hi {
  font-family: var(--bs-font-hindi);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--bs-brown); text-decoration: none; transition: color var(--bs-transition); }
a:hover { color: var(--bs-muted-gold); }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--bs-font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: var(--bs-dark-brown);
}

.container {
  width: 100%;
  max-width: var(--bs-container);
  margin: 0 auto;
  padding: 0 20px;
}

/* =====================================================
   HEADER
   ===================================================== */
.bs-header {
  background: var(--bs-white);
  border-bottom: 1px solid var(--bs-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px var(--bs-shadow);
}

.bs-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.bs-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--bs-font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--bs-dark-brown);
  letter-spacing: -0.02em;
}

.bs-logo span.wheel {
  color: var(--bs-muted-gold);
  font-size: 1.6rem;
}

.bs-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bs-nav a {
  padding: 8px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--bs-text);
  border-radius: 6px;
}

.bs-nav a:hover,
.bs-nav a.current-menu-item {
  background: var(--bs-sand);
  color: var(--bs-dark-brown);
}

.bs-lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--bs-text-light);
  cursor: pointer;
  padding: 6px 12px;
  border: 1px solid var(--bs-border);
  border-radius: 6px;
  background: var(--bs-cream);
}

.bs-lang-switch:hover { border-color: var(--bs-muted-gold); }

.bs-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--bs-dark-brown);
  cursor: pointer;
}

/* =====================================================
   HERO — Cinematic
   ===================================================== */
.bs-hero {
  background: linear-gradient(135deg, var(--bs-dark-brown) 0%, #2A1C16 60%, #1F1510 100%);
  color: var(--bs-ivory);
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
}

.bs-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 40%, rgba(201, 168, 108, 0.12) 0%, transparent 55%);
  pointer-events: none;
}

.bs-hero-content {
  position: relative;
  max-width: 720px;
}

.bs-hero-label {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bs-muted-gold);
  margin-bottom: 16px;
  font-weight: 500;
}

.bs-hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  color: var(--bs-ivory);
  margin-bottom: 18px;
  font-weight: 600;
}

.bs-hero p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(248, 244, 236, 0.85);
  margin-bottom: 32px;
  max-width: 560px;
}

.bs-hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.bs-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all var(--bs-transition);
  cursor: pointer;
  border: none;
}

.bs-btn-primary {
  background: var(--bs-muted-gold);
  color: var(--bs-dark-brown);
}

.bs-btn-primary:hover {
  background: var(--bs-soft-gold);
  color: var(--bs-dark-brown);
  transform: translateY(-1px);
}

.bs-btn-outline {
  background: transparent;
  color: var(--bs-ivory);
  border: 1.5px solid rgba(248, 244, 236, 0.4);
}

.bs-btn-outline:hover {
  border-color: var(--bs-muted-gold);
  color: var(--bs-muted-gold);
}

/* =====================================================
   SECTION COMMON
   ===================================================== */
.bs-section {
  padding: 70px 0;
}

.bs-section-title {
  text-align: center;
  margin-bottom: 48px;
}

.bs-section-title h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.2rem);
  margin-bottom: 12px;
}

.bs-section-title p {
  color: var(--bs-text-light);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.bs-section-alt {
  background: var(--bs-sand);
}

/* =====================================================
   TIMELINE
   ===================================================== */
.bs-timeline {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 20px 0;
}

.bs-timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--bs-muted-gold), var(--bs-brown));
  border-radius: 2px;
}

.bs-timeline-item {
  position: relative;
  padding-left: 70px;
  margin-bottom: 36px;
}

.bs-timeline-item:last-child { margin-bottom: 0; }

.bs-timeline-dot {
  position: absolute;
  left: 18px;
  top: 6px;
  width: 22px;
  height: 22px;
  background: var(--bs-muted-gold);
  border: 4px solid var(--bs-ivory);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--bs-muted-gold);
}

.bs-timeline-content {
  background: var(--bs-white);
  padding: 20px 24px;
  border-radius: var(--bs-radius);
  border: 1px solid var(--bs-border);
  box-shadow: 0 4px 16px var(--bs-shadow);
  transition: transform var(--bs-transition), box-shadow var(--bs-transition);
}

.bs-timeline-content:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(60, 42, 33, 0.12);
}

.bs-timeline-content h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.bs-timeline-content p {
  font-size: 0.95rem;
  color: var(--bs-text-light);
  margin: 0;
}

.bs-timeline-content a {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bs-brown);
}

/* =====================================================
   JOURNEY CARDS (Life stages)
   ===================================================== */
.bs-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.bs-card {
  background: var(--bs-white);
  border-radius: var(--bs-radius-lg);
  overflow: hidden;
  border: 1px solid var(--bs-border);
  box-shadow: 0 4px 18px var(--bs-shadow);
  transition: transform var(--bs-transition), box-shadow var(--bs-transition);
}

.bs-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(60, 42, 33, 0.14);
}

.bs-card-img {
  height: 160px;
  background: linear-gradient(135deg, var(--bs-brown), var(--bs-dark-brown));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-muted-gold);
  font-size: 2.5rem;
}

.bs-card-body {
  padding: 22px;
}

.bs-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.bs-card-body p {
  font-size: 0.92rem;
  color: var(--bs-text-light);
  margin-bottom: 14px;
}

.bs-card-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bs-brown);
}

/* =====================================================
   PLACES GRID
   ===================================================== */
.bs-places-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.bs-place-card {
  position: relative;
  border-radius: var(--bs-radius-lg);
  overflow: hidden;
  height: 240px;
  background: var(--bs-dark-brown);
}

.bs-place-card-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 18, 12, 0.92) 0%, rgba(30, 18, 12, 0.3) 55%, transparent 100%);
  z-index: 1;
}

.bs-place-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 22px;
  z-index: 2;
  color: var(--bs-ivory);
}

.bs-place-card-content h3 {
  color: var(--bs-ivory);
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.bs-place-card-content p {
  font-size: 0.88rem;
  opacity: 0.85;
  margin: 0;
}

/* =====================================================
   ARTICLE / SINGLE
   ===================================================== */
.bs-article-header {
  padding: 50px 0 30px;
  border-bottom: 1px solid var(--bs-border);
  margin-bottom: 40px;
}

.bs-article-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 16px;
}

.bs-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--bs-text-light);
}

.bs-content {
  max-width: 760px;
}

.bs-content p {
  margin-bottom: 1.4em;
}

.bs-content h2 {
  font-size: 1.55rem;
  margin: 2em 0 0.7em;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--bs-sand);
}

.bs-content h3 {
  font-size: 1.25rem;
  margin: 1.6em 0 0.5em;
}

.bs-content ul, .bs-content ol {
  margin: 0 0 1.4em 1.4em;
}

.bs-content ul { list-style: disc; }
.bs-content ol { list-style: decimal; }

.bs-content blockquote {
  margin: 1.8em 0;
  padding: 18px 24px;
  background: var(--bs-sand);
  border-left: 4px solid var(--bs-muted-gold);
  border-radius: 0 var(--bs-radius) var(--bs-radius) 0;
  font-style: italic;
  color: var(--bs-text);
}

.bs-quick-answer {
  background: var(--bs-cream);
  border: 1px solid var(--bs-border);
  border-radius: var(--bs-radius);
  padding: 20px 24px;
  margin-bottom: 32px;
}

.bs-quick-answer strong {
  color: var(--bs-dark-brown);
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bs-sources {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--bs-border);
}

.bs-sources h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.bs-sources ul {
  list-style: disc;
  margin-left: 1.3em;
  font-size: 0.95rem;
  color: var(--bs-text-light);
}

/* =====================================================
   SIDEBAR
   ===================================================== */
.bs-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  padding: 40px 0 60px;
}

.bs-sidebar .widget {
  background: var(--bs-white);
  border: 1px solid var(--bs-border);
  border-radius: var(--bs-radius);
  padding: 22px;
  margin-bottom: 24px;
}

.bs-sidebar .widget h3 {
  font-size: 1.05rem;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bs-sand);
}

.bs-toc a {
  display: block;
  padding: 6px 0;
  font-size: 0.92rem;
  color: var(--bs-text-light);
  border-bottom: 1px dashed var(--bs-border);
}

.bs-toc a:last-child { border-bottom: none; }

/* =====================================================
   FOOTER
   ===================================================== */
.bs-footer {
  background: var(--bs-dark-brown);
  color: rgba(248, 244, 236, 0.8);
  padding: 60px 0 30px;
}

.bs-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.bs-footer h4 {
  color: var(--bs-muted-gold);
  font-size: 1rem;
  margin-bottom: 16px;
  font-family: var(--bs-font-heading);
}

.bs-footer a {
  color: rgba(248, 244, 236, 0.75);
  font-size: 0.92rem;
  display: block;
  margin-bottom: 8px;
}

.bs-footer a:hover { color: var(--bs-muted-gold); }

.bs-footer-about p {
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 12px;
}

.bs-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}

/* =====================================================
   ABOUT PROJECT BOX
   ===================================================== */
.bs-about-project {
  background: var(--bs-white);
  border: 1px solid var(--bs-border);
  border-radius: var(--bs-radius-lg);
  padding: 36px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.bs-about-project h2 {
  margin-bottom: 14px;
}

.bs-about-project p {
  color: var(--bs-text-light);
  margin-bottom: 22px;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 960px) {
  .bs-layout {
    grid-template-columns: 1fr;
  }
  .bs-sidebar { order: 2; }
  .bs-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .bs-nav { display: none; }
  .bs-menu-toggle { display: block; }
  .bs-header-inner { height: 64px; }
  .bs-hero { padding: 60px 0 70px; }
  .bs-timeline::before { left: 16px; }
  .bs-timeline-item { padding-left: 50px; }
  .bs-timeline-dot { left: 6px; }
  .bs-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .bs-cards-grid,
  .bs-places-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   ADSENSE SAFE ZONES
   ===================================================== */
.bs-ad-slot {
  margin: 28px 0;
  text-align: center;
  min-height: 90px;
}

.bs-content .bs-ad-slot {
  clear: both;
}

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }


/* =====================================================
   HEADER LOGO
   ===================================================== */
.bs-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.bs-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: transparent !important;
}
.bs-logo .logo-text {
  font-family: var(--bs-font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--bs-dark-brown);
  letter-spacing: -0.02em;
}
.bs-logo .logo-accent {
  color: var(--bs-muted-gold);
}
.bs-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* =====================================================
   HERO BANNER — Desktop: LEFT logo | RIGHT text
   Mobile: stack (logo top, text below)
   ===================================================== */
.bs-hero-banner {
  width: 100%;
  background: #2C211A;
  color: #F8F4EC;
  overflow: hidden;
}

.bs-hero-banner-inner {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  min-height: 440px;
}

.bs-hero-left {
  flex: 0 0 42%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 48px 40px;
}

.bs-hero-logo-img {
  width: min(300px, 82%);
  height: auto;
  max-width: 300px;
  border-radius: 50%;
  background: transparent !important;
  box-shadow: none;
  display: block;
  /* soft crop to hide residual outer pale ring */
  clip-path: circle(48.5% at 50% 50%);
}

.bs-hero-right {
  flex: 1 1 58%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 56px 48px 48px;
  background: transparent;
  text-align: left;
}

.bs-hero-kicker {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #C9A86C;
  font-weight: 600;
  margin-bottom: 16px;
}

.bs-hero-title {
  font-size: clamp(2.4rem, 4.2vw, 3.4rem);
  color: #F8F4EC !important;
  margin: 0 0 20px;
  font-weight: 600;
  line-height: 1.15;
}

.bs-hero-hi {
  font-size: 1.08rem;
  line-height: 1.75;
  color: rgba(248, 244, 236, 0.92);
  margin: 0 0 14px;
  max-width: 520px;
}

.bs-hero-en {
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(248, 244, 236, 0.62);
  margin: 0 0 30px;
  max-width: 520px;
}

.bs-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.bs-hero-banner .bs-btn-primary {
  background: #C9A86C;
  color: #2A1C16;
  border: none;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 6px;
  text-decoration: none;
}
.bs-hero-banner .bs-btn-primary:hover {
  background: #d4b57a;
}
.bs-hero-banner .bs-btn-outline {
  border: 1px solid rgba(248,244,236,0.4);
  color: #F8F4EC;
  background: transparent;
  padding: 12px 22px;
  border-radius: 6px;
  text-decoration: none;
}
.bs-hero-banner .bs-btn-outline:hover {
  border-color: #C9A86C;
  color: #C9A86C;
}

/* Tablet still side-by-side */
@media (min-width: 768px) and (max-width: 1024px) {
  .bs-hero-left {
    flex: 0 0 38%;
    padding: 36px 24px;
  }
  .bs-hero-logo-img {
    max-width: 260px;
  }
  .bs-hero-right {
    padding: 36px 32px;
  }
}

/* MOBILE — stack only */
@media (max-width: 767px) {
  .bs-hero-banner-inner {
    flex-direction: column;
    min-height: 0;
  }
  .bs-hero-left {
    flex: none;
    width: 100%;
    padding: 36px 24px 16px;
    background: transparent;
  }
  .bs-hero-logo-img {
    max-width: 200px;
    margin: 0 auto;
  }
  .bs-hero-right {
    flex: none;
    width: 100%;
    padding: 16px 22px 40px;
    text-align: center;
  }
  .bs-hero-hi,
  .bs-hero-en {
    margin-left: auto;
    margin-right: auto;
  }
  .bs-hero-actions {
    justify-content: center;
  }
}

/* =====================================================
   SHARE + COMMENTS (single articles only)
   Theme-matched · Responsive · No other layout changes
   ===================================================== */
.bs-share-box {
  margin-top: 40px;
  padding: 20px 22px;
  background: #F8F4EC;
  border: 1px solid var(--bs-border, #E0D6C8);
  border-radius: 10px;
  border-left: 4px solid var(--bs-muted-gold, #C9A86C);
}
.bs-share-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bs-muted-gold, #C9A86C);
  margin-bottom: 12px;
}
.bs-share-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.bs-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  font-family: inherit;
  line-height: 1.3;
}
.bs-share-wa { background: #25D366; color: #fff; }
.bs-share-wa:hover { background: #1ebe57; color: #fff; }
.bs-share-fb { background: #1877F2; color: #fff; }
.bs-share-fb:hover { background: #0d65d9; color: #fff; }
.bs-share-x { background: #111; color: #fff; }
.bs-share-x:hover { background: #333; color: #fff; }
.bs-share-tg { background: #0088cc; color: #fff; }
.bs-share-tg:hover { background: #0077b3; color: #fff; }
.bs-share-copy {
  background: #fff;
  color: var(--bs-dark-brown, #3C2A21);
  border-color: var(--bs-border, #E0D6C8);
}
.bs-share-copy:hover,
.bs-share-copy.is-copied {
  background: var(--bs-muted-gold, #C9A86C);
  color: #2A1C16;
  border-color: var(--bs-muted-gold, #C9A86C);
}

/* Comments */
.bs-comments-wrap {
  margin-top: 36px;
  padding: 28px 24px 32px;
  background: #fff;
  border: 1px solid var(--bs-border, #E0D6C8);
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(60, 42, 33, 0.06);
}
.bs-comments-title {
  font-size: 1.25rem;
  color: var(--bs-dark-brown, #3C2A21);
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--bs-muted-gold, #C9A86C);
}
.bs-comment-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}
.bs-comment-list .comment {
  margin-bottom: 18px;
  padding: 16px;
  background: #F8F4EC;
  border-radius: 8px;
  border: 1px solid var(--bs-border, #E0D6C8);
}
.bs-comment-list .children {
  list-style: none;
  margin: 12px 0 0 16px;
  padding: 0;
}
.bs-comment-list .comment-author {
  font-weight: 600;
  color: var(--bs-dark-brown, #3C2A21);
}
.bs-comment-list .comment-metadata {
  font-size: 0.8rem;
  color: var(--bs-text-light, #5A4A3F);
  margin: 4px 0 10px;
}
.bs-comment-list .comment-content p {
  margin: 0 0 8px;
  line-height: 1.6;
  color: var(--bs-text, #2C211A);
}
.bs-comment-list .reply a {
  font-size: 0.85rem;
  color: var(--bs-muted-gold, #C9A86C);
  font-weight: 600;
}

.bs-comment-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--bs-dark-brown, #3C2A21);
}
.bs-comment-form input[type="text"],
.bs-comment-form input[type="email"],
.bs-comment-form input[type="url"],
.bs-comment-form textarea {
  width: 100%;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--bs-border, #E0D6C8);
  border-radius: 6px;
  background: #F8F4EC;
  color: var(--bs-text, #2C211A);
  font-family: inherit;
  font-size: 0.95rem;
  box-sizing: border-box;
}
.bs-comment-form textarea {
  min-height: 120px;
  resize: vertical;
}
.bs-comment-form input:focus,
.bs-comment-form textarea:focus {
  outline: none;
  border-color: var(--bs-muted-gold, #C9A86C);
  background: #fff;
}
.bs-comment-form .comment-form-author,
.bs-comment-form .comment-form-email,
.bs-comment-form .comment-form-url {
  margin-bottom: 14px;
}
.bs-comment-submit {
  margin-top: 8px;
  cursor: pointer;
}
.bs-comments-closed {
  color: var(--bs-text-light, #5A4A3F);
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .bs-share-box {
    padding: 16px;
  }
  .bs-share-btns {
    gap: 8px;
  }
  .bs-share-btn {
    flex: 1 1 calc(50% - 8px);
    min-width: 120px;
    padding: 10px 12px;
  }
  .bs-comments-wrap {
    padding: 20px 16px 24px;
    margin-top: 28px;
  }
  .bs-comment-list .children {
    margin-left: 8px;
  }
}

/* Related + TOC sidebar lists (auto-filled) */
.bs-toc-list,
.bs-related-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.bs-toc-list li,
.bs-related-list li {
  margin: 0 0 10px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--bs-border, #E0D6C8);
  font-size: 0.92rem;
  line-height: 1.45;
}
.bs-toc-list li:last-child,
.bs-related-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.bs-toc-list a,
.bs-related-list a {
  color: var(--bs-dark-brown, #3C2A21);
  text-decoration: none;
  font-weight: 500;
}
.bs-toc-list a:hover,
.bs-related-list a:hover {
  color: var(--bs-muted-gold, #C9A86C);
}
.bs-toc-h3 {
  padding-left: 12px;
  font-size: 0.88rem;
}
.bs-toc-empty,
.bs-related-empty {
  font-size: 0.88rem;
  color: var(--bs-text-light, #5A4A3F);
  margin: 0;
}
