/* ── Reset & Variables ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --white:        #ffffff;
  --off-white:    #f8fafc;
  --blue:         #2563eb;
  --blue-dark:    #1d4ed8;
  --blue-light:   #dbeafe;
  --blue-xlight:  #eff6ff;
  --yellow:       #f59e0b;
  --yellow-dark:  #d97706;
  --yellow-light: #fef3c7;
  --text:         #0f172a;
  --text-mid:     #334155;
  --muted:        #64748b;
  --border:       #e2e8f0;
  --card:         #f8fafc;
}
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; background: var(--white); color: var(--text); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── Utility ── */
.container { width: 90%; max-width: 1100px; margin: 0 auto; }
.btn { display: inline-block; padding: 13px 30px; border-radius: 8px; font-weight: 600; font-size: 0.93rem; letter-spacing: 0.02em; cursor: pointer; transition: all 0.22s ease; border: 2px solid transparent; font-family: 'Poppins', sans-serif; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,235,0.3); }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--blue-xlight); transform: translateY(-2px); }
.btn-yellow { background: var(--yellow); color: var(--white); }
.btn-yellow:hover { background: var(--yellow-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245,158,11,0.3); }
.section-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; color: var(--text); line-height: 1.15; margin-bottom: 14px; }
.section-sub { color: var(--muted); font-size: 1rem; max-width: 560px; margin-bottom: 44px; }
section { padding: 88px 0; }
.divider { width: 44px; height: 3px; background: var(--yellow); margin: 14px 0 22px; border-radius: 2px; }
.yellow { color: var(--yellow); }
.blue { color: var(--blue); }
.tag { display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 10px; border-radius: 4px; }
.tag-blue { background: var(--blue-light); color: var(--blue); }
.tag-yellow { background: var(--yellow-light); color: var(--yellow-dark); }

/* ── Nav ── */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--border); padding: 0 5%; height: 84px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; flex-shrink: 0; }
.nav-logo-img { height: 140px; width: auto; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 0; list-style: none; flex: 1; justify-content: center; }
.nav-links li { flex: 1; text-align: center; }
.nav-links a { font-size: 1rem; font-weight: 500; color: #64748b; transition: color 0.25s; position: relative; display: inline-block; padding: 8px 0; }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 0; height: 2px; background: var(--blue); transition: width 0.25s ease; border-radius: 1px; }
.nav-links a:hover { color: #1e293b; }
.nav-links a:hover::after { width: 70%; }
.nav-links a.active { color: #1e293b; font-weight: 600; }
.nav-links a.active::after { width: 70%; }
.nav-cta { padding: 12px 30px !important; font-size: 0.95rem !important; border-radius: 10px; background: linear-gradient(135deg, #3b82f6, #6366f1) !important; color: #fff !important; font-weight: 700 !important; transition: all 0.3s !important; position: relative; box-shadow: 0 0 16px rgba(99,102,241,0.35), 0 0 40px rgba(99,102,241,0.1); animation: nav-cta-pulse 2.5s ease-in-out infinite; }
.nav-cta::after { display: none !important; }
.nav-cta::before { content: ''; position: absolute; inset: -2px; border-radius: 12px; background: linear-gradient(135deg, #3b82f6, #6366f1); z-index: -1; opacity: 0.5; filter: blur(8px); transition: all 0.3s; }
.nav-cta:hover { transform: translateY(-2px) scale(1.05) !important; box-shadow: 0 0 24px rgba(99,102,241,0.55), 0 8px 24px rgba(99,102,241,0.3) !important; color: #fff !important; }
.nav-cta:hover::before { opacity: 0.7; filter: blur(12px); }
@keyframes nav-cta-pulse { 0%, 100% { box-shadow: 0 0 16px rgba(99,102,241,0.35), 0 0 40px rgba(99,102,241,0.1); } 50% { box-shadow: 0 0 22px rgba(99,102,241,0.5), 0 0 50px rgba(99,102,241,0.15); } }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: #334155; border-radius: 2px; transition: all 0.3s; }

/* ── Footer ── */
footer { background: var(--text); color: #94a3b8; padding: 48px 0 24px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { font-size: 1.3rem; font-weight: 900; color: var(--white); margin-bottom: 10px; }
.footer-logo span { color: var(--blue); }
.footer-tagline { font-size: 0.84rem; line-height: 1.6; max-width: 220px; margin-bottom: 16px; }
.footer-social a { font-size: 0.8rem; color: #94a3b8; border: 1px solid #334155; border-radius: 6px; padding: 5px 14px; transition: all 0.2s; display: inline-block; }
.footer-social a:hover { color: var(--white); border-color: var(--blue); }
.footer-col h4 { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a { font-size: 0.86rem; color: #94a3b8; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 20px; display: flex; justify-content: space-between; }
.footer-copy { font-size: 0.8rem; }

/* ── Hero (Home) ── */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 84px; background: var(--white); position: relative; overflow: hidden; }
.hero-bg { position: absolute; top: 0; right: 0; width: 55%; height: 100%; background: url('teaching-photo-1.png') center 15% / cover no-repeat; pointer-events: none; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, #fff 0%, rgba(255,255,255,0.6) 30%, rgba(255,255,255,0.15) 70%, rgba(255,255,255,0.1) 100%), linear-gradient(to top, #fff 0%, transparent 15%); }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--yellow-light); border: 1px solid #fde68a; border-radius: 100px; padding: 5px 14px; font-size: 0.78rem; font-weight: 700; color: var(--yellow-dark); margin-bottom: 20px; opacity: 0; animation: hero-fade-in 0.3s ease forwards 0s; }
.hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.5rem); font-weight: 900; color: var(--text); line-height: 1.1; margin-bottom: 18px; letter-spacing: -0.02em; }
.hero-word { display: inline-block; opacity: 0; transform: translateX(-30px); animation: hero-swoosh 0.25s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.hero-word:nth-child(1) { animation-delay: 0s; }
.hero-word:nth-child(2) { animation-delay: 0.03s; }
.hero-word:nth-child(3) { animation-delay: 0.06s; }
.hero-word:nth-child(4) { animation-delay: 0.09s; }
.hero-word:nth-child(5) { animation-delay: 0.12s; }
.hero-word:nth-child(6) { animation-delay: 0.15s; }
.hero-word:nth-child(7) { animation-delay: 0.2s; }
.hero-word:nth-child(8) { animation-delay: 0.23s; }
.hero-word:nth-child(9) { animation-delay: 0.26s; }
.hero-word:nth-child(10) { animation-delay: 0.29s; }
.hero-word:nth-child(11) { animation-delay: 0.32s; }
.hero-word:nth-child(12) { animation-delay: 0.35s; }
@keyframes hero-swoosh { 0% { opacity: 0; transform: translateX(-30px); } 100% { opacity: 1; transform: translateX(0); } }
.hero-highlight-group { color: var(--blue); position: relative; }
.hero-highlight-group::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 100%; height: 3px; background: var(--blue); border-radius: 2px; transform: scaleX(0); transform-origin: left; animation: hero-underline 0.25s ease forwards 0.45s; }
@keyframes hero-underline { 0% { transform: scaleX(0); } 100% { transform: scaleX(1); } }
.hero p { color: var(--muted); font-size: 1.05rem; margin-bottom: 32px; max-width: 460px; opacity: 0; animation: hero-fade-in 0.3s ease forwards 0.4s; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; opacity: 0; animation: hero-fade-in 0.3s ease forwards 0.5s; }
@keyframes hero-fade-in { 0% { opacity: 0; transform: translateY(12px); } 100% { opacity: 1; transform: translateY(0); } }
.hero-card { background: var(--white); border-radius: 16px; padding: 28px; box-shadow: 0 4px 32px rgba(0,0,0,0.1); border: 1px solid var(--border); }
.hero-card-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin-bottom: 20px; }
.result-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.result-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--off-white); border-radius: 10px; border: 1px solid var(--border); }
.result-name { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.result-sub { font-size: 0.73rem; color: var(--muted); margin-top: 2px; }
.result-score { font-size: 1.15rem; font-weight: 900; color: var(--blue); }
.result-tag { font-size: 0.67rem; font-weight: 700; background: var(--yellow-light); color: var(--yellow-dark); border-radius: 3px; padding: 2px 6px; margin-top: 3px; display: inline-block; }

/* ── Stats strip ── */
.stats { background: var(--blue); padding: 0; }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { padding: 36px 28px; text-align: center; border-right: 1px solid rgba(255,255,255,0.15); }
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 2.6rem; font-weight: 900; color: var(--white); line-height: 1; margin-bottom: 5px; }
.stat-label { font-size: 0.82rem; color: rgba(255,255,255,0.7); font-weight: 500; }

/* ── Card ── */
.card { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 28px; transition: all 0.28s; }
.card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.08); transform: translateY(-3px); border-color: #bfdbfe; }
.card-icon { width: 46px; height: 46px; background: var(--blue-xlight); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 18px; }
.card-icon.yellow { background: var(--yellow-light); }
.card-title { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.card-text { font-size: 0.88rem; color: var(--muted); line-height: 1.7; }

/* ── Grid layouts ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

/* ── Why pillars ── */
.pillar { display: flex; gap: 18px; padding: 24px; background: var(--white); border: 1px solid var(--border); border-left: 3px solid transparent; border-radius: 0 12px 12px 0; transition: all 0.3s; cursor: default; }
.pillar:hover { border-left-color: var(--blue); background: var(--blue-xlight); box-shadow: 0 6px 24px rgba(37,99,235,0.1); transform: translateX(6px); }
.pillar-num { font-size: 2.2rem; font-weight: 900; color: var(--blue); opacity: 0.15; line-height: 1; min-width: 44px; transition: all 0.3s; }
.pillar:hover .pillar-num { opacity: 1; transform: scale(1.1); }
.pillar-title { font-size: 0.98rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.pillar-text { font-size: 0.86rem; color: var(--muted); line-height: 1.7; }

/* ── Tutor card ── */
.tutor-card { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 32px; transition: all 0.28s; }
.tutor-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.08); transform: translateY(-3px); }
.tutor-header { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 20px; }
.tutor-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; object-position: center top; flex-shrink: 0; border: 3px solid var(--border); }
.tutor-name { font-size: 1.1rem; font-weight: 800; color: var(--text); margin-bottom: 3px; }
.tutor-atar { font-size: 0.83rem; font-weight: 700; color: var(--blue); margin-bottom: 3px; }
.tutor-uni { font-size: 0.78rem; color: var(--muted); }
.tutor-badge { display: inline-block; font-size: 0.68rem; font-weight: 700; background: var(--yellow-light); color: var(--yellow-dark); border-radius: 4px; padding: 3px 9px; margin-top: 5px; }
.tutor-highlights { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0; }
.tutor-highlight { font-size: 0.72rem; font-weight: 600; background: var(--blue-xlight); color: var(--blue); border-radius: 4px; padding: 4px 10px; }
.tutor-highlight.yellow { background: var(--yellow-light); color: var(--yellow-dark); }
.tutor-subjects { font-size: 0.8rem; color: var(--muted); margin-bottom: 14px; }
.tutor-scores { display: flex; flex-direction: column; gap: 8px; }
.score-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 13px; background: var(--off-white); border-radius: 8px; border: 1px solid var(--border); }
.score-sub { font-size: 0.83rem; color: var(--text-mid); }
.score-val { font-size: 0.98rem; font-weight: 800; color: var(--blue); }

/* ── Tutor card v2 (profile card) ── */
.tutor-card-v2 { background: var(--white); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.07); transition: all 0.28s; }
.tutor-card-v2:hover { box-shadow: 0 14px 44px rgba(37,99,235,0.18); transform: translateY(-6px); }
.tutor-card-v2:hover .tutor-avatar-lg { transform: scale(1.05); box-shadow: 0 8px 28px rgba(37,99,235,0.25); }
.tutor-banner { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); height: 150px; }
.tutor-body { padding: 0 32px 32px; text-align: center; }
.tutor-avatar-lg { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; object-position: center 38%; transition: all 0.3s; border: 5px solid white; box-shadow: 0 6px 24px rgba(0,0,0,0.18); margin-top: -110px; display: block; margin-left: auto; margin-right: auto; margin-bottom: 16px; }
.tutor-body .tutor-name { font-size: 1.4rem; margin-bottom: 5px; }
.tutor-body .tutor-atar { font-size: 1rem; margin-bottom: 8px; }
.tutor-body .tutor-badge { margin-bottom: 8px; }
.tutor-body .tutor-uni { font-size: 0.8rem; margin-bottom: 0; }
.tutor-body .tutor-highlights { justify-content: center; margin: 16px 0; }
.tutor-body .tutor-subjects { margin-bottom: 16px; font-size: 0.82rem; }
.tutor-body .score-row { text-align: left; }

/* ── Testimonial card ── */
.testi-card { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 26px; display: flex; flex-direction: column; gap: 14px; transition: all 0.25s; }
.testi-card:hover { box-shadow: 0 6px 28px rgba(0,0,0,0.08); transform: translateY(-3px); }
.stars { color: var(--yellow); font-size: 0.95rem; letter-spacing: 2px; }
.testi-text { font-size: 0.9rem; color: var(--text-mid); line-height: 1.7; flex: 1; font-style: italic; }
.testi-name { font-weight: 700; font-size: 0.88rem; color: var(--text); }
.testi-school { font-size: 0.78rem; color: var(--blue); font-weight: 500; }

/* ── Subject card ── */
.subject-card { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 28px; transition: all 0.28s; position: relative; overflow: hidden; }
.subject-card::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 0.28s; }
.subject-card:hover::after { transform: scaleX(1); }
.subject-card:hover { box-shadow: 0 8px 32px rgba(37,99,235,0.1); transform: translateY(-3px); border-color: #bfdbfe; }
.subject-icon { width: 46px; height: 46px; background: var(--blue-xlight); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; margin-bottom: 16px; }
.subject-name { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.subject-year-tag { font-size: 0.72rem; font-weight: 600; color: var(--blue); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.subject-desc { font-size: 0.87rem; color: var(--muted); line-height: 1.65; margin-bottom: 14px; }
.level-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.level-chip { font-size: 0.7rem; font-weight: 600; background: var(--blue-xlight); color: var(--blue); border-radius: 4px; padding: 3px 9px; }
.subject-price-rows { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 14px; display: flex; flex-direction: column; gap: 0; }
.subject-price-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.subject-price-row:last-child { border-bottom: none; }
.subject-price-row .price-num { font-size: 1rem; font-weight: 700; color: var(--blue); white-space: nowrap; }
.subject-price-row .price-per { font-size: 0.72rem; font-weight: 500; color: var(--muted); margin-left: 2px; }

/* ── Pricing cards ── */
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.price-card { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 28px; transition: all 0.28s; }
.price-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.08); transform: translateY(-3px); }
.price-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.price-icon { width: 42px; height: 42px; background: var(--blue-xlight); border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.price-subject { font-size: 1.05rem; font-weight: 800; color: var(--text); }
.price-rows { display: flex; flex-direction: column; gap: 8px; }
.price-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; background: var(--off-white); border-radius: 8px; border: 1px solid var(--border); }
.price-level { font-size: 0.86rem; font-weight: 600; color: var(--text-mid); }
.price-year { font-size: 0.72rem; color: var(--muted); margin-top: 2px; }
.price-num { font-size: 1.05rem; font-weight: 900; color: var(--blue); }
.price-per { font-size: 0.68rem; color: var(--muted); text-align: right; }
.pricing-note { font-size: 0.82rem; color: var(--muted); margin-top: 24px; text-align: center; font-style: italic; }

/* ── Referral ── */
.referral-box { background: var(--blue); border-radius: 18px; padding: 52px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.referral-offer { font-size: clamp(3rem, 6vw, 5rem); font-weight: 900; color: var(--yellow); line-height: 1; margin-bottom: 6px; }
.referral-offer-sub { font-size: 1.1rem; font-weight: 700; color: var(--white); margin-bottom: 14px; }
.referral-desc { font-size: 0.9rem; color: rgba(255,255,255,0.75); line-height: 1.7; margin-bottom: 24px; }
.referral-steps { display: flex; flex-direction: column; gap: 18px; }
.referral-step { display: flex; gap: 14px; align-items: flex-start; }
.step-num { width: 34px; height: 34px; background: rgba(255,255,255,0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.82rem; font-weight: 800; color: var(--white); flex-shrink: 0; }
.step-title { font-size: 0.92rem; font-weight: 700; color: var(--white); margin-bottom: 2px; }
.step-desc { font-size: 0.83rem; color: rgba(255,255,255,0.65); }

/* ── Starter pack / Form ── */
.starter-wrap { background: var(--blue-xlight); border-radius: 16px; padding: 40px; border: 1px solid #bfdbfe; }
.starter-title { font-size: 1.25rem; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.starter-sub { font-size: 0.87rem; color: var(--muted); margin-bottom: 24px; line-height: 1.6; }
.email-row { display: flex; gap: 10px; }
.email-row input { flex: 1; background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 13px 16px; color: var(--text); font-family: 'Poppins', sans-serif; font-size: 0.9rem; outline: none; transition: border-color 0.2s; }
.email-row input:focus { border-color: var(--blue); }
.starter-note { font-size: 0.76rem; color: var(--muted); margin-top: 10px; }
.starter-includes { margin-top: 20px; padding-top: 20px; border-top: 1px solid #bfdbfe; }
.starter-includes-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.include-item { display: flex; align-items: center; gap: 8px; font-size: 0.84rem; color: var(--text-mid); padding: 5px 0; }
.include-item::before { content: '✓'; color: var(--blue); font-weight: 700; }

/* ── Enrolment form ── */
.form-wrap { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 36px; }
.form-grid { display: flex; flex-direction: column; gap: 16px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 0.8rem; font-weight: 600; color: var(--text-mid); }
.form-group input,
.form-group select,
.form-group textarea { background: var(--off-white); border: 1px solid var(--border); border-radius: 8px; padding: 11px 14px; color: var(--text); font-family: 'Poppins', sans-serif; font-size: 0.9rem; outline: none; transition: border-color 0.2s; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--blue); background: var(--white); }
.form-group textarea { resize: vertical; min-height: 110px; }

/* ── Page header (inner pages) ── */
.page-hero { background: var(--blue-xlight); padding: 116px 0 60px; border-bottom: 1px solid #bfdbfe; }
.page-hero-inner { display: flex; flex-direction: column; gap: 12px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; color: var(--text); }
.page-hero p { font-size: 1rem; color: var(--muted); max-width: 520px; }

/* ── CTA band ── */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1d4ed8 100%); padding: 80px 0; text-align: center; }
.cta-band::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle at 20% 50%, rgba(245,158,11,0.12) 0%, transparent 50%), radial-gradient(circle at 80% 50%, rgba(37,99,235,0.15) 0%, transparent 50%); animation: cta-bg-drift 8s ease-in-out infinite alternate; pointer-events: none; }
@keyframes cta-bg-drift { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(-3%, 2%) scale(1.05); } }
.cta-band .cta-orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.18; pointer-events: none; }
.cta-orb-1 { width: 260px; height: 260px; background: var(--yellow); top: -60px; left: 10%; animation: cta-float-1 6s ease-in-out infinite alternate; }
.cta-orb-2 { width: 200px; height: 200px; background: var(--blue); bottom: -50px; right: 12%; animation: cta-float-2 7s ease-in-out infinite alternate; }
.cta-orb-3 { width: 140px; height: 140px; background: #a78bfa; top: 30%; right: 30%; animation: cta-float-3 5s ease-in-out infinite alternate; }
@keyframes cta-float-1 { 0% { transform: translateY(0) scale(1); } 100% { transform: translateY(20px) scale(1.1); } }
@keyframes cta-float-2 { 0% { transform: translateY(0) scale(1); } 100% { transform: translateY(-18px) scale(1.08); } }
@keyframes cta-float-3 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(15px, -12px) scale(1.15); } }
.cta-band .container { position: relative; z-index: 1; }
.cta-band .cta-glow-line { width: 60px; height: 3px; margin: 0 auto 24px; border-radius: 2px; background: linear-gradient(90deg, var(--yellow), #f97316); box-shadow: 0 0 16px rgba(245,158,11,0.5); animation: cta-glow-pulse 2s ease-in-out infinite; }
@keyframes cta-glow-pulse { 0%, 100% { opacity: 0.7; width: 60px; } 50% { opacity: 1; width: 80px; } }
.cta-band h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 900; color: var(--white); margin-bottom: 10px; letter-spacing: -0.02em; }
.cta-band p { font-size: 1rem; color: rgba(255,255,255,0.65); margin-bottom: 32px; max-width: 440px; margin-left: auto; margin-right: auto; }
.cta-band .btn-cta-glow { display: inline-block; padding: 16px 40px; border-radius: 10px; font-weight: 700; font-size: 1.05rem; font-family: 'Poppins', sans-serif; background: linear-gradient(135deg, var(--yellow), #f97316); color: var(--white); border: none; cursor: pointer; position: relative; transition: all 0.3s ease; box-shadow: 0 4px 24px rgba(245,158,11,0.3); text-decoration: none; }
.cta-band .btn-cta-glow:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 8px 36px rgba(245,158,11,0.45); }
.cta-band .btn-cta-glow::after { content: ''; position: absolute; inset: -3px; border-radius: 13px; background: linear-gradient(135deg, var(--yellow), #f97316); z-index: -1; opacity: 0.4; filter: blur(12px); animation: btn-glow-breathe 2.5s ease-in-out infinite; }
@keyframes btn-glow-breathe { 0%, 100% { opacity: 0.3; transform: scale(1); } 50% { opacity: 0.55; transform: scale(1.04); } }
/* CTA scroll entrance */
.cta-band .cta-content { opacity: 0; transform: translateY(20px); transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.cta-band .cta-content.visible { opacity: 1; transform: translateY(0); }

/* ── Year tab switcher & course rows ── */
.year-tabs { display: flex; border: 2px solid var(--blue); border-radius: 12px; overflow: hidden; width: fit-content; margin: 0 auto 36px; }
.year-tab { padding: 13px 52px; font-size: 1rem; font-weight: 700; border: none; cursor: pointer; background: white; color: var(--blue); transition: all 0.2s; font-family: inherit; }
.year-tab.active { background: var(--blue); color: white; }
.year-panel { display: flex; flex-direction: column; gap: 12px; }
.course-row { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 22px 26px; background: var(--white); border: 1px solid var(--border); border-radius: 14px; transition: all 0.25s; }
.course-row:hover { box-shadow: 0 6px 24px rgba(37,99,235,0.09); border-color: #bfdbfe; transform: translateX(4px); }
.course-row-main { display: flex; gap: 16px; align-items: center; flex: 1; min-width: 0; }
.course-row-name { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.course-row-desc { font-size: 0.81rem; color: var(--muted); line-height: 1.55; }
.course-row-meta { display: flex; align-items: center; gap: 24px; flex-shrink: 0; }
.course-meta-chip { display: flex; flex-direction: column; align-items: center; text-align: center; }
.meta-label { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); margin-bottom: 3px; }
.meta-val { font-size: 0.82rem; font-weight: 600; color: var(--text); white-space: nowrap; }
.course-price-tag { font-size: 1.35rem; font-weight: 900; color: var(--blue); white-space: nowrap; line-height: 1; }
.course-price-tag .per { font-size: 0.7rem; font-weight: 500; color: var(--muted); }

/* ── Course cards (vertical) ── */
.course-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.course-card { background: var(--white); border: 2px solid #1e293b; border-radius: 18px; padding: 30px 26px; display: flex; flex-direction: column; gap: 12px; transition: all 0.28s; }
.course-card:hover { background: var(--blue-xlight); border-color: var(--blue); transform: translateY(-4px); box-shadow: 0 10px 36px rgba(37,99,235,0.12); }
.course-card-icon { width: 50px; height: 50px; background: var(--blue-xlight); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.course-card-name { font-size: 1.2rem; font-weight: 800; color: var(--text); }
.course-card-topics { font-size: 0.82rem; color: var(--muted); line-height: 1.6; flex: 1; }
.course-card-details { display: flex; flex-direction: column; gap: 6px; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.course-detail-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; }
.course-detail-row .detail-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.course-detail-row span:last-child { font-weight: 600; color: var(--text); }
.course-card-price { font-size: 1.8rem; font-weight: 900; color: var(--blue); line-height: 1; }
.course-card-price span { font-size: 0.85rem; font-weight: 500; color: var(--muted); }

/* ── Infinite scroll carousel ── */
.scroll-wrap { overflow: hidden; position: relative; }
.scroll-track { display: flex; gap: 16px; width: max-content; animation: marquee var(--speed, 40s) linear infinite; }
.scroll-track .testi-card { width: 340px; flex-shrink: 0; opacity: 1; transform: none; }
.scroll-row { display: flex; flex-direction: column; gap: 16px; }
.scroll-row .scroll-track:nth-child(2) { animation-direction: reverse; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── FAQ ── */
.faq-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 0; cursor: pointer; transition: all 0.25s; overflow: hidden; }
.faq-item:hover { border-color: #bfdbfe; }
.faq-item.open { border-color: var(--blue); }
.faq-question { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; font-size: 0.95rem; font-weight: 700; color: var(--text); }
.faq-toggle { font-size: 1.3rem; font-weight: 400; color: var(--blue); transition: transform 0.25s; flex-shrink: 0; margin-left: 16px; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-answer { padding: 0 22px 18px; font-size: 0.87rem; color: var(--muted); line-height: 1.7; display: none; }
.faq-item.open .faq-answer { display: block; }

/* ── VS comparison ── */
.vs-container { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; max-width: 900px; margin: 0 auto; align-items: stretch; }
.vs-col { border-radius: 20px; padding: 36px 32px; display: flex; flex-direction: column; gap: 14px; }
.vs-lume { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); border: 2px solid var(--blue); opacity: 0; transform: translateX(-30px); transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.vs-other { background: #f9fafb; border: 2px solid var(--border); opacity: 0; transform: translateX(30px); transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.vs-container.visible .vs-lume { opacity: 1; transform: translateX(0); }
.vs-container.visible .vs-other { opacity: 1; transform: translateX(0); transition-delay: 0.08s; }
.vs-header { text-align: center; margin-bottom: 8px; }
.vs-logo { width: 56px; height: 56px; margin: 0 auto 8px; display: block; object-fit: contain; }
.vs-col-title { font-size: 1.3rem; font-weight: 900; color: var(--text); }
.vs-item { font-size: 0.95rem; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 10px; padding: 8px 0; transition: transform 0.2s; opacity: 0; transform: translateX(-15px); }
.vs-container.visible .vs-item { animation: vs-item-in 0.18s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.vs-container.visible .vs-lume .vs-item:nth-child(2) { animation-delay: 0.18s; }
.vs-container.visible .vs-lume .vs-item:nth-child(3) { animation-delay: 0.21s; }
.vs-container.visible .vs-lume .vs-item:nth-child(4) { animation-delay: 0.24s; }
.vs-container.visible .vs-lume .vs-item:nth-child(5) { animation-delay: 0.27s; }
.vs-container.visible .vs-lume .vs-item:nth-child(6) { animation-delay: 0.3s; }
.vs-container.visible .vs-lume .vs-item:nth-child(7) { animation-delay: 0.33s; }
.vs-container.visible .vs-lume .vs-item:nth-child(8) { animation-delay: 0.36s; }
.vs-container.visible .vs-lume .vs-item:nth-child(9) { animation-delay: 0.39s; }
.vs-container.visible .vs-other .vs-item:nth-child(2) { animation-delay: 0.25s; }
.vs-container.visible .vs-other .vs-item:nth-child(3) { animation-delay: 0.28s; }
.vs-container.visible .vs-other .vs-item:nth-child(4) { animation-delay: 0.31s; }
.vs-container.visible .vs-other .vs-item:nth-child(5) { animation-delay: 0.34s; }
.vs-container.visible .vs-other .vs-item:nth-child(6) { animation-delay: 0.37s; }
.vs-container.visible .vs-other .vs-item:nth-child(7) { animation-delay: 0.4s; }
.vs-container.visible .vs-other .vs-item:nth-child(8) { animation-delay: 0.43s; }
.vs-container.visible .vs-other .vs-item:nth-child(9) { animation-delay: 0.46s; }
@keyframes vs-item-in { 0% { opacity: 0; transform: translateX(-15px); } 100% { opacity: 1; transform: translateX(0); } }
.vs-item:hover { transform: translateX(4px); }
.vs-check { font-size: 1.2rem; color: #22c55e; font-weight: 900; flex-shrink: 0; }
.vs-cross { font-size: 1.2rem; color: #ef4444; font-weight: 900; flex-shrink: 0; }
.vs-other .vs-item { color: var(--muted); font-weight: 500; }
.vs-divider { display: flex; align-items: center; justify-content: center; padding: 0 20px; }
.vs-badge { width: 52px; height: 52px; border-radius: 50%; background: var(--yellow); color: var(--text); font-size: 1rem; font-weight: 900; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(245,158,11,0.3); opacity: 0; transform: scale(0); transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1); }
.vs-container.visible .vs-badge { opacity: 1; transform: scale(1); transition-delay: 0.15s; animation: vs-pulse 2s ease-in-out infinite 0.4s; }
@keyframes vs-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }

/* ── Class flow carousel ── */
.flow-carousel { position: relative; padding: 0 56px; }
.flow-track { display: flex; gap: 16px; overflow: hidden; }
.flow-step { width: calc((100% - 32px) / 3); min-width: calc((100% - 32px) / 3); background: var(--off-white); border: 2px solid var(--border); border-radius: 18px; padding: 32px 24px; text-align: center; transition: all 0.5s; flex-shrink: 0; box-sizing: border-box; }
.flow-step:hover { border-color: var(--blue); background: white; transform: translateY(-4px); box-shadow: 0 12px 32px rgba(37,99,235,0.1); }
.flow-icon { font-size: 2.4rem; margin-bottom: 10px; transition: transform 0.3s; }
.flow-step:hover .flow-icon { transform: scale(1.2) rotate(-6deg); }
.flow-num { width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: white; font-size: 0.85rem; font-weight: 900; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; }
.flow-title { font-size: 1rem; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.flow-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.6; }
.flow-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--blue); background: white; color: var(--blue); font-size: 1.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(37,99,235,0.12); transition: all 0.2s; line-height: 1; }
.flow-btn:hover { background: var(--blue); color: white; }
.flow-prev { left: 0; }
.flow-next { right: 0; }
.flow-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.flow-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); cursor: pointer; transition: all 0.25s; }
.flow-dot.active { background: var(--blue); transform: scale(1.3); }

/* ── Checkbox grid ── */
.checkbox-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.check-label { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 500; color: var(--text); padding: 10px 14px; background: var(--off-white); border: 1px solid var(--border); border-radius: 8px; cursor: pointer; transition: all 0.2s; }
.check-label:hover { border-color: var(--blue); background: var(--blue-xlight); }
.check-label input[type="checkbox"] { accent-color: var(--blue); width: 16px; height: 16px; }

/* ── Success inline ── */
.success-inline { position: absolute; inset: 0; background: white; border-radius: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; z-index: 10; opacity: 0; transition: opacity 0.5s ease; }
.success-inline.show { opacity: 1; }
.success-tick { width: 90px; height: 90px; border-radius: 50%; background: #22c55e; color: white; font-size: 2.8rem; font-weight: 900; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; transform: scale(0); }
.success-inline.show .success-tick { animation: tick-pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s forwards; }
@keyframes tick-pop { 0% { transform: scale(0) rotate(-30deg); } 60% { transform: scale(1.15) rotate(5deg); } 100% { transform: scale(1) rotate(0deg); } }
.success-title { font-size: 1.5rem; font-weight: 800; color: var(--text); margin-bottom: 10px; opacity: 0; }
.success-inline.show .success-title { animation: fade-up 0.5s ease 0.5s forwards; }
.success-text { font-size: 0.95rem; color: var(--muted); opacity: 0; }
.success-inline.show .success-text { animation: fade-up 0.5s ease 0.65s forwards; }
@keyframes fade-up { 0% { opacity: 0; transform: translateY(10px); } 100% { opacity: 1; transform: translateY(0); } }

/* ── Promo cards (referral + starter pack) ── */
.promo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.promo-card { background: var(--white); border: 2px solid var(--border); border-radius: 20px; padding: 36px 30px; text-align: center; transition: all 0.3s; }
.promo-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.1); }
.promo-referral:hover { border-color: var(--yellow); }
.promo-starter:hover { border-color: var(--blue); }
.promo-icon { font-size: 2.8rem; margin-bottom: 12px; }
.promo-title { font-size: 1.15rem; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.promo-highlight { font-size: 2.2rem; font-weight: 900; color: var(--yellow); line-height: 1.1; margin-bottom: 14px; }
.promo-desc { font-size: 0.88rem; color: var(--muted); line-height: 1.65; margin-bottom: 22px; }

/* ── Referral hero (big) ── */
.referral-section { background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%); padding: 80px 0; }
.referral-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.referral-big-amount { font-size: clamp(3.5rem, 7vw, 6rem); font-weight: 900; color: var(--yellow); line-height: 1; margin-bottom: 8px; letter-spacing: -0.03em; }
.referral-big-sub { font-size: 1.2rem; font-weight: 700; color: white; margin-bottom: 18px; }
.referral-big-desc { font-size: 0.95rem; color: rgba(255,255,255,0.75); line-height: 1.7; margin-bottom: 28px; }
.referral-hero-steps { display: flex; flex-direction: column; gap: 20px; }
.referral-step-big { display: flex; gap: 16px; align-items: flex-start; background: rgba(255,255,255,0.1); border-radius: 14px; padding: 22px; backdrop-filter: blur(4px); transition: all 0.25s; }
.referral-step-big:hover { background: rgba(255,255,255,0.18); transform: translateX(6px); }
.step-num-big { width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); color: var(--blue); font-weight: 900; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.step-title-big { font-size: 0.95rem; font-weight: 700; color: white; margin-bottom: 4px; }
.step-desc-big { font-size: 0.82rem; color: rgba(255,255,255,0.7); line-height: 1.55; }

/* ── Teaching photos ── */
.teaching-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.teaching-photo { border-radius: 18px; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.1); transition: transform 0.28s, box-shadow 0.28s; }
.teaching-photo:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,0.15); }
.teaching-photo img { width: 100%; height: 460px; object-fit: cover; object-position: center top; display: block; }
.flip-photo { transform: scaleX(-1); }
.teaching-caption { padding: 14px 20px; font-size: 0.83rem; font-weight: 500; color: var(--muted); background: var(--off-white); border-top: 1px solid var(--border); }

/* ── Included banner ── */
.included-banner { display: flex; justify-content: center; flex-wrap: wrap; gap: 0; background: var(--blue-xlight); border: 1.5px solid #bfdbfe; border-radius: 14px; padding: 14px 24px; margin-bottom: 32px; }
.included-item { display: flex; align-items: center; gap: 8px; font-size: 0.87rem; font-weight: 600; color: var(--blue); padding: 6px 22px; }
.included-item:not(:last-child) { border-right: 1.5px solid #bfdbfe; }

/* ── Location strip ── */
.locations-band { background: var(--off-white); padding: 56px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); text-align: center; }
.locations-row { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 20px; }
.location-tile { background: var(--white); border: 2px solid var(--blue); border-radius: 18px; padding: 30px 48px; text-align: center; transition: all 0.25s; cursor: default; }
.location-tile:hover { background: var(--blue); }
.location-tile:hover .location-city { color: white; }
.location-pin { font-size: 1.8rem; margin-bottom: 8px; }
.location-city { font-size: 1.65rem; font-weight: 800; color: var(--text); transition: color 0.25s; }

/* ── Results win rows ── */
.wins-track { display: flex; gap: 14px; width: max-content; animation: marquee var(--speed, 25s) linear infinite; }
.win-row { display: flex; align-items: center; gap: 20px; padding: 18px 24px; background: var(--white); border: 1px solid var(--border); border-radius: 12px; transition: all 0.25s; min-width: 320px; flex-shrink: 0; scroll-snap-align: start; }
.win-row:hover { box-shadow: 0 6px 24px rgba(37,99,235,0.09); border-color: #bfdbfe; }
.win-row-rank { font-size: 1.1rem; font-weight: 900; color: var(--blue); white-space: nowrap; min-width: 70px; }
.win-row-subject { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.win-row-school { font-size: 0.82rem; color: var(--muted); font-weight: 500; }

/* ── Split layout (image + text) ── */
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-layout-reverse { direction: rtl; }
.split-layout-reverse > * { direction: ltr; }
.split-image { border-radius: 18px; overflow: hidden; box-shadow: 0 8px 36px rgba(0,0,0,0.1); }
.split-image img { width: 100%; height: 480px; object-fit: cover; display: block; transition: transform 0.4s ease; }
.split-image:hover img { transform: scale(1.03); }
.split-image-full { overflow: hidden; }
.split-image-full img { width: 100%; height: 480px; object-fit: cover; display: block; transition: transform 0.4s ease; }
.split-image-full:hover img { transform: scale(1.03); }
.split-text-padded { padding: 56px 48px; }
.split-stats { display: flex; gap: 32px; }
.split-stat { text-align: center; }
.split-stat-num { font-size: 1.8rem; font-weight: 900; color: var(--blue); line-height: 1; margin-bottom: 4px; }
.split-stat-label { font-size: 0.78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.students-split { background: var(--off-white); }


/* ── Class showcase ── */
.class-showcase { position: relative; overflow: hidden; padding: 100px 0; }
.class-showcase-sm { padding: 72px 0; }
.class-showcase-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.02); }
.class-showcase::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(15,23,42,0.8) 0%, rgba(15,23,42,0.5) 50%, rgba(15,23,42,0.15) 100%); }
.class-showcase-content { max-width: 560px; position: relative; z-index: 1; }
.class-showcase .section-label { opacity: 1; transform: none; }

/* ── Subject image cards ── */
.subject-images-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.subject-img-card { border-radius: 14px; overflow: hidden; position: relative; height: 200px; }
.subject-img-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.subject-img-card:hover img { transform: scale(1.06); }
.subject-img-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 60%); }
.subject-img-label { position: absolute; bottom: 14px; left: 18px; color: #fff; font-size: 1rem; font-weight: 700; z-index: 1; letter-spacing: 0.02em; }

/* ── Animate on scroll ── */
.anim { opacity: 0; transform: translateY(20px); transition: opacity 0.25s cubic-bezier(0.22, 1, 0.36, 1), transform 0.25s cubic-bezier(0.22, 1, 0.36, 1); }
.anim.visible { opacity: 1; transform: translateY(0); }

/* Staggered grid children */
.grid-2 .anim:nth-child(2) { transition-delay: 0.05s; }
.grid-3 .anim:nth-child(2) { transition-delay: 0.05s; }
.grid-3 .anim:nth-child(3) { transition-delay: 0.1s; }
.course-grid .anim:nth-child(2) { transition-delay: 0.04s; }
.course-grid .anim:nth-child(3) { transition-delay: 0.08s; }
.course-grid .anim:nth-child(4) { transition-delay: 0.12s; }
.course-grid .anim:nth-child(5) { transition-delay: 0.16s; }
.course-grid .anim:nth-child(6) { transition-delay: 0.2s; }
.course-grid .anim:nth-child(7) { transition-delay: 0.24s; }
.promo-grid .anim:nth-child(1) { transition-delay: 0s; }
.promo-grid .anim:nth-child(2) { transition-delay: 0.06s; }

/* Section labels & titles swoosh */
.section-label { opacity: 0; transform: translateX(-20px); transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1); }
.section-title { opacity: 0; transform: translateX(-20px); transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1); transition-delay: 0.03s; }
.divider { opacity: 0; transform: scaleX(0); transform-origin: left; transition: opacity 0.2s ease, transform 0.2s ease; transition-delay: 0.06s; }
.section-sub { opacity: 0; transition: opacity 0.2s ease; transition-delay: 0.09s; }
section.in-view .section-label,
section.in-view .section-title { opacity: 1; transform: translateX(0); }
section.in-view .divider { opacity: 1; transform: scaleX(1); }
section.in-view .section-sub { opacity: 1; }

/* Tutor cards pop */
.tutor-card-v2.anim.visible { animation: card-pop 0.25s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
@keyframes card-pop { 0% { opacity: 0; transform: scale(0.92) translateY(20px); } 100% { opacity: 1; transform: scale(1) translateY(0); } }

/* FAQ stagger */
.faq-list .anim:nth-child(2) { transition-delay: 0.04s; }
.faq-list .anim:nth-child(3) { transition-delay: 0.08s; }
.faq-list .anim:nth-child(4) { transition-delay: 0.12s; }
.faq-list .anim:nth-child(5) { transition-delay: 0.16s; }
.faq-list .anim:nth-child(6) { transition-delay: 0.2s; }

/* Pillar slide-in from left */
.pillar.anim { opacity: 0; transform: translateX(-25px); transition: opacity 0.2s cubic-bezier(0.22, 1, 0.36, 1), transform 0.2s cubic-bezier(0.22, 1, 0.36, 1); }
.pillar.anim.visible { opacity: 1; transform: translateX(0); }

/* Testi cards shimmer on scroll */
.scroll-wrap { opacity: 0; transform: translateY(15px); transition: opacity 0.3s ease, transform 0.3s ease; }
.scroll-wrap.in-view { opacity: 1; transform: translateY(0); }

/* Subject card icon spin on hover */
.subject-card:hover .subject-icon, .course-card:hover .course-card-icon { animation: icon-wiggle 0.3s ease; }
@keyframes icon-wiggle { 0% { transform: rotate(0deg); } 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } 100% { transform: rotate(0deg); } }

/* Promo cards scale pop */
.promo-card.anim { opacity: 0; transform: scale(0.9); transition: opacity 0.2s cubic-bezier(0.22, 1, 0.36, 1), transform 0.2s cubic-bezier(0.22, 1, 0.36, 1); }
.promo-card.anim.visible { opacity: 1; transform: scale(1); }

/* Referral steps stagger */
.referral-step-big { opacity: 0; transform: translateX(25px); transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1); }
.referral-section.in-view .referral-step-big { opacity: 1; transform: translateX(0); }
.referral-section.in-view .referral-step-big:nth-child(1) { transition-delay: 0.05s; }
.referral-section.in-view .referral-step-big:nth-child(2) { transition-delay: 0.1s; }
.referral-section.in-view .referral-step-big:nth-child(3) { transition-delay: 0.15s; }

/* Flow steps bounce in */
.flow-step { opacity: 0; transform: translateY(15px); transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1); }
.flow-carousel.in-view .flow-step { opacity: 1; transform: translateY(0); }
.flow-carousel.in-view .flow-step:nth-child(1) { transition-delay: 0.03s; }
.flow-carousel.in-view .flow-step:nth-child(2) { transition-delay: 0.06s; }
.flow-carousel.in-view .flow-step:nth-child(3) { transition-delay: 0.09s; }
.flow-carousel.in-view .flow-step:nth-child(4) { transition-delay: 0.12s; }
.flow-carousel.in-view .flow-step:nth-child(5) { transition-delay: 0.15s; }
.flow-carousel.in-view .flow-step:nth-child(6) { transition-delay: 0.18s; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .subject-images-grid { grid-template-columns: repeat(2, 1fr); }
  .split-layout { grid-template-columns: 1fr; gap: 32px; }
  .split-layout-reverse { direction: ltr; }
  .split-image img { height: 280px; }
  .split-image-full img { height: 280px; }
  .split-text-padded { padding: 32px 20px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-bg { display: none; }
  .hero-card { display: none; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .grid-2, .grid-3, .grid-4, .pricing-grid, .faq-list, .course-grid, .promo-grid { grid-template-columns: 1fr; }
  .vs-container { grid-template-columns: 1fr; gap: 16px; }
  .vs-divider { padding: 8px 0; }
  .flow-step { width: 100% !important; min-width: 100% !important; padding: 28px 20px; }
  .flow-carousel { padding: 0 48px; }
  .teaching-grid { grid-template-columns: 1fr; }
  .referral-box { grid-template-columns: 1fr; padding: 36px; gap: 32px; }
  .referral-hero { grid-template-columns: 1fr; gap: 36px; }
  .scroll-track .testi-card { width: 280px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .email-row { flex-direction: column; }
  .page-hero { padding: 110px 0 48px; }
  .course-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .course-row-meta { flex-wrap: wrap; gap: 16px; width: 100%; }
  .year-tab { padding: 12px 32px; font-size: 0.9rem; }
  .location-tile { padding: 24px 32px; }
  .location-city { font-size: 1.3rem; }
}
