/* ============================================================
   SkyLift Home Based Tuition Centre — styles.css v2.0
   Fully Modernised · Responsive · Production-Ready
   ============================================================ */

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 16px; }

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  --green-50:  #f0fdf4;
  --green-100: #dcfce7;
  --green-200: #bbf7d0;
  --green-400: #4ade80;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #a7ddbb;
  --green-800: #a1ecbe;
  --green-900: #95ddb2;
  --green-400: #8adfad;

  --primary:   #10b981;
  --secondary: #059669;
  --accent:    #34d399;
  --dark:      #1a40e6;
  --light:     #f0fdf4;

  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;

  --white: #ffffff;
  --text:  #1f2937;

  --gradient-brand: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --gradient-hero:  linear-gradient(135deg, #064e3b 0%, #10b981 65%, #34d399 100%);
  --gradient-card:  linear-gradient(145deg, #f0fdf4, #dcfce7);

  --shadow-xs: 0 1px 3px rgba(0,0,0,.06);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.14);
  --shadow-xl: 0 24px 60px rgba(0,0,0,.18);
  --shadow-green: 0 8px 30px rgba(16,185,129,.30);
  --shadow-green-lg: 0 16px 48px rgba(16,185,129,.35);

  --font-heading: 'Merriweather', Georgia, serif;
  --font-body:    'Poppins', system-ui, sans-serif;

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   18px;
  --radius-xl:   24px;
  --radius-pill: 9999px;

  --nav-h: 70px;
  --sidebar-w: 260px;
  --max-w: 1400px;

  --dur: .28s;
  --ease: cubic-bezier(.22,1,.36,1);
}

/* ── Base Typography ──────────────────────────────────────── */
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--gray-50);
}
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.25; }

/* ── Layout ───────────────────────────────────────────────── */
section { padding: 5rem 2rem; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-title  { font-size: clamp(1.75rem, 3vw + .75rem, 2.5rem); color: var(--dark); margin-bottom: .75rem; }
.section-header > p { font-size: 1.05rem; color: var(--gray-500); max-width: 55ch; margin-inline: auto; }
.section-tag {
  display: inline-block;
  background: var(--green-100);
  color: var(--secondary);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

/* ── NAVIGATION ───────────────────────────────────────────── */
nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  background: rgba(255,255,255,.93);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-xs);
  z-index: 1000;
  transition: box-shadow var(--dur) var(--ease);
}
nav.scrolled { box-shadow: var(--shadow-md); }

.nav-container {
  max-width: var(--max-w);
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 2rem;
  gap: 1.5rem;
}

/* Logo */
.logo { display: flex; align-items: center; gap: .9rem; flex-shrink: 0; }
.logo-img { width: 42px; height: 42px; object-fit: contain; border-radius: 8px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-main { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 900; color: var(--primary); }
.logo-sub  { font-size: .62rem; color: var(--gray-500); font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }

/* Links */
.nav-links { display: flex; align-items: center; gap: 2rem; flex: 1; justify-content: center; }
.nav-links a {
  font-size: .88rem; font-weight: 500; color: var(--gray-700);
  position: relative; padding-block: .25rem;
  transition: color var(--dur);
}
.nav-links a::after {
  content: ''; position: absolute; inset-block-end: 0; inset-inline-start: 0;
  width: 0; height: 2px; background: var(--primary); border-radius: var(--radius-pill);
  transition: width var(--dur) var(--ease);
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }

/* Actions */
.nav-actions { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.nav-link-btn {
  font-size: .82rem; font-weight: 600; color: var(--primary);
  padding: .45rem 1rem; border: 1.5px solid var(--primary); border-radius: var(--radius-sm);
  transition: background var(--dur), color var(--dur);
}
.nav-link-btn:hover { background: var(--primary); color: var(--white); }
.nav-cta {
  font-size: .82rem; font-weight: 600;
  background: var(--gradient-brand); color: var(--white);
  padding: .5rem 1.2rem; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-green);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-green-lg); }

/* Mobile toggle */
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 6px; background: none; border: none; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: var(--radius-pill); transition: transform var(--dur), opacity var(--dur); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO SLIDER ───────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  background: 
    /*linear-gradient(135deg, rgba(190, 182, 190, 0.9) 0%, rgba(204, 191, 199, 0.82) 100%),*/
    url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?w=1920') center/cover;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slide:nth-child(2) {
  background: 
    /*linear-gradient(135deg, rgba(231, 129, 226, 0.88) 0%, rgba(221, 124, 224, 0.85) 100%),*/
    url('https://images.unsplash.com/photo-1503676260728-1c00da094a0b?w=1920') center/cover;
}

.hero-slide:nth-child(3) {
  background: 
   /* linear-gradient(135deg, rgba(241, 112, 192, 0.9) 0%, rgba(240, 105, 195, 0.8) 100%),*/
    url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?w=1920') center/cover;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-text {
  max-width: 900px;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: #1a40e6;
  margin-bottom: 1.5rem;
  line-height: 1.15;
  font-weight: 900;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: #f859c3;
  margin-bottom: 2.5rem;
  font-weight: 500;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-buttons {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-hero-primary, .btn-hero-secondary {
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--dur) var(--ease);
  display: inline-block;
}

.btn-hero-primary {
  background: var(--white);
  color: #f59e0b;
  box-shadow: 0 4px 14px rgba(255,255,255,0.3);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255,255,255,0.4);
  background: var(--accent);
  color: var(--white);
}

.btn-hero-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-hero-secondary:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
}

/* Slider Controls */
.hero-slider-controls {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  z-index: 10;
}

.slider-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--dur);
  padding: 0;
}

.slider-dot:hover {
  background: rgba(255,255,255,0.7);
}

.slider-dot.active {
  background: var(--white);
  border-color: var(--accent);
  width: 40px;
  border-radius: var(--radius-pill);
}

/* Stats Section */
.stats-section {
  padding: 3rem 2rem;
  background: var(--white);
}

.stats-container {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 2rem 1rem;
}

.stat-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--primary);
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.stat-item p {
  color: var(--gray-600);
  font-size: 0.95rem;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Hero Right — Stats + Visual */
.hero-right { display: flex; flex-direction: column; gap: 1.5rem; }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.stat-box {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.2);
  padding: 1.5rem 1rem; border-radius: var(--radius-lg); text-align: center;
  transition: background var(--dur), transform var(--dur) var(--ease);
}
.stat-box:hover { background: rgba(255,255,255,.2); transform: translateY(-4px); }
.stat-box h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--white); margin-bottom: .3rem; letter-spacing: -.03em; }
.stat-box p  { font-size: .82rem; color: rgba(255,255,255,.82); line-height: 1.4; }

/* Feature badges in hero */
.hero-badges { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-badge {
  display: flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.12); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.18);
  padding: .55rem 1rem; border-radius: var(--radius-pill);
  font-size: .82rem; font-weight: 500; color: rgba(255,255,255,.9);
}
.hero-badge span { font-size: 1rem; }

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .875rem 2rem; border-radius: var(--radius-md);
  font-size: .95rem; font-weight: 600; border: 2px solid transparent;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur), background var(--dur), color var(--dur);
  white-space: nowrap; cursor: pointer;
}
.btn-primary {
  background: var(--white); color: var(--primary);
  box-shadow: 0 4px 20px rgba(255,255,255,.25);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(255,255,255,.35); }
.btn-secondary {
  background: transparent; color: var(--white); border-color: rgba(255,255,255,.7);
}
.btn-secondary:hover { background: var(--white); color: var(--primary); border-color: var(--white); transform: translateY(-3px); }

/* Green solid variant (used outside hero) */
.btn-green {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.75rem; border-radius: var(--radius-md);
  background: var(--gradient-brand); color: var(--white);
  font-size: .9rem; font-weight: 600; border: none;
  box-shadow: var(--shadow-green);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur);
  cursor: pointer;
}
.btn-green:hover { transform: translateY(-2px); box-shadow: var(--shadow-green-lg); }

.btn-outline {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .6rem 1.3rem; border-radius: var(--radius-md);
  border: 1.5px solid var(--primary); color: var(--primary);
  font-size: .87rem; font-weight: 600; background: transparent;
  transition: background var(--dur), color var(--dur);
  cursor: pointer;
}
.btn-outline:hover { background: var(--primary); color: var(--white); }

.btn-danger {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .65rem 1.3rem; border-radius: var(--radius-md);
  background: #fee2e2; color: #dc2626;
  border: 1.5px solid #fecaca; font-size: .87rem; font-weight: 600;
  transition: background var(--dur), color var(--dur);
  cursor: pointer;
}
.btn-danger:hover { background: #dc2626; color: var(--white); border-color: #dc2626; }

/* ── ABOUT SECTION WITH IMAGE ────────────────────────────── */
.about-section-with-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 5rem 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
  align-items: center;
}

.about-image-container {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--dur) var(--ease);
}

.about-img:hover {
  transform: scale(1.05);
}

.about-text-container {
  padding: 2rem;
}

.about-text-container h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--dark);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.about-text-container p {
  font-size: 1.05rem;
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* ── LEARNING MODES SECTION ──────────────────────────────── */
.learning-modes {
  padding: 5rem 2rem;
  background: var(--gray-50);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.learning-mode-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur);
}

.learning-mode-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.mode-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.mode-content {
  padding: 2rem;
  text-align: center;
}

.mode-content h3 {
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: 1rem;
}

.mode-content p {
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.btn-mode {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--dur) var(--ease);
}

.btn-mode:hover {
  background: var(--secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ── COUNTER SECTION ─────────────────────────────────────── */
.counter-section {
  padding: 4rem 2rem;
  background: var(--gradient-brand);
  color: var(--white);
}

.counter-container {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  text-align: center;
}

.counter-item {
  padding: 1rem;
}

.counter-number {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.counter-item p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.95);
  font-weight: 500;
}

/* ── SUBJECTS ──────────────────────────────────────────────── */
.subjects { background: var(--white); }

/* Curricula pills */
.curricula-list {
  max-width: var(--max-w); margin-inline: auto;
  display: flex; flex-wrap: wrap; gap: .65rem;
  justify-content: center; margin-bottom: 2.5rem;
}
.curriculum-pill {
  background: linear-gradient(135deg, #0f1923, #1a2535);
  color: var(--white); font-size: .8rem; font-weight: 600;
  padding: .45rem 1.1rem; border-radius: var(--radius-pill);
  border: 1.5px solid var(--primary); letter-spacing: .03em;
  white-space: nowrap;
}

/* Subject level label */
.subject-level {
  display: inline-block;
  background: var(--primary); color: var(--white);
  font-size: .72rem; font-weight: 700;
  padding: .2rem .65rem; border-radius: var(--radius-pill);
  margin-bottom: .5rem !important; letter-spacing: .04em;
  text-transform: uppercase;
}

.subjects-grid {
  max-width: var(--max-w); margin-inline: auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.5rem;
}
.subject-card {
  background: var(--green-50); padding: 2rem; border-radius: var(--radius-xl);
  border: 2px solid transparent; display: flex; flex-direction: column;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur), border-color var(--dur);
  position: relative; overflow: hidden;
}
.subject-card::before {
  content: ''; position: absolute; inset: 0; opacity: 0;
  background: linear-gradient(145deg, rgba(16,185,129,.04), rgba(5,150,105,.08));
  transition: opacity var(--dur);
  pointer-events: none; /* Allow clicks to pass through */
}
.subject-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-green); border-color: var(--primary); }
.subject-card:hover::before { opacity: 1; }
.subject-icon { font-size: 2.5rem; margin-bottom: 1rem; line-height: 1; }
.subject-card h3 { font-size: 1.25rem; color: #0f1923; margin-bottom: .4rem; }
.subject-card > p { color: var(--gray-500); font-size: .9rem; margin-bottom: 1rem; flex: 1; }
.subject-features { margin-bottom: 1.5rem; }
.subject-features li { position: relative; padding-inline-start: 1.5rem; padding-block: .25rem; font-size: .88rem; color: var(--gray-700); }
.subject-features li::before { content: '✓'; position: absolute; inset-inline-start: 0; color: var(--primary); font-weight: 700; }

.btn-select-subject {
  width: 100%; padding: .75rem; background: var(--primary); color: var(--white);
  border: none; border-radius: var(--radius-sm); font-size: .9rem; font-weight: 600; margin-top: auto;
  transition: background var(--dur), transform var(--dur) var(--ease);
  cursor: pointer;
  position: relative;
  z-index: 1;
}
.btn-select-subject:hover { background: var(--secondary); transform: translateY(-1px); }
.btn-select-subject.selected { background: var(--dark); }

.selected-subjects-area {
  max-width: 820px; margin: 2.5rem auto 0; padding: 2rem;
  background: var(--green-50); border-radius: var(--radius-xl);
  border: 1.5px solid var(--green-200);
}
.selected-subjects-area h3 { margin-bottom: 1rem; color: var(--dark); }
.selected-subjects-list { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.5rem; }
.selected-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--primary); color: var(--white);
  padding: .35rem .85rem; border-radius: var(--radius-pill); font-size: .82rem; font-weight: 500;
}
.selected-badge button { background: none; border: none; color: var(--white); font-size: 1.1rem; line-height: 1; opacity: .75; transition: opacity var(--dur); }
.selected-badge button:hover { opacity: 1; }

/* ── ABOUT / FEATURES ─────────────────────────────────────── */
.about { background: var(--gray-50); }
.features-grid {
  max-width: var(--max-w); margin-inline: auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem;
}
.feature-card {
  background: var(--white); padding: 2rem; border-radius: var(--radius-xl);
  text-align: center; border: 1px solid var(--gray-200); box-shadow: var(--shadow-xs);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur), border-color var(--dur);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--green-200); }
.feature-icon-wrap {
  width: 64px; height: 64px; background: var(--green-100);
  border-radius: var(--radius-lg); display: grid; place-items: center;
  font-size: 1.75rem; margin: 0 auto 1.25rem;
}
.feature-card h3 { font-size: 1.05rem; color: var(--dark); margin-bottom: .5rem; }
.feature-card p  { font-size: .88rem; color: var(--gray-500); line-height: 1.65; }

/* ── TESTIMONIALS ─────────────────────────────────────────── */
.testimonials { background: var(--white); }
.testimonials-grid {
  max-width: var(--max-w); margin-inline: auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem;
}
.testimonial-card {
  background: var(--green-50); border-radius: var(--radius-xl);
  padding: 2rem; border: 1.5px solid var(--green-100);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testi-stars { color: #f59e0b; font-size: 1rem; letter-spacing: 2px; margin-bottom: 1rem; }
.testi-text  { font-size: .92rem; color: var(--gray-700); line-height: 1.7; margin-bottom: 1.5rem; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: .75rem; }
.testi-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gradient-brand); display: grid; place-items: center;
  color: var(--white); font-weight: 700; font-size: .9rem; flex-shrink: 0;
}
.testi-name { font-size: .9rem; font-weight: 600; color: var(--dark); }
.testi-grade { font-size: .78rem; color: var(--gray-500); }

/* ── CONTACT ───────────────────────────────────────────────── */
.contact { background: var(--white); }
.contact-container {
  max-width: var(--max-w); margin-inline: auto;
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 3rem; align-items: start;
}
.contact-info h3 { font-size: 1.7rem; color: var(--dark); margin-bottom: .6rem; }
.contact-info > p { font-size: .95rem; color: var(--gray-500); max-width: 38ch; line-height: 1.7; }
.contact-details { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-icon {
  width: 48px; height: 48px; background: var(--green-100); border-radius: var(--radius-md);
  display: grid; place-items: center; font-size: 1.4rem; flex-shrink: 0;
}
.contact-item-text h4 { font-size: .9rem; color: var(--dark); margin-bottom: .2rem; }
.contact-item-text p  { font-size: .85rem; color: var(--gray-500); }

.contact-form {
  background: var(--green-50); padding: 2.5rem; border-radius: var(--radius-xl);
  border: 1.5px solid var(--green-100);
}
.contact-form h3 { font-size: 1.4rem; color: var(--dark); margin-bottom: .4rem; }
.form-note { font-size: .85rem; color: var(--gray-500); margin-bottom: 1.75rem; }

.form-group { margin-bottom: 1.35rem; }
.form-group label { display: block; margin-bottom: .4rem; font-size: .85rem; font-weight: 600; color: var(--dark); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: .75rem 1rem;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  font-size: .9rem; color: var(--text); background: var(--white);
  -webkit-appearance: none; appearance: none;
  transition: border-color var(--dur), box-shadow var(--dur);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16,185,129,.12);
}
.form-group textarea { resize: vertical; min-height: 90px; }

/* File input styling */
.form-group input[type="file"] {
  padding: .6rem .75rem;
  font-size: .875rem;
  cursor: pointer;
  border: 2px dashed var(--gray-200);
  background: var(--green-50);
  transition: border-color var(--dur), background var(--dur);
}
.form-group input[type="file"]:hover {
  border-color: var(--primary);
  background: var(--white);
}
.form-group input[type="file"]:focus {
  border-style: solid;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(16,185,129,.12);
}
.form-group input[type="file"]::file-selector-button {
  padding: .4rem .9rem;
  margin-right: .75rem;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--dur);
}
.form-group input[type="file"]::file-selector-button:hover {
  background: var(--secondary);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.subjects-display {
  padding: .75rem 1rem; background: var(--white);
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  min-height: 54px; font-size: .88rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
}
.text-muted { color: var(--gray-400); }

.btn-submit {
  width: 100%; padding: .95rem; background: var(--gradient-brand); color: var(--white);
  border: none; border-radius: var(--radius-sm); font-size: .95rem; font-weight: 600;
  letter-spacing: .02em; box-shadow: var(--shadow-green);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur);
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: var(--shadow-green-lg); }
.form-footer { text-align: center; color: var(--gray-500); font-size: .8rem; margin-top: 1rem; }

/* ── FOOTER ────────────────────────────────────────────────── */
/* ── FLOATING ACTION BUTTONS ───────────────────────────────── */
.fab-group {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}
.fab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 4px 18px rgba(0,0,0,0.25);
  transition: transform .22s ease, box-shadow .22s ease;
  white-space: nowrap;
}
.fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.3);
  color: #fff;
}
.fab-enroll {
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  box-shadow: 0 4px 18px rgba(245,158,11,0.45);
  animation: enrollPulse 2.2s ease-in-out infinite;
}
.fab-enroll:hover { box-shadow: 0 8px 28px rgba(245,158,11,0.6); }
.fab-whatsapp {
  background: #25D366;
  box-shadow: 0 4px 18px rgba(37,211,102,0.4);
}
.fab-whatsapp:hover { box-shadow: 0 8px 28px rgba(37,211,102,0.55); }
@keyframes enrollPulse {
  0%, 100% { box-shadow: 0 4px 18px rgba(245,158,11,0.45); }
  50%       { box-shadow: 0 4px 28px rgba(245,158,11,0.75); }
}
.hero-info-bar {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-pill);
  padding: .5rem 1.5rem;
  margin-bottom: 1.5rem;
  font-size: .88rem;
  font-weight: 500;
  color: rgba(255,255,255,.95);
}
.hero-info-item {
  display: flex;
  align-items: center;
  gap: .4rem;
}
.hero-info-divider {
  color: rgba(255,255,255,.4);
  font-size: 1rem;
}

footer { background: linear-gradient(135deg, #0f1923 0%, #1a2535 60%, #0d1f2d 100%); color: var(--white); padding: 4rem 2rem 1.5rem; border-top: 3px solid var(--primary); }
.footer-content {
  max-width: var(--max-w); margin-inline: auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.1);
  align-items: start;
}

/* Footer Left */
.footer-left { display: flex; flex-direction: column; gap: 1.25rem; }
.footer-logo { margin-bottom: .25rem; }
.footer-logo .logo-main { color: var(--accent); }
.footer-logo .logo-sub  { color: rgba(255,255,255,.5); }
.footer-tagline { font-size: .9rem; color: rgba(255,255,255,.55); font-style: italic; }

.footer-social-icons {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-wrap: wrap;
  margin-top: .25rem;
}
.social-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  display: grid; place-items: center;
  color: rgba(255,255,255,.7);
  transition: background var(--dur), color var(--dur), transform var(--dur) var(--ease), border-color var(--dur);
  flex-shrink: 0;
}
.social-icon:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}
.social-icon-wa:hover { background: #25D366; border-color: #25D366; }

/* Footer Right */
.footer-right { padding-top: .5rem; }
.footer-right-title {
  font-size: 1.1rem; color: var(--white);
  margin-bottom: 1.75rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}
.footer-contact-list { display: flex; flex-direction: column; gap: 1.1rem; }
.footer-contact-row { display: grid; grid-template-columns: 100px 1fr; gap: .75rem; align-items: start; }
.footer-contact-label {
  font-size: .75rem; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: .06em;
  padding-top: .1rem;
}
.footer-contact-value {
  font-size: .88rem; color: rgba(255,255,255,.72); line-height: 1.7;
}
.footer-contact-value a { color: rgba(255,255,255,.72); transition: color var(--dur); }
.footer-contact-value a:hover { color: var(--accent); }

.footer-bottom {
  max-width: var(--max-w); margin-inline: auto;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 1rem; padding-top: 1.5rem;
  font-size: .82rem; color: rgba(255,255,255,.45);
  border-top: 1px solid rgba(16,185,129,.2);
}
.footer-bottom a { color: rgba(255,255,255,.55); transition: color var(--dur); }
.footer-bottom a:hover { color: var(--accent); }

/* ── AUTH SCREENS ──────────────────────────────────────────── */
.auth-container {
  min-height: 100vh; display: grid; place-items: center;
  background: var(--gradient-hero); padding: 2rem;
  position: relative; overflow: hidden;
}
.auth-container::before {
  content: ''; position: absolute; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,.07) 0%, transparent 70%);
  top: -100px; right: -100px; border-radius: 50%; pointer-events: none;
}
.auth-box {
  background: var(--white); padding: 2.75rem; border-radius: var(--radius-xl);
  width: 100%; max-width: 420px; box-shadow: var(--shadow-xl); position: relative; z-index: 1;
}
.auth-logo { width: 80px; height: 80px; object-fit: contain; border-radius: 14px; margin: 0 auto 1.5rem; display: block; }
.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-header h1 { color: var(--primary); font-size: 1.6rem; margin-bottom: .25rem; }
.auth-header h2 { font-size: 1rem; color: var(--gray-700); font-family: var(--font-body); font-weight: 600; margin-bottom: .25rem; }
.auth-header p  { font-size: .85rem; color: var(--gray-400); }

.auth-form .form-group { margin-bottom: 1.25rem; }
.auth-form input[type="text"],
.auth-form input[type="password"] {
  width: 100%; padding: .8rem 1rem;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  font-size: .9rem; background: var(--gray-50);
  transition: border-color var(--dur), box-shadow var(--dur);
}
.auth-form input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(16,185,129,.12); background: var(--white); }
.auth-back { 
  display: inline-flex; 
  align-items: center; 
  gap: .4rem; 
  font-size: .85rem; 
  color: var(--gray-500); 
  margin-top: 1rem;
  transition: color var(--dur);
  text-decoration: none;
}
.auth-back:hover { color: var(--primary); }

/* ── DASHBOARD LAYOUT ─────────────────────────────────────── */
.dashboard { display: flex; min-height: 100vh; background: var(--gray-50); }

/* Sidebar */
.sidebar {
  width: var(--sidebar-w); background: var(--white);
  border-right: 1px solid var(--gray-200);
  position: fixed; inset-block: 0; inset-inline-start: 0;
  display: flex; flex-direction: column; overflow-y: auto; z-index: 200;
  transition: transform var(--dur) var(--ease);
  transform: translateX(0); /* Visible by default on desktop */
}
.sidebar-header {
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid var(--gray-200);
  text-align: center; flex-shrink: 0;
  background: var(--green-50);
}
.sidebar-logo { width: 52px; height: 52px; border-radius: 10px; margin: 0 auto .6rem; box-shadow: var(--shadow-sm); }
.sidebar-header h2 { font-size: .95rem; color: var(--primary); margin-bottom: .2rem; font-weight: 700; }
.sidebar-header small { font-size: .7rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: .06em; display: block; }

/* Sidebar nav */
.sidebar-nav { flex: 1; padding: 1rem 0; overflow-y: auto; }
.nav-section-label {
  font-size: .67rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gray-400);
  padding: .9rem 1.25rem .4rem; margin-top: .5rem;
}
.nav-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .7rem 1.25rem; color: var(--gray-700);
  font-size: .875rem; font-weight: 500;
  border-left: 3px solid transparent; cursor: pointer;
  transition: background var(--dur), color var(--dur), border-color var(--dur);
  text-decoration: none;
}
.nav-item:hover  { background: var(--green-50); color: var(--primary); }
.nav-item.active { background: rgba(16,185,129,.08); color: var(--primary); border-left-color: var(--primary); font-weight: 600; }
.nav-icon { font-size: 1rem; flex-shrink: 0; width: 20px; text-align: center; }
.nav-badge {
  margin-inline-start: auto; background: var(--primary); color: var(--white);
  font-size: .65rem; font-weight: 700; padding: .15rem .5rem; border-radius: var(--radius-pill);
}

.sidebar-footer { padding: 1rem 1.25rem; border-top: 1px solid var(--gray-100); flex-shrink: 0; }
.user-pill {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem; background: var(--green-50); border-radius: var(--radius-md);
  border: 1px solid var(--green-100);
}
.user-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gradient-brand); display: grid; place-items: center;
  color: var(--white); font-size: .85rem; font-weight: 700; flex-shrink: 0;
}
.user-info { flex: 1; min-width: 0; }
.user-name  { font-size: .83rem; font-weight: 600; color: var(--dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role  { font-size: .7rem; color: var(--gray-400); }

/* Main content */
.main-content {
  margin-inline-start: var(--sidebar-w); flex: 1;
  display: flex; flex-direction: column; min-height: 100vh;
}
.dashboard-header {
  background: var(--white); padding: 1rem 2rem;
  border-bottom: 1px solid var(--gray-200);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  position: sticky; top: 0; z-index: 100; min-height: 64px;
}
.dashboard-header h1 { font-size: 1.25rem; color: var(--dark); }

/* Hide sidebar toggle on desktop */
.dashboard-header .nav-toggle {
  display: none !important;
}

.header-right { display: flex; align-items: center; gap: 1rem; }
.header-name { font-weight: 600; color: var(--primary); font-size: .9rem; }

.content-area { padding: 2rem; flex: 1; }
.page-content { animation: pageIn .3s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ── Dashboard Cards ──────────────────────────────────────── */
.dashboard-card {
  background: var(--white); padding: 1.75rem; border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200); box-shadow: var(--shadow-xs);
  margin-bottom: 1.5rem;
  transition: box-shadow var(--dur);
}
.dashboard-card:hover { box-shadow: var(--shadow-sm); }
.dashboard-card h2 { font-size: 1.25rem; color: var(--dark); margin-bottom: 1.25rem; padding-bottom: .75rem; border-bottom: 1px solid var(--gray-100); }
.dashboard-card h3 { font-size: 1rem; color: var(--dark); margin-bottom: .5rem; }
.dashboard-card p  { font-size: .9rem; color: var(--gray-500); }

/* Stat row */
.stats-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.25rem;
  margin-bottom: 2rem;
}
.stat-mini {
  background: var(--white); padding: 1.5rem; border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200); box-shadow: var(--shadow-xs);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur);
}
.stat-mini:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-mini .stat-icon { font-size: 1.75rem; margin-bottom: .6rem; }
.stat-mini .stat-num  { font-size: 1.75rem; font-weight: 700; color: var(--primary); font-family: var(--font-heading); letter-spacing: -.02em; }
.stat-mini .stat-lbl  { font-size: .78rem; color: var(--gray-500); margin-top: .2rem; }
.stat-mini.accent-red   .stat-num { color: #ef4444; }
.stat-mini.accent-blue  .stat-num { color: #3b82f6; }
.stat-mini.accent-amber .stat-num { color: #f59e0b; }

/* Table styles */
.data-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.data-table th { text-align: left; padding: .75rem 1rem; background: var(--green-50); color: var(--dark); font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; border-bottom: 2px solid var(--green-100); }
.data-table td { padding: .8rem 1rem; border-bottom: 1px solid var(--gray-100); color: var(--gray-700); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--green-50); }
.table-wrapper { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--gray-200); }

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .2rem .7rem; border-radius: var(--radius-pill);
  font-size: .72rem; font-weight: 600;
}
.badge-green  { background: var(--green-100); color: var(--green-700); }
.badge-yellow { background: #fef3c7; color: #b45309; }
.badge-red    { background: #fee2e2; color: #dc2626; }
.badge-blue   { background: #dbeafe; color: #1d4ed8; }
.badge-gray   { background: var(--gray-100); color: var(--gray-500); }

/* Cards grid */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.card {
  background: var(--white); border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200); box-shadow: var(--shadow-xs); overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-header { padding: 1.25rem; background: var(--green-50); border-bottom: 1px solid var(--green-100); }
.card-body    { padding: 1.25rem; }
.card-footer  { padding: 1rem 1.25rem; border-top: 1px solid var(--gray-100); display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; }

/* File attachment displays */
.file-attachment {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem; background: var(--green-50); border-radius: var(--radius-md);
  border: 1px solid var(--green-100); margin-top: .75rem;
}
.file-attachment-icon {
  width: 36px; height: 36px;
  background: var(--primary); color: var(--white);
  border-radius: var(--radius-sm); display: grid; place-items: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.file-attachment-info { flex: 1; min-width: 0; }
.file-attachment-name { font-size: .88rem; font-weight: 600; color: var(--dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-attachment-meta { font-size: .75rem; color: var(--gray-500); margin-top: .1rem; }

/* Empty state */
.empty-state { text-align: center; padding: 3rem 2rem; }
.empty-icon  { font-size: 3rem; margin-bottom: 1rem; opacity: .5; }
.empty-state h3 { font-size: 1.1rem; color: var(--gray-700); margin-bottom: .5rem; }
.empty-state p  { font-size: .9rem; color: var(--gray-400); }

/* Notification / toast */
.toast {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 9999;
  background: var(--dark); color: var(--white);
  padding: 1rem 1.5rem; border-radius: var(--radius-md); font-size: .9rem;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: .75rem;
  transform: translateY(100px); opacity: 0;
  transition: transform .4s var(--ease), opacity .4s;
  max-width: 380px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-success { border-left: 4px solid var(--primary); }
.toast-error   { border-left: 4px solid #ef4444; }

/* Message area */
.messages-area { max-height: 380px; overflow-y: auto; display: flex; flex-direction: column; gap: .75rem; padding: 1rem; }
.message-bubble {
  max-width: 75%; padding: .75rem 1rem; border-radius: var(--radius-lg); font-size: .88rem; line-height: 1.55;
}
.message-bubble.sent     { background: var(--primary); color: var(--white); align-self: flex-end; border-bottom-right-radius: 4px; }
.message-bubble.received { background: var(--gray-100); color: var(--text); align-self: flex-start; border-bottom-left-radius: 4px; }
.message-bubble .msg-time { font-size: .7rem; opacity: .65; margin-top: .3rem; }
.msg-input-row { display: flex; gap: .75rem; padding: .75rem; border-top: 1px solid var(--gray-200); background: var(--white); }
.msg-input-row input { flex: 1; padding: .7rem 1rem; border: 1.5px solid var(--gray-200); border-radius: var(--radius-pill); font-size: .88rem; transition: border-color var(--dur); }
.msg-input-row input:focus { outline: none; border-color: var(--primary); }
.msg-input-row button { padding: .7rem 1.3rem; background: var(--primary); color: var(--white); border: none; border-radius: var(--radius-pill); font-weight: 600; font-size: .88rem; cursor: pointer; transition: background var(--dur); }
.msg-input-row button:hover { background: var(--secondary); }

/* Progress bar */
.progress { height: 8px; background: var(--gray-200); border-radius: var(--radius-pill); overflow: hidden; }
.progress-bar { height: 100%; background: var(--gradient-brand); border-radius: var(--radius-pill); transition: width .6s var(--ease); }

/* Scrollbar */
.sidebar::-webkit-scrollbar, .messages-area::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track, .messages-area::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb, .messages-area::-webkit-scrollbar-thumb { background: var(--green-200); border-radius: var(--radius-pill); }

/* Utilities */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.gap-sm { gap: .75rem; }
.flex-wrap { flex-wrap: wrap; }
.d-flex { display: flex; align-items: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }
.text-muted { color: var(--gray-400); }
.fw-600 { font-weight: 600; }
.text-green { color: var(--primary); }
.text-red   { color: #ef4444; }

/* Mobile-only nav items hidden on desktop */
.nav-mobile-only { display: none; }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero-content { grid-template-columns: 1fr; gap: 3rem; }
  .hero-right { order: -1; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); max-width: 480px; }
  .footer-content { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 900px) {
  .contact-container { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-container { gap: 1rem; }
}
@media (max-width: 768px) {
  /* Nav mobile dropdown */
  .nav-links {
    display: none;
    position: absolute;
    inset: var(--nav-h) 0 auto 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem 1.5rem;
    gap: .25rem;
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--gray-100);
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    width: 100%;
    padding: .85rem 1rem;
    font-size: .97rem;
    border-radius: var(--radius-sm);
    transition: background var(--dur);
    color: var(--gray-700);
  }
  .nav-links a:hover { background: var(--green-50); color: var(--primary); }
  .nav-links a::after { display: none; }

  /* Show login links inside mobile dropdown */
  .nav-mobile-only { display: block; }
  .nav-mobile-only a {
    color: var(--primary) !important;
    font-weight: 600 !important;
    border: 1px solid var(--green-200) !important;
    background: var(--green-50) !important;
    margin-top: .1rem;
  }
  .nav-mobile-only a:hover { background: var(--green-100) !important; }

  /* Divider before login links in mobile */
  .nav-mobile-only:first-of-type {
    border-top: 1px solid var(--gray-200);
    margin-top: .5rem;
    padding-top: .5rem;
  }

  /* Hide desktop login buttons on mobile */
  .nav-actions { display: none; }

  /* Hero */
  .hero-text h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-subtitle { font-size: 1rem; }
  .hero-buttons { flex-direction: column; }
  .btn-hero-primary, .btn-hero-secondary { width: 100%; text-align: center; }

  /* About with Image */
  .about-section-with-image { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 1.5rem; }

  /* Learning Modes */
  .learning-modes { grid-template-columns: 1fr; padding: 3rem 1.5rem; }

  /* Stats and Counter */
  .stats-container, .counter-container { grid-template-columns: 1fr 1fr; gap: 1.5rem; }

  /* Original styles */
  .hero-stats { grid-template-columns: 1fr 1fr; max-width: 100%; }
  .hero-badges { display: none; }

  /* Sidebar */
  .sidebar {
    transform: translateX(-100%);
    width: 240px;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-xl);
  }
  .main-content { margin-inline-start: 0; }

  /* Show hamburger ONLY on mobile screens */
  .dashboard-header .nav-toggle { display: flex !important; }

  /* Forms */
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer-content { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-contact-row { grid-template-columns: 90px 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* FAB group — tighten on mobile */
  .fab-group { bottom: 20px; right: 16px; gap: 10px; }
  .fab { padding: 11px 16px; font-size: 13px; }
}
@media (max-width: 560px) {
  :root { --nav-h: 64px; }
  section { padding: 3.5rem 1rem; }
  .nav-container { padding-inline: 1rem; }
  .logo-main { font-size: 1.1rem; }

  .hero { padding-inline: 1rem; }
  .hero-buttons { flex-direction: column; }
  .hero-stats { grid-template-columns: 1fr; max-width: 280px; }
  .subjects-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 1.5rem; }
  .footer-content { grid-template-columns: 1fr; }
  .footer-contact-row { grid-template-columns: 80px 1fr; }
  .content-area { padding: 1.25rem 1rem; }
  .dashboard-header { padding: 1rem; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .auth-box { padding: 2rem 1.5rem; }
  .toast { left: 1rem; right: 1rem; bottom: 1rem; }

  /* Stack FABs compactly */
  .fab-group { bottom: 16px; right: 12px; }
  .fab { padding: 10px 14px; font-size: 12.5px; gap: 8px; }
}
/* ── Map Section ──────────────────────────────────────────── */
.map-section {
  padding: 5rem 2rem;
  background: var(--gray-50);
}
.map-wrapper {
  max-width: var(--max-w);
  margin-inline: auto;
  position: relative;
}
.map-address-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
  font-size: .95rem;
  color: var(--gray-700);
}
.map-address-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

/* ── Enhanced Dashboard Overview Stats ───────────────────── */
.stats-row-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.stat-hero {
  background: var(--white);
  padding: 2rem 1.75rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur);
  position: relative;
  overflow: hidden;
}
.stat-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 5px; height: 100%;
  background: var(--gradient-brand);
  border-radius: 9999px 0 0 9999px;
}
.stat-hero.accent-blue::before { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.stat-hero.accent-amber::before { background: linear-gradient(135deg, #f59e0b, #d97706); }
.stat-hero.accent-red::before { background: linear-gradient(135deg, #ef4444, #dc2626); }
.stat-hero:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.stat-hero .stat-icon { font-size: 2.25rem; margin-bottom: .75rem; }
.stat-hero .stat-num {
  font-size: 2.75rem; font-weight: 800;
  color: var(--primary);
  font-family: var(--font-heading);
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: .4rem;
}
.stat-hero.accent-red .stat-num   { color: #ef4444; }
.stat-hero.accent-blue .stat-num  { color: #3b82f6; }
.stat-hero.accent-amber .stat-num { color: #f59e0b; }
.stat-hero .stat-lbl {
  font-size: .88rem;
  color: var(--gray-500);
  font-weight: 500;
}

@media (max-width: 560px) {
  .stats-row-hero { grid-template-columns: 1fr 1fr; }
}


.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal-on-scroll { opacity: 1; transform: none; }
}

/* ── FIREBASE LOADING STATES ─────────────────────────────── */
.loading-spinner {
  display: flex; align-items: center; justify-content: center;
  padding: 2rem; color: var(--gray-400); font-size: .9rem; gap: .5rem;
}

/* ── CRITICAL OVERVIEW FIX: Dashboard stats must be immediately visible ── */
/* Override any sidebar overflow that hides the main content */
.dashboard { overflow: hidden; }
.main-content {
  overflow-y: auto;
  min-height: 100vh;
  flex: 1;
}
.content-area {
  padding: 1.5rem;
  overflow: visible;
}

/* Stat hero cards — large, bold, unmissable */
.stats-row-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.stat-hero {
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--gray-200);
  box-shadow: 0 4px 24px rgba(16,185,129,.10);
  padding: 1.75rem 1.5rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  cursor: default;
}
.stat-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 4px;
  background: var(--gradient-brand);
  border-radius: 0 0 20px 20px;
}
.stat-hero.accent-blue::after  { background: linear-gradient(90deg,#3b82f6,#2563eb); }
.stat-hero.accent-amber::after { background: linear-gradient(90deg,#f59e0b,#d97706); }
.stat-hero.accent-red::after   { background: linear-gradient(90deg,#ef4444,#dc2626); }
.stat-hero:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(16,185,129,.18); }
.stat-hero .stat-icon {
  font-size: 2rem; margin-bottom: .75rem;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: var(--green-50);
  border-radius: 14px;
  margin-bottom: 1rem;
}
.stat-hero.accent-blue  .stat-icon { background: #dbeafe; }
.stat-hero.accent-amber .stat-icon { background: #fef3c7; }
.stat-hero.accent-red   .stat-icon { background: #fee2e2; }
.stat-hero .stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-heading);
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: .4rem;
  display: block;
}
.stat-hero.accent-red   .stat-num { color: #ef4444; }
.stat-hero.accent-blue  .stat-num { color: #3b82f6; }
.stat-hero.accent-amber .stat-num { color: #f59e0b; }
.stat-hero .stat-lbl {
  font-size: .82rem;
  color: var(--gray-500);
  font-weight: 500;
  line-height: 1.3;
}

@media (max-width: 640px) {
  .stats-row-hero { grid-template-columns: 1fr 1fr; gap: .85rem; }
  .stat-hero { padding: 1.25rem 1rem 1rem; }
  .stat-hero .stat-num { font-size: 1.85rem; }
}


/* ── Enhanced Mobile Responsiveness ──────────────────────── */
@media (max-width: 480px) {
  :root { 
    --nav-h: 60px;
    --max-w: 100%;
  }
  
  body { font-size: 0.95rem; }
  
  section { padding: 2.5rem 1rem; }
  
  h1 { font-size: clamp(1.5rem, 6vw, 2rem); }
  h2 { font-size: clamp(1.25rem, 5vw, 1.75rem); }
  h3 { font-size: clamp(1rem, 4vw, 1.25rem); }
  
  .nav-container { 
    padding: 0.75rem 1rem;
    gap: 0.5rem;
  }
  
  .logo-text { display: none; }
  .logo-img { width: 40px; height: 40px; }
  
  .hero { padding: 2rem 1rem; }
  .hero-text h1 { font-size: clamp(1.5rem, 6vw, 2rem); }
  .hero-subtitle { font-size: 0.9rem; }
  .hero-info-bar { flex-wrap: wrap; gap: 0.5rem; }
  .hero-info-divider { display: none; }
  
  .btn-hero-primary, .btn-hero-secondary { 
    padding: 0.75rem 1.5rem; 
    font-size: 0.95rem;
  }
  
  .stats-container { grid-template-columns: 1fr; gap: 1rem; }
  .stat-item { padding: 1.5rem 1rem; }
  
  .contact-form { padding: 1rem; }
  .form-group { margin-bottom: 1rem; }
  
  .footer-content { gap: 1.5rem; }
  
  .fab-group { bottom: 12px; right: 8px; gap: 8px; }
  .fab { padding: 9px 12px; font-size: 11px; }
}

@media (max-width: 380px) {
  section { padding: 2rem 0.75rem; }
  .nav-container { padding: 0.5rem 0.75rem; }
  .hero { padding: 1.5rem 0.75rem; }
  
  .hero-text h1 { font-size: clamp(1.25rem, 5vw, 1.75rem); }
  .hero-buttons { gap: 0.5rem; }
  
  .btn-hero-primary, .btn-hero-secondary { 
    padding: 0.65rem 1.25rem; 
    font-size: 0.9rem;
  }
  
  .contact-form { padding: 0.75rem; }
  
  .footer-contact-row { grid-template-columns: 70px 1fr; }
  .footer-contact-row p { font-size: 0.9rem; }
}

/* ── Tablet Landscape Optimization ──────────────────────── */
@media (max-width: 1024px) and (orientation: landscape) {
  section { padding: 3rem 2rem; }
  
  .hero { min-height: auto; padding: 2rem; }
  .hero-text h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); }
  
  .stats-container { grid-template-columns: repeat(2, 1fr); }
}

/* ── Touch Device Optimization ──────────────────────────── */
@media (hover: none) and (pointer: coarse) {
  button, a { 
    min-height: 44px;
    min-width: 44px;
    padding: 12px 16px;
  }
  
  .nav-links a { padding: 1rem; }
  
  .btn-hero-primary, .btn-hero-secondary { 
    padding: 1rem 2rem;
    min-height: 48px;
  }
}

/* ── High DPI / Retina Display Optimization ──────────────── */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  img { image-rendering: -webkit-optimize-contrast; }
}

/* ── Print Styles ────────────────────────────────────────── */
@media print {
  nav, .fab-group, .nav-toggle { display: none; }
  body { background: white; }
  section { page-break-inside: avoid; }
}
