/* =====================================================
   EVERGROWTH TUITION — MAIN STYLESHEET
   Brand Palette:
     Primary Green  : #2D6A4F
     Academic Blue  : #4361EE
     Sage Green     : #B7E4C7
     Light Green    : #52b788
     White          : #ffffff
     Dark            : #1a1a2e
===================================================== */

/* ---- CSS CUSTOM PROPERTIES ---- */
:root {
  --green-primary: #2D6A4F;
  --green-mid: #40916c;
  --green-light: #52b788;
  --green-lighter: #74c69d;
  --green-sage: #B7E4C7;
  --green-pale: #d8f3dc;
  --blue-accent: #4361EE;
  --blue-light: #7b97f5;
  --dark: #1a1a2e;
  --dark-mid: #2c2c3e;
  --text-body: #3d3d3d;
  --text-muted: #6c757d;
  --white: #ffffff;
  --off-white: #f8fffe;
  --border: #e8f5e9;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Poppins', 'Segoe UI', sans-serif;

  --shadow-sm: 0 2px 8px rgba(45, 106, 79, 0.12);
  --shadow-md: 0 8px 24px rgba(45, 106, 79, 0.18);
  --shadow-lg: 0 16px 48px rgba(45, 106, 79, 0.22);
  --shadow-blue: 0 8px 24px rgba(67, 97, 238, 0.2);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Hero gradient end-stop — overridden per theme */
  --hero-dark: #1b4332;
  /* Nav offset used for anchor scroll-padding — updated via JS on load/resize */
  --nav-offset: 168px;
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: var(--nav-offset); }

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; }

/* ---- TYPOGRAPHY ---- */
.section-tag {
  display: inline-block;
  background: var(--green-pale);
  color: var(--green-primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  color: var(--dark);
  margin-bottom: 16px;
  line-height: 1.25;
}

.section-title .highlight {
  color: var(--green-primary);
  position: relative;
}

.section-title .highlight::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-primary), var(--green-light));
  border-radius: 2px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-sm { padding: 8px 20px; font-size: 0.85rem; }

.btn-primary {
  background: var(--green-primary);
  color: var(--white);
  border-color: var(--green-primary);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: var(--green-mid);
  border-color: var(--green-mid);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--green-primary);
  border-color: var(--green-primary);
}
.btn-outline:hover {
  background: var(--green-primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.7);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--green-primary);
  border-color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-white:hover {
  background: var(--green-pale);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-ghost-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-ghost-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* ============================================
   REVIEW TRUST BAR
============================================ */
.review-trust-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1001;
  height: 36px;
  background: linear-gradient(90deg, var(--green-primary) 0%, var(--green-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.trust-socials {
  position: absolute;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.trust-social-icon {
  color: rgba(255,255,255,0.82);
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
}
.trust-social-icon:hover { color: #fff; transform: scale(1.2); }
.review-trust-inner {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}
.trust-g-icon { flex-shrink: 0; vertical-align: middle; }
.trust-label { opacity: 0.88; }
.trust-score { font-size: 0.9rem; font-weight: 700; }
.trust-stars { color: #ffd700; font-size: 0.74rem; letter-spacing: 1px; }
.trust-sep { opacity: 0.45; }
.trust-count { opacity: 0.9; }
.trust-link {
  color: #fff;
  text-decoration: none;
  background: rgba(255,255,255,0.22);
  padding: 2px 11px 2px 9px;
  border-radius: 20px;
  font-size: 0.76rem;
  margin-left: 4px;
  transition: background 0.2s;
}
.trust-link:hover { background: rgba(255,255,255,0.38); }
.trust-link i { font-size: 0.68rem; }
@media (max-width: 480px) {
  .trust-count, .trust-sep, .trust-label { display: none; }
  .review-trust-bar { gap: 4px; }
  .trust-socials { display: none; }
}

/* ============================================
   NAVIGATION
============================================ */
.navbar {
  position: fixed;
  top: 36px; left: 0; right: 0;
  z-index: 1000;
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

/* Review trust bar is always present — navbar is always offset 36px */

.nav-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-img {
  width: 160px;
  height: auto;
  min-width: 140px;
  border-radius: 12px;
  object-fit: contain;
  background: #ffffff;
  padding: 4px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.22);
  border: 2px solid rgba(255,255,255,0.75);
  transition: var(--transition);
}

.logo-img:hover { transform: scale(1.05); }

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-primary);
  line-height: 1.2;
  transition: var(--transition);
}

.logo-text span {
  display: block;
  font-size: 0.7rem;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--blue-accent);
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  padding: 7px 10px;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--text-body);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 10px; right: 10px;
  height: 2px;
  background: var(--green-primary);
  border-radius: 1px;
  transform: scaleX(0);
  transition: var(--transition);
}

.nav-link:hover::after { transform: scaleX(1); }
.nav-link:hover { color: var(--green-primary); }

.nav-link.active {
  color: var(--green-primary);
  font-weight: 700;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--green-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================
   HERO SECTION
============================================ */
.hero {
  min-height: 100vh;
  background: linear-gradient(145deg, var(--green-primary) 0%, var(--green-mid) 40%, var(--hero-dark) 100%);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 165px;
}

.vine-left, .vine-right {
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  opacity: 0.08;
  background-repeat: repeat-y;
  background-size: 120px;
}

.vine-left {
  left: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='200'%3E%3Cpath d='M60,0 Q20,50 60,100 Q100,150 60,200' stroke='%23ffffff' stroke-width='3' fill='none'/%3E%3Ccircle cx='30' cy='60' r='12' fill='%23ffffff'/%3E%3Ccircle cx='88' cy='140' r='10' fill='%23ffffff'/%3E%3C/svg%3E");
}

.vine-right {
  right: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='200'%3E%3Cpath d='M60,0 Q100,50 60,100 Q20,150 60,200' stroke='%23ffffff' stroke-width='3' fill='none'/%3E%3Ccircle cx='90' cy='60' r='12' fill='%23ffffff'/%3E%3Ccircle cx='32' cy='140' r='10' fill='%23ffffff'/%3E%3C/svg%3E");
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px 120px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  color: var(--green-sage);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.25);
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 24px;
}

.hero-title em {
  font-style: italic;
  color: var(--green-sage);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.85;
  margin-bottom: 40px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  padding: 20px 32px;
  width: fit-content;
}

.stat-item { text-align: center; }

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.stat-plus {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green-sage);
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.25);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 480px;
}

.hero-tree-graphic {
  width: 280px;
  height: 380px;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.2));
  animation: sway 6s ease-in-out infinite;
}

@keyframes sway {
  0%, 100% { transform: rotate(-1deg); }
  50% { transform: rotate(1.5deg); }
}

.hero-tree-svg { width: 100%; height: 100%; }

.hero-card-float {
  position: absolute;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  box-shadow: var(--shadow-lg);
  animation: float 3s ease-in-out infinite;
}

.hero-card-float i { color: var(--green-primary); font-size: 1rem; }

.hero-card-1 { top: 48px; left: 0; animation-delay: 0s; }
.hero-card-2 { bottom: 80px; left: -20px; animation-delay: 1s; }
.hero-card-3 { top: 140px; right: -10px; animation-delay: 2s; }
.hero-card-4 { bottom: 20px; right: 20px; animation-delay: 1.5s; }
.hero-card-5 { top: 28px; right: 10px; animation-delay: 2.5s; }
.hero-card-6 { bottom: 100px; left: 10px; animation-delay: 3s; }
.hero-card-7 { top: 180px; right: -30px; animation-delay: 3.5s; }
.hero-card-8 { bottom: 140px; right: 40px; animation-delay: 4s; }

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

/* Hero Wave */
.hero-wave {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  line-height: 0;
}
.hero-wave svg { width: 100%; height: 80px; display: block; }

/* ============================================
   SUBJECTS SECTION
============================================ */
.subjects {
  background: var(--white);
  padding-top: 80px;
}

.section-vine-divider {
  text-align: center;
  margin-bottom: 16px;
  opacity: 0.6;
}

.vine-divider-svg {
  width: 200px;
  height: 20px;
}

.subjects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

.branch-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  cursor: default;
}

.branch-card:hover {
  border-color: var(--green-light);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.branch-card:hover .branch-glow {
  opacity: 1;
}

.branch-card--featured {
  border-color: var(--green-primary);
  background: linear-gradient(145deg, #f0faf5 0%, var(--white) 100%);
  box-shadow: var(--shadow-md);
}

.branch-featured-badge {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--green-primary);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 5px 14px;
  border-radius: 50px;
  text-transform: uppercase;
}

.branch-icon {
  width: 68px; height: 68px;
  border-radius: var(--radius-md);
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition);
}

.branch-card:hover .branch-icon,
.branch-card--featured .branch-icon {
  background: var(--green-primary);
}

.branch-icon i {
  font-size: 1.6rem;
  color: var(--green-primary);
  transition: var(--transition);
}

.branch-card:hover .branch-icon i,
.branch-card--featured .branch-icon i {
  color: var(--white);
}

.branch-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-accent);
  margin-bottom: 10px;
}

.branch-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--dark);
  margin-bottom: 12px;
}

.branch-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.7;
}

.branch-list {
  margin-bottom: 28px;
}

.branch-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-body);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.branch-list li:last-child { border-bottom: none; }

.branch-list li i {
  color: var(--green-light);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.branch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green-primary);
  transition: var(--transition);
}

.branch-btn:hover { gap: 14px; color: var(--green-mid); }

.branch-glow {
  position: absolute;
  bottom: -40px; right: -40px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--green-sage) 0%, transparent 70%);
  opacity: 0;
  transition: var(--transition-slow);
  pointer-events: none;
}

/* Subjects strip */
.subjects-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding: 32px 40px;
  background: var(--green-pale);
  border-radius: var(--radius-xl);
}

.strip-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.subject-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  color: var(--green-primary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 50px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.subject-pill:hover {
  background: var(--green-primary);
  color: var(--white);
  transform: translateY(-2px);
}

.subject-pill i { font-size: 0.8rem; }

/* ============================================
   WHY EVERGROWTH SECTION
============================================ */
.why-us {
  background: var(--off-white);
  position: relative;
}

.why-us::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green-primary), var(--blue-accent), var(--green-light));
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.why-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-sage);
}

.why-icon-wrap {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.6rem;
  transition: var(--transition);
}

.why-card:hover .why-icon-wrap { transform: scale(1.1) rotate(5deg); }

.why-icon-green { background: var(--green-pale); color: var(--green-primary); }
.why-icon-blue { background: #eef0fd; color: var(--blue-accent); }
.why-icon-sage { background: var(--green-sage); color: var(--green-primary); }

.why-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--dark);
  margin-bottom: 12px;
}

.why-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ============================================
   EXAM PREPARATION SECTION
============================================ */
.exams {
  background: linear-gradient(145deg, var(--dark) 0%, var(--dark-mid) 100%);
  position: relative;
  overflow: hidden;
}

.exams::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45,106,79,0.3) 0%, transparent 70%);
}

.exams .section-tag {
  background: rgba(183, 228, 199, 0.2);
  color: var(--green-sage);
}

.exams .section-title { color: var(--white); }
.exams .section-subtitle { color: rgba(255,255,255,0.65); }
.exams .section-title .highlight { color: var(--green-sage); }
.exams .section-title .highlight::after {
  background: linear-gradient(90deg, var(--green-sage), var(--green-light));
}

.exams-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.exam-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 32px 16px;
  text-align: center;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.exam-card:hover {
  background: rgba(255,255,255,0.14);
  border-color: var(--green-light);
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.exam-card--highlight {
  background: rgba(45,106,79,0.25);
  border-color: rgba(45,106,79,0.5);
}

.exam-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(183, 228, 199, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.3rem;
  color: var(--green-sage);
  transition: var(--transition);
}

.exam-card:hover .exam-icon {
  background: var(--green-primary);
  color: var(--white);
  transform: scale(1.1);
}

.exam-card h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 8px;
}

.exam-card p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
}

/* ============================================
   TESTIMONIALS
============================================ */
.testimonials {
  background: var(--white);
}

.testimonials-slider {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.testimonial-card {
  display: none;
  background: var(--off-white);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.testimonial-card.active { display: block; }

.testimonial-stars {
  color: #f4c430;
  font-size: 1.1rem;
  letter-spacing: 4px;
  margin-bottom: 24px;
}

.testimonial-text {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.85;
  font-style: italic;
  margin-bottom: 32px;
  position: relative;
}

.testimonial-text::before {
  content: '\201C';
  position: absolute;
  top: -24px; left: -16px;
  font-size: 5rem;
  color: var(--green-pale);
  font-family: var(--font-heading);
  line-height: 1;
  z-index: 0;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.testimonial-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-primary), var(--blue-accent));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-weight: 700;
  color: var(--dark);
}

.testimonial-author span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.testimonial-btn {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.testimonial-btn.active {
  background: var(--green-primary);
  width: 28px;
  border-radius: 5px;
}

/* ============================================
   GOOGLE REVIEWS SECTION
============================================ */
.google-reviews {
  background: #f5f5f5;
  padding: 96px 0;
}

.reviews-overall {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.reviews-score {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--dark);
}

.reviews-overall .reviews-stars {
  display: flex;
  gap: 3px;
  color: #f9ab00;
  font-size: 1.3rem;
}

.reviews-count {
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.reviews-count:hover { color: var(--green-primary); text-decoration: underline; }

/* Slider wrapper */
.reviews-slider-wrap {
  overflow: hidden;
  position: relative;
}

.reviews-track {
  display: flex;
  gap: 24px;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Individual review card */
.review-card {
  flex: 0 0 calc(33.333% - 16px);
  min-width: 0;
  background: var(--white);
  border: 1.5px solid #e8e8e8;
  border-radius: 16px;
  padding: 24px 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: var(--transition);
}

.review-card:hover {
  border-color: var(--green-sage);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.review-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviewer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.reviewer-avatar--dark  { background: #1a73e8; }
.reviewer-avatar--blue  { background: #3d5a80; }
.reviewer-avatar--green { background: var(--green-primary); }
.reviewer-avatar--purple{ background: #7b1fa2; }
.reviewer-avatar--img   { background: #f0f0f0; overflow: hidden; }

.reviewer-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
}

.reviewer-time {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.google-g-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.review-stars {
  display: flex;
  align-items: center;
  gap: 3px;
  color: #f9ab00;
  font-size: 0.9rem;
}

.review-verified {
  color: #1a73e8 !important;
  font-size: 0.95rem;
  margin-left: 4px;
}

.review-text {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.75;
  flex: 1;
}

.review-text--truncated {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-read-more {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  padding: 0;
  text-align: left;
  transition: var(--transition);
}
.review-read-more:hover { color: var(--green-primary); }

.review-card-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
}

.review-like-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1.5px solid #e0e0e0;
  border-radius: 50px;
  padding: 6px 18px;
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}

.review-like-btn:hover {
  border-color: #e53935;
  color: #e53935;
}
.review-like-btn i { font-size: 0.8rem; }

/* Bottom controls row */
.reviews-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
}

.btn-review-us {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #e53935;
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(229,57,53,0.3);
}
.btn-review-us:hover {
  background: #c62828;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(229,57,53,0.4);
}

.reviews-nav {
  display: flex;
  gap: 12px;
}

.reviews-nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid #ddd;
  background: var(--white);
  color: var(--dark);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.reviews-nav-btn:hover {
  border-color: var(--green-primary);
  color: var(--green-primary);
  box-shadow: var(--shadow-sm);
}

.reviews-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Responsive reviews */
@media (max-width: 1024px) {
  .review-card { flex: 0 0 calc(50% - 12px); }
}
@media (max-width: 640px) {
  .review-card { flex: 0 0 calc(100%); }
  .reviews-controls-row { flex-direction: column; gap: 20px; align-items: flex-start; }
}

/* ============================================
   CTA BANNER
============================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-mid) 50%, var(--hero-dark) 100%);
  padding: 96px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-vine-left, .cta-vine-right {
  position: absolute;
  top: 0; bottom: 0;
  width: 200px;
  opacity: 0.08;
}

.cta-vine-left { left: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='300'%3E%3Cpath d='M100,0 Q20,75 100,150 Q180,225 100,300' stroke='white' stroke-width='4' fill='none'/%3E%3Ccircle cx='40' cy='80' r='20' fill='white'/%3E%3Ccircle cx='160' cy='200' r='16' fill='white'/%3E%3C/svg%3E") repeat-y center/200px; }
.cta-vine-right { right: 0; transform: scaleX(-1); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='300'%3E%3Cpath d='M100,0 Q20,75 100,150 Q180,225 100,300' stroke='white' stroke-width='4' fill='none'/%3E%3Ccircle cx='40' cy='80' r='20' fill='white'/%3E%3Ccircle cx='160' cy='200' r='16' fill='white'/%3E%3C/svg%3E") repeat-y center/200px; }

.cta-content { position: relative; z-index: 2; }

.cta-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--white);
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================
   FOOTER
============================================ */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.footer-logo-img {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-logo-text {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
}

.footer-tagline {
  display: block;
  font-size: 0.7rem;
  color: var(--green-sage);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 2px;
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}

.social-link:hover {
  background: var(--green-primary);
  border-color: var(--green-primary);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--green-sage);
  padding-left: 6px;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 14px;
}

.footer-contact-list li i {
  color: var(--green-sage);
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-contact-list li a {
  color: rgba(255,255,255,0.65);
  transition: var(--transition);
}

.footer-contact-list li a:hover { color: var(--green-sage); }

.footer-cta { margin-top: 16px; }

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* ============================================
   BACK TO TOP
============================================ */
.back-to-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 48px; height: 48px;
  background: var(--green-primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--green-mid);
  transform: translateY(-4px);
}

/* ============================================
   ANIMATIONS
============================================ */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate="fade-left"] {
  transform: translateX(30px);
}

[data-animate].animated {
  opacity: 1;
  transform: translate(0);
}

/* ============================================
   PAGE HEADER (for inner pages)
============================================ */
.page-hero {
  background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-mid) 100%);
  padding: 190px 0 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--white);
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 20px;
}

.breadcrumb a { color: var(--green-sage); transition: var(--transition); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb i { font-size: 0.65rem; }

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; }
  .hero-content { order: 1; }
  .hero-visual { order: 2; height: 320px; }
  .hero-stats { margin: 0 auto; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }

  .subjects-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .exams-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  section { padding: 72px 0; }

  .nav-menu {
    position: fixed;
    top: 0; right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 80px 32px 40px;
    gap: 0;
    box-shadow: -8px 0 32px rgba(0,0,0,0.15);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }

  .nav-menu.open { right: 0; }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 4px;
    margin-bottom: 32px;
  }

  .nav-link {
    color: var(--text-body);
    padding: 12px 16px;
    width: 100%;
    font-size: 1rem;
  }

  .nav-link::after { display: none; }
  .nav-link:hover { background: var(--green-pale); color: var(--green-primary); border-radius: var(--radius-sm); }

  .nav-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .nav-actions .btn { width: 100%; justify-content: center; }
  .nav-actions .btn-outline { color: var(--green-primary); border-color: var(--green-primary); }

  .nav-toggle { display: flex; z-index: 1001; }

  .subjects-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .exams-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
    padding: 24px;
  }
  .stat-divider { width: 80px; height: 1px; }
  .hero-card-float { display: none; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { justify-content: center; }
  .exams-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-actions { flex-direction: column; align-items: center; }
  .subjects-strip { justify-content: flex-start; padding: 24px; }
}

/* =====================================================
   THEME SWITCHER BAR
===================================================== */
.theme-switcher-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 36px;
  background: #0f1623;
  z-index: 1001;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.theme-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.theme-bar-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.theme-swatches {
  display: flex;
  align-items: center;
  gap: 6px;
}

.swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease;
  padding: 0;
  outline: none;
  position: relative;
}

.swatch:hover { transform: scale(1.25); }

.swatch.active {
  border-color: rgba(255,255,255,0.85);
  transform: scale(1.2);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.2);
}

.swatch--evergreen { background: #2D6A4F; }
.swatch--ocean    { background: #1565C0; }
.swatch--plum     { background: #7B1FA2; }
.swatch--teal     { background: #00897B; }
.swatch--slate    { background: #37474F; }

.theme-bar-divider {
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,0.15);
  margin: 0 2px;
  flex-shrink: 0;
}

.layout-toggles {
  display: flex;
  gap: 4px;
}

.layout-btn {
  font-size: 0.69rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 4px;
  padding: 2px 10px;
  cursor: pointer;
  transition: all 0.18s ease;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  font-family: var(--font-body);
}

.layout-btn.active,
.layout-btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.35);
}

.theme-bar-note {
  font-size: 0.67rem;
  color: rgba(255,255,255,0.28);
  margin-left: auto;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .theme-bar-note { display: none; }
}

@media (max-width: 480px) {
  .theme-bar-inner { gap: 6px; }
  .theme-bar-label { display: none; }
}

/* =====================================================
   LAYOUT: CENTRED HERO
===================================================== */
body.layout-centered .hero-container {
  grid-template-columns: 1fr;
  text-align: center;
  max-width: 860px;
}

body.layout-centered .hero-visual { display: none; }

body.layout-centered .hero-content {
  max-width: 100%;
}

body.layout-centered .hero-title {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
}

body.layout-centered .hero-subtitle {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

body.layout-centered .hero-actions {
  justify-content: center;
}

body.layout-centered .hero-stats {
  margin: 0 auto;
}

/* -- Theme: Plum (Rich Purple) -- */
body.theme-plum {
  --green-primary: #7B1FA2;
  --green-mid: #9C27B0;
  --green-light: #BA68C8;
  --green-lighter: #CE93D8;
  --green-sage: #E1BEE7;
  --green-pale: #F3E5F5;
  --blue-accent: #FF8F00;
  --hero-dark: #1a0030;
  --off-white: #fdf5ff;
  --border: #e8d5f0;
}

/* -- Theme: Teal (Fresh Teal) -- */
body.theme-teal {
  --green-primary: #00695C;
  --green-mid: #00897B;
  --green-light: #4DB6AC;
  --green-lighter: #80CBC4;
  --green-sage: #B2DFDB;
  --green-pale: #E0F2F1;
  --blue-accent: #FF5722;
  --hero-dark: #00241e;
  --off-white: #f0faf9;
  --border: #c8ebe8;
}

/* -- Theme: Slate (Modern Slate / Gold) -- */
body.theme-slate {
  --green-primary: #37474F;
  --green-mid: #455A64;
  --green-light: #78909C;
  --green-lighter: #B0BEC5;
  --green-sage: #CFD8DC;
  --green-pale: #ECEFF1;
  --blue-accent: #E6A817;
  --hero-dark: #101d22;
  --off-white: #f5f7f8;
  --border: #dde3e6;
}
