/* ============================================================
   HERITAGE MODERNISM — Design System
   Digital Heritage Platform · Pabna-2 Parliamentary Constituency
   ============================================================
   A museum-quality design language inspired by archival elegance,
   parliamentary gravitas, and the living heritage of Bangladesh.
   ============================================================ */

/* ─────────────────────────────────────────────
   0. DESIGN TOKENS
   ───────────────────────────────────────────── */
:root {
  /* Color System — Refined Museum Palette */
  --primary:          #162536;
  --secondary:        #AC8A4F;
  --bg-color:         #F5F2EB;
  --accent:           #2A628F;
  --secondary-accent: #3E6347;
  --text-main:        #2C353F;
  --text-light:       #F9F8F6;
  --bg-dark:          #1C2632;
  --border-subtle:    rgba(22, 37, 54, 0.08);
  --bg-warm:          #EBE7DD;

  /* Extended Palette */
  --secondary-hover:  #947642;
  --secondary-muted:  rgba(172, 138, 79, 0.12);
  --primary-light:    #22374E;
  --card-bg:          #FFFFFF;
  --card-shadow:      0 2px 8px rgba(22, 37, 54, 0.04), 0 8px 24px rgba(22, 37, 54, 0.04);
  --card-shadow-hover:0 12px 32px rgba(22, 37, 54, 0.08);
  --liberation-red:   #8B2626;
  --text-secondary:   #4A5568;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing Scale (8px grid) */
  --space-xs:   0.25rem;
  --space-sm:   0.5rem;
  --space-md:   1rem;
  --space-lg:   1.5rem;
  --space-xl:   2rem;
  --space-2xl:  3rem;
  --space-3xl:  4rem;
  --space-4xl:  6rem;
  --space-5xl:  8rem;

  /* Transitions */
  --ease-default: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast:   0.2s;
  --duration-base:   0.35s;
  --duration-slow:   0.5s;
  --duration-slower:  0.7s;

  /* Layout */
  --container-max:      1200px;
  --container-wide-max: 1400px;
  --header-height:      64px;

  /* Borders & Radii */
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-xl: 16px;
  --radius-pill: 100px;
}


/* ─────────────────────────────────────────────
   1. RESET & FOUNDATIONS
   ───────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-main);
  background-color: var(--bg-color);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-default);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

::selection {
  background-color: var(--secondary);
  color: var(--primary);
}


/* ─────────────────────────────────────────────
   2. TYPOGRAPHY
   ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
  margin-bottom: var(--space-md);
  max-width: 70ch;
  color: var(--text-secondary);
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 600;
}

em {
  font-style: italic;
}


/* ─────────────────────────────────────────────
   3. LAYOUT CONTAINERS
   ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.container-wide {
  width: 100%;
  max-width: var(--container-wide-max);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}


/* ─────────────────────────────────────────────
   4. GLOBAL PATTERNS
   ───────────────────────────────────────────── */

/* — Section Headers — */
.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
  max-width: 700px;
  margin-inline: auto;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-sm);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--secondary);
  margin: var(--space-md) auto 0;
  border-radius: 1px;
  opacity: 0.7;
}

.text-light .section-title,
.section-header.text-light .section-title {
  color: var(--text-light);
}

.section-subtitle {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-top: var(--space-md);
  line-height: 1.6;
}

/* — Section Divider — */
.section-divider {
  width: 100%;
  max-width: 120px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--secondary),
    transparent
  );
  margin: 0 auto;
  border: none;
}

/* — Text Utilities — */
.text-light {
  color: var(--text-light);
}

/* — Fade-in on Scroll — */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity var(--duration-slower) var(--ease-out),
    transform var(--duration-slower) var(--ease-out);
  will-change: opacity, transform;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* — Primary Button — */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-light);
  background-color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    background-color var(--duration-base) var(--ease-default),
    border-color var(--duration-base) var(--ease-default),
    transform var(--duration-fast) var(--ease-default),
    box-shadow var(--duration-base) var(--ease-default);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  border-color: var(--secondary);
  box-shadow: 0 4px 20px rgba(172, 138, 79, 0.25);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
}

/* — Counter Animation — */
.counter-animate {
  display: inline-block;
  transition: transform var(--duration-fast) var(--ease-default);
}


/* ═════════════════════════════════════════════
   5. HEADER — Premium Solid Design
   ═════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: var(--primary);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition:
    background var(--duration-base) var(--ease-default),
    box-shadow var(--duration-base) var(--ease-default);
}

.site-header.scrolled {
  background: rgba(11, 29, 50, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-wide-max);
  margin-inline: auto;
  padding-inline: var(--space-xl);
}

/* Logo */
.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  flex-shrink: 0;
  gap: 1px;
}

.logo-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.logo-subtitle {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 400;
  color: var(--secondary);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
}

/* Main Navigation */
.main-nav {
  display: flex;
  align-items: center;
}

.main-nav ul {
  display: flex;
  gap: 0;
}

.main-nav a {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  position: relative;
  padding: var(--space-md) var(--space-md);
  transition: color var(--duration-fast) var(--ease-default);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width var(--duration-base) var(--ease-out);
}

.main-nav a:hover {
  color: #FFFFFF;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 24px;
}

.main-nav a.active {
  color: #FFFFFF;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  z-index: 1100;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
  transition:
    transform var(--duration-base) var(--ease-out),
    opacity var(--duration-fast) var(--ease-default);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(22, 37, 54, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--duration-slow) var(--ease-out),
    visibility var(--duration-slow) var(--ease-out);
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-overlay a {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(20px);
  transition:
    color var(--duration-fast) var(--ease-default),
    opacity var(--duration-base) var(--ease-out),
    transform var(--duration-base) var(--ease-out);
}

.mobile-nav-overlay.active a {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation for mobile nav links */
.mobile-nav-overlay.active a:nth-child(1)  { transition-delay: 0.05s; }
.mobile-nav-overlay.active a:nth-child(2)  { transition-delay: 0.10s; }
.mobile-nav-overlay.active a:nth-child(3)  { transition-delay: 0.15s; }
.mobile-nav-overlay.active a:nth-child(4)  { transition-delay: 0.20s; }
.mobile-nav-overlay.active a:nth-child(5)  { transition-delay: 0.25s; }
.mobile-nav-overlay.active a:nth-child(6)  { transition-delay: 0.30s; }
.mobile-nav-overlay.active a:nth-child(7)  { transition-delay: 0.35s; }
.mobile-nav-overlay.active a:nth-child(8)  { transition-delay: 0.40s; }
.mobile-nav-overlay.active a:nth-child(9)  { transition-delay: 0.45s; }
.mobile-nav-overlay.active a:nth-child(10) { transition-delay: 0.50s; }

.mobile-nav-overlay a:hover {
  color: var(--secondary);
}


/* ═════════════════════════════════════════════
   6. HERO SECTION
   ═════════════════════════════════════════════ */
#home,
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--primary);
  background-image:
    linear-gradient(
      135deg,
      rgba(22, 37, 54, 0.88) 0%,
      rgba(22, 37, 54, 0.70) 40%,
      rgba(22, 37, 54, 0.55) 100%
    ),
    url('hero_bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  max-width: var(--container-max);
  margin-inline: auto;
  padding: calc(var(--header-height) + var(--space-3xl)) var(--space-lg) var(--space-3xl);
  width: 100%;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.75rem, 5.5vw, 5rem);
  font-weight: 900;
  color: var(--text-light);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
}

.hero-title span {
  display: block;
  color: var(--secondary);
}

.hero-quote {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  font-size: 1.125rem;
  color: rgba(245, 242, 235, 0.8);
  border-left: 3px solid var(--secondary);
  padding-left: var(--space-lg);
  margin-top: var(--space-xl);
  line-height: 1.7;
  max-width: 500px;
}

/* Portrait Frame */
.portrait-frame {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 3 / 4;
  justify-self: end;
}

.portrait-frame::before {
  content: '';
  position: absolute;
  inset: -12px;
  border: 2px solid rgba(172, 138, 79, 0.4);
  border-radius: var(--radius-md);
  pointer-events: none;
}

.portrait-frame::after {
  content: '';
  position: absolute;
  top: 12px;
  left: 12px;
  right: -12px;
  bottom: -12px;
  border: 2px solid rgba(172, 138, 79, 0.2);
  border-radius: var(--radius-md);
  pointer-events: none;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(245, 242, 235, 0.5);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: scrollPulse 2s var(--ease-out) infinite;
  z-index: 2;
}

.scroll-indicator::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--secondary), transparent);
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) translateY(0); }
  50%      { opacity: 1;   transform: translateX(-50%) translateY(8px); }
}


/* ═════════════════════════════════════════════
   7. AT A GLANCE
   ═════════════════════════════════════════════ */
#constituency,
.glance-section {
  padding: var(--space-5xl) 0;
  background-color: var(--bg-color);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-3xl);
}

.stat-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--card-shadow);
  transition:
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stat-label {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: var(--space-xs);
}

.stat-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: var(--space-sm);
  line-height: 1.5;
}

/* Geo Detail Grid */
.geo-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.geo-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: var(--space-xl) var(--space-lg);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--primary);
  box-shadow: var(--card-shadow);
  transition:
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}

.geo-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-shadow-hover);
  border-left-color: var(--secondary);
}

.geo-card h4 {
  font-family: var(--font-heading);
  margin-bottom: var(--space-sm);
  color: var(--primary);
}

.geo-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}


/* ═════════════════════════════════════════════
   8. HISTORY SECTION
   ═════════════════════════════════════════════ */
#history,
.history-section {
  padding: var(--space-5xl) 0;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.history-section .section-title {
  color: var(--text-light);
}

.history-section .section-title::after {
  background: var(--secondary);
}

.history-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-3xl);
  align-items: start;
  margin-top: var(--space-3xl);
}

.history-era {
  margin-bottom: var(--space-3xl);
}

.history-era:last-child {
  margin-bottom: 0;
}

.era-image {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-xl);
  aspect-ratio: 16 / 10;
}

.era-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.era-image:hover img {
  transform: scale(1.03);
}

.era-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 15, 26, 0.6) 0%,
    transparent 50%
  );
  pointer-events: none;
}

.era-content {
  padding: 0 var(--space-md);
}

.era-content h3 {
  font-family: var(--font-heading);
  color: var(--secondary);
  margin-bottom: var(--space-md);
}

.era-content p {
  color: rgba(245, 242, 235, 0.8);
  font-size: 1.0625rem;
  line-height: 1.8;
}

.history-subsection {
  margin-top: var(--space-2xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid rgba(172, 138, 79, 0.15);
}

.history-subsection h4 {
  font-family: var(--font-heading);
  color: var(--text-light);
  margin-bottom: var(--space-md);
}

.history-subsection p {
  color: rgba(245, 242, 235, 0.75);
}


/* ═════════════════════════════════════════════
   9. LIBERATION WAR SECTION
   ═════════════════════════════════════════════ */
#liberation,
.liberation-section {
  position: relative;
  padding: var(--space-5xl) 0;
  background-image: url('img_liberation.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.liberation-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 15, 26, 0.92) 0%,
    rgba(10, 15, 26, 0.80) 50%,
    rgba(10, 15, 26, 0.92) 100%
  );
  z-index: 1;
}

.liberation-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--text-light);
  max-width: 800px;
  margin-inline: auto;
}

.liberation-content h2 {
  color: var(--text-light);
  margin-bottom: var(--space-lg);
}

.liberation-content p {
  color: rgba(245, 242, 235, 0.85);
  font-size: 1.125rem;
  line-height: 1.8;
  margin-inline: auto;
  max-width: 65ch;
}

/* Battle Cards */
.battle-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-3xl);
  position: relative;
  z-index: 2;
}

.battle-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: var(--space-xl) var(--space-lg);
  transition:
    transform var(--duration-base) var(--ease-out),
    background var(--duration-base) var(--ease-out);
}

.battle-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.07);
}

.battle-card h4 {
  font-family: var(--font-heading);
  color: #FFFFFF;
  margin-bottom: var(--space-sm);
  font-size: 1.125rem;
}

.battle-card p {
  color: rgba(248, 247, 244, 0.65);
  font-size: 0.9375rem;
  line-height: 1.7;
}


/* ═════════════════════════════════════════════
   10. TIMELINE SECTION
   ═════════════════════════════════════════════ */
#timeline,
.timeline-section {
  padding: var(--space-5xl) 0;
  background-color: var(--bg-color);
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: var(--space-3xl) auto 0;
  padding: var(--space-xl) 0;
}

/* Center vertical line */
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--secondary) 10%,
    var(--secondary) 90%,
    transparent
  );
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: var(--space-lg) var(--space-2xl);
  margin-bottom: var(--space-xl);
}

/* Alternating layout */
.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: var(--space-3xl);
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: var(--space-3xl);
  text-align: left;
}

/* Gold dot on timeline */
.timeline-item::before {
  content: '';
  position: absolute;
  top: var(--space-xl);
  width: 14px;
  height: 14px;
  background: var(--secondary);
  border: 3px solid var(--bg-color);
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 0 3px rgba(172, 138, 79, 0.2);
}

.timeline-item:nth-child(odd)::before {
  right: -7px;
}

.timeline-item:nth-child(even)::before {
  left: -7px;
}

.timeline-date {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: var(--space-sm);
  display: block;
}

.timeline-content {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--card-shadow);
  text-align: left;
  transition:
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}

.timeline-content:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
}

.timeline-content h4 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.timeline-content p {
  font-size: 0.9375rem;
  color: var(--text-main);
  line-height: 1.7;
}


/* ═════════════════════════════════════════════
   11. ELECTORAL HISTORY
   ═════════════════════════════════════════════ */
#elections,
.elections-section {
  padding: var(--space-5xl) 0;
  background-color: #F0ECE3;
}

.election-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  background: var(--card-bg);
  -webkit-overflow-scrolling: touch;
  margin-top: var(--space-2xl);
}

.election-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  min-width: 700px;
}

.election-table thead {
  position: sticky;
  top: 0;
  z-index: 1;
}

.election-table th {
  background-color: var(--primary);
  color: var(--text-light);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  white-space: nowrap;
}

.election-table th:first-child {
  border-radius: var(--radius-lg) 0 0 0;
}

.election-table th:last-child {
  border-radius: 0 var(--radius-lg) 0 0;
}

.election-table td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
  vertical-align: middle;
}

.election-table tbody tr {
  transition: background-color var(--duration-fast) var(--ease-default);
}

.election-table tbody tr:nth-child(even) {
  background-color: rgba(22, 37, 54, 0.02);
}

.election-table tbody tr:hover {
  background-color: rgba(172, 138, 79, 0.08);
}

/* Highlighted Election Rows */
.election-highlight,
.election-table tbody tr.election-highlight {
  background-color: rgba(172, 138, 79, 0.12) !important;
  font-weight: 600;
}

.election-highlight td {
  border-bottom-color: rgba(172, 138, 79, 0.3);
}

/* 2026 Result Special Styling */
.result-2026 {
  background: linear-gradient(
    135deg,
    rgba(172, 138, 79, 0.15) 0%,
    rgba(172, 138, 79, 0.05) 100%
  ) !important;
  position: relative;
}

.result-2026 td {
  font-weight: 700;
  color: var(--primary);
}

.result-2026 td:first-child::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--secondary);
  border-radius: 0 2px 2px 0;
}


/* ═════════════════════════════════════════════
   12. LEADER PROFILE
   ═════════════════════════════════════════════ */
#leader,
.leader-section {
  padding: var(--space-5xl) 0;
  background-color: var(--card-bg);
}

.leader-hero {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.leader-hero h2 {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
}

.leader-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-3xl);
  align-items: start;
  margin-bottom: var(--space-3xl);
}

.leader-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow-hover);
}

.leader-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.leader-image-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-light) 100%
  );
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-style: italic;
}

/* Leader Stats */
.leader-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin: var(--space-3xl) 0;
}

.leader-stat {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  background: var(--bg-color);
  border-radius: var(--radius-lg);
  transition:
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}

.leader-stat:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow);
}

.leader-stat .stat-number {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--secondary);
}

.leader-stat .stat-label {
  color: var(--primary);
  margin-top: var(--space-xs);
}

/* Career Timeline */
.career-timeline {
  position: relative;
  padding-left: var(--space-2xl);
  margin-top: var(--space-2xl);
}

.career-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--secondary),
    rgba(172, 138, 79, 0.2)
  );
}

.career-item {
  position: relative;
  margin-bottom: var(--space-xl);
  padding-left: var(--space-lg);
}

.career-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-2xl) + 4px);
  top: 6px;
  width: 10px;
  height: 10px;
  background: var(--secondary);
  border-radius: 50%;
  border: 2px solid var(--card-bg);
}

.career-item .timeline-date {
  font-size: 0.875rem;
}

.career-item h4 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  color: var(--primary);
  margin-bottom: var(--space-xs);
}

.career-item p {
  font-size: 0.9375rem;
  color: var(--text-main);
  line-height: 1.7;
}


/* ═════════════════════════════════════════════
   13. OTHER FIGURES
   ═════════════════════════════════════════════ */
#figures,
.figures-section {
  padding: var(--space-5xl) 0;
  background-color: var(--bg-color);
}

.figures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.figure-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: var(--space-2xl) var(--space-xl);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--primary);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  transition:
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}

.figure-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

.figure-card h4 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: var(--space-xs);
  line-height: 1.3;
}

.figure-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.figure-party {
  align-self: flex-start;
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--secondary-muted);
  color: var(--secondary);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-md);
}


/* ═════════════════════════════════════════════
   14. ECONOMY SECTION
   ═════════════════════════════════════════════ */
#economy,
.economy-section {
  padding: var(--space-5xl) 0;
  background-color: var(--card-bg);
}

.economy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3xl);
  align-items: start;
  margin-top: var(--space-2xl);
}

.economy-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: var(--space-2xl);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--card-shadow);
  transition:
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}

.economy-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
}

.economy-card h3 {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  color: var(--primary);
  margin-bottom: var(--space-md);
}

.economy-card p {
  font-size: 1rem;
  line-height: 1.8;
}

.economy-image {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.economy-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.economy-image:hover img {
  transform: scale(1.03);
}

/* Crop Tags */
.crop-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.crop-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--secondary-accent);
  background: rgba(94, 139, 90, 0.1);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(94, 139, 90, 0.15);
  transition:
    background var(--duration-fast) var(--ease-default),
    transform var(--duration-fast) var(--ease-default);
}

.crop-tag:hover {
  background: rgba(94, 139, 90, 0.18);
  transform: translateY(-2px);
}


/* ═════════════════════════════════════════════
   15. DEVELOPMENT SECTION
   ═════════════════════════════════════════════ */
#development,
.development-section {
  padding: var(--space-5xl) 0;
  background-color: var(--bg-color);
}

.dev-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  background: var(--card-bg);
  -webkit-overflow-scrolling: touch;
  margin-top: var(--space-2xl);
}

.dev-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  min-width: 600px;
}

.dev-table th {
  background-color: var(--primary);
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: var(--space-md) var(--space-lg);
  text-align: left;
}

.dev-table td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.dev-table tbody tr:nth-child(even) {
  background-color: rgba(22, 37, 54, 0.02);
}

.dev-table tbody tr:hover {
  background-color: rgba(172, 138, 79, 0.08);
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.project-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition:
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
}

.project-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.project-card .card-body {
  padding: var(--space-xl) var(--space-lg);
}

.project-card h4 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.project-card p {
  font-size: 0.9375rem;
  line-height: 1.7;
}


/* ═════════════════════════════════════════════
   16. DEMOGRAPHICS
   ═════════════════════════════════════════════ */
#demographics,
.demographics-section {
  padding: var(--space-5xl) 0;
  background-color: var(--card-bg);
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.demo-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: var(--space-xl) var(--space-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--card-shadow);
  transition:
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}

.demo-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
}

.demo-card h4 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  color: var(--primary);
  margin-bottom: var(--space-md);
}

.demo-card p {
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* Horizontal Progress Bars */
.demo-bar {
  width: 100%;
  height: 8px;
  background: rgba(22, 37, 54, 0.06);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin: var(--space-sm) 0 var(--space-md);
}

.demo-bar > span,
.demo-bar > div {
  display: block;
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(
    90deg,
    var(--secondary),
    var(--secondary-hover)
  );
  transition: width 1.2s var(--ease-out);
}


/* ═════════════════════════════════════════════
   17. CULTURE SECTION
   ═════════════════════════════════════════════ */
#culture,
.culture-section {
  padding: var(--space-5xl) 0;
  background-color: var(--bg-color);
}

.culture-section p {
  font-size: 1.0625rem;
  line-height: 1.9;
  max-width: 70ch;
}

.heritage-sites {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.heritage-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: var(--space-xl) var(--space-lg);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--secondary);
  transition:
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}

.heritage-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
}

.heritage-card h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.heritage-card p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-main);
}


/* ═════════════════════════════════════════════
   18. ANALYSIS SECTION
   ═════════════════════════════════════════════ */
#analysis,
.analysis-section {
  padding: var(--space-5xl) 0;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.analysis-section .section-title {
  color: var(--text-light);
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.analysis-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  padding: var(--space-2xl);
  color: var(--text-light);
  transition:
    transform var(--duration-base) var(--ease-out),
    background var(--duration-base) var(--ease-out);
}

.analysis-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.07);
}

.analysis-card h3 {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  color: #FFFFFF;
  margin-bottom: var(--space-md);
}

.analysis-card p {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: rgba(248, 247, 244, 0.75);
}


/* ═════════════════════════════════════════════
   19. VISION SECTION
   ═════════════════════════════════════════════ */
#vision,
.vision-section {
  padding: var(--space-5xl) 0;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-light) 100%
  );
  text-align: center;
}

.vision-section .container {
  max-width: 800px;
}

.vision-section h2 {
  color: var(--text-light);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-xl);
}

.vision-section p {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.7;
  color: rgba(245, 242, 235, 0.85);
  max-width: 65ch;
  margin-inline: auto;
}

.vision-section blockquote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.7;
  color: rgba(245, 242, 235, 0.85);
  max-width: 65ch;
  margin-inline: auto;
  position: relative;
  padding: var(--space-xl) 0;
}

.vision-section blockquote::before {
  content: '\201C';
  font-family: var(--font-heading);
  font-size: 5rem;
  color: var(--secondary);
  position: absolute;
  top: -10px;
  left: -10px;
  opacity: 0.4;
  line-height: 1;
}


/* ═════════════════════════════════════════════
   20. FOOTER
   ═════════════════════════════════════════════ */
.site-footer {
  background-color: var(--bg-dark);
  color: rgba(245, 242, 235, 0.6);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-grid h4 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: var(--space-md);
}

.footer-grid a {
  color: rgba(245, 242, 235, 0.6);
  font-size: 0.9375rem;
  transition: color var(--duration-fast) var(--ease-default);
}

.footer-grid a:hover {
  color: var(--secondary);
}

.footer-grid p {
  font-size: 0.9375rem;
  line-height: 1.7;
}

.footer-grid ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(245, 242, 235, 0.08);
  font-size: 0.8125rem;
  color: rgba(245, 242, 235, 0.35);
  letter-spacing: 0.04em;
}


/* ═════════════════════════════════════════════
   21. KEYFRAME ANIMATIONS
   ═════════════════════════════════════════════ */

/* Gentle float for decorative elements */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* Fade in from bottom */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade in */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Shimmer for loading states */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Width expansion for gold underline */
@keyframes expandWidth {
  from { width: 0; }
  to   { width: 100%; }
}

/* Pulse for live indicators */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}

/* Scale in for counter animation */
@keyframes counterPop {
  0%   { transform: scale(0.5); opacity: 0; }
  70%  { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}

.counter-animate {
  animation: counterPop 0.6s var(--ease-out) forwards;
}


/* ═════════════════════════════════════════════
   22. RESPONSIVE — TABLET (≤ 1024px)
   ═════════════════════════════════════════════ */
@media (max-width: 1024px) {

  /* Header */
  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  /* Hero */
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-2xl);
  }

  .hero-quote {
    margin-inline: auto;
  }

  .portrait-frame {
    justify-self: center;
    max-width: 340px;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* History */
  .history-grid {
    grid-template-columns: 1fr;
  }

  /* Leader */
  .leader-grid {
    grid-template-columns: 1fr;
  }

  .leader-image-wrapper {
    max-width: 500px;
    margin-inline: auto;
  }

  /* Economy */
  .economy-grid {
    grid-template-columns: 1fr;
  }

  /* Projects */
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Section padding */
  #constituency, .glance-section,
  #history, .history-section,
  #liberation, .liberation-section,
  #timeline, .timeline-section,
  #elections, .elections-section,
  #leader, .leader-section,
  #figures, .figures-section,
  #economy, .economy-section,
  #development, .development-section,
  #demographics, .demographics-section,
  #culture, .culture-section,
  #analysis, .analysis-section,
  #vision, .vision-section {
    padding: var(--space-4xl) 0;
  }
}


/* ═════════════════════════════════════════════
   23. RESPONSIVE — MOBILE (≤ 768px)
   ═════════════════════════════════════════════ */
@media (max-width: 768px) {

  :root {
    --header-height: 60px;
  }

  body {
    font-size: 1rem;
  }

  .container,
  .container-wide {
    padding-inline: var(--space-md);
  }

  /* Hero */
  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-content {
    padding-top: calc(var(--header-height) + var(--space-2xl));
    padding-bottom: var(--space-2xl);
  }

  .portrait-frame {
    max-width: 280px;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  .stat-card {
    padding: var(--space-xl) var(--space-md);
  }

  /* Geo Grid */
  .geo-detail-grid {
    grid-template-columns: 1fr;
  }

  /* Timeline */
  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: calc(40px + var(--space-lg));
    padding-right: 0;
    text-align: left;
  }

  .timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 0;
    padding-left: calc(40px + var(--space-lg));
    text-align: left;
  }

  .timeline-item:nth-child(even) {
    left: 0;
    padding-left: calc(40px + var(--space-lg));
  }

  .timeline-item::before,
  .timeline-item:nth-child(odd)::before,
  .timeline-item:nth-child(even)::before {
    left: 14px;
    right: auto;
  }

  /* Leader Stats */
  .leader-stats-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  /* Figures */
  .figures-grid {
    grid-template-columns: 1fr;
  }

  /* Projects */
  .projects-grid {
    grid-template-columns: 1fr;
  }

  /* Analysis */
  .analysis-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  /* Section padding */
  #constituency, .glance-section,
  #history, .history-section,
  #liberation, .liberation-section,
  #timeline, .timeline-section,
  #elections, .elections-section,
  #leader, .leader-section,
  #figures, .figures-section,
  #economy, .economy-section,
  #development, .development-section,
  #demographics, .demographics-section,
  #culture, .culture-section,
  #analysis, .analysis-section,
  #vision, .vision-section {
    padding: var(--space-3xl) 0;
  }

  /* Section headers */
  .section-header {
    margin-bottom: var(--space-2xl);
  }

  /* Battle Cards */
  .battle-cards {
    grid-template-columns: 1fr;
  }

  /* Heritage Sites */
  .heritage-sites {
    grid-template-columns: 1fr;
  }

  /* Background attachment fix for mobile */
  .hero-section,
  #home,
  .liberation-section,
  #liberation {
    background-attachment: scroll;
  }
}


/* ═════════════════════════════════════════════
   24. RESPONSIVE — SMALL MOBILE (≤ 480px)
   ═════════════════════════════════════════════ */
@media (max-width: 480px) {

  body {
    font-size: 0.9375rem;
  }

  .container,
  .container-wide {
    padding-inline: var(--space-sm);
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-number {
    font-size: 2rem;
  }

  /* Logo */
  .logo-title {
    font-size: 1.1rem;
  }

  /* Hero */
  .hero-title {
    font-size: 2rem;
  }

  .hero-quote {
    font-size: 1rem;
  }

  .portrait-frame {
    max-width: 240px;
  }

  /* Tables scroll horizontally */
  .election-table-wrapper,
  .dev-table-wrapper {
    margin-inline: calc(-1 * var(--space-sm));
    border-radius: 0;
  }

  /* Demo Grid */
  .demo-grid {
    grid-template-columns: 1fr;
  }

  /* Reduce card padding */
  .stat-card,
  .geo-card,
  .economy-card,
  .analysis-card,
  .heritage-card,
  .demo-card {
    padding: var(--space-lg) var(--space-md);
  }

  .battle-card {
    padding: var(--space-lg) var(--space-md);
  }

  .timeline-content {
    padding: var(--space-lg);
  }

  /* Section header */
  .section-title::after {
    width: 40px;
  }

  /* Leader stats */
  .leader-stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
  }

  .leader-stat {
    padding: var(--space-md) var(--space-sm);
  }

  /* Vision */
  .vision-section blockquote::before {
    font-size: 3rem;
  }
}


/* ═════════════════════════════════════════════
   25. ACCESSIBILITY & REDUCED MOTION
   ═════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .fade-in-section {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Focus-visible for keyboard navigation */
a:focus-visible,
button:focus-visible,
.btn-primary:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Screen reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}


/* ═════════════════════════════════════════════
   26. PRINT STYLES
   ═════════════════════════════════════════════ */
@media print {
  .site-header,
  .menu-toggle,
  .mobile-nav-overlay,
  .scroll-indicator,
  .site-footer {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  * {
    box-shadow: none !important;
    text-shadow: none !important;
  }

  .fade-in-section {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-section,
  #home {
    min-height: auto;
    padding: 2rem 0;
    background: var(--primary) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }
}


/* ═════════════════════════════════════════════
   SUPPLEMENTAL STYLES — Missing class coverage
   ═════════════════════════════════════════════ */

/* — Section Overlines — */
.section-overline,
.hero-overline {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: var(--space-sm);
  display: block;
}

.hero-overline {
  color: rgba(245, 242, 235, 0.6);
  margin-bottom: var(--space-lg);
}

/* — Portrait Inner Content — */
.portrait-inner {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-xl);
  background: linear-gradient(to top, rgba(22, 37, 54, 0.92), transparent);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 3;
}

/* Portrait frame: block layout so aspect-ratio sizes correctly */
.portrait-frame {
  display: block;
  position: relative;
  background: linear-gradient(
    180deg,
    rgba(15, 25, 40, 0.6) 0%,
    rgba(22, 37, 54, 0.85) 60%,
    rgba(22, 37, 54, 0.98) 100%
  );
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* Ambient gold glow from base of portrait */
.hero-portrait-wrapper {
  position: relative;
}

.hero-portrait-wrapper::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 50%;
  background: radial-gradient(
    ellipse at 50% 100%,
    rgba(172, 138, 79, 0.28) 0%,
    rgba(172, 138, 79, 0.08) 45%,
    transparent 70%
  );
  pointer-events: none;
  z-index: -1;
}

/* Portrait image — fills the frame, caption overlay sits on top */
.portrait-frame .portrait-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  position: absolute;
  inset: 0;
  z-index: 1;
  filter:
    drop-shadow(0 0 18px rgba(172, 138, 79, 0.45))
    drop-shadow(0 6px 24px rgba(0, 0, 0, 0.55));
}

.portrait-caption {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light);
  display: block;
}

.portrait-subcaption {
  font-size: 0.875rem;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.portrait-term {
  font-size: 0.75rem;
  color: rgba(245, 242, 235, 0.5);
  margin-top: 4px;
}

/* — Scroll Indicator Parts — */
.scroll-text {
  display: block;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--secondary), transparent);
}

/* — History Blocks — */
.history-block {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  margin-bottom: var(--space-xl);
  border-left: 4px solid var(--secondary);
}

.history-block:last-child {
  margin-bottom: 0;
}

.history-block-header {
  margin-bottom: var(--space-lg);
}

.history-block h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-light);
  margin-top: var(--space-sm);
}

.history-block p {
  color: rgba(245, 242, 235, 0.85);
  max-width: 100%;
}

.era-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--secondary);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
}

.heritage-list {
  list-style: none;
  margin: var(--space-lg) 0;
}

.heritage-list li {
  position: relative;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-md);
  color: rgba(245, 242, 235, 0.85);
}

.heritage-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary);
}

/* — Subsection Titles — */
.subsection-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: var(--space-lg);
  text-align: center;
}

/* — Geo Card Extensions — */
.geo-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: var(--space-xs);
}

.geo-nickname {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1rem;
  color: var(--secondary);
  margin-bottom: var(--space-md);
}

.geo-table-wrapper {
  margin-top: var(--space-2xl);
}

/* — Heritage Tables (generic) — */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
}

.heritage-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.heritage-table th {
  background: var(--primary);
  color: var(--text-light);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  white-space: nowrap;
}

.heritage-table td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-subtle);
  line-height: 1.6;
}

.heritage-table tbody tr:nth-child(even) {
  background: rgba(22, 37, 54, 0.02);
}

.heritage-table tbody tr:hover {
  background: rgba(172, 138, 79, 0.06);
}

/* — Liberation Section — */
.liberation-section {
  position: relative;
  padding: var(--space-5xl) 0;
  overflow: hidden;
}

.liberation-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
}

.liberation-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(22, 37, 54, 0.92) 0%,
    rgba(22, 37, 54, 0.85) 50%,
    rgba(22, 37, 54, 0.95) 100%
  );
  z-index: 1;
}

.liberation-content {
  position: relative;
  z-index: 2;
}

.battle-date {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fbbf24;
  margin-bottom: var(--space-sm);
}

.mujib-bandh-block {
  margin-top: var(--space-3xl);
  padding: var(--space-2xl);
  background: rgba(172, 138, 79, 0.08);
  border: 1px solid rgba(172, 138, 79, 0.2);
  border-radius: var(--radius-lg);
}

.mujib-bandh-block h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

/* — Party Badges (Election Table) — */
.party-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.party-badge.al, .al-bg {
  background: rgba(22, 163, 74, 0.08);
  color: #15803d;
}

.party-badge.bnp, .bnp-bg {
  background: rgba(59, 130, 246, 0.08);
  color: #1d4ed8;
}

.party-badge.jp, .jp-bg {
  background: rgba(234, 179, 8, 0.1);
  color: #b45309;
}

/* — Result 2026 Row — */
.result-2026 {
  background: rgba(172, 138, 79, 0.1) !important;
  font-weight: 600;
}

.result-detail-card {
  margin-top: var(--space-2xl);
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--card-shadow);
  border-top: 3px solid var(--secondary);
}

.result-detail-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
  color: var(--primary);
}

.result-note {
  font-style: italic;
  color: rgba(26, 26, 26, 0.7);
  margin-top: var(--space-lg);
  font-size: 0.9375rem;
}

/* — Delimitation Section — */
.delimitation-section {
  padding: var(--space-5xl) 0;
  background: var(--card-bg);
}

/* — Leader Section Extensions — */
.leader-image-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--bg-color);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.leader-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-lg);
  background: linear-gradient(to top, rgba(22, 37, 54, 0.8), transparent);
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--text-light);
  font-family: var(--font-heading);
  font-size: 1.25rem;
}

.leader-image-sub {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary);
}

.leader-bio-content h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.leader-stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.leader-stat-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: var(--space-sm);
}

.leader-stat p {
  font-size: 0.875rem;
  color: rgba(26, 26, 26, 0.7);
}

.leader-philanthropy,
.leader-party {
  max-width: 800px;
  margin: var(--space-2xl) auto;
}

.leader-philanthropy h3,
.leader-party h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.career-timeline-section {
  max-width: 900px;
  margin: 0 auto;
}

.career-timeline-section h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: var(--space-xl);
  text-align: center;
}

.career-date {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--secondary);
  min-width: 100px;
  flex-shrink: 0;
}

.career-content {
  flex: 1;
}

.career-content strong {
  color: var(--primary);
}

.career-highlight {
  background: rgba(172, 138, 79, 0.08) !important;
  border-left-color: var(--secondary) !important;
}

/* — Figure Card Extensions — */
.figure-tenure {
  font-size: 0.875rem;
  color: var(--secondary);
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

.figure-honour {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* — Economy Extensions — */
.economy-section {
  padding: var(--space-5xl) 0;
  background: var(--bg-color);
}

.economy-block {
  margin-bottom: var(--space-2xl);
}

.economy-block h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.economy-alert {
  padding: var(--space-2xl);
  background: rgba(185, 28, 28, 0.04);
  border-left: 4px solid var(--liberation-red);
  border-radius: var(--radius-md);
  margin-top: var(--space-2xl);
}

.economy-card-image {
  width: 100%;
  height: 250px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.economy-card-content {
  padding: var(--space-lg);
}

.economy-card-content h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

/* — Development Extensions — */
.development-section {
  padding: var(--space-5xl) 0;
  background: var(--card-bg);
}

.dev-highlight {
  background: rgba(172, 138, 79, 0.08) !important;
  font-weight: 600;
}

.padma-barrage-block {
  margin-top: var(--space-2xl);
  padding: var(--space-2xl);
  background: rgba(59, 130, 246, 0.04);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
}

.padma-barrage-block h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

/* — Revolution Section — */
.revolution-section {
  padding: var(--space-5xl) 0;
  background: var(--bg-color);
}

.revolution-content {
  max-width: 800px;
  margin: 0 auto;
}

.revolution-content p {
  font-size: 1.125rem;
  line-height: 1.8;
  max-width: 100%;
}

/* — Demographics Section — */
.demographics-section {
  padding: var(--space-5xl) 0;
  background: var(--card-bg);
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

/* — Culture Section — */
.culture-section {
  padding: var(--space-5xl) 0;
  background: var(--bg-color);
}

.culture-content {
  max-width: 800px;
  margin: 0 auto var(--space-2xl);
}

.heritage-sites {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
}

/* — Analysis Section — */
.analysis-section {
  padding: var(--space-5xl) 0;
  background: var(--bg-dark);
  color: var(--text-light);
}

.analysis-section .section-title {
  color: var(--text-light);
}

.analysis-section .section-title::after {
  background: var(--secondary);
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
}

.analysis-card h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: var(--space-md);
}

/* — Vision Section Extensions — */
.vision-section {
  padding: var(--space-5xl) 0;
  background: linear-gradient(135deg, var(--primary), var(--bg-dark));
  text-align: center;
}

.vision-section .section-title {
  color: var(--text-light);
}

.vision-section .section-title::after {
  background: var(--secondary);
}

.vision-container {
  max-width: 900px;
}

.vision-statement {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.375rem;
  line-height: 1.8;
  color: rgba(245, 242, 235, 0.8);
  margin: var(--space-xl) auto var(--space-2xl);
  max-width: 700px;
}

.vision-priorities {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

.vision-item {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-light);
  background: rgba(172, 138, 79, 0.12);
  border: 1px solid rgba(172, 138, 79, 0.3);
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  transition: all var(--duration-base) var(--ease-default);
}

.vision-item:hover {
  background: rgba(172, 138, 79, 0.25);
  transform: translateY(-2px);
}

/* — Footer Extensions — */
.footer-note {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: var(--space-sm);
  font-style: italic;
}

/* — Responsive Supplements — */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .portrait-frame {
    margin: 0 auto;
    max-width: 320px;
  }
  .hero-quote {
    margin-inline: auto;
    border-left: none;
    padding-left: 0;
    border-top: 3px solid var(--secondary);
    padding-top: var(--space-md);
  }
}

@media (max-width: 768px) {
  /* Global Spacing Reductions */
  .glance-section, .history-section, .liberation-section, .timeline-section,
  .elections-section, .leader-section, .figures-section, .economy-section,
  .development-section, .demographics-section, .culture-section,
  .analysis-section, .vision-section, .delimitation-section {
    padding: var(--space-3xl) 0;
  }
  
  .section-header {
    margin-bottom: var(--space-xl);
  }

  /* Grid Collapses */
  .stats-grid,
  .geo-detail-grid,
  .economy-grid,
  .leader-grid,
  .leader-stats-grid,
  .analysis-grid,
  .demo-grid,
  .heritage-sites,
  .figures-grid,
  .battle-cards,
  .history-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  /* Table Optimization — Mobile Cards */
  .table-scroll {
    overflow: visible;
    background: none;
    margin: 0;
    padding: 0;
  }

  .heritage-table, .election-table, .dev-table {
    display: block;
    width: 100%;
    min-width: 0;
    border: none;
  }

  .heritage-table thead, .election-table thead, .dev-table thead {
    display: none; /* Hide standard headers */
  }

  .heritage-table tbody, .election-table tbody, .dev-table tbody,
  .heritage-table tr, .election-table tr, .dev-table tr {
    display: block;
    width: 100%;
  }

  .heritage-table tr, .election-table tr, .dev-table tr {
    margin-bottom: var(--space-xl);
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: var(--card-shadow);
    padding: var(--space-lg);
  }

  .heritage-table td, .election-table td, .dev-table td {
    display: flex;
    flex-direction: column;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.9375rem;
  }

  .heritage-table td:last-child, .election-table td:last-child, .dev-table td:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .heritage-table td::before, .election-table td::before, .dev-table td::before {
    display: block;
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
  }

  /* Specific Mobile Table Labels */
  .geo-table-wrapper .heritage-table td:nth-of-type(1)::before { content: "Parameter"; }
  .geo-table-wrapper .heritage-table td:nth-of-type(2)::before { content: "Detail"; }

  .election-table td:nth-of-type(1)::before { content: "Year"; color: var(--primary); font-size: 0.8125rem;}
  .election-table td:nth-of-type(2)::before { content: "MP Elected"; }
  .election-table td:nth-of-type(3)::before { content: "Party"; }
  .election-table td:nth-of-type(4)::before { content: "Votes / %"; }
  .election-table td:nth-of-type(5)::before { content: "Turnout"; }
  .election-table td:nth-of-type(6)::before { content: "Context"; }

  #elections .heritage-table td:nth-of-type(1)::before { content: "Candidate"; color: var(--primary); font-size: 0.8125rem;}
  #elections .heritage-table td:nth-of-type(2)::before { content: "Party"; }
  #elections .heritage-table td:nth-of-type(3)::before { content: "Votes"; }
  #elections .heritage-table td:nth-of-type(4)::before { content: "% Share"; }

  .dev-table td:nth-of-type(1)::before { content: "Sector"; color: var(--primary); font-size: 0.8125rem;}
  .dev-table td:nth-of-type(2)::before { content: "Agency"; }
  .dev-table td:nth-of-type(3)::before { content: "Key Activities"; }

  .election-table tbody tr.election-highlight, 
  .heritage-table tbody tr.result-2026 {
    border-left: 4px solid var(--secondary);
  }

  /* Specific Component Tweaks */
  .career-item {
    flex-direction: column;
    gap: var(--space-xs);
  }
  
  .career-date {
    margin-bottom: var(--space-xs);
  }

  .vision-priorities {
    flex-direction: column;
    align-items: center;
  }

  .liberation-bg {
    background-attachment: scroll; /* Fix for mobile browser parallax jank */
  }
}

@media (max-width: 480px) {
  /* Typography Scaling */
  html {
    font-size: 95%;
  }
  
  .hero-title {
    font-size: 2.25rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .crop-tags {
    justify-content: center;
  }

  .portrait-frame {
    max-width: 240px;
  }
}
/* ============================================================
   BENGALI TYPOGRAPHY & LANGUAGE TOGGLE
   ============================================================ */
html[lang="bn"] {
  --font-heading: 'Noto Serif Bengali', serif;
  --font-body: 'Hind Siliguri', sans-serif;
}

html[lang="bn"] body {
  font-size: 1.1875rem;
  line-height: 2;
}

html[lang="bn"] h1, 
html[lang="bn"] h2, 
html[lang="bn"] h3,
html[lang="bn"] h4 {
  letter-spacing: 0; 
}

html[lang="bn"] .hero-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.3;
}

html[lang="bn"] .section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

/* Language Toggle Button */
.nav-lang {
  display: flex;
  align-items: center;
  margin-left: var(--space-md);
}

.lang-toggle {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--secondary);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.8125rem !important;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--secondary) !important;
  transition: all var(--duration-fast) var(--ease-default);
}

.lang-toggle:hover {
  background: var(--secondary);
  color: var(--primary) !important;
}

@media (max-width: 768px) {
  .nav-lang {
    margin-left: 0;
    margin-top: var(--space-md);
  }
}

/* ==========================================================================
   SECTION 8.5: DOSSIER SECTION
   ========================================================================== */
.dossier-section {
    background: var(--bg-color);
    padding: var(--space-5xl) 0;
}

.dossier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.dossier-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dossier-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.dossier-card h4 {
    font-size: 1.5rem;
    color: var(--primary);
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.dossier-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dossier-list li {
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.dossier-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-size: 1.5rem;
    line-height: 1;
}

.dossier-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==========================================================================
   BENGALI TYPOGRAPHY ADJUSTMENTS
   ========================================================================== */
/* Reduce the hero subtitle size in Bengali version */
html[lang="bn"] .hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem); /* Smaller than English */
}
html[lang="bn"] .hero-subtitle span {
    font-size: clamp(1.2rem, 3vw, 1.8rem); /* Smaller font for ইতিহাস সংরক্ষিত। etc */
    letter-spacing: 1px;
}


/* ═════════════════════════════════════════════
   LEADER SECTION — Dramatic cut-out image
   ═════════════════════════════════════════════ */
.leader-cutout-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(
    180deg,
    var(--bg-dark)   0%,
    #0e1c2e         45%,
    #162536         80%,
    rgba(22,37,54,0.6) 100%
  );
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  box-shadow:
    0 0 0 1px rgba(172,138,79,0.15),
    0 24px 64px rgba(0,0,0,0.4);
}

/* Gold ambient radial underneath the figure */
.leader-cutout-frame::before {
  content: '';
  position: absolute;
  bottom: -5%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 55%;
  background: radial-gradient(
    ellipse at 50% 100%,
    rgba(172, 138, 79, 0.5)  0%,
    rgba(172, 138, 79, 0.18) 40%,
    transparent              70%
  );
  z-index: 0;
  pointer-events: none;
}

/* Inset vignette for depth — z-index below image so it doesn't cover it */
.leader-cutout-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.35);
  z-index: 0;
  pointer-events: none;
}

.leader-cutout-img {
  position: relative;
  z-index: 2;
  width: 88%;
  max-width: 360px;
  display: block;
  filter:
    drop-shadow(0 0 28px rgba(172, 138, 79, 0.6))
    drop-shadow(0 0 70px rgba(172, 138, 79, 0.22))
    drop-shadow(0 24px 40px rgba(0, 0, 0, 0.7));
}


/* ═════════════════════════════════════════════
   HANDSHAKE CARD — Party endorsement
   ═════════════════════════════════════════════ */
.handshake-card {
  margin-top: var(--space-2xl);
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  align-items: stretch;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(172, 138, 79, 0.2);
  box-shadow: 0 12px 40px rgba(22, 37, 54, 0.18);
  background: var(--primary);
}

.handshake-img-wrapper {
  position: relative;
  background: linear-gradient(
    135deg,
    #0b1827 0%,
    #162536 55%,
    #1e3048 100%
  );
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  min-height: 220px;
}

/* Radial glow centred on the handshake figures */
.handshake-img-wrapper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140%;
  height: 140%;
  background: radial-gradient(
    ellipse at center,
    rgba(172, 138, 79, 0.22) 0%,
    rgba(172, 138, 79, 0.06) 45%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.handshake-img {
  position: relative;
  z-index: 1;
  width: 100%;
  display: block;
  filter:
    drop-shadow(0 0 14px rgba(172, 138, 79, 0.45))
    drop-shadow(0 6px 20px rgba(0, 0, 0, 0.6));
}

.handshake-text {
  padding: var(--space-xl) var(--space-2xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-sm);
}

.handshake-label {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary);
  display: block;
}

.handshake-text h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-light);
  line-height: 1.3;
  margin-bottom: var(--space-xs);
}

.handshake-text p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: rgba(245, 242, 235, 0.72);
  max-width: 100%;
}

@media (max-width: 640px) {
  .handshake-card {
    grid-template-columns: 1fr;
  }
  .handshake-img-wrapper {
    min-height: 180px;
  }
  .handshake-text {
    padding: var(--space-lg);
  }
}
