/* ==========================================================================
   BigGyaan Core Stylesheet
   Apple & Androidified Modern Design System:
   Warm Sunny Ambient Mesh, Shades of Orange, Amber/Yellow & Tech Green,
   Tactile Spring Micro-Interactions, Squircles, and Mobile Sheet Drawer.
   ========================================================================== */

/* Modern CSS Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  background-image: var(--canvas-mesh);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--text-primary);
  font-size: var(--body-size);
  line-height: var(--reading-leading);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  transition: background-color 0.25s var(--ease-spring), color 0.25s var(--ease-spring);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Indic Script Font Fallbacks */
body:lang(hi), [lang="hi"] {
  font-family: "Noto Sans Devanagari", "Kohinoor Devanagari", "Nirmala UI", var(--font-sans);
}

body:lang(or), [lang="or"] {
  font-family: "Noto Sans Odia", "Kalinga", "Nirmala UI", var(--font-sans);
}

body:lang(te), [lang="te"] {
  font-family: var(--font-telugu);
}

/* Accessible Skip Link */
.skip-link {
  position: absolute;
  top: -120px;
  left: 1.25rem;
  background: var(--brand-primary);
  color: #ffffff;
  padding: 0.85rem 1.5rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 9999;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: top 0.2s var(--ease-spring);
}
.skip-link:focus {
  top: 1.25rem;
}

/* Links & Interactive Text */
a {
  color: var(--brand-primary);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 0.15s var(--ease-press), opacity 0.15s ease;
}
a:hover {
  color: var(--color-orange-700);
}

button, input, select {
  font-family: inherit;
  font-size: inherit;
}

/* iOS/Android Consistent Focus Ring */
:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.4), 0 0 0 1px var(--brand-primary);
  border-radius: inherit;
}

/* Shell Layout Container */
.shell {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 768px) {
  .shell {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Utility Helpers */
.desktop-only {
  display: none !important;
}
@media (min-width: 768px) {
  .desktop-only {
    display: inline-flex !important;
  }
}

/* ==========================================================================
   PWA Update Banner (Dismissable & Hidden by Default)
   ========================================================================== */
.update-notice {
  background: var(--brand-fun-gradient);
  color: #ffffff;
  padding: 0.65rem 1.25rem;
  text-align: center;
  font-size: 0.92rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 490;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.25);
}
.update-notice[hidden] {
  display: none !important;
}
.update-notice-text {
  font-weight: 650;
  letter-spacing: -0.01em;
}
.update-btn-now {
  background: #ffffff;
  color: var(--color-orange-700);
  border: none;
  border-radius: var(--radius-full);
  padding: 0.35rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.18s var(--ease-spring);
}
.update-btn-now:hover {
  background: #fff7ed;
  transform: translateY(-1px);
}
.update-btn-now:active {
  transform: scale(0.96);
}
.update-btn-later {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s var(--ease-spring);
}
.update-btn-later:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
}
.update-btn-later:active {
  transform: scale(0.96);
}

/* ==========================================================================
   Header & Navigation (Glassmorphic Floating Bar)
   ========================================================================== */
.site-header {
  background-color: var(--bg-surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-glass);
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  width: 100%;
  transition: background-color 0.25s var(--ease-spring), border-color 0.25s var(--ease-spring);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 0.5rem;
}

/* Brand Lockup with Multi-Color Gradient */
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 850;
  font-size: 1.3rem;
  letter-spacing: -0.025em;
  flex-shrink: 0;
  transition: transform 0.15s var(--ease-press);
}
.brand:active {
  transform: scale(0.97);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  background: var(--brand-fun-gradient);
  color: #ffffff;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease-spring);
}
.brand:hover .brand-mark {
  transform: rotate(-3deg) scale(1.06);
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.45);
}

.brand-tagline-subtle {
  display: none !important;
}

/* Desktop Segmented Pill Navigation */
.desktop-nav {
  display: none;
}

/* Mobile Menu Button Trigger (Default on mobile/tablet) */
.menu-summary-btn,
[data-menu-trigger] {
  display: inline-flex;
}

@media (min-width: 960px) {
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
  }
  .desktop-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-full);
    white-space: nowrap;
    transition: all 0.18s var(--ease-spring);
  }
  .desktop-nav a:hover {
    color: var(--brand-primary);
    background: rgba(249, 115, 22, 0.08);
  }
  .desktop-nav a:active {
    transform: scale(0.96);
  }
  .desktop-nav a.active {
    color: var(--brand-primary);
    background: rgba(249, 115, 22, 0.12);
    font-weight: 700;
  }

  /* Strictly hide mobile hamburger menu trigger on desktop */
  .menu-summary-btn,
  [data-menu-trigger] {
    display: none !important;
  }
}

@media (min-width: 960px) and (max-width: 1080px) {
  .desktop-nav a {
    padding: 0.35rem 0.6rem;
    font-size: 0.85rem;
  }
  .search-label.desktop-only,
  .search-kbd.desktop-only {
    display: none !important;
  }
}

@media (max-width: 959px) {
  .desktop-nav {
    display: none !important;
  }
  .menu-summary-btn,
  [data-menu-trigger] {
    display: inline-flex !important;
  }
}

/* Header Tools Capsule Actions (Responsive, Zero Overflow) */
.header-tools {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.header-tool-btn {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 0.45rem 0.75rem;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 38px;
  transition: all 0.18s var(--ease-spring);
  user-select: none;
  -webkit-user-select: none;
}
.header-tool-btn:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-interactive);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.header-tool-btn:active {
  transform: scale(0.95);
}

.search-kbd {
  font-size: 0.72rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  background: var(--border-light);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-weight: 700;
}

/* Mobile Screen Tuning (< 600px) */
@media (max-width: 600px) {
  .header-row {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    gap: 0.35rem;
  }
  .brand {
    font-size: 1.15rem;
    gap: 0.45rem;
  }
  .brand-mark {
    width: 2.1rem;
    height: 2.1rem;
    font-size: 0.95rem;
  }
  .header-tools {
    gap: 0.25rem;
  }
  .header-tool-btn {
    padding: 0.4rem 0.55rem;
    min-width: 36px;
    font-size: 0.82rem;
  }
  .lang-current-label {
    display: none;
  }
}

/* Language Selector Popover */
.lang-selector {
  position: relative;
}
.lang-selector summary {
  list-style: none;
}
.lang-selector summary::-webkit-details-marker {
  display: none;
}

.lang-selector-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  min-width: 190px;
  z-index: 600;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  animation: popoverIn 0.2s var(--ease-spring);
}
.dropdown-header {
  padding: 0.35rem 0.65rem 0.25rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 0.25rem;
}
.dropdown-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lang-selector-dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all 0.15s var(--ease-press);
}
.lang-selector-dropdown a:hover {
  background: var(--color-orange-50);
  color: var(--brand-primary);
}
.lang-selector-dropdown a:active {
  transform: scale(0.97);
}
.lang-selector-dropdown a.current {
  background: var(--brand-badge-bg);
  color: var(--brand-primary);
  font-weight: 700;
  border: 1px solid var(--brand-badge-border);
}
.lang-check {
  font-weight: 800;
  color: var(--brand-primary);
}

/* Reading Preferences Controls */
.reader-controls {
  position: relative;
}
.reader-controls summary {
  list-style: none;
}
.reader-controls summary::-webkit-details-marker {
  display: none;
}
.reader-icon {
  font-weight: 800;
  letter-spacing: -0.05em;
}

.reader-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.25rem;
  min-width: 270px;
  z-index: 600;
  animation: popoverIn 0.2s var(--ease-spring);
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}
.panel-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.panel-close-btn {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 0 0.25rem;
  border-radius: 4px;
}
.panel-close-btn:hover {
  color: var(--text-primary);
}

.reader-panel fieldset {
  border: none;
  margin-bottom: 1.15rem;
}
.reader-panel legend {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

/* iOS/Android Segmented Control */
.segmented-control {
  display: flex;
  gap: 0.35rem;
  background: var(--bg-card-subtle);
  padding: 0.25rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
}
.segmented-item {
  flex: 1;
  text-align: center;
  padding: 0.45rem 0.55rem;
  font-size: 0.82rem;
  cursor: pointer;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-weight: 600;
  transition: all 0.18s var(--ease-spring);
  user-select: none;
  display: block;
}
.segmented-item input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.segmented-item:has(input:checked) {
  background: var(--bg-surface-elevated);
  color: var(--brand-primary);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--brand-badge-border);
}

/* ==========================================================================
   Mobile Bottom Sheet Navigation (iOS & Android-ified Drawer)
   ========================================================================== */
.menu-hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}
.menu-hamburger-icon span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  width: 100%;
}

/* Native Mobile Sheet Drawer (Root Viewport Level) */
.site-menu-sheet {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.site-menu-sheet[hidden] {
  display: none !important;
}
@media (min-width: 960px) {
  .site-menu-sheet {
    display: none !important;
  }
}

.mobile-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1001;
  animation: fadeIn 0.25s var(--ease-spring);
}

.mobile-sheet-content {
  position: relative;
  z-index: 1002;
  width: 100%;
  max-height: 88vh;
  background: var(--bg-surface-elevated);
  border-top: 1px solid var(--border-glass);
  border-radius: 28px 28px 0 0;
  padding: 0.85rem 1.5rem 2.75rem;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.25);
  animation: sheetSlideUp 0.32s var(--ease-spring);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sheet-drag-handle {
  width: 44px;
  height: 5px;
  background: var(--border-subtle);
  border-radius: var(--radius-full);
  margin: 0.25rem auto 0.75rem;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}
.sheet-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.sheet-close-btn {
  background: var(--bg-card-subtle);
  border: none;
  font-size: 1.5rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.sheet-close-btn:active {
  transform: scale(0.92);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.mobile-nav-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.15rem;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  background: var(--bg-card-subtle);
  border: 1px solid transparent;
  transition: all 0.15s var(--ease-press);
}
.mobile-nav-links a:hover, .mobile-nav-links a.active {
  background: var(--brand-badge-bg);
  color: var(--brand-primary);
  border-color: var(--brand-badge-border);
}
.mobile-nav-links a:active {
  transform: scale(0.97);
}

.mobile-sheet-divider {
  height: 1px;
  background: var(--border-light);
  margin: 0.5rem 0;
}

.mobile-sheet-subheading {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.mobile-lang-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.lang-chip {
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-secondary);
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  transition: all 0.15s var(--ease-press);
}
.lang-chip:active {
  transform: scale(0.95);
}
.lang-chip.active {
  background: var(--brand-fun-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
}

/* ==========================================================================
   Hero Section with Dynamic Gradients, Squircles & Vibrant Pills
   ========================================================================== */
.hero {
  padding: 2.75rem 0 2.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 860px) {
  .hero {
    grid-template-columns: 1.12fr 0.88fr;
    padding: 4.25rem 0 3.75rem;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-orange-700);
  background: linear-gradient(90deg, var(--color-orange-100) 0%, var(--color-amber-100) 50%, var(--color-green-100) 100%);
  border: 1px solid var(--color-orange-400);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.hero-title {
  font-size: 2.3rem;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}
@media (min-width: 768px) {
  .hero-title {
    font-size: 3.1rem;
  }
}
.hero-title span {
  background: linear-gradient(135deg, #ea580c 0%, #d97706 45%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-intro {
  font-size: var(--body-size);
  line-height: var(--reading-leading);
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
}

/* Hero Category Pills */
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}
.hero-pill {
  font-size: 0.82rem;
  font-weight: 750;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: var(--shadow-sm);
}
.hero-pill-orange {
  background: var(--color-orange-100);
  color: var(--color-orange-700);
  border: 1px solid var(--color-orange-400);
}
.hero-pill-green {
  background: var(--color-green-100);
  color: var(--color-green-700);
  border: 1px solid var(--color-green-400);
}
.hero-pill-yellow {
  background: var(--color-amber-100);
  color: var(--color-amber-700);
  border: 1px solid var(--color-amber-400);
}
[data-theme="dark"] .hero-pill-orange {
  background: rgba(249, 115, 22, 0.2);
  color: var(--color-orange-400);
  border-color: rgba(249, 115, 22, 0.4);
}
[data-theme="dark"] .hero-pill-green {
  background: rgba(16, 185, 129, 0.2);
  color: var(--color-green-400);
  border-color: rgba(16, 185, 129, 0.4);
}
[data-theme="dark"] .hero-pill-yellow {
  background: rgba(234, 179, 8, 0.2);
  color: var(--color-amber-300);
  border-color: rgba(234, 179, 8, 0.4);
}

/* Primary Button with Sunset Radiant Glow */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--brand-gradient);
  color: #ffffff;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
  transition: all 0.18s var(--ease-spring);
  border: none;
  cursor: pointer;
}
.button:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.45);
}
.button:active {
  transform: scale(0.96);
}

/* Secondary Button with Fresh Green Tint */
.button-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--color-green-50);
  color: var(--color-green-700);
  border: 1.5px solid var(--color-green-400);
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  transition: all 0.18s var(--ease-spring);
  box-shadow: var(--shadow-sm);
}
.button-secondary:hover {
  background: var(--color-green-100);
  color: var(--color-green-800);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}
.button-secondary:active {
  transform: scale(0.96);
}
[data-theme="dark"] .button-secondary {
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-green-400);
  border-color: rgba(16, 185, 129, 0.35);
}

/* Featured Card in Hero (Warm Sunset Squircle Widget) */
.featured-card {
  background: linear-gradient(150deg, #ffffff 0%, var(--color-orange-50) 60%, var(--color-amber-50) 100%);
  border: 1.5px solid var(--color-orange-400);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  box-shadow: var(--shadow-md), 0 0 25px rgba(249, 115, 22, 0.12);
  position: relative;
  transition: transform 0.22s var(--ease-spring), box-shadow 0.22s var(--ease-spring), border-color 0.22s ease;
  overflow: hidden;
}
.featured-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--brand-fun-gradient);
}
[data-theme="dark"] .featured-card {
  background: linear-gradient(150deg, #0f172a 0%, rgba(249, 115, 22, 0.08) 60%, rgba(234, 179, 8, 0.08) 100%);
  border-color: var(--color-orange-500);
}
.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: var(--brand-primary);
}
.featured-card:active {
  transform: scale(0.98);
}

.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--color-orange-100);
  color: var(--color-orange-700);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
  border: 1px solid var(--color-orange-400);
}
.featured-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-primary);
  box-shadow: 0 0 8px var(--brand-primary);
}

.featured-card h2 {
  font-size: 1.45rem;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  font-weight: 800;
}
.featured-card h2 a {
  color: var(--text-primary);
  text-decoration: none;
}
.featured-card h2 a:hover {
  color: var(--brand-primary);
}
.featured-card p {
  font-size: max(0.98rem, calc(var(--body-size) * 0.92));
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.featured-action {
  font-size: 0.92rem;
  font-weight: 750;
  color: var(--brand-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: transform 0.15s ease;
}
.featured-card:hover .featured-action {
  transform: translateX(3px);
}

/* ==========================================================================
   Mission Banner (Orange-to-Yellow-to-Green Sunrise Glow)
   ========================================================================== */
.mission-banner {
  background: linear-gradient(135deg, var(--color-orange-50) 0%, var(--color-amber-50) 50%, var(--color-green-50) 100%);
  border: 1px solid rgba(249, 115, 22, 0.25);
  border-left: 6px solid var(--brand-primary);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  margin: 2.75rem 0;
  box-shadow: var(--shadow-sm);
  position: relative;
}
[data-theme="dark"] .mission-banner {
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.12) 0%, rgba(234, 179, 8, 0.12) 50%, rgba(16, 185, 129, 0.10) 100%);
  border-color: rgba(249, 115, 22, 0.3);
}
.mission-banner h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 800;
}
.mission-banner p {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.65;
}
.mission-banner .author-quote {
  margin-top: 0.85rem;
  font-style: italic;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Series & Topics Grid (Distinct Fun Card Colors)
   ========================================================================== */
.section-block {
  padding: 3.5rem 0;
  border-top: 1px solid var(--border-light);
}

.section-header {
  margin-bottom: 2.25rem;
}
.section-title {
  font-size: 2rem;
  line-height: 1.3;
  color: var(--text-primary);
  font-weight: 850;
  letter-spacing: -0.02em;
}

.topic-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .topic-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.topic-card {
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.22s var(--ease-spring), box-shadow 0.22s var(--ease-spring), border-color 0.22s ease;
}
.topic-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.topic-card:active {
  transform: scale(0.98);
}

.topic-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.topic-icon-wrap {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

/* 1. AI Foundations - Tech Azure */
.topic-card[data-track="ai-foundations"] {
  background: linear-gradient(150deg, #ffffff 0%, var(--color-blue-50) 100%);
  border: 1.5px solid rgba(2, 132, 199, 0.35);
}
[data-theme="dark"] .topic-card[data-track="ai-foundations"] {
  background: linear-gradient(150deg, #0f172a 0%, rgba(2, 132, 199, 0.12) 100%);
  border-color: rgba(2, 132, 199, 0.4);
}
.topic-card[data-track="ai-foundations"] .topic-icon-wrap {
  background: var(--color-blue-500);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}
.topic-card[data-track="ai-foundations"] .topic-status {
  background: var(--color-blue-100);
  color: #0369a1;
  border: 1px solid rgba(2, 132, 199, 0.35);
}

/* 2. Tech for Bharat - FRESH TECH GREEN */
.topic-card[data-track="bharat-tech"] {
  background: linear-gradient(150deg, #ffffff 0%, var(--color-green-50) 100%);
  border: 1.5px solid var(--color-green-400);
  box-shadow: 0 8px 24px -4px rgba(16, 185, 129, 0.10);
}
[data-theme="dark"] .topic-card[data-track="bharat-tech"] {
  background: linear-gradient(150deg, #0f172a 0%, rgba(16, 185, 129, 0.12) 100%);
  border-color: rgba(16, 185, 129, 0.4);
}
.topic-card[data-track="bharat-tech"] .topic-icon-wrap {
  background: var(--color-green-600);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}
.topic-card[data-track="bharat-tech"] .topic-status {
  background: var(--color-green-100);
  color: var(--color-green-700);
  border: 1px solid var(--color-green-400);
}

/* 3. Science in Everyday Life - SUNNY GOLDEN YELLOW / AMBER */
.topic-card[data-track="science-daily-life"] {
  background: linear-gradient(150deg, #ffffff 0%, var(--color-amber-50) 100%);
  border: 1.5px solid var(--color-amber-400);
  box-shadow: 0 8px 24px -4px rgba(245, 158, 11, 0.10);
}
[data-theme="dark"] .topic-card[data-track="science-daily-life"] {
  background: linear-gradient(150deg, #0f172a 0%, rgba(234, 179, 8, 0.12) 100%);
  border-color: rgba(234, 179, 8, 0.4);
}
.topic-card[data-track="science-daily-life"] .topic-icon-wrap {
  background: var(--color-amber-500);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}
.topic-card[data-track="science-daily-life"] .topic-status {
  background: var(--color-amber-100);
  color: var(--color-amber-700);
  border: 1px solid var(--color-amber-400);
}

/* 4. Space, Silicon & Deep Frontiers - COSMIC PURPLE */
.topic-card[data-track="space-and-chips"] {
  background: linear-gradient(150deg, #ffffff 0%, var(--color-purple-50) 100%);
  border: 1.5px solid rgba(124, 58, 237, 0.35);
}
[data-theme="dark"] .topic-card[data-track="space-and-chips"] {
  background: linear-gradient(150deg, #0f172a 0%, rgba(124, 58, 237, 0.12) 100%);
  border-color: rgba(124, 58, 237, 0.4);
}
.topic-card[data-track="space-and-chips"] .topic-icon-wrap {
  background: var(--color-purple-500);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
}
.topic-card[data-track="space-and-chips"] .topic-status {
  background: var(--color-purple-100);
  color: #6b21a8;
  border: 1px solid rgba(124, 58, 237, 0.3);
}

.topic-status {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.topic-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
  font-weight: 800;
}
.topic-card p {
  color: var(--text-secondary);
  font-size: max(0.95rem, calc(var(--body-size) * 0.9));
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   Articles List
   ========================================================================== */
.post-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.post-list-item {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform 0.22s var(--ease-spring), box-shadow 0.22s var(--ease-spring), border-color 0.22s ease;
}
.post-list-item:hover {
  transform: translateY(-3px);
  border-color: var(--brand-badge-border);
  box-shadow: var(--shadow-md), 0 0 20px rgba(249, 115, 22, 0.10);
}
.post-list-item:active {
  transform: scale(0.985);
}

.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.post-list-item h3 {
  font-size: 1.55rem;
  line-height: 1.35;
  margin-bottom: 0.65rem;
  font-weight: 800;
}
.post-list-item h3 a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}
.post-list-item h3 a:hover {
  color: var(--brand-primary);
}

.post-excerpt {
  color: var(--text-secondary);
  font-size: max(0.98rem, calc(var(--body-size) * 0.92));
  line-height: 1.65;
  margin-bottom: 1rem;
}

.post-lang-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.82rem;
}
.post-lang-pills a {
  text-decoration: none;
  padding: 0.25rem 0.65rem;
  background: var(--bg-card-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  font-weight: 600;
  transition: all 0.15s var(--ease-press);
}
.post-lang-pills a:hover {
  background: var(--brand-badge-bg);
  color: var(--brand-primary);
  border-color: var(--brand-badge-border);
}
.post-lang-pills a:active {
  transform: scale(0.95);
}

/* ==========================================================================
   Single Article Layout & Concept Cards
   ========================================================================== */
.article-shell {
  max-width: var(--reading-width);
  margin-left: auto;
  margin-right: auto;
  padding: 3rem 1.25rem 4.5rem;
}

.article-header {
  margin-bottom: 2.75rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 2rem;
}

.article-title {
  font-size: 2.4rem;
  line-height: 1.25;
  font-weight: 850;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}
@media (min-width: 768px) {
  .article-title {
    font-size: 3rem;
  }
}

.article-description {
  font-size: 1.22rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* Cross-Language Translation Bar */
.article-translation-bar {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}
.article-translation-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.article-translation-links a {
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.15s var(--ease-press);
}
.article-translation-links a:hover {
  background: var(--brand-badge-bg);
  border-color: var(--brand-badge-border);
}
.article-translation-links a:active {
  transform: scale(0.95);
}

/* Rich Typographic Content */
.prose {
  font-size: var(--body-size);
  line-height: var(--reading-leading);
  color: var(--text-primary);
}
.prose p {
  margin-bottom: 1.75rem;
}
.prose h2 {
  font-size: 1.85rem;
  line-height: 1.35;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 3rem;
  margin-bottom: 1.15rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.5rem;
}
.prose h3 {
  font-size: 1.4rem;
  line-height: 1.4;
  font-weight: 750;
  color: var(--text-primary);
  margin-top: 2.25rem;
  margin-bottom: 0.85rem;
}
.prose ul, .prose ol {
  margin-left: 1.65rem;
  margin-bottom: 1.75rem;
}
.prose li {
  margin-bottom: 0.6rem;
}
.prose blockquote {
  border-left: 4px solid var(--brand-primary);
  padding: 0.5rem 0 0.5rem 1.4rem;
  margin: 2rem 0;
  color: var(--text-secondary);
  font-style: italic;
  background: var(--color-orange-50);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
[data-theme="dark"] .prose blockquote {
  background: rgba(251, 146, 60, 0.08);
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-card-subtle);
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-light);
}
.prose pre {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  overflow-x: auto;
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
}
.prose pre code {
  background: transparent;
  padding: 0;
  border: none;
}

/* Plain Language Concept Cards (Sky Blue / Azure) */
.concept-card {
  background: var(--color-blue-50);
  border: 1.5px solid var(--color-blue-100);
  border-left: 5px solid var(--color-blue-500);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.65rem;
  margin: 2.25rem 0;
  box-shadow: var(--shadow-sm);
}
[data-theme="dark"] .concept-card {
  background: rgba(2, 132, 199, 0.1);
  border-color: rgba(2, 132, 199, 0.3);
}
.concept-card-title {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-blue-500);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.concept-card p {
  margin-bottom: 0;
  font-size: var(--body-size);
  line-height: var(--reading-leading);
  color: var(--text-primary);
}

/* Ground Reality Card (Fresh Emerald Tech Context) */
.reality-card {
  background: var(--color-green-50);
  border: 1.5px solid var(--color-green-200);
  border-left: 5px solid var(--color-green-600);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.65rem;
  margin: 2.25rem 0;
  box-shadow: var(--shadow-sm);
}
[data-theme="dark"] .reality-card {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
}
.reality-card-title {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-green-600);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.reality-card p {
  margin-bottom: 0;
  font-size: var(--body-size);
  line-height: var(--reading-leading);
  color: var(--text-primary);
}

/* Post Navigation (Previous / Next - Strictly Same Language) */
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}
.post-nav-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  display: inline-block;
  margin-bottom: 0.35rem;
}
.post-nav a {
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.05rem;
  line-height: 1.4;
  transition: color 0.15s ease;
}
.post-nav a:hover {
  color: var(--brand-primary);
}
.post-nav-next {
  text-align: right;
}

/* ==========================================================================
   Author Profile Card
   ========================================================================== */
.author-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 4rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: var(--shadow-md);
}
@media (min-width: 600px) {
  .author-box {
    flex-direction: row;
    align-items: flex-start;
  }
}
.author-avatar {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-md);
  background: var(--brand-fun-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.85rem;
  font-weight: 900;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}
.author-info h4 {
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
  font-weight: 800;
}
.author-role {
  font-size: 0.88rem;
  color: var(--brand-primary);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.author-bio {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.85rem;
}
.author-links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ==========================================================================
   Newsletter Signup Box (Tri-Color Festive Celebration)
   ========================================================================== */
.newsletter-card {
  background: linear-gradient(135deg, var(--color-orange-50) 0%, var(--color-amber-50) 50%, var(--color-green-50) 100%);
  border: 2px solid var(--color-orange-400);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2rem;
  margin: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 35px -8px rgba(249, 115, 22, 0.15);
}
[data-theme="dark"] .newsletter-card {
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.12) 0%, rgba(234, 179, 8, 0.12) 50%, rgba(16, 185, 129, 0.10) 100%);
  border-color: rgba(249, 115, 22, 0.4);
}
.newsletter-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--brand-fun-gradient);
}
.newsletter-card h3 {
  font-size: 1.75rem;
  margin-bottom: 0.65rem;
  font-weight: 850;
}
.newsletter-card p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 56ch;
  margin: 0 auto 1.65rem;
  line-height: 1.65;
}
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 460px;
  margin: 0 auto;
}
@media (min-width: 520px) {
  .newsletter-form {
    flex-direction: row;
  }
}
.newsletter-input {
  flex: 1;
  padding: 0.85rem 1.25rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all 0.18s ease;
}
.newsletter-input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.35);
}
.newsletter-button {
  background: var(--brand-gradient);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.85rem 1.5rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.3);
  transition: all 0.18s var(--ease-spring);
}
.newsletter-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.4);
}
.newsletter-button:active {
  transform: scale(0.96);
}
.newsletter-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.85rem;
}

/* ==========================================================================
   Search Overlay (Apple Spotlight / Android Quick Search)
   ========================================================================== */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 8vh 1.25rem;
}
.search-modal[hidden] {
  display: none !important;
}

.search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: fadeIn 0.25s var(--ease-spring);
}

.search-box {
  position: relative;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 620px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 1001;
  animation: modalPop 0.28s var(--ease-spring);
}

.search-input-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.search-box-icon {
  font-size: 1.35rem;
  color: var(--brand-primary);
}
.search-input {
  flex: 1;
  padding: 0.85rem 1.15rem;
  font-size: 1.15rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-card-subtle);
  color: var(--text-primary);
  transition: all 0.18s ease;
}
.search-input:focus {
  background: var(--bg-surface-elevated);
  border-color: var(--brand-primary);
}
.search-close-btn {
  background: var(--bg-card-subtle);
  border: none;
  font-size: 1.4rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.search-close-btn:hover {
  color: var(--text-primary);
}

.search-hint-row {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0 0.25rem;
}

.search-results-list {
  list-style: none;
  max-height: 52vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.search-result-item a {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: 1px solid var(--border-light);
  background: var(--bg-card-subtle);
  transition: all 0.18s var(--ease-spring);
}
.search-result-item a:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--brand-badge-border);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.search-result-item h4 {
  color: var(--text-primary);
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
  font-weight: 750;
}
.search-result-item p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background: var(--bg-surface-elevated);
  border-top: 1px solid var(--border-light);
  padding: 3.5rem 0 3rem;
  font-size: 0.95rem;
}
.footer-row {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media (min-width: 768px) {
  .footer-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}
.footer-brand h4 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  font-weight: 800;
}
.footer-brand p {
  color: var(--text-muted);
  max-width: 48ch;
  line-height: 1.65;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-weight: 600;
}
.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-links a:hover {
  color: var(--brand-primary);
}
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}
@media (min-width: 600px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ==========================================================================
   Keyframe Animations for Spring Physics
   ========================================================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes sheetSlideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes popoverIn {
  from {
    transform: scale(0.94) translateY(-6px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

@keyframes modalPop {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
