/* ===== 01. CSS Custom Properties — Warm & Playful Theme ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Nunito:wght@400;600;700;800;900&display=swap');

:root {
  /* Brighter, friendlier colors for children */
  --color-crimson: #FF4757;
  /* Watermelon/Cherry Red - very warm and catchy */
  --color-sand: #FFA07A;
  /* Soft Salmon/Peach */
  --color-peach: #FFB5A7;
  /* Peach color for ovulation phase */
  --color-pearl: #FFF5F5;
  /* Very soft pink-tinted white */
  --color-obsidian: #2D3436;
  /* Softer black */

  /* Map old red variables to new playful theme */
  --red-900: #2D3436;
  --red-800: #FF4757;
  --red-700: #FF6B81;
  --red-600: #FFA07A;
  --red-500: #FFA07A;
  --red-400: #FFA07A;
  --red-300: #FFD4CC;
  --red-200: #FFEAE6;
  --red-100: #FFF5F5;
  --red-50: #FFF9F9;

  --color-primary: var(--color-crimson);
  --color-primary-dark: #FF1E3C;
  --color-primary-light: #FF6B81;
  --color-accent: var(--color-sand);

  --color-bg: var(--color-pearl);
  --color-surface: #ffffff;
  --color-text: var(--color-obsidian);
  --color-text-muted: #636E72;
  --color-border: #FFEAE6;
  --color-success: #2ED573;
  --color-secondary: #1E90FF;
  /* Friendly Blue */

  --gradient-hero: linear-gradient(135deg, #FFF0F0 0%, #FFE4E6 100%);
  --gradient-primary: linear-gradient(135deg, #FF4757, #FF6B81);
  --gradient-dark: linear-gradient(135deg, #2D3436, #636E72);
  --gradient-card: linear-gradient(145deg, #ffffff, #FFF9F9);

  --font-family: 'Inter', system-ui, sans-serif;
  --font-display: 'Nunito', sans-serif;
  /* Super friendly, rounded font */

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;

  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2.5rem;
  --radius-full: 9999px;
  /* More rounded, bubbly corners */

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, .15);
  --shadow-md: 0 15px 35px rgba(0, 0, 0, .3);
  --shadow-hover: 0 25px 50px rgba(0, 0, 0, .45), 0 0 25px rgba(255, 71, 87, 0.3);
  --shadow-card: 0 4px 15px rgba(0, 0, 0, .1);

  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
}

/* ===== 02. Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-family);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img,
svg {
  max-width: 100%;
  display: inline-block;
  vertical-align: middle;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.section {
  padding: 5.5rem 0;
  scroll-margin-top: 160px;
}

.bg-soft {
  background-color: var(--red-50);
}

.bg-primary {
  background: var(--gradient-dark);
  color: #fff;
}

.bg-red-light {
  background-color: var(--red-100);
}

.text-white {
  color: #fff;
}

.hidden {
  display: none !important;
}

/* ===== 03. Typography ===== */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-4);
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: var(--red-800);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--color-text);
  text-align: center;
}

h3 {
  font-size: 1.25rem;
}

.section-title {
  margin-bottom: var(--space-2);
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 650px;
  margin: 0 auto var(--space-8) auto;
  font-size: 1.1rem;
}

.link-source {
  display: block;
  text-align: center;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: var(--space-8);
  font-size: 0.9rem;
}

.link-source:hover {
  text-decoration: underline;
}

/* ===== 04. Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: none;
  font-size: 1.1rem;
  gap: 0.5rem;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: var(--color-secondary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: #187BCD;
  transform: translateY(-4px) scale(1.05);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-ghost:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--red-700);
  font-weight: 700;
}

.btn-white:hover {
  background: var(--red-50);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
}

/* ===== 05. Badge ===== */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--red-100);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--red-700);
  box-shadow: var(--shadow-sm);
}

/* Utilities */
.mt-4 {
  margin-top: var(--space-8);
}

.mt-6 {
  margin-top: var(--space-12);
}

.text-center {
  text-align: center;
}

/* ===== 06. Glass / Cards ===== */
.glass-panel {
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: 0 8px 32px rgba(127, 29, 29, .2);
}

.glassmorphism-card {
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: 0 4px 20px rgba(220, 38, 38, .08);
}

.glassmorphism-card:hover {
  background: #fff;
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(113, 0, 20, 0.12);
  border-color: rgba(179, 143, 111, 0.3);
}

/* Gradient Text Utility */
.text-gradient,
.section-title {
  background: linear-gradient(135deg, #FF4757 0%, #e11d48 50%, #9f1239 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Floating Animation Utility */
@keyframes softFloat {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-8px);
  }

  100% {
    transform: translateY(0px);
  }
}

.float-anim,
.glance-icon,
.join-icon,
.pillar-icon {
  animation: softFloat 4s ease-in-out infinite;
}

/* Pulse Button Glow */
@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(113, 0, 20, 0.4);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(113, 0, 20, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(113, 0, 20, 0);
  }
}

.btn-primary.pulse {
  animation: pulseGlow 2.5s infinite;
}

.icon-wrap {
  font-size: 2.75rem;
  margin-bottom: var(--space-4);
  text-align: center;
}

/* ===== 07. Header (Floating Pill) ===== */
#site-header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 96%;
  max-width: 1450px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  box-shadow: 0 10px 40px rgba(113, 0, 20, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50px;
  transition: all var(--transition-base);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  padding: 0 var(--space-3);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--red-700);
  font-family: var(--font-display);
  flex-shrink: 0;
}

.logo svg {
  color: var(--red-600);
}

#desktop-nav ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  align-items: center;
  white-space: nowrap;
}

#desktop-nav a {
  text-decoration: none;
  color: var(--color-obsidian);
  font-weight: 600;
  font-size: 0.85rem;
  transition: color var(--transition-base);
  padding: 0.4rem 0.35rem;
  border-radius: 20px;
}

#desktop-nav a:hover,
#desktop-nav a.active-nav-link {
  color: var(--color-crimson);
  background: var(--red-50);
}

#desktop-nav a.nav-highlight {
  color: #fff;
  background: var(--gradient-primary);
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  margin-left: 0.5rem;
}

#desktop-nav a.nav-highlight:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: var(--color-crimson);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-shrink: 0;
}

#lang-selector {
  padding: 0.4rem 1rem;
  border-radius: 20px;
  border: 1px solid var(--red-200);
  background: rgba(255, 255, 255, 0.8);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  color: var(--color-crimson);
  transition: all var(--transition-fast);
}

#lang-selector:hover {
  background: var(--red-50);
  border-color: var(--color-crimson);
}

#menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1001;
}

#menu-toggle .bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--red-700);
  transition: all var(--transition-base);
  position: absolute;
  left: 0;
  border-radius: 2px;
}

#menu-toggle .bar:nth-child(1) {
  top: 0;
}

#menu-toggle .bar:nth-child(2) {
  top: 11px;
}

#menu-toggle .bar:nth-child(3) {
  top: 22px;
}

#menu-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: rotate(45deg);
  top: 11px;
}

#menu-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}

#menu-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: rotate(-45deg);
  top: 11px;
}

#mobile-menu {
  position: fixed;
  top: 100px;
  left: 20px;
  width: calc(100% - 40px);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  padding: var(--space-8);
  flex-direction: column;
  gap: var(--space-6);
  box-shadow: var(--shadow-hover);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  z-index: 999;
}

#mobile-menu:not(.hidden) {
  display: flex;
}

#mobile-menu a {
  font-family: 'Outfit', sans-serif !important;
  font-size: 1.35rem;
  font-weight: 700;
  color: #374151 !important;
  text-align: center;
  transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobile-menu a:hover,
#mobile-menu a.active {
  color: #FF4757 !important;
}

/* ===== 08. Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--gradient-hero);
  padding-top: 100px;
  padding-bottom: 6rem;
  /* Space for SVG wave */
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(220, 38, 38, .08) 0%, transparent 70%);
  pointer-events: none;
}

.custom-shape-divider-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}

.custom-shape-divider-bottom svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 90px;
}

.custom-shape-divider-bottom .shape-fill {
  fill: var(--color-bg);
}

/* floating petals */
.hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: var(--radius-full);
  opacity: 0.6;
  filter: blur(40px);
  animation: floatPlayful 8s ease-in-out infinite;
}

.shape-1 {
  width: 320px;
  height: 320px;
  background: var(--color-crimson);
  top: -80px;
  left: -60px;
  animation-delay: 0s;
}

.shape-2 {
  width: 200px;
  height: 200px;
  background: var(--color-sand);
  bottom: 10%;
  right: -40px;
  animation-delay: 2s;
}

.shape-3 {
  width: 140px;
  height: 140px;
  background: var(--color-secondary);
  top: 30%;
  right: 15%;
  animation-delay: 4s;
}

@keyframes floatPlayful {

  0%,
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }

  50% {
    transform: translateY(-25px) rotate(8deg) scale(1.1);
  }
}

.hero__content {
  max-width: 820px;
  padding: 0 var(--space-4);
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  background: rgba(127, 29, 29, .1);
  border: 1px solid var(--red-300);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--red-800);
  margin-bottom: var(--space-6);
  backdrop-filter: blur(4px);
}

.hero__subtext {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  margin-bottom: var(--space-8);
}

.hero__tagline {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--red-700);
  font-size: 1.05rem;
}

.hero__tagline svg {
  fill: currentColor;
}

/* stats strip */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: var(--space-12);
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, .7);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(8px);
  border: 1px solid var(--red-200);
}

.hero-stat {
  text-align: center;
}

.hero-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--red-700);
  font-family: var(--font-display);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-top: 0.2rem;
}

/* ===== 09. PDF Insights Section ===== */
.insights-pdf-section {
  padding: var(--space-16) 0;
  background: #fff;
}

.insights-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
  margin-bottom: var(--space-8);
}

.tab-btn {
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  border: 2px solid var(--red-300);
  background: #fff;
  color: var(--red-700);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-base);
}

.tab-btn:hover {
  background: #fff;
  color: var(--color-crimson);
  border-color: var(--color-crimson);
  box-shadow: var(--shadow-sm);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.pdf-insight-hero {
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-12) var(--space-8);
  color: #fff;
  margin-bottom: var(--space-8);
  position: relative;
  overflow: hidden;
}

.pdf-insight-hero::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 280px;
  height: 280px;
  background: rgba(255, 255, 255, .08);
  border-radius: 50%;
}

.pdf-insight-hero h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: #fff;
  margin-bottom: var(--space-4);
}

.pdf-insight-hero p {
  font-size: 1.1rem;
  opacity: .9;
  max-width: 700px;
  line-height: 1.8;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-4);
  margin: var(--space-8) 0;
}

.stat-bubble {
  background: var(--red-50);
  border: 2px solid var(--red-200);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  transition: all var(--transition-base);
}

.stat-bubble:hover {
  border-color: var(--red-500);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.stat-bubble .stat-num {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--red-700);
  font-family: var(--font-display);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-bubble .stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 500;
  line-height: 1.4;
}

.insights-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: var(--space-8);
}

.insight-card {
  border-left: 4px solid var(--red-400);
  background: #fff;
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-left-width: 4px;
}

.insight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--red-600);
}

.insight-card h4 {
  color: var(--red-800);
  font-size: 1rem;
  margin-bottom: var(--space-2);
}

.insight-card p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.quote-block {
  background: var(--red-50);
  border-left: 5px solid var(--red-600);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: var(--space-6) var(--space-8);
  margin: var(--space-8) 0;
  position: relative;
}

.quote-block::before {
  content: '"';
  font-size: 5rem;
  color: var(--red-200);
  position: absolute;
  top: -10px;
  left: 20px;
  line-height: 1;
  font-family: Georgia, serif;
}

.quote-block p {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--red-900);
  padding-left: var(--space-4);
  line-height: 1.8;
}

.pdf-download-bar {
  background: var(--gradient-dark);
  border-radius: var(--radius-xl);
  padding: var(--space-6) var(--space-8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.pdf-download-bar h4 {
  font-size: 1.1rem;
  color: #fff;
  margin: 0;
}

.pdf-download-bar p {
  font-size: 0.85rem;
  opacity: .8;
  margin: 0;
}

/* ===== 10. Learn Cards ===== */
.learn-card h3 {
  color: var(--red-700);
  margin-bottom: var(--space-2);
}

/* ===== 11. Tracker ===== */
.tracker-card {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.form-group {
  margin-bottom: var(--space-4);
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: 500;
  color: var(--red-800);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--red-200);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.qa-form textarea,
.qa-form select {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  font-family: inherit;
  font-size: 1.05rem;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.03);
}

.form-group input:focus {
  border-color: var(--red-500);
}

.qa-form textarea:focus,
.qa-form select:focus {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--color-crimson);
  box-shadow: 0 0 0 4px rgba(255, 71, 87, 0.15);
}

.result-box {
  padding: var(--space-4);
  background: var(--red-50);
  border-radius: var(--radius-md);
  border: 1px solid var(--red-200);
}

.highlight-date {
  font-size: 2rem;
  font-weight: 700;
  color: var(--red-700);
  margin: var(--space-2) 0;
}

.countdown {
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

#days-countdown {
  font-weight: 700;
  color: var(--red-600);
}

/* ===== 12. Q&A ===== */
#qa {
  position: relative;
  background: var(--gradient-hero);
  border-radius: 40px;
  margin: 2rem;
  padding: 4rem 0;
  box-shadow: inset 0 0 20px rgba(255, 71, 87, 0.05);
}

.qa-form {
  max-width: 700px;
  margin: 0 auto var(--space-8) auto;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  padding: var(--space-6);
  box-shadow: 0 10px 40px rgba(255, 71, 87, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.qa-form:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(255, 71, 87, 0.15);
}

.qa-controls {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-4);
  justify-content: flex-end;
  align-items: center;
}

.qa-controls select {
  width: auto;
  border-radius: 12px;
  border: 1px solid var(--red-200);
  background: rgba(255, 255, 255, 0.9);
  padding: 0.6rem 1rem;
  font-weight: 600;
}

.qa-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.qa-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: var(--space-6);
  box-shadow: 0 8px 32px rgba(127, 29, 29, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-left: 5px solid var(--color-crimson);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.qa-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 40px rgba(255, 71, 87, 0.12);
  border-color: rgba(255, 71, 87, 0.3);
}

.qa-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-3);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-crimson);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.qa-question {
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: var(--space-3);
  color: var(--color-obsidian);
  line-height: 1.4;
}

.qa-answer {
  padding-top: var(--space-3);
  border-top: 1px dashed var(--red-200);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ===== 13. Impact ===== */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6);
  text-align: center;
  margin-bottom: var(--space-8);
}

.impact-card .counter {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: var(--space-2);
  color: #fff;
  font-family: var(--font-display);
  text-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}

.impact-card p {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  opacity: .95;
}

.progress-container {
  max-width: 600px;
  margin: 0 auto;
}

.progress-row {
  margin-bottom: var(--space-4);
}

.progress-row span {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: 500;
  color: #fff;
}

.progress-bar-wrap {
  width: 100%;
  height: 24px;
  background: rgba(255, 255, 255, .2);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: #fff;
  color: var(--red-700);
  display: flex;
  align-items: center;
  padding-left: var(--space-4);
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  transition: width 1.2s ease-out;
}

/* ===== Our Impact At a Glance ===== */
.impact-glance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-8);
  margin-bottom: var(--space-8);
}

.glance-card {
  background: var(--color-surface);
  border: 1px solid var(--red-200);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-5);
  text-align: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.glance-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-sand);
}

.glance-icon {
  font-size: 2.8rem;
  margin-bottom: var(--space-4);
}

.glance-num {
  display: inline-block;
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--color-obsidian);
  font-family: var(--font-display);
  line-height: 1;
}

.glance-title {
  color: var(--color-crimson);
  font-size: 1.15rem;
  margin-top: var(--space-4);
  margin-bottom: var(--space-3);
  font-weight: 700;
}

.glance-desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== Timeline ===== */
.timeline-container {
  position: relative;
  max-width: 800px;
  margin: var(--space-8) auto 0;
  padding-left: var(--space-6);
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15px;
  height: 100%;
  width: 4px;
  background: var(--red-200);
  border-radius: 4px;
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-8);
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -calc(var(--space-6) + 7px);
  top: 24px;
  width: 18px;
  height: 18px;
  background: var(--color-crimson);
  border: 4px solid var(--color-surface);
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 0 4px var(--red-100);
}

.timeline-content {
  padding: var(--space-6);
  background: var(--color-surface);
  position: relative;
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 24px;
  left: -10px;
  border-width: 10px 10px 10px 0;
  border-style: solid;
  border-color: transparent var(--color-surface) transparent transparent;
}

.timeline-content h3 {
  color: var(--color-crimson);
  margin-bottom: var(--space-2);
  font-family: var(--font-display);
}

.timeline-date {
  color: var(--color-sand);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: var(--space-3);
  display: inline-block;
  background: var(--red-50);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

/* ===== 14. Research Cards ===== */
.research-card {
  text-align: center;
}

.research-card h3 {
  color: var(--red-800);
  margin-bottom: var(--space-2);
}

/* ===== 15. Team ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-6);
}

.team-card {
  text-align: center;
}

.avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  margin: 0 auto var(--space-4) auto;
  border: 4px solid var(--color-pearl);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.team-card:hover .avatar img {
  transform: scale(1.1);
}

.bg-1 {
  background: var(--gradient-primary);
}

.bg-2 {
  background: linear-gradient(135deg, #991b1b, #c2410c);
}

.bg-3 {
  background: linear-gradient(135deg, #7f1d1d, #be123c);
}

.role {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* ===== 16. Schemes ===== */
.scheme-card .badge {
  margin-bottom: var(--space-3);
}

/* ===== 17. Footer ===== */
#site-footer {
  background: var(--red-900);
  padding: var(--space-12) 0 var(--space-6) 0;
  color: var(--red-100);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.footer-col h4 {
  margin-bottom: var(--space-4);
  color: #fff;
}

.footer-col p {
  color: var(--red-200);
  font-size: 0.95rem;
}

.footer-col a {
  color: var(--red-300);
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-6);
  border-top: 1px solid var(--red-800);
}

.disclaimer {
  font-size: 0.875rem;
  color: var(--red-300);
  margin-bottom: var(--space-2);
  padding: var(--space-4);
  background: rgba(255, 255, 255, .05);
  border-radius: var(--radius-md);
  display: inline-block;
}

.copyright {
  font-size: 0.875rem;
  color: var(--red-400);
}

/* ===== 18. Animations ===== */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse-ring {
  0% {
    transform: scale(.95);
    box-shadow: 0 0 0 0 rgba(220, 38, 38, .4);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 14px rgba(220, 38, 38, 0);
  }

  100% {
    transform: scale(.95);
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
  }
}

.pulse {
  animation: pulse-ring 2s ease-out infinite;
}

@keyframes ping {

  75%,
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

/* ===== 13. Leader / Featured Person Card ===== */
.leader-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-8);
  background: #fff;
  border: 1px solid var(--red-200);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-hover);
  margin-bottom: var(--space-12);
  position: relative;
  overflow: hidden;
}

.leader-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--gradient-primary);
}

.leader-card::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: var(--red-100);
  border-radius: 50%;
  opacity: 0.5;
}

.leader-card__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  position: relative;
  z-index: 1;
}

.leader-avatar-ring {
  width: 180px;
  height: 180px;
  border-radius: var(--radius-full);
  padding: 5px;
  background: var(--gradient-primary);
  box-shadow: 0 0 0 6px var(--red-100), var(--shadow-hover);
  animation: pulse-ring 3s ease-out infinite;
}

.leader-avatar {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--gradient-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  font-weight: 900;
  color: #fff;
  font-family: var(--font-display);
  letter-spacing: -1px;
}

.leader-badge-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: center;
  width: 100%;
}

.leader-badge {
  display: inline-block;
  background: var(--red-50);
  border: 1px solid var(--red-200);
  color: var(--red-800);
  border-radius: var(--radius-full);
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  width: 100%;
}

.leader-card__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.leader-tag {
  display: inline-block;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: var(--radius-full);
  padding: 0.2rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  width: fit-content;
}

.leader-name {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--red-900);
  margin: 0;
  line-height: 1.1;
}

.leader-title {
  font-size: 1rem;
  color: var(--red-600);
  font-weight: 600;
  margin: 0;
}

.leader-bio {
  font-size: 0.97rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin: 0;
}

.leader-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.pillar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--red-50);
  border: 1px solid var(--red-200);
  border-radius: var(--radius-full);
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--red-800);
  transition: all var(--transition-base);
}

.pillar:hover {
  background: var(--red-100);
  transform: translateY(-2px);
}

.pillar-icon {
  font-size: 1rem;
}

.leader-quote {
  background: var(--red-50);
  border-left: 4px solid var(--red-600);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-4) var(--space-6);
  margin: var(--space-2) 0 0 0;
  position: relative;
}

.leader-quote::before {
  content: '"';
  font-size: 4rem;
  color: var(--red-200);
  position: absolute;
  top: -12px;
  left: 12px;
  line-height: 1;
  font-family: Georgia, serif;
}

.leader-quote p,
.leader-quote {
  font-size: 1rem;
  font-style: italic;
  color: var(--red-900);
  line-height: 1.7;
}

.leader-quote cite {
  display: block;
  margin-top: var(--space-2);
  font-style: normal;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--red-600);
}

.team-subheading {
  text-align: center;
  font-size: 1.5rem;
  color: var(--red-800);
  margin-bottom: var(--space-6);
  font-family: var(--font-display);
}

@media(max-width: 900px) {
  .leader-card {
    grid-template-columns: 1fr;
  }

  .leader-card__visual {
    margin-bottom: var(--space-2);
  }

  .leader-avatar-ring {
    width: 140px;
    height: 140px;
  }

  .leader-avatar {
    font-size: 2.5rem;
  }
}


.ministry-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  gap: var(--space-6);
  margin-bottom: var(--space-8);
  position: relative;
  overflow: hidden;
}

.ministry-banner::after {
  content: '';
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 220px;
  height: 220px;
  background: rgba(255, 255, 255, .07);
  border-radius: 50%;
}

.ministry-banner__left {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: #fff;
}

.ministry-logo-icon {
  font-size: 3rem;
}

.ministry-banner__left h3 {
  color: #fff;
  margin: 0 0 0.3rem 0;
  font-size: 1.3rem;
}

.ministry-banner__left p {
  color: rgba(255, 255, 255, .85);
  margin: 0;
  font-size: 0.95rem;
}

.ministry-banner__right {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.ministry-helpline {
  background: rgba(255, 255, 255, .15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  text-align: center;
  min-width: 130px;
}

.helpline-label {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, .8);
  font-weight: 500;
}

.helpline-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-display);
  margin: 0.2rem 0;
}

.helpline-note {
  display: block;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, .75);
}

.ministry-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.mfact {
  background: #fff;
  border: 2px solid var(--red-200);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
  transition: all var(--transition-base);
}

.mfact:hover {
  border-color: var(--red-500);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.mfact-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--red-700);
  font-family: var(--font-display);
  line-height: 1;
}

.mfact-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.4rem;
  font-weight: 500;
  line-height: 1.3;
}

.scheme-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.scheme-filter-btn {
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  border: 2px solid var(--red-300);
  background: #fff;
  color: var(--red-700);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-base);
}

.scheme-filter-btn:hover {
  background: #fff;
  color: var(--color-crimson);
  border-color: var(--color-crimson);
  box-shadow: var(--shadow-sm);
}

.schemes-grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: var(--space-10);
}

.scheme-card-rich {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--red-200);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.scheme-card-rich:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--red-400);
}

.scheme-card-rich[data-hidden="true"] {
  display: none;
}

.scheme-card-header {
  background: var(--red-50);
  padding: 24px 24px 12px 24px;
  border-bottom: none;
  display: flex;
  align-items: center;
  gap: 16px;
}

.scheme-icon {
  font-size: 2rem;
}

.scheme-card-header-text h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--red-800);
}

.scheme-card-header-text .scheme-ministry-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--red-600);
  background: var(--red-100);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-top: 0.2rem;
}

.scheme-card-body {
  padding: 0 24px 24px 24px;
  flex: 1;
}

.scheme-card-body p {
  font-size: 15px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
  margin-top: 0;
  line-height: 1.7;
}

.scheme-card-body .scheme-benefits {
  margin: var(--space-3) 0;
}

.scheme-card-body .scheme-benefits li {
  font-size: 0.85rem;
  color: var(--color-text);
  padding: 0.25rem 0;
  margin-bottom: 12px;
  border-bottom: 1px dashed var(--red-100);
  display: flex;
  gap: 0.5rem;
}

.scheme-card-body .scheme-benefits li:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.scheme-eligibility {
  background: #fff0f3;
  border-radius: 8px;
  padding: 10px;
  margin-top: var(--space-3);
  font-size: 0.82rem;
  color: var(--red-800);
}

.scheme-eligibility strong {
  color: var(--red-700);
}

.scheme-card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--red-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  flex-wrap: wrap;
  background: var(--red-50);
}

.scheme-helpline-pill {
  background: var(--red-700);
  color: #fff;
  border-radius: var(--radius-full);
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 700;
}

/* Mission Shakti deep-dive */
.mission-shakti-card {
  background: var(--gradient-dark);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  color: #fff;
  margin-top: var(--space-8);
}

.ms-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.ms-icon {
  font-size: 3rem;
}

.ms-header h3 {
  color: #fff;
  margin: 0 0 0.4rem 0;
  font-size: 1.4rem;
}

.ms-header p {
  color: rgba(255, 255, 255, .8);
  margin: 0;
  font-size: 0.95rem;
}

.ms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
}

.ms-sub {
  background: rgba(255, 255, 255, .08);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border: 1px solid rgba(255, 255, 255, .15);
}

.ms-check {
  flex-shrink: 0;
}

.ms-sub h4 {
  color: #fff;
  margin-bottom: var(--space-3);
  font-size: 1rem;
  white-space: normal;
  word-break: break-word;
}

.ms-sub ul {
  padding-left: 0;
  list-style: none;
}

.ms-sub li {
  color: rgba(255, 255, 255, .9);
  font-size: 0.88rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  word-break: break-word;
  white-space: normal;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

.ms-sub li:last-child {
  border-bottom: none;
}

/* ===== Blog & Modal ===== */
.blog-card {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: var(--space-4);
  opacity: 1;
  transition: opacity 0.3s;
}

.modal.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-content {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-xl);
}

.close-btn {
  position: absolute;
  top: var(--space-4);
  right: var(--space-6);
  background: none;
  border: none;
  font-size: 2.5rem;
  cursor: pointer;
  color: var(--color-text-muted);
  line-height: 1;
}

.close-btn:hover {
  color: var(--color-crimson);
}

/* ===== Join Us / Face of Maa ===== */
.join-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-6);
}

.join-card {
  text-align: center;
  padding: var(--space-8) var(--space-5);
  border: 1px solid var(--red-200);
  background: var(--color-surface);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.join-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-sand);
}

.join-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  margin-bottom: var(--space-4);
  background: var(--red-50);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-inline: auto;
  color: var(--color-crimson);
}

.join-card h3 {
  color: var(--color-crimson);
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: var(--space-3);
}

.join-card p {
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ===== 14. Responsive ===== */
@media(max-width: 900px) {

  /* Header & Nav */
  #desktop-nav {
    display: none;
  }

  #menu-toggle {
    display: block;
  }

  /* Global Layout */
  .section {
    padding: var(--space-8) 0;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  /* Hero Section */
  .hero {
    padding: var(--space-8) 0;
  }

  .hero__cta {
    flex-direction: column;
    width: 100%;
    gap: var(--space-3);
  }

  .hero__cta .btn {
    width: 100%;
    text-align: center;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    padding: var(--space-4);
  }

  .hero-stat-num {
    font-size: 1.5rem;
  }

  /* PDF Insights Tabs */
  .insights-tabs {
    flex-direction: column;
    width: 100%;
  }

  .tab-btn {
    width: 100%;
    text-align: center;
  }

  .pdf-insight-hero {
    padding: var(--space-6) var(--space-4);
  }

  .pdf-download-bar {
    flex-direction: column;
    text-align: center;
    gap: var(--space-4);
  }

  /* Mermaid Flowcharts */
  .mermaid {
    max-width: 100%;
    overflow-x: auto;
    display: block;
    -webkit-overflow-scrolling: touch;
  }

  /* QA Controls */
  .qa-controls {
    flex-direction: column;
  }

  .qa-controls select,
  .qa-controls button {
    width: 100%;
  }

  /* Mission / Ministry Banners */
  .ministry-banner {
    flex-direction: column;
    text-align: center;
    gap: var(--space-4);
  }

  .ministry-banner__right {
    justify-content: center;
    width: 100%;
  }

  .ms-header {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-col h3::after {
    margin: 0 auto 1.5rem auto;
  }

  /* Timeline */
  .timeline-container {
    padding-left: var(--space-8);
  }

  .timeline-container::before {
    left: 20px;
  }

  .timeline-dot {
    left: -calc(var(--space-8) - 11px);
  }
}

/* ===== Hygiene Kit ===== */
.kit-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-crimson);
}

/* ===== Teacher Corner ===== */
.teacher-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* ===== Myth vs Fact Quiz ===== */
.myth-card {
  perspective: 1000px;
  cursor: pointer;
  height: 250px;
}

.myth-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.myth-card.flipped .myth-inner {
  transform: rotateY(180deg);
}

.myth-front,
.myth-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--red-200);
}

.myth-front {
  background-color: #fff;
}

.myth-front h3 {
  color: var(--color-obsidian);
  font-family: var(--font-display);
}

.myth-front p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  font-style: italic;
}

.myth-back {
  background-color: var(--color-crimson);
  color: #fff;
  transform: rotateY(180deg);
}

.myth-back h3 {
  color: var(--color-sand);
  font-family: var(--font-display);
}

.myth-back p {
  font-size: 1.05rem;
}

.flip-hint {
  position: absolute;
  bottom: 15px;
  font-size: 0.8rem;
  color: var(--red-400);
  font-weight: 600;
  text-transform: uppercase;
}

/* ===== Disorders Section ===== */
.disorder-card {
  border-left: 4px solid var(--color-crimson);
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.disorder-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.disorder-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--color-obsidian);
}

.disorder-card ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1rem 0;
}

.disorder-card ul li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.disorder-card ul li::before {
  content: '•';
  color: var(--color-crimson);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.disorder-tag {
  display: inline-block;
  background: var(--red-100);
  color: var(--red-900);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.disorder-note {
  font-size: 0.9rem;
  color: var(--color-text);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--red-200);
}

.disorder-note em {
  color: var(--color-crimson);
}

/* ===== Voices from the Street ===== */
.street-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.street-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 5;
}

.street-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.street-card:hover img {
  transform: scale(1.05);
}

/* ===== Floating SOS Button ===== */
.sos-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #d32f2f;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 64px;
  height: 64px;
  padding: 0;
  font-size: 1.7rem;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(211, 47, 47, 0.4);
  cursor: pointer;
  z-index: 9999;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family);
}

.sos-btn:hover {
  transform: translateY(-5px) scale(1.05);
  background-color: #b71c1c;
}

@media (max-width: 900px) {
  .sos-btn {
    bottom: 90px !important;
    right: 24px !important;
    width: 56px;
    height: 56px;
    font-size: 1.4rem;
  }
}

/* ===== Advanced Tracker ===== */
.current-status-box {
  background: var(--red-100);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
  text-align: center;
}

.phase-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-crimson);
  margin-bottom: var(--space-4);
  font-family: var(--font-display);
}

.cycle-progress-bar {
  width: 100%;
  height: 12px;
  background: #fff;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-4);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-crimson), var(--color-peach));
  border-radius: var(--radius-full);
  transition: width 0.5s ease-out;
}

.phase-insight {
  font-size: 0.95rem;
  color: var(--color-obsidian);
  line-height: 1.5;
}

.tracker-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

@media (max-width: 600px) {
  .tracker-grid {
    grid-template-columns: 1fr;
  }
}

.symptom-logger {
  background: #fff;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--red-200);
  margin-bottom: var(--space-6);
}

.symptom-logger h4 {
  margin-bottom: var(--space-4);
  font-family: var(--font-display);
  color: var(--color-obsidian);
}

.symptom-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.tag-btn {
  background: var(--red-50);
  border: 1px solid var(--red-200);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.tag-btn:hover,
.tag-btn.active {
  background: var(--color-crimson);
  color: #fff;
  border-color: var(--color-crimson);
  transform: scale(1.05);
}

.log-msg {
  margin-top: var(--space-4);
  font-size: 0.85rem;
  color: #10b981;
  /* success green */
  font-weight: 600;
  min-height: 20px;
}

/* ===== MOBILE OPTIMISATION — COMPREHENSIVE FIX ===== */
@media (max-width: 480px) {

  /* ── Global Spacing ── */
  .section {
    padding: var(--space-6) 0 !important;
    scroll-margin-top: 160px !important;
  }

  .container {
    padding: 0 var(--space-3);
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-2) !important;
  }

  .section-subtitle {
    font-size: 0.95rem;
    margin-bottom: var(--space-4) !important;
  }

  /* ── Navbar ── */
  .logo img {
    height: 44px !important;
  }

  .header-container {
    padding: 0 var(--space-3);
  }

  /* ── Hero ── */
  .hero {
    padding: 130px 0 var(--space-4) 0 !important;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero__tagline {
    font-size: 0.9rem;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
    padding: var(--space-3);
  }

  .hero-stat-num {
    font-size: 1.3rem;
  }

  /* ── Cards & Grids ── */
  .card {
    padding: var(--space-4);
  }

  .grid {
    gap: var(--space-4);
  }

  /* ── Tracker ── (THE BIG FIX) ── */
  .tracker-card {
    max-width: 100%;
    padding: var(--space-4) !important;
  }

  .current-status-box {
    padding: var(--space-4);
    margin-bottom: var(--space-4);
  }

  .phase-name {
    font-size: 1.1rem;
    margin-bottom: var(--space-2);
  }

  .phase-insight {
    font-size: 0.85rem;
  }

  .tracker-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
  }

  .result-box {
    margin-top: 0;
    padding: var(--space-3);
  }

  .highlight-date {
    font-size: 1.3rem;
    margin: var(--space-1) 0;
  }

  .symptom-logger {
    padding: var(--space-4);
    margin-bottom: var(--space-4);
  }

  .symptom-tags {
    gap: var(--space-2);
  }

  .tag-btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
  }

  /* ── Q&A ── */
  .qa-form {
    padding: var(--space-4);
    margin-bottom: var(--space-4) !important;
  }

  .qa-controls {
    flex-direction: column;
    gap: var(--space-2);
    margin-top: var(--space-2) !important;
  }

  .qa-controls select,
  .qa-controls button {
    width: 100%;
    margin-left: 0 !important;
  }

  .qa-list {
    gap: var(--space-3) !important;
  }

  /* ── Hygiene Kit ── */
  .kit-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: var(--space-3) !important;
    margin-top: var(--space-4) !important;
  }

  /* ── Teacher Corner ── */
  .teacher-grid {
    grid-template-columns: 1fr !important;
    gap: var(--space-4) !important;
  }

  .seminar-cta {
    margin-top: var(--space-4) !important;
    padding: var(--space-4) var(--space-3) !important;
  }

  .seminar-cta h2 {
    font-size: 1.5rem !important;
  }

  /* ── Myth Cards ── */
  .myth-grid {
    grid-template-columns: 1fr !important;
    gap: var(--space-4) !important;
  }

  .myth-card {
    height: 200px;
  }

  /* ── Ministry Section ── */
  .ministry-banner {
    padding: var(--space-4);
    gap: var(--space-4);
  }

  .ministry-helpline {
    padding: var(--space-2) var(--space-3);
    font-size: 0.9rem;
  }

  .helpline-number {
    font-size: 1.1rem;
  }

  .ministry-facts {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
  }

  /* ── Research Tabs ── */
  .insights-tabs {
    flex-direction: column;
  }

  .tab-btn {
    width: 100%;
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
  }

  .pdf-insight-hero {
    padding: var(--space-4);
  }

  .pdf-insight-hero h3 {
    font-size: 1.2rem;
  }

  /* ── Impact Section ── */
  .impact-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: var(--space-3);
  }

  .impact-num {
    font-size: 2rem;
  }

  /* ── Team Section ── */
  .team-grid {
    grid-template-columns: 1fr !important;
  }

  /* ── Awareness Posters ── */
  .poster-grid {
    grid-template-columns: 1fr !important;
  }

  /* ── SOS Button ── */
  .sos-btn {
    bottom: 90px !important;
    right: 24px !important;
    width: 56px;
    height: 56px;
    padding: 0;
    font-size: 1.4rem;
  }

  /* ── Footer ── */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .footer-col {
    text-align: center;
  }
}

/* ── Disorder Modal ── */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: white;
  border-radius: var(--radius-xl);
  max-width: 500px;
  width: 100%;
  padding: 2rem;
  box-shadow: var(--shadow-2xl);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.disorder-card {
  cursor: pointer;
}

/* ===== 19. Period History Calendar & Logging Styles ===== */
.calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.calendar-day {
  aspect-ratio: 1 / 1;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: #fff;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-obsidian);
  position: relative;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.calendar-day:hover:not(.empty) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--color-crimson);
}

.calendar-day.empty {
  opacity: 0.25;
  cursor: default;
  background: transparent;
  border: none;
  pointer-events: none;
}

/* Today highlight */
.calendar-day.today:not(.empty) {
  border: 2.5px solid var(--color-obsidian) !important;
}

/* Selected highlight */
.calendar-day.selected-day:not(.empty) {
  box-shadow: 0 0 0 3px rgba(240, 99, 90, 0.4) !important;
  border-color: var(--color-crimson) !important;
}

/* Predicted period days (dashed outline) */
.calendar-day.predicted-period:not(.empty) {
  border: 2px dashed var(--color-crimson);
  background: rgba(255, 240, 242, 0.5);
  color: var(--color-crimson);
}

/* Fertile/Ovulation days (blue background) */
.calendar-day.fertile-day:not(.empty) {
  background: #EFF6FF;
  border: 2px solid #3B82F6;
  color: #1E40AF;
}

/* Active logged period states (solid red boxes of varying weights) */
.calendar-day.flow-light:not(.empty) {
  background: #FFE4E6 !important;
  border: 1px solid #FB7185 !important;
  color: #BE123C !important;
}

.calendar-day.flow-medium:not(.empty) {
  background: #FDA4AF !important;
  border: 1.5px solid #F43F5E !important;
  color: #9F1239 !important;
}

.calendar-day.flow-heavy:not(.empty) {
  background: #F43F5E !important;
  border: 1.5px solid #E11D48 !important;
  color: #ffffff !important;
}

.calendar-day.flow-super-heavy:not(.empty) {
  background: #BE123C !important;
  border: 2px solid #881337 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
}

/* Spotting dots container */
.spotting-dots {
  display: flex;
  gap: 3px;
  justify-content: center;
  position: absolute;
  bottom: 4px;
  width: 100%;
}

.spotting-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: block;
}

.spotting-dots span.spot-red {
  background-color: #EF4444;
}

.spotting-dots span.spot-brown {
  background-color: #78350F;
}

/* Active states for selection buttons in logging drawer */
.flow-btn.active {
  background: var(--color-crimson) !important;
  color: #ffffff !important;
  border-color: var(--color-crimson) !important;
  transform: scale(1.05);
  box-shadow: var(--shadow-sm);
}

.spot-btn.active[data-spotting="red"] {
  background: #EF4444 !important;
  color: #ffffff !important;
  border-color: #EF4444 !important;
  transform: scale(1.05);
  box-shadow: var(--shadow-sm);
}

.spot-btn.active[data-spotting="brown"] {
  background: #78350F !important;
  color: #ffffff !important;
  border-color: #78350F !important;
  transform: scale(1.05);
  box-shadow: var(--shadow-sm);
}

.spot-btn.active[data-spotting="none"] {
  background: var(--color-obsidian) !important;
  color: #ffffff !important;
  border-color: var(--color-obsidian) !important;
  transform: scale(1.05);
  box-shadow: var(--shadow-sm);
}

.day-log-panel {
  animation: slideDownFade 0.3s ease-out;
}

@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== 20. 10-Year Forecast Dashboard Styles ===== */
.forecast-section {
  animation: slideDownFade 0.4s ease-out;
}

.forecast-stats-grid {
  margin-top: 1rem;
}

.forecast-stat-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.forecast-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.forecast-year-tabs {
  scrollbar-width: thin;
  scrollbar-color: var(--red-200) transparent;
}

.forecast-year-tabs::-webkit-scrollbar {
  height: 5px;
}

.forecast-year-tabs::-webkit-scrollbar-thumb {
  background: var(--red-200);
  border-radius: var(--radius-full);
}

.year-tab-btn {
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  background: white;
  border: 1px solid var(--red-200);
  color: var(--color-crimson);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.year-tab-btn:hover {
  background: var(--red-50);
  transform: scale(1.03);
}

.year-tab-btn.active {
  background: var(--color-crimson);
  color: white;
  border-color: var(--color-crimson);
  box-shadow: var(--shadow-sm);
}

/* Timeline items styling */
.timeline-forecast-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: white;
  border-left: 4px solid var(--color-crimson);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

.timeline-forecast-item:hover {
  transform: translateX(4px);
}

.timeline-forecast-item.fertile {
  border-left-color: #3B82F6;
}

.timeline-date-label {
  font-weight: 700;
  color: var(--color-obsidian);
}

.timeline-phase-badge {
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50px;
  text-transform: uppercase;
}

.timeline-phase-badge.period {
  background: #FFE4E6;
  color: #BE123C;
}

.timeline-phase-badge.fertile {
  background: #EFF6FF;
  color: #1E40AF;
}

/* Table styling */
.forecast-table-section table th,
.forecast-table-section table td {
  border-bottom: 1px solid var(--red-50);
}

.forecast-table-section table tbody tr {
  transition: background-color 0.15s ease;
}

.forecast-table-section table tbody tr:hover {
  background-color: var(--red-50);
}

.table-status-pill {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50px;
}

.table-status-pill.period {
  background: #FFE4E6;
  color: #BE123C;
}

.table-status-pill.fertile {
  background: #EFF6FF;
  color: #1E40AF;
}

.table-status-pill.normal {
  background: #F3F4F6;
  color: #4B5563;
}

/* Cycle Ring Styles (Relocated from inline) */
#cycle-ring-container {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 2rem auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
#cycle-ring-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg); /* Start at top */
  overflow: visible;
}
#phaseIcon {
  position: relative;
  z-index: 10;
}
#phaseIcon svg {
  width: 80px;
  height: 80px;
  display: block;
}
.ring-segment {
  fill: none;
  stroke-width: 16;
  stroke-linecap: round;
}
.ring-day-marker {
  fill: var(--color-obsidian);
  stroke: #fff;
  stroke-width: 2.5;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
  transition: all 0.5s ease-out;
}
.ring-day-text {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  fill: var(--color-obsidian);
  text-anchor: middle;
  dominant-baseline: central;
  transform: rotate(90deg);
  transform-origin: center;
}

/* Symptom indicator on calendar */
.spotting-dots span.spot-symptom {
  background-color: #8B5CF6; /* Beautiful modern violet */
  box-shadow: 0 0 2px rgba(139, 92, 246, 0.5);
}

/* Q&A Category Pills Styles */
.qa-filter-pill {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--red-200);
  color: var(--color-crimson);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(5px);
}

.qa-filter-pill:hover {
  background: var(--red-50);
  transform: translateY(-1px);
}

.qa-filter-pill.active {
  background: var(--color-crimson);
  color: white;
  border-color: var(--color-crimson);
  box-shadow: var(--shadow-sm);
}

/* ===== 21. Clinical Print-Friendly Styles ===== */
.print-clinical-header {
  display: none; /* Hidden on screen, shown only in print */
}

@media print {
  /* Hide non-clinical elements */
  #site-header,
  #site-footer,
  footer,
  .hero,
  #home,
  #learn,
  #insights,
  #schemes,
  #impact,
  #team,
  #donate,
  .donate-section,
  #qa-section,
  #qa-form,
  .qa-filter-container,
  #qa-clear-btn,
  .tracker-controls,
  .symptom-logger-container,
  .calendar-header button,
  #prev-month-btn,
  #next-month-btn,
  #today-month-btn,
  #import-btn,
  #export-btn,
  #reset-btn,
  .forecast-table-section .pagination,
  #tracker-input-form,
  .spotting-selector,
  .symptom-selector,
  .card-header,
  .btn,
  button,
  .tracker-welcome-card,
  #qa-clear-btn-container {
    display: none !important;
  }

  /* Ensure high-contrast layout */
  body {
    background: white !important;
    color: black !important;
    font-size: 12pt !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Render full content grid nicely */
  .container,
  .main-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Force sections to display for clinical print */
  #tracker,
  #tracker-result {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  #tracker-result {
    page-break-after: always;
  }

  /* Format the Clinical Report Header */
  .print-clinical-header {
    display: block !important;
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid #C26B74;
    padding-bottom: 1rem;
  }

  .print-clinical-header h1 {
    font-size: 24pt;
    color: #BE123C;
    margin: 0 0 0.5rem 0;
  }

  .print-clinical-header p {
    font-size: 10pt;
    color: #4B5563;
    margin: 0;
  }

  /* Format the cycle dashboard ring for print */
  #cycle-ring-container {
    width: 180px !important;
    height: 180px !important;
    margin: 1rem auto !important;
    page-break-inside: avoid;
  }

  /* Format forecast table */
  .forecast-table-section {
    display: block !important;
    width: 100% !important;
    page-break-inside: auto;
  }

  .forecast-table-section table {
    width: 100% !important;
    border-collapse: collapse !important;
    page-break-inside: auto;
  }

  .forecast-table-section tr {
    page-break-inside: avoid;
    page-break-after: auto;
  }

  .forecast-table-section th {
    background-color: #F3F4F6 !important;
    color: black !important;
    font-weight: bold !important;
    border-bottom: 2px solid #E5E7EB !important;
    padding: 0.5rem !important;
  }

  .forecast-table-section td {
    border-bottom: 1px solid #E5E7EB !important;
    padding: 0.5rem !important;
    color: black !important;
  }

  /* Colors and status badges for printing */
  .table-status-pill {
    border: 1px solid #9CA3AF !important;
    background: transparent !important;
    color: black !important;
  }

  .table-status-pill.period {
    border-color: #BE123C !important;
    color: #BE123C !important;
    font-weight: bold !important;
  }

  .table-status-pill.fertile {
    border-color: #1E40AF !important;
    color: #1E40AF !important;
    font-weight: bold !important;
  }
}

/* Screen-only hiding for clinical report */
#clinical-report-print-area,
.print-only {
  display: none !important;
}

@media print {
  /* Hide the rest of the application when explicitly printing doctor report */
  body.printing-clinical-report #site-header,
  body.printing-clinical-report #site-footer,
  body.printing-clinical-report footer,
  body.printing-clinical-report #home,
  body.printing-clinical-report #learn,
  body.printing-clinical-report #disorders,
  body.printing-clinical-report #insights-pdf,
  body.printing-clinical-report #flowcharts,
  body.printing-clinical-report #qa,
  body.printing-clinical-report #schemes,
  body.printing-clinical-report #teacher-corner,
  body.printing-clinical-report #insights,
  body.printing-clinical-report #hygiene-kit,
  body.printing-clinical-report #myths,
  body.printing-clinical-report #impact,
  body.printing-clinical-report #timeline,
  body.printing-clinical-report #research,
  body.printing-clinical-report #about-rigel,
  body.printing-clinical-report #street-voices,
  body.printing-clinical-report #team,
  body.printing-clinical-report #join,
  body.printing-clinical-report #donate,
  body.printing-clinical-report .donate-section,
  body.printing-clinical-report #tracker-input-form,
  body.printing-clinical-report .tracker-welcome-card,
  body.printing-clinical-report #tracker .section-title,
  body.printing-clinical-report #tracker .section-subtitle,
  body.printing-clinical-report #tracker-result > *:not(#clinical-report-print-area) {
    display: none !important;
  }

  body.printing-clinical-report #tracker,
  body.printing-clinical-report #tracker .container,
  body.printing-clinical-report #tracker .tracker-card,
  body.printing-clinical-report #tracker-result {
    display: block !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }

  body.printing-clinical-report #clinical-report-print-area,
  body.printing-clinical-report .print-only {
    display: block !important;
    width: 100% !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: white !important;
    color: black !important;
  }

  body.printing-clinical-report {
    background: white !important;
    color: black !important;
  }

  /* Elegant Printable Laboratory-Style formatting */
  .report-header {
    border-bottom: 3px double #C26B74;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
  }

  .report-header .logo-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .report-header h1 {
    font-size: 20pt;
    color: #BE123C !important;
    margin: 0;
    font-family: 'Outfit', sans-serif;
  }

  .confidential-badge {
    border: 2px solid #E11D48;
    color: #E11D48 !important;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 9pt;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    letter-spacing: 0.5px;
  }

  .report-header .subtitle {
    font-size: 9.5pt;
    color: #4B5563 !important;
    margin: 0.3rem 0 0 0;
    font-style: italic;
  }

  .report-section {
    margin-bottom: 1.5rem;
    page-break-inside: avoid;
  }

  .report-section h2 {
    font-size: 13pt;
    color: #BE123C !important;
    border-bottom: 1px solid #E5E7EB;
    padding-bottom: 0.4rem;
    margin-bottom: 0.8rem;
    font-family: 'Outfit', sans-serif;
  }

  .report-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    font-size: 10pt;
  }

  .report-grid-3 div {
    padding: 0.2rem 0;
  }

  .stat-label {
    display: block;
    font-size: 9pt;
    color: #4B5563;
    margin-bottom: 0.25rem;
  }

  .stat-val {
    display: block;
    font-size: 14pt;
    color: #111827;
    font-weight: 700;
  }

  .section-desc {
    font-size: 9pt;
    color: #6B7280;
    margin-top: 0;
    margin-bottom: 0.6rem;
  }

  .clinical-report-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 9.5pt;
    margin-top: 0.5rem;
    page-break-inside: avoid;
  }

  .clinical-report-table th, 
  .clinical-report-table td {
    border: 1px solid #D1D5DB;
    padding: 0.5rem 0.75rem;
    text-align: left;
  }

  .clinical-report-table th {
    background-color: #F9FAFB !important;
    font-weight: 700;
    color: #111827 !important;
  }

  .clinical-report-table td {
    color: #374151 !important;
  }

  .clinical-report-table tr:nth-child(even) td {
    background-color: #F9FAFB !important;
  }

  .print-heatmap-cell {
    text-align: center !important;
    font-weight: 600;
  }

  .print-heatmap-cell.high-freq {
    background-color: #FEE2E2 !important;
    border: 2px solid #EF4444 !important;
    color: #991B1B !important;
  }

  .print-heatmap-cell.med-freq {
    background-color: #FEF2F2 !important;
    color: #B91C1C !important;
  }

  .print-footer {
    border-top: 1px solid #E5E7EB;
    padding-top: 0.8rem;
    margin-top: 1.5rem;
    font-size: 8pt;
    color: #9CA3AF !important;
    text-align: center;
    line-height: 1.4;
    page-break-inside: avoid;
  }
}

/* ===== 22. Switch Toggles & Update Notifications ===== */
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-round {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--red-200);
  transition: .3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 24px;
}

.slider-round:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.switch-toggle input:checked + .slider-round {
  background-color: var(--color-crimson);
}

.switch-toggle input:focus + .slider-round {
  box-shadow: 0 0 4px var(--color-crimson);
}

.switch-toggle input:checked + .slider-round:before {
  transform: translateX(22px);
}

/* Floating PWA Update Toast */
.update-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  width: 320px;
  padding: 1.2rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  animation: slideInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

@keyframes slideInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 576px) {
  .update-toast {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    width: auto;
  }
}

/* ===== 23. Cycle Insights & Symptom Heatmap Visualizations ===== */
.insights-empty-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-4);
  z-index: 10;
  border-radius: var(--radius-md);
  transition: opacity 0.3s ease;
}

.insights-empty-overlay i {
  color: var(--color-crimson);
  margin-bottom: 0.5rem;
}

.insights-empty-overlay p {
  max-width: 340px;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin: 0.4rem 0 0 0;
  line-height: 1.4;
  font-weight: 500;
}

/* SVG Chart Bar Hover Tooltip */
.chart-bar-group {
  cursor: pointer;
}

.chart-bar-group rect {
  transition: fill 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: bottom;
}

.chart-bar-group:hover rect {
  fill: var(--color-primary) !important;
  filter: drop-shadow(0 2px 4px rgba(225, 29, 72, 0.3));
}

.chart-bar-group:hover text {
  fill: var(--color-primary);
  font-weight: 700;
}

/* Heatmap Elements */
.symptom-heatmap-wrapper {
  overflow-x: auto;
  width: 100%;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
}

.symptom-heatmap-grid {
  display: grid;
  grid-template-columns: 120px repeat(5, minmax(65px, 1fr));
  gap: 8px;
  align-items: center;
  min-width: 480px;
}

.heatmap-header-cell {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-crimson);
  text-align: center;
  padding: 0.5rem 0.2rem;
  border-bottom: 2px solid var(--red-100);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.heatmap-header-cell.first {
  text-align: left;
  border-bottom: none;
  text-transform: none;
  font-size: 0.82rem;
  letter-spacing: 0;
}

.heatmap-row-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-obsidian);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.heatmap-cell {
  border-radius: 6px;
  height: 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-obsidian);
  position: relative;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: 1px solid rgba(225, 29, 72, 0.05);
}

.heatmap-cell:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 10px rgba(225, 29, 72, 0.15);
  z-index: 2;
}

.heatmap-cell-val {
  font-size: 0.8rem;
  display: block;
}

.heatmap-cell-pct {
  font-size: 0.6rem;
  font-weight: 500;
  opacity: 0.8;
  display: block;
  margin-top: 1px;
}

/* RTL Layout Direction Support */
[dir="rtl"] .heatmap-header-cell.first {
  text-align: right;
}
[dir="rtl"] .heatmap-row-label {
  flex-direction: row-reverse;
}
[dir="rtl"] .insights-empty-overlay p {
  direction: rtl;
}

/* ===== 30. Premium Upgrades — Elegant Glassmorphism, Micro-interactions & Smooth Scroll Reveals ===== */

/* --- Scroll Reveal System --- */
.reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* --- Premium Animations & Keyframes --- */
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(3deg); }
}

@keyframes blob {
  0% { transform: translate(0px, 0px) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
  100% { transform: translate(0px, 0px) scale(1); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes headerGlow {
  0%, 100% { border-color: rgba(255, 71, 87, 0.1); }
  50% { border-color: rgba(255, 71, 87, 0.25); }
}

/* --- Animate Blob Utility --- */
.animate-blob {
  animation: blob 10s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.blur-3xl {
  filter: blur(64px);
}

/* --- Card Hover & Shimmer Sweep Effects --- */
.learn-card, .disorder-card, .scheme-card, .glassmorphism-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255, 71, 87, 0.15) !important;
  border-radius: 24px !important;
}

.learn-card:hover, .disorder-card:hover, .scheme-card:hover, .glassmorphism-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(255, 71, 87, 0.45) !important;
  box-shadow: 0 20px 40px rgba(255, 71, 87, 0.12), 0 1px 3px rgba(255, 71, 87, 0.04);
}

.learn-card::before, .disorder-card::before, .scheme-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  z-index: 1;
  pointer-events: none;
}

.learn-card:hover::before, .disorder-card:hover::before, .scheme-card:hover::before {
  transform: translateX(100%);
}

/* --- Learn Card Accent --- */
.learn-card {
  /* Removed border-image to prevent corner-rounding bugs, replaced with premium solid rounded borders above */
}

/* --- Glassmorphism Enhancements --- */
.glassmorphism-card {
  background: rgba(255, 255, 255, 0.65) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 8px 32px rgba(255, 71, 87, 0.04) !important;
}

/* --- Buttons Premium Upgrades --- */
.btn-primary {
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 71, 87, 0.45);
  background-position: right center;
}

.btn-secondary {
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 2px solid rgba(255, 71, 87, 0.45);
  background: rgba(255, 255, 255, 0.95);
  color: #FF4757 !important; /* Extremely visible high-contrast crimson text */
}

.btn-secondary:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: #FF4757;
  background: #FF4757 !important;
  color: #ffffff !important; /* High contrast inverted white text on hover */
  box-shadow: 0 12px 30px rgba(255, 71, 87, 0.25);
}

.btn-ghost {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-ghost:hover {
  background: rgba(255, 71, 87, 0.05);
  color: #FF4757 !important;
  transform: translateY(-1px);
}

/* --- Section Title Accent Line --- */
.section-title {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #FF4757 0%, #e11d48 50%, #9f1239 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block !important;
  width: fit-content;
  margin: 0 auto 3.5rem !important;
  text-align: center !important;
  position: relative;
  padding-bottom: 1.2rem;
}

.section-title.text-white {
  background: none !important;
  -webkit-text-fill-color: #ffffff !important;
  color: #ffffff !important;
}

/* Thin background track line centered */
.section-title::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 180px;
  height: 2px;
  background: rgba(255, 71, 87, 0.2);
  border-radius: 1px;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
  transform-origin: center;
}

/* Thick active foreground gradient line centered */
.section-title::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #FF4757, #FFA07A);
  border-radius: 2px;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
  transform-origin: center;
}

.reveal.visible .section-title::before,
.fade-in-up.visible .section-title::before,
.visible .section-title::before,
.section-title.visible::before {
  transform: translateX(-50%) scaleX(1);
}

.reveal.visible .section-title::after,
.fade-in-up.visible .section-title::after,
.visible .section-title::after,
.section-title.visible::after {
  transform: translateX(-50%) scaleX(1);
}

/* --- Hero Badge & Stats Upgrades --- */
.hero__badge {
  border-radius: 9999px;
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #FF4757;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.06);
}

.hero-stat {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-stat:hover {
  transform: translateY(-5px);
}

/* --- Header Blur & Navigation Slide-in Underline --- */
#site-header {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  border-bottom: 1px solid rgba(255, 71, 87, 0.08) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02) !important;
  animation: headerGlow 6s infinite ease-in-out;
}

@media (min-width: 1251px) {
  #desktop-nav {
    margin: 0 auto !important; /* Centers the desktop navigation menu inside the header container */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  #desktop-nav a {
    position: relative;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600;
    font-size: 0.95rem;
    color: #374151 !important;
    transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  #desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #FF4757;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  #desktop-nav a:hover::after, #desktop-nav a.active::after {
    width: 100%;
  }

  #desktop-nav a:hover, #desktop-nav a.active {
    color: #FF4757 !important;
  }
}

/* --- Symptom Logger & Tracker Save Upgrades --- */
.tag-btn {
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tag-btn.active {
  background: linear-gradient(135deg, #FF4757, #ff6b81) !important;
  color: white !important;
  box-shadow: 0 8px 20px rgba(255, 71, 87, 0.3) !important;
  transform: scale(1.05);
}

#save-symptoms-btn {
  background: linear-gradient(135deg, #FF4757, #ff6b81);
  color: white;
  border: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.2);
}

#save-symptoms-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 71, 87, 0.35);
}

/* --- Footer Premium Border --- */
#site-footer {
  position: relative;
}

#site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #FF4757, #FFA07A, #1E90FF, #FF4757);
  background-size: 300% auto;
  animation: gradientShift 6s linear infinite;
}

/* --- Scroll Progress Bar --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #FF4757, #FFA07A, #FF4757);
  background-size: 200% auto;
  animation: gradientShift 4s linear infinite;
  z-index: 9999;
  width: 0%;
  transition: width 0.1s ease-out;
}

/* --- High-Fidelity Perfect Card Corners & Borders Override --- */
.learn-card, .disorder-card, .scheme-card, .scheme-card-rich, .glassmorphism-card {
  border-radius: 24px !important;
  border: 1.5px solid rgba(255, 71, 87, 0.15) !important;
  overflow: hidden !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important;
}

.disorder-card {
  border-left: 6px solid #FF4757 !important;
}

.learn-card:hover, .disorder-card:hover, .scheme-card:hover, .scheme-card-rich:hover, .glassmorphism-card:hover {
  border-color: rgba(255, 71, 87, 0.45) !important;
  box-shadow: 0 20px 40px rgba(255, 71, 87, 0.12) !important;
}

/* ===== 22. Dark Mode Completely Removed ===== */

/* ===== 23. High-Fidelity Mobile Design & Responsiveness Optimizations ===== */
@media (max-width: 900px) {
  /* Floating Pill Site Header Tuning */
  #site-header {
    top: 16px !important;
    width: 94% !important;
    border-radius: 30px !important;
    box-shadow: 0 10px 30px rgba(255, 71, 87, 0.06) !important;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
  }

  .header-container {
    height: 60px !important;
    padding: 0 var(--space-4) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .logo img {
    height: 42px !important;
    vertical-align: middle !important;
  }

  /* Header controls alignment and scaling */
  .header-controls {
    gap: 12px !important;
    display: flex !important;
    align-items: center !important;
    align-self: center !important;
  }

  #lang-selector, #menu-toggle {
    align-self: center !important;
  }

  #lang-selector {
    padding: 0.35rem 1.6rem 0.35rem 0.6rem !important;
    font-size: 0.8rem !important;
    border-radius: 15px !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background: rgba(255, 255, 255, 0.9) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23FF4757' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>") no-repeat right 0.4rem center / 0.8rem !important;
    border: 1px solid rgba(255, 71, 87, 0.25) !important;
    color: var(--color-crimson) !important;
    font-weight: 700 !important;
    outline: none !important;
  }

  /* Sleek mobile navigation slide-down menu */
  #mobile-menu {
    top: 80px !important;
    left: 15px !important;
    width: calc(100% - 30px) !important;
    max-height: calc(100vh - 100px) !important;
    padding: var(--space-4) !important;
    gap: var(--space-2) !important;
    border-radius: 20px !important;
    border: 1px solid rgba(255, 71, 87, 0.12) !important;
    box-shadow: var(--shadow-hover) !important;
  }

  #mobile-menu a {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    padding: 0.6rem 0 !important;
    border-bottom: 1.5px solid rgba(255, 71, 87, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }

  #mobile-menu a:last-child {
    border-bottom: none !important;
  }

  #mobile-menu li:last-child a {
    border-bottom: none !important;
  }

  /* Mobile margin corrections for sections */
  .section {
    padding: var(--space-8) 0 !important;
    scroll-margin-top: 100px !important;
  }

  .section-title {
    font-size: 1.85rem !important;
    margin-bottom: var(--space-2) !important;
  }

  .section-subtitle {
    font-size: 0.95rem !important;
    margin-bottom: var(--space-6) !important;
    padding: 0 1rem !important;
  }

  /* Govt Schemes responsiveness */
  .schemes-grid-layout {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
    padding: 0 !important;
  }

  .scheme-card-rich {
    border-radius: 20px !important;
  }

  /* Research insights cards layout on narrow screens */
  .insights-pdf-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  /* Hero adjustments for cleaner padding */
  .hero {
    padding-top: 100px !important;
    padding-bottom: var(--space-6) !important;
  }

  .hero__badge {
    font-size: 0.8rem !important;
    padding: 0.35rem 0.85rem !important;
  }

  .hero__subtext {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    margin-bottom: var(--space-6) !important;
  }

  .hero__cta {
    margin-bottom: var(--space-6) !important;
  }
}

/* ===== 24. Chatbot Floating UI ===== */
.chatbot-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF4757, #e11d48);
  border: none;
  box-shadow: 0 8px 25px rgba(255, 71, 87, 0.4);
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: floatSlow 5s ease-in-out infinite;
}

.chatbot-btn:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 12px 30px rgba(255, 71, 87, 0.6);
}

.chatbot-window {
  position: fixed;
  bottom: 6rem;
  right: 2rem;
  width: 350px;
  max-width: calc(100vw - 4rem);
  height: 450px;
  max-height: calc(100vh - 8rem);
  border-radius: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: bottom right;
}

.chatbot-window.hidden {
  opacity: 0;
  transform: scale(0.8) translateY(20px);
  pointer-events: none;
}

.chatbot-header {
  background: linear-gradient(135deg, #FF4757, #e11d48);
  color: white;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-header h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chatbot-close {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.chatbot-close:hover {
  opacity: 1;
}

.chatbot-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  background: rgba(255, 255, 255, 0.4);
}

.chat-message {
  max-width: 85%;
  padding: 0.8rem 1rem;
  border-radius: 15px;
  font-size: 0.9rem;
  line-height: 1.4;
  animation: fadeUp 0.3s ease both;
}

.bot-message {
  align-self: flex-start;
  background: white;
  color: var(--color-obsidian);
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.user-message {
  align-self: flex-end;
  background: linear-gradient(135deg, #FF4757, #ff6b81);
  color: white;
  border-bottom-right-radius: 4px;
  box-shadow: 0 2px 10px rgba(255, 71, 87, 0.2);
}

.chatbot-input-area {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.8);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  gap: 0.5rem;
}

.chatbot-input-area input {
  flex: 1;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.chatbot-input-area input:focus {
  border-color: #FF4757;
}

.chatbot-input-area button {
  border-radius: 50%;
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

