/* ==========================================================================
   BLUE CROSS — Modern Light Design System
   Pure CSS3 | 100% Light/White Theme | Accessible | Mobile Responsive
   ========================================================================== */

:root {
  /* Core Colors */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F7FBFF;
  --bg-subtle: #F4F9FD;
  --bg-tint: #EEF7FF;
  --bg-card: #FFFFFF;

  /* Brand Colors */
  --brand-blue: #1688E8;
  --brand-blue-hover: #0F75CD;
  --brand-blue-light: #45B5F5;
  --brand-blue-subtle: #E8F4FD;
  --brand-blue-border: #C5E3FB;

  /* Typography Colors */
  --text-main: #172B3A;
  --text-muted: #5F7180;
  --text-light: #8A9CA8;

  /* Accent & Warm Donation Tone */
  --accent-gold: #D97706;
  --accent-gold-bg: #FEF3C7;
  --accent-gold-hover: #B45309;
  --accent-orange: #EA580C;
  --accent-orange-bg: #FFEDD5;
  --accent-green: #10B981;
  --accent-green-bg: #D1FAE5;

  /* Borders & Dividers */
  --border-light: #E4EEF5;
  --border-focus: #1688E8;

  /* Elevation Shadows */
  --shadow-sm: 0 1px 3px rgba(22, 136, 232, 0.05), 0 1px 2px rgba(23, 43, 58, 0.04);
  --shadow-md: 0 4px 14px rgba(22, 136, 232, 0.08), 0 2px 6px rgba(23, 43, 58, 0.03);
  --shadow-lg: 0 10px 25px rgba(22, 136, 232, 0.1), 0 4px 10px rgba(23, 43, 58, 0.04);
  --shadow-hover: 0 12px 28px rgba(22, 136, 232, 0.14), 0 6px 12px rgba(23, 43, 58, 0.05);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Layout */
  --container-max: 1240px;
  --header-height: 76px;
  --transition-fast: 0.18s ease;
  --transition-normal: 0.25s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-main);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Global Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2rem, 4vw + 1rem, 3.25rem); }
h2 { font-size: clamp(1.6rem, 2.5vw + 0.8rem, 2.35rem); }
h3 { font-size: clamp(1.25rem, 1.8vw + 0.6rem, 1.65rem); }
h4 { font-size: 1.2rem; }

p {
  color: var(--text-muted);
  font-size: 1.025rem;
  line-height: 1.65;
}

p.lead {
  font-size: 1.18rem;
  color: var(--text-muted);
}

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

a:hover {
  color: var(--brand-blue-hover);
}

img, svg {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section {
  padding: 72px 0;
}

.section-bg-white {
  background-color: var(--bg-primary);
}

.section-bg-subtle {
  background-color: var(--bg-secondary);
}

.section-bg-tint {
  background-color: var(--bg-tint);
}

/* Header & Navbar - Sticky White */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 10px rgba(22, 136, 232, 0.05);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-img {
  height: 44px;
  width: auto;
}

.brand-title {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--brand-blue);
  letter-spacing: -0.02em;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Navigation Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-link {
  padding: 8px 14px;
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--brand-blue);
  background-color: var(--bg-tint);
}

.nav-link.active {
  color: var(--brand-blue);
  font-weight: 600;
  background-color: var(--brand-blue-subtle);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle-btn {
  display: none;
  background: var(--bg-tint);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 1.25rem;
  color: var(--brand-blue);
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 11px 22px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  line-height: 1.2;
}

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

.btn-primary:hover {
  background-color: var(--brand-blue-hover);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(22, 136, 232, 0.28);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--bg-tint);
  color: var(--brand-blue);
  border-color: var(--brand-blue-border);
}

.btn-secondary:hover {
  background-color: #E2F0FD;
  color: var(--brand-blue-hover);
  border-color: var(--brand-blue);
}

.btn-outline {
  background-color: #FFFFFF;
  color: var(--brand-blue);
  border-color: var(--brand-blue);
}

.btn-outline:hover {
  background-color: var(--brand-blue-subtle);
  color: var(--brand-blue-hover);
}

.btn-donate-warm {
  background-color: var(--accent-gold);
  color: #FFFFFF;
  border-color: var(--accent-gold);
}

.btn-donate-warm:hover {
  background-color: var(--accent-gold-hover);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.28);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 7px 15px;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.08rem;
  border-radius: var(--radius-lg);
}

/* Section Header Component */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px auto;
}

.section-tag {
  display: inline-block;
  background-color: var(--bg-tint);
  color: var(--brand-blue);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  border: 1px solid var(--brand-blue-border);
}

.section-header h2 {
  margin-bottom: 14px;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(180deg, #FFFFFF 0%, #F4F9FD 60%, #EEF7FF 100%);
  padding: 64px 0 76px 0;
  border-bottom: 1px solid var(--border-light);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.hero-content h1 {
  color: var(--text-main);
  margin-bottom: 18px;
}

.hero-content h1 span {
  color: var(--brand-blue);
}

.hero-lead {
  font-size: 1.18rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.hero-badge-item span.icon {
  color: var(--brand-blue);
  font-size: 1.1rem;
}

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

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

.hero-card-illustration {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 480px;
}

/* Feature & Action Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.cards-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 22px;
}

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--brand-blue-border);
}

.card-icon-box {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background-color: var(--bg-tint);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
  border: 1px solid var(--brand-blue-border);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-main);
}

.card-text {
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Banner / CTA Strip */
.cta-banner {
  background: linear-gradient(135deg, #F4F9FD 0%, #EEF7FF 100%);
  border: 1px solid var(--brand-blue-border);
  border-radius: var(--radius-xl);
  padding: 44px 36px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.cta-banner h2 {
  color: var(--text-main);
  margin-bottom: 12px;
}

.cta-banner p {
  max-width: 680px;
  margin: 0 auto 26px auto;
  font-size: 1.1rem;
}

/* Learning Portal Layout */
.learning-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.learning-cat-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.learning-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--brand-blue);
}

.learning-cat-card .badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--bg-tint);
  color: var(--brand-blue);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

/* Interactive Interactive Viewer for A-Z / Hindi / Numbers */
.lesson-stage {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-md);
  margin-bottom: 36px;
}

.lesson-screen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  min-height: 380px;
}

.lesson-visual-card {
  background: var(--bg-subtle);
  border: 2px dashed var(--brand-blue-border);
  border-radius: var(--radius-lg);
  height: 100%;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.lesson-char-big {
  font-size: clamp(5rem, 8vw, 7.5rem);
  font-weight: 900;
  color: var(--brand-blue);
  line-height: 1;
  margin-bottom: 8px;
}

.lesson-emoji-big {
  font-size: clamp(4rem, 6vw, 6rem);
  line-height: 1.1;
  margin-bottom: 12px;
}

.lesson-info-box h2 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: var(--text-main);
}

.phonetic-tag {
  display: inline-block;
  background: var(--bg-tint);
  color: var(--brand-blue);
  font-size: 1rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  border: 1px solid var(--brand-blue-border);
}

.lesson-example-sentence {
  background: var(--bg-secondary);
  border-left: 4px solid var(--brand-blue);
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 18px 0;
  font-size: 1.05rem;
  color: var(--text-main);
}

.lesson-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

/* Quick Letter/Item Grid */
.alphabet-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(46px, 1fr));
  gap: 8px;
  margin-top: 24px;
}

.letter-btn {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  height: 48px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.letter-btn:hover {
  background: var(--bg-tint);
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.letter-btn.active {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(22, 136, 232, 0.35);
}

/* Canvas Draw Area for Arts */
.drawing-app-container {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.canvas-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-light);
}

.color-swatch-list {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.color-swatch-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 0 1px var(--border-light);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.color-swatch-btn.active {
  transform: scale(1.15);
  box-shadow: 0 0 0 2px var(--brand-blue);
}

.drawing-canvas-wrapper {
  background: #FFFFFF;
  border: 2px dashed var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  touch-action: none;
}

canvas#artCanvas {
  display: block;
  background-color: #FFFFFF;
  width: 100%;
  height: 460px;
  cursor: crosshair;
}

/* Games UI */
.game-card-screen {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
  margin-bottom: 30px;
}

.game-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-tint);
  border: 1px solid var(--brand-blue-border);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.hud-item {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hud-item span.val {
  color: var(--brand-blue);
  font-size: 1.2rem;
}

.memory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 580px;
  margin: 0 auto;
}

.memory-tile {
  background: var(--bg-tint);
  border: 2px solid var(--brand-blue-border);
  border-radius: var(--radius-md);
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast);
  user-select: none;
}

.memory-tile:hover {
  transform: scale(1.03);
  border-color: var(--brand-blue);
}

.memory-tile.flipped {
  background: #FFFFFF;
  border-color: var(--brand-blue);
}

.memory-tile.matched {
  background: var(--accent-green-bg);
  border-color: var(--accent-green);
  cursor: default;
}

/* Gallery & Lightbox */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.gallery-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.gallery-img-container {
  width: 100%;
  height: 220px;
  background-color: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.gallery-caption-box {
  padding: 16px 20px;
}

.gallery-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.gallery-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Clean Light Lightbox */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(23, 43, 58, 0.45);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.lightbox-card {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  max-width: 800px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-light);
}

.lightbox-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.lightbox-media {
  width: 100%;
  min-height: 380px;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-info {
  padding: 24px;
}

/* FAQ Accordion */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast);
}

.faq-item.active {
  border-color: var(--brand-blue-border);
}

.faq-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 24px;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-icon {
  font-size: 1.2rem;
  color: var(--brand-blue);
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-content {
  display: none;
  padding: 0 24px 22px 24px;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.faq-item.active .faq-content {
  display: block;
}

/* AdSlot Container - Transparent, Unobtrusive, Ethical */
.ad-slot-wrapper {
  margin: 36px auto;
  max-width: 780px;
  text-align: center;
}

.ad-slot-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 6px;
}

.ad-slot-box {
  background: var(--bg-subtle);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-md);
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  overflow: hidden;
}

/* Light Donation Modal */
.donation-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: rgba(23, 43, 58, 0.45);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.donation-modal-overlay.active {
  display: flex;
}

.donation-modal-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  max-width: 540px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  padding: 32px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--bg-tint);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--brand-blue);
  background: #FFFFFF;
  border-color: var(--brand-blue);
}

.donation-modal-header {
  margin-bottom: 20px;
}

.donation-modal-header h3 {
  color: var(--brand-blue);
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.amount-selector-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.amount-btn {
  flex: 1 1 calc(33.33% - 10px);
  min-width: 80px;
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.amount-btn:hover {
  border-color: var(--brand-blue);
  background: var(--bg-tint);
  color: var(--brand-blue);
}

.amount-btn.active {
  background: var(--brand-blue);
  color: #FFFFFF;
  border-color: var(--brand-blue);
  box-shadow: 0 2px 8px rgba(22, 136, 232, 0.3);
}

.custom-amount-wrapper {
  margin-bottom: 20px;
  position: relative;
}

.currency-prefix {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted);
}

.custom-amount-input {
  width: 100%;
  padding: 12px 14px 12px 34px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  outline: none;
  transition: border-color var(--transition-fast);
}

.custom-amount-input:focus {
  border-color: var(--brand-blue);
}

.qr-preview-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
  margin: 18px 0;
}

.qr-preview-img {
  width: 170px;
  height: 170px;
  object-fit: contain;
  margin: 0 auto 10px auto;
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  display: block;
}

.upi-id-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
  border: 1px dashed var(--brand-blue-border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-top: 10px;
}

.upi-text {
  font-family: monospace;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--brand-blue);
}

/* Forms */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.98rem;
  color: var(--text-main);
  background: #FFFFFF;
  outline: none;
  transition: border-color var(--transition-fast);
  font-family: inherit;
}

.form-control:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(22, 136, 232, 0.12);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* Light Footer — STRICT REQUIREMENT: NO DARK FOOTER */
.site-footer {
  margin-top: auto;
  background-color: #FFFFFF;
  border-top: 1px solid var(--border-light);
  padding: 64px 0 32px 0;
  color: var(--text-main);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 48px;
}

.footer-col h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.94rem;
  transition: color var(--transition-fast);
}

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

.footer-desc {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin-top: 12px;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-legal-links {
  display: flex;
  gap: 18px;
}

.footer-legal-links a {
  color: var(--text-muted);
}

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

/* Toast Message */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--brand-blue);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  transform: translateY(120%);
  opacity: 0;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* Mobile Navigation Drawer - STRICT WHITE DESIGN */
@media (max-width: 900px) {
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #FFFFFF;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 8px;
    border-top: 1px solid var(--border-light);
    display: none;
    overflow-y: auto;
    z-index: 999;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-link {
    width: 100%;
    padding: 12px 16px;
    font-size: 1.05rem;
  }

  .nav-toggle-btn {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

  .lesson-screen {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .footer-top-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .section {
    padding: 48px 0;
  }
}

/* Emotional Donation Card Image Style */
.card-image-header {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 18px;
  background-color: #F4FAFF;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.card-image-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.card:hover .card-image-header img {
  transform: scale(1.03);
}

/* Learning Player HUD & Controls */
.learning-player-hud {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.player-controls-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.player-main-btns {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.player-audio-toggles {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F4FAFF;
  border: 1px solid var(--brand-blue-border);
  color: var(--brand-blue);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.toggle-btn:hover {
  background: #EAF6FF;
}

.toggle-btn.off {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: #64748B;
}

/* Progress Bar */
.learning-progress-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.learning-progress-track {
  flex-grow: 1;
  height: 14px;
  background: #EAF6FF;
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
  border: 1px solid #C5E3FB;
}

.learning-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #1688E8, #45B5F5);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.learning-progress-text {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--brand-blue);
  min-width: 65px;
  text-align: right;
}

/* Companion Character */
.companion-bubble {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #FFFFFF 0%, #F4FAFF 100%);
  border: 1px solid var(--brand-blue-border);
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(22, 136, 232, 0.08);
  animation: companionBounce 4s ease-in-out infinite;
}

@keyframes companionBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.companion-avatar {
  font-size: 2.2rem;
  line-height: 1;
}

.companion-text-box {
  flex-grow: 1;
}

.companion-name {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-blue);
}

.companion-speech {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.35;
}

/* Completion Celebration Modal */
.completion-overlay {
  position: fixed;
  inset: 0;
  z-index: 3500;
  background: rgba(23, 43, 58, 0.5);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.completion-overlay.active {
  display: flex;
}

.completion-card {
  background: #FFFFFF;
  border: 2px solid var(--brand-blue-border);
  border-radius: var(--radius-xl);
  max-width: 500px;
  width: 100%;
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: popIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.completion-badge-icon {
  font-size: 4.8rem;
  margin-bottom: 12px;
  display: inline-block;
  animation: floatBadge 2s ease-in-out infinite;
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(4deg); }
}

/* Solar System Animation Arena */
.solar-system-arena {
  background: #F4FAFF;
  border: 1px solid var(--brand-blue-border);
  border-radius: var(--radius-xl);
  padding: 30px 20px;
  position: relative;
  overflow: hidden;
  text-align: center;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.solar-system-center {
  position: absolute;
  width: 76px;
  height: 76px;
  background: radial-gradient(circle, #FDE047 30%, #F59E0B 70%, #EA580C 100%);
  border-radius: 50%;
  box-shadow: 0 0 35px #FBBF24, 0 0 60px rgba(245, 158, 11, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  z-index: 10;
  cursor: pointer;
  animation: sunGlow 3s ease-in-out infinite alternate;
}

@keyframes sunGlow {
  from { transform: scale(0.96); box-shadow: 0 0 25px #FBBF24; }
  to { transform: scale(1.04); box-shadow: 0 0 45px #F59E0B; }
}

.orbit-ring {
  position: absolute;
  border: 1.5px dashed #C5E3FB;
  border-radius: 50%;
  pointer-events: none;
}

.planet-node {
  position: absolute;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.72rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  pointer-events: auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.planet-node:hover {
  transform: scale(1.35) !important;
  box-shadow: 0 4px 14px rgba(22, 136, 232, 0.4);
  z-index: 20;
}

/* Multiplication Table Box */
.table-play-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.table-play-card.active-table {
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-md);
  background: #F4FAFF;
}

.table-step-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.table-step-row.highlight {
  background: #EEF7FF;
  color: var(--brand-blue);
  border-left: 4px solid var(--brand-blue);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

/* Footer Visitor Badge */
.footer-visitor-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #F4FAFF;
  border: 1px solid var(--brand-blue-border);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.beacon-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #10B981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseBeacon 2s infinite;
}

@keyframes pulseBeacon {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

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

