/* ==========================================================================
   BOADH GENESIS MASTER DESIGN SYSTEM — STYLESHEET v1.2
   Domain: boadh.com
   Brand Kit & Original Logo Image Integration
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800&family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&display=swap');

:root {
  /* --- OFFICIAL BOADH BRAND KIT COLORS --- */
  --brand-gold: #D4A017;
  --brand-gold-alt: #C5A059;
  --brand-gold-glow: rgba(212, 160, 23, 0.25);
  
  --bg-primary: #FBF3E9;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #F5EBE0;
  
  --bg-dark: #0B0B0B;
  --bg-dark-surface: #1A1A1A;
  --bg-dark-elevated: #262626;

  --text-primary: #0B0B0B;
  --text-secondary: #4A4A4A;
  --text-muted: #757575;
  --text-inverse: #FFFFFF;

  /* Accent Colors from Brand Kit */
  --accent-deep-bronze: #8C5A12;
  --accent-ocean-blue: #0D47A1;
  --accent-forest-green: #1B5E20;
  --accent-royal-purple: #4A148C;
  --accent-crimson-red: #B71C1C;
  --accent-sky-blue: #0288D1;

  --border-light: rgba(0, 0, 0, 0.08);
  --border-dark: rgba(255, 255, 255, 0.12);

  /* --- TYPOGRAPHY TOKENS --- */
  --font-display: 'Cinzel', serif;
  --font-editorial: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* --- SPACING TOKENS (8-pt Grid) --- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* --- SURFACES & SHADOWS --- */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 30px var(--brand-gold-glow);

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- READING PROGRESS BAR --- */
#reading-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 1000;
}

#reading-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-gold), var(--accent-deep-bronze));
  width: 0%;
  transition: width 0.1s ease-out;
}

/* --- LAYOUT CONTAINERS --- */
.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-narrow {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* --- HEADER & NAVIGATION --- */
#site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(251, 243, 233, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}

#site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand-logo-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.brand-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  mix-blend-mode: multiply;
}

.brand-logo-text {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  line-height: 1;
}

.brand-logo-sub {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--brand-gold);
  margin-top: 3px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-8);
  align-items: center;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: var(--space-2) 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-gold);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--brand-gold);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.btn-search-trigger {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-search-trigger:hover {
  border-color: var(--brand-gold);
  color: var(--text-primary);
}

.btn-search-shortcut {
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

.btn-primary {
  background-color: var(--brand-gold);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: #B88A12;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background-color: var(--bg-surface-elevated);
  border-color: var(--brand-gold);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.02rem;
}

/* --- MEGA MENU --- */
.mega-menu {
  position: absolute;
  top: 84px;
  left: 0;
  width: 100%;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: all var(--transition-fast);
  z-index: 850;
  padding: var(--space-8) 0;
}

.mega-menu.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.mega-world-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.mega-world-item:hover {
  background-color: var(--bg-primary);
  border-color: rgba(212, 160, 23, 0.2);
  transform: translateX(4px);
}

.mega-world-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.mega-world-title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
}

.mega-world-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.25;
}

/* --- PAGE VIEWS (SPA ROUTER) --- */
.page-view {
  display: none;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.page-view.active {
  display: block;
  opacity: 1;
}

/* --- SECTION HEADINGS --- */
.section-header {
  margin-bottom: var(--space-12);
  text-align: center;
}

.section-tag {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-gold);
  margin-bottom: var(--space-2);
}

.section-title {
  font-family: var(--font-editorial);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: var(--space-3) auto 0;
}

/* --- HERO SECTION --- */
.hero-section {
  position: relative;
  min-height: calc(100vh - 84px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 30%, rgba(245, 235, 224, 0.6) 0%, rgba(251, 243, 233, 1) 70%);
  padding: var(--space-16) 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--brand-gold);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-gold);
  margin-bottom: var(--space-4);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: 3.8rem;
  line-height: 1.1;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-6);
}

.hero-headline span {
  font-family: var(--font-editorial);
  font-style: italic;
  color: var(--brand-gold);
}

.hero-description {
  font-size: 1.22rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-8);
}

.hero-ctas {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-visual-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-tree-artwork-img {
  max-width: 440px;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  mix-blend-mode: multiply;
  animation: floatPulse 6s ease-in-out infinite alternate;
}

@keyframes floatPulse {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-10px) scale(1.02); }
}

/* --- EXPLORE WORLDS GRID --- */
.worlds-section {
  padding: var(--space-20) 0;
  background-color: var(--bg-surface);
}

.worlds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-6);
}

.world-card {
  position: relative;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.world-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-gold);
}

.world-card-image {
  height: 180px;
  object-fit: cover;
  width: 100%;
}

.world-card-content {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.world-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.world-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.world-card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--brand-gold);
}

.world-card-title {
  font-family: var(--font-editorial);
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.world-card-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  flex: 1;
}

.world-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  padding-top: var(--space-3);
}

/* --- TODAY'S DISCOVERY FEATURE CARD --- */
.todays-discovery-section {
  padding: var(--space-20) 0;
}

.feature-magazine-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background: var(--bg-dark);
  color: var(--text-inverse);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.feature-card-image-wrap {
  position: relative;
  min-height: 480px;
}

.feature-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-card-content {
  padding: var(--space-12);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-gold);
  margin-bottom: var(--space-4);
}

.feature-title {
  font-family: var(--font-editorial);
  font-size: 2.4rem;
  line-height: 1.25;
  margin-bottom: var(--space-4);
}

.feature-summary {
  font-size: 1.1rem;
  color: #A0AEC0;
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.feature-meta {
  display: flex;
  gap: var(--space-6);
  font-size: 0.88rem;
  color: #718096;
  margin-bottom: var(--space-8);
}

/* --- FEATURED COLLECTIONS --- */
.collections-section {
  padding: var(--space-20) 0;
  background: var(--bg-surface-elevated);
}

.collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: var(--space-8);
}

.collection-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all var(--transition-normal);
}

.collection-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.collection-card-image {
  height: 220px;
  width: 100%;
  object-fit: cover;
}

.collection-card-body {
  padding: var(--space-6);
}

.collection-card-title {
  font-family: var(--font-editorial);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.collection-card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.collection-progress-bar {
  height: 4px;
  background: var(--bg-surface-elevated);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: var(--space-4);
}

.collection-progress-fill {
  height: 100%;
  background: var(--brand-gold);
  width: 35%;
}

/* --- VISUAL STORIES --- */
.visual-stories-section {
  padding: var(--space-20) 0;
  background: var(--bg-dark);
  color: var(--text-inverse);
}

.stories-carousel {
  display: flex;
  gap: var(--space-6);
  overflow-x: auto;
  padding-bottom: var(--space-6);
  scroll-snap-type: x mandatory;
}

.stories-carousel::-webkit-scrollbar {
  height: 6px;
}

.stories-carousel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.visual-story-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-normal);
}

.visual-story-card:hover {
  transform: scale(1.04);
}

.visual-story-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-story-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.9) 100%);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.visual-story-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--brand-gold);
}

.visual-story-title {
  font-family: var(--font-editorial);
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: var(--space-1);
}

/* --- KNOWLEDGE TIMELINE --- */
.timeline-section {
  padding: var(--space-20) 0;
}

.timeline-era-nav {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-12);
  flex-wrap: wrap;
}

.era-btn {
  padding: 10px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.era-btn.active, .era-btn:hover {
  background: var(--brand-gold);
  color: white;
  border-color: var(--brand-gold);
}

.timeline-display {
  position: relative;
  padding: var(--space-8) 0;
}

.timeline-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
  position: relative;
  z-index: 2;
}

.timeline-event-card {
  background: var(--bg-surface);
  padding: var(--space-6);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.event-year {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand-gold);
  margin-bottom: var(--space-1);
}

.event-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.event-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* --- KNOWLEDGE MAP / GRAPH VIEW --- */
.graph-section {
  padding: var(--space-20) 0;
  background: var(--bg-surface);
}

.graph-canvas-wrapper {
  width: 100%;
  height: 520px;
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

#graph-canvas {
  width: 100%;
  height: 100%;
}

.graph-controls {
  position: absolute;
  bottom: var(--space-4);
  right: var(--space-4);
  display: flex;
  gap: var(--space-2);
}

.graph-btn {
  background: var(--bg-dark-elevated);
  color: white;
  border: 1px solid var(--border-dark);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  cursor: pointer;
}

/* --- BRAND KIT SHOWCASE SECTION --- */
.brand-kit-section {
  padding: var(--space-20) 0;
  background: var(--bg-dark);
  color: var(--text-inverse);
}

.brand-kit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.brand-swatch {
  height: 100px;
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  font-size: 0.85rem;
  font-weight: 700;
}

/* --- FLAGSHIP ARTICLE PAGE LAYOUT --- */
.article-header {
  padding: var(--space-12) 0 var(--space-8);
  text-align: center;
}

.article-breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.article-breadcrumbs a {
  color: var(--brand-gold);
}

.article-title {
  font-family: var(--font-editorial);
  font-size: 3.2rem;
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.article-subtitle {
  font-family: var(--font-editorial);
  font-size: 1.35rem;
  color: var(--text-secondary);
  max-width: 840px;
  margin: 0 auto var(--space-6);
  line-height: 1.5;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  font-size: 0.9rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: var(--space-4) 0;
  margin-bottom: var(--space-8);
}

.article-hero-media {
  margin-bottom: var(--space-12);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.article-hero-img {
  width: 100%;
  max-height: 600px;
  object-fit: cover;
}

.article-img-caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: var(--space-2);
}

.article-body-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-12);
  align-items: start;
}

.article-toc-sticky {
  position: sticky;
  top: 104px;
  background: var(--bg-surface);
  padding: var(--space-6);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.toc-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
  color: var(--brand-gold);
}

.toc-list {
  list-style: none;
  font-size: 0.88rem;
}

.toc-item {
  margin-bottom: var(--space-2);
}

.toc-link {
  color: var(--text-secondary);
  display: block;
  padding: 4px 0;
}

.toc-link:hover, .toc-link.active {
  color: var(--brand-gold);
  font-weight: 600;
}

.article-prose {
  font-family: var(--font-editorial);
  font-size: 1.2rem;
  line-height: 1.85;
  color: #2D3748;
}

.article-prose p {
  margin-bottom: var(--space-6);
}

.article-prose h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: var(--space-12) 0 var(--space-4);
  scroll-margin-top: 100px;
}

.article-prose blockquote {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--brand-gold);
  border-left: 3px solid var(--brand-gold);
  padding-left: var(--space-6);
  margin: var(--space-8) 0;
}

.callout-box {
  background: var(--bg-surface-elevated);
  border-left: 4px solid var(--brand-gold);
  padding: var(--space-6);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: var(--space-8) 0;
  font-family: var(--font-sans);
  font-size: 1rem;
}

.callout-title {
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--brand-gold);
}

.takeaways-box {
  background: #FEF3C7;
  border: 1px solid #FCD34D;
  padding: var(--space-6);
  border-radius: var(--radius-md);
  margin: var(--space-8) 0;
  font-family: var(--font-sans);
}

.takeaways-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #92400E;
  margin-bottom: var(--space-3);
}

.takeaways-list {
  padding-left: var(--space-6);
  color: #78350F;
}

.references-section {
  border-top: 1px solid var(--border-light);
  padding-top: var(--space-8);
  margin-top: var(--space-12);
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.references-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: var(--space-4);
}

/* --- SEARCH OVERLAY MODAL --- */
.search-modal {
  position: fixed;
  inset: 0;
  background: rgba(11, 11, 11, 0.78);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
}

.search-modal.active {
  display: flex;
}

.search-dialog {
  background: var(--bg-surface);
  width: 90%;
  max-width: 680px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--border-light);
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.2rem;
  font-family: var(--font-sans);
  background: transparent;
  padding-left: var(--space-3);
}

.search-results-list {
  max-height: 420px;
  overflow-y: auto;
  padding: var(--space-4);
}

.search-result-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.search-result-item:hover {
  background: var(--bg-surface-elevated);
}

/* --- NEWSLETTER SECTION --- */
.newsletter-section {
  padding: var(--space-20) 0;
  background: var(--bg-dark);
  color: var(--text-inverse);
  text-align: center;
}

.newsletter-box {
  max-width: 640px;
  margin: 0 auto;
}

.newsletter-title {
  font-family: var(--font-editorial);
  font-size: 2.2rem;
  margin-bottom: var(--space-3);
}

.newsletter-desc {
  color: #A0AEC0;
  font-size: 1.05rem;
  margin-bottom: var(--space-6);
}

.newsletter-form {
  display: flex;
  gap: var(--space-3);
}

.newsletter-input {
  flex: 1;
  padding: 14px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-dark);
  background: var(--bg-dark-surface);
  color: white;
  font-size: 1rem;
  outline: none;
}

/* --- FOOTER --- */
#site-footer {
  background: var(--bg-dark-surface);
  color: #A0AEC0;
  padding: var(--space-16) 0 var(--space-8);
  border-top: 1px solid var(--border-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.footer-brand-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: white;
  margin-bottom: var(--space-2);
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: white;
  margin-bottom: var(--space-4);
  letter-spacing: 0.1em;
}

.footer-links {
  list-style: none;
  font-size: 0.9rem;
}

.footer-links li {
  margin-bottom: var(--space-2);
}

.footer-links a:hover {
  color: var(--brand-gold);
}

.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  border-top: 1px solid var(--border-dark);
  padding-top: var(--space-8);
  color: #718096;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-ctas {
    justify-content: center;
  }

  .feature-magazine-card {
    grid-template-columns: 1fr;
  }

  .article-body-layout {
    grid-template-columns: 1fr;
  }

  .article-toc-sticky {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .mega-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-headline {
    font-size: 2.6rem;
  }

  .section-title {
    font-size: 1.9rem;
  }

  .nav-links {
    display: none;
  }
}

/* ==========================================================================
   BOADH /ADMIN CMS DASHBOARD PANELS STYLING
   ========================================================================== */

/* Login Card styling */
.admin-login-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
  max-width: 420px;
  margin: 0 auto;
}

/* Dashboard Layout */
.admin-dashboard-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-6);
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-dark);
  min-height: 600px;
}

/* Sidebar navigation */
.admin-sidebar {
  background: var(--bg-dark-surface);
  border-right: 1px solid var(--border-dark);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
}

.admin-sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.admin-menu-btn {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: #A0AEC0;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.admin-menu-btn:hover, .admin-menu-btn.active {
  background: rgba(212, 160, 23, 0.15);
  color: var(--brand-gold);
}

/* Workspace panel */
.admin-workspace {
  padding: var(--space-8);
  color: var(--text-inverse);
  background: var(--bg-dark);
}

.admin-sub-view {
  display: none;
}

.admin-sub-view.active {
  display: block;
}

/* Overview Stat cards */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.admin-stat-card {
  background: var(--bg-dark-surface);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  text-align: center;
}

.admin-stat-val {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--brand-gold);
}

.admin-stat-lbl {
  font-size: 0.85rem;
  color: #A0AEC0;
  text-transform: uppercase;
  margin-top: 4px;
}

/* Form Styles */
.cms-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #A0AEC0;
}

.cms-form input, .cms-form select, .cms-form textarea {
  width: 100%;
  padding: 12px;
  background: var(--bg-dark-surface);
  border: 1px solid var(--border-dark);
  color: white;
  border-radius: var(--radius-sm);
  outline: none;
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

.cms-form input:focus, .cms-form select:focus, .cms-form textarea:focus {
  border-color: var(--brand-gold);
}

.cms-form textarea {
  font-family: var(--font-sans);
  line-height: 1.6;
}

/* Manage table listing */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-dark);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.admin-table th, .admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-dark);
}

.admin-table th {
  background: var(--bg-dark-surface);
  color: var(--brand-gold);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.admin-table tbody tr {
  background: var(--bg-dark);
  transition: background var(--transition-fast);
}

.admin-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.btn-cms-action {
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid transparent;
  font-weight: 600;
}

.btn-cms-edit {
  background: rgba(212, 160, 23, 0.2);
  color: var(--brand-gold);
}

.btn-cms-edit:hover {
  background: var(--brand-gold);
  color: white;
}

.btn-cms-delete {
  background: rgba(252, 129, 129, 0.2);
  color: #FC8181;
}

.btn-cms-delete:hover {
  background: #E53E3E;
  color: white;
}

