/* =========================================================
   AccelerateMyEdu — Shared Stylesheet
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=DM+Sans:wght@400;500;600&display=swap');

/* ── Design Tokens ──────────────────────────────────────── */
:root {
  --bg:          #07101f;
  --surface:     #0d1b35;
  --surface-2:   #112040;
  --border:      rgba(255,255,255,0.09);
  --accent:      #4a7cff;
  --accent-soft: rgba(74,124,255,0.15);
  --gold:        #f5a623;
  --gold-soft:   rgba(245,166,35,0.15);
  --text:        #eef2ff;
  --text-muted:  #7a96c2;
  --radius:      14px;
  --radius-sm:   8px;
  --shadow:      0 4px 32px rgba(0,0,0,0.45);
}

/* ── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: 'Sora', sans-serif; line-height: 1.2; }

/* ── Layout Helpers ─────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section-sm { padding: 56px 0; }
.text-center { text-align: center; }

/* ── Navbar ─────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7,16,31,0.85);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 16px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-brand img { height: 34px; width: auto; }
.nav-brand-text { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang-toggle { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--text-muted); }
.lang-toggle button {
  background: none; border: none; cursor: pointer; padding: 3px 7px; border-radius: 5px;
  font-size: 0.82rem; font-family: 'DM Sans', sans-serif; color: var(--text-muted); transition: .2s;
}
.lang-toggle button.active { background: var(--accent-soft); color: var(--accent); }
.lang-toggle .sep { opacity: .35; }
.btn-nav {
  background: var(--accent); color: #fff; border: none; cursor: pointer;
  padding: 9px 20px; border-radius: var(--radius-sm); font-size: 0.88rem;
  font-weight: 600; font-family: 'DM Sans', sans-serif; transition: opacity .2s;
  white-space: nowrap;
}
.btn-nav:hover { opacity: .85; }

/* Mobile hamburger */
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: .3s; }
.nav-mobile {
  display: none; flex-direction: column; gap: 4px;
  padding: 12px 24px 16px; border-top: 1px solid var(--border);
  background: rgba(7,16,31,0.97);
}
.nav-mobile a { padding: 9px 0; font-size: 0.95rem; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile.open { display: flex; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 13px 26px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.95rem; font-family: 'DM Sans', sans-serif;
  cursor: pointer; border: none; transition: .2s; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { opacity: .85; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(74,124,255,.4); }
.btn-gold { background: var(--gold); color: #07101f; }
.btn-gold:hover { opacity: .88; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(245,166,35,.4); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.05); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  padding: 90px 0 70px;
  background: radial-gradient(ellipse 90% 60% at 60% 30%, rgba(74,124,255,.12) 0%, transparent 70%);
}
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--accent-soft); color: var(--accent);
  padding: 6px 14px; border-radius: 999px; font-size: 0.82rem; font-weight: 600;
  border: 1px solid rgba(74,124,255,.25); margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; color: var(--text); margin-bottom: 20px; }
.hero p { font-size: 1.05rem; color: var(--text-muted); max-width: 480px; margin-bottom: 32px; line-height: 1.75; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-image { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.hero-image img { width: 100%; height: 380px; object-fit: cover; }

/* Stats strip */
.stats-strip {
  background: var(--surface);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 32px 0;
}
.stats-strip .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-item { text-align: center; padding: 16px; }
.stat-num { font-family: 'Sora', sans-serif; font-size: 2.2rem; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }
.stat-note { font-size: 0.72rem; color: var(--text-muted); opacity: .6; margin-top: 2px; }

/* ── Section Headings ────────────────────────────────────── */
.section-heading { margin-bottom: 48px; }
.section-heading h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 700; margin-bottom: 12px; }
.section-heading p { font-size: 1rem; color: var(--text-muted); max-width: 560px; }
.section-heading.text-center p { margin: 0 auto; }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .25s, transform .25s;
}
.card:hover { border-color: rgba(74,124,255,.3); transform: translateY(-3px); }
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.card-icon { font-size: 2rem; margin-bottom: 14px; }
.card h4 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 0.9rem; color: var(--text-muted); }
.card ul { list-style: none; margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.card ul li { font-size: 0.88rem; color: var(--text-muted); padding-left: 16px; position: relative; }
.card ul li::before { content: '→'; position: absolute; left: 0; color: var(--accent); font-size: 0.78rem; }
.card-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .05em; padding: 3px 9px; border-radius: 4px;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 10px;
}

/* ── Testimonials ────────────────────────────────────────── */
.testimonial-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.testimonial-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
}
.stars { color: var(--gold); font-size: 0.9rem; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-card blockquote { font-size: 0.95rem; color: var(--text); line-height: 1.7; font-style: italic; margin-bottom: 18px; }
.testimonial-card blockquote::before { content: '"'; font-size: 2rem; color: var(--accent); line-height: 0; vertical-align: -0.5em; margin-right: 4px; }
.testimonial-author strong { font-size: 0.9rem; font-weight: 600; }
.testimonial-author span { display: block; font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }

/* ── Why Section ─────────────────────────────────────────── */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
}
.why-item .why-icon { font-size: 1.8rem; margin-bottom: 14px; }
.why-item h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.why-item p { font-size: 0.9rem; color: var(--text-muted); }

/* ── Contact Form ─────────────────────────────────────────── */
.contact-section {
  background: var(--surface);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-info h2 { font-size: 2rem; font-weight: 700; margin-bottom: 16px; }
.contact-info p { color: var(--text-muted); margin-bottom: 28px; }
.contact-perks { display: flex; flex-direction: column; gap: 14px; }
.perk { display: flex; align-items: flex-start; gap: 12px; }
.perk-icon { font-size: 1.2rem; margin-top: 2px; }
.perk-text strong { display: block; font-size: 0.92rem; font-weight: 600; }
.perk-text span { font-size: 0.85rem; color: var(--text-muted); }

.contact-form { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-group:last-of-type { margin-bottom: 20px; }
.form-group label { font-size: 0.83rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 11px 14px;
  font-family: 'DM Sans', sans-serif; font-size: 0.92rem; color: var(--text);
  outline: none; transition: border-color .2s; width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-group select option { background: #1a2a4a; }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-success {
  display: none; text-align: center; padding: 28px 24px;
  background: rgba(74,255,140,.08); border: 1px solid rgba(74,255,140,.3);
  border-radius: var(--radius); color: #4aff8c;
}

/* ── Tutor Cards ─────────────────────────────────────────── */
.tutors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tutor-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; text-align: center;
  transition: border-color .25s, transform .25s;
}
.tutor-card:hover { border-color: rgba(74,124,255,.3); transform: translateY(-3px); }
.tutor-photo {
  width: 90px; height: 90px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 14px; border: 2.5px solid var(--border);
  background: var(--surface-2);
}
.tutor-photo-placeholder {
  width: 90px; height: 90px; border-radius: 50%; margin: 0 auto 14px;
  background: var(--surface-2); border: 2.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: var(--text-muted);
}
.tutor-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.tutor-subject {
  display: inline-block; font-size: 0.75rem; font-weight: 600;
  background: var(--accent-soft); color: var(--accent);
  padding: 3px 10px; border-radius: 5px; margin-bottom: 10px;
}
.tutor-card p { font-size: 0.83rem; color: var(--text-muted); line-height: 1.55; }
.tutor-tags { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; margin-top: 10px; }
.tutor-tag {
  font-size: 0.72rem; padding: 2px 8px; border-radius: 4px;
  background: var(--gold-soft); color: var(--gold); font-weight: 500;
}

/* Filter bar */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter-btn {
  padding: 7px 16px; border-radius: 999px; font-size: 0.83rem; font-weight: 600;
  border: 1.5px solid var(--border); background: transparent; color: var(--text-muted);
  cursor: pointer; font-family: 'DM Sans', sans-serif; transition: .2s;
}
.filter-btn:hover { border-color: rgba(255,255,255,.25); color: var(--text); }
.filter-btn.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

/* ── Learning Hub ─────────────────────────────────────────── */
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 48px; }
.video-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.video-embed { position: relative; padding-bottom: 56.25%; height: 0; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.video-info { padding: 18px 20px; }
.video-info h4 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.video-info p { font-size: 0.85rem; color: var(--text-muted); }

.resources-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.resource-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column;
}
.resource-type {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; border-radius: 5px;
  margin-bottom: 12px; width: fit-content;
}
.resource-type.pdf  { background: rgba(239,68,68,.12); color: #f87171; }
.resource-type.slides { background: rgba(245,166,35,.12); color: var(--gold); }
.resource-type.notes  { background: rgba(74,124,255,.12); color: #7eb3ff; }
.resource-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; flex: 1; }
.resource-card p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px; }
.resource-card .btn { margin-top: auto; width: 100%; justify-content: center; }

.construction-banner {
  background: var(--gold-soft); border: 1px solid rgba(245,166,35,.3);
  border-radius: var(--radius); padding: 16px 22px; margin-bottom: 36px;
  display: flex; align-items: center; gap: 12px; font-size: 0.9rem; color: var(--gold);
}

/* ── Pricing ─────────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.pricing-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 30px; position: relative;
  display: flex; flex-direction: column;
}
.pricing-card.popular { border-color: var(--accent); }
.popular-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 0.75rem; font-weight: 700;
  padding: 4px 14px; border-radius: 999px; white-space: nowrap;
}
.pricing-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.pricing-card .plan-desc { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 20px; }
.price { display: flex; align-items: flex-end; gap: 6px; margin-bottom: 4px; }
.price-amount { font-family: 'Sora', sans-serif; font-size: 2.2rem; font-weight: 800; color: var(--text); }
.price-period { font-size: 0.85rem; color: var(--text-muted); padding-bottom: 6px; }
.price-note { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 24px; }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; flex: 1; }
.pricing-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; }
.pricing-features li .check { color: #4aff8c; font-size: 0.8rem; flex-shrink: 0; margin-top: 2px; }
.pricing-card .btn { width: 100%; justify-content: center; }

.pricing-extras { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pricing-extra-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column;
}
.pricing-extra-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.pricing-extra-card p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 8px; }
.extra-price { font-family: 'Sora', sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--gold); margin: 10px 0 16px; }
.pricing-extra-card .btn { margin-top: auto; }

/* Free trial callout */
.free-trial-bar {
  background: linear-gradient(135deg, var(--accent-soft), var(--gold-soft));
  border: 1px solid rgba(74,124,255,.2); border-radius: var(--radius);
  padding: 28px 36px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-bottom: 52px;
}
.free-trial-bar h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; }
.free-trial-bar p { font-size: 0.9rem; color: var(--text-muted); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.faq-question {
  width: 100%; background: none; border: none; cursor: pointer; text-align: left;
  padding: 18px 22px; display: flex; justify-content: space-between; align-items: center;
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem; font-weight: 600; color: var(--text);
  gap: 12px;
}
.faq-arrow { font-size: 0.8rem; transition: transform .3s; flex-shrink: 0; color: var(--accent); }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height .35s ease;
  padding: 0 22px;
}
.faq-answer p { padding-bottom: 18px; font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }
.faq-item.open .faq-answer { max-height: 300px; }

/* ── Footer ───────────────────────────────────────────────── */
footer {
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-brand img { height: 32px; margin-bottom: 10px; }
.footer-brand p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.65; max-width: 260px; margin-bottom: 18px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); color: var(--text-muted); font-size: 0.85rem; transition: .2s;
}
.footer-social a:hover { border-color: var(--accent); color: var(--accent); }
.footer-col h4 { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a { font-size: 0.88rem; color: var(--text-muted); transition: color .2s; }
.footer-col ul li a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 20px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.footer-bottom p { font-size: 0.82rem; color: var(--text-muted); }

/* ── Sticky Chat Buttons ──────────────────────────────────── */
.sticky-chat { position: fixed; bottom: 28px; right: 24px; display: flex; flex-direction: column; gap: 10px; z-index: 200; }
.sticky-chat a {
  width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(0,0,0,.45); transition: transform .2s, box-shadow .2s;
  font-size: 1.4rem; text-decoration: none;
}
.sticky-chat a:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(0,0,0,.5); }
.sticky-wa { background: #25D366; }
.sticky-tg { background: #2AABEE; }

/* ── Page Hero (inner pages) ─────────────────────────────── */
.page-hero {
  padding: 64px 0 48px;
  text-align: center;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(74,124,255,.1) 0%, transparent 70%);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: 12px; }
.page-hero p { font-size: 1.05rem; color: var(--text-muted); max-width: 520px; margin: 0 auto; }

/* ── CTA Banner ──────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 48px 40px; text-align: center;
}
.cta-banner h2 { font-size: 1.9rem; font-weight: 700; margin-bottom: 12px; }
.cta-banner p { color: var(--text-muted); margin-bottom: 28px; font-size: 0.95rem; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-banner .btn-group { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Utilities ───────────────────────────────────────────── */
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.accent { color: var(--accent); }
.gold   { color: var(--gold); }
.muted  { color: var(--text-muted); }
.hidden { display: none; }
.tutor-card.filtered-out { display: none; }

/* ── Split-panel section (Learn from Anywhere, etc.) ──────── */
.split-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split-panel img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--shadow);
  display: block;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  .stats-strip .container { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .tutors-grid { grid-template-columns: repeat(3, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-extras { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .free-trial-bar { flex-direction: column; text-align: center; }
  .resources-grid { grid-template-columns: repeat(2, 1fr); }
  .split-panel { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  /* Hide nav links and the desktop CTA button, but KEEP the lang toggle visible */
  .nav-links { display: none; }
  .nav-actions .btn-nav { display: none; }
  .nav-actions { display: flex; align-items: center; }
  .lang-toggle { display: flex; }

  .nav-hamburger { display: block; }
  .card-grid-3, .why-grid, .card-grid-2 { grid-template-columns: 1fr; }
  .tutors-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-strip .container { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .resources-grid { grid-template-columns: 1fr; }
  .split-panel { grid-template-columns: 1fr; gap: 24px; }
  .split-panel img { max-height: 240px; object-fit: cover; }
  /* Style "Get Started" in mobile menu as a button */
  .nav-mobile a:last-child {
    margin-top: 8px;
    background: var(--accent);
    color: #fff !important;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    text-align: center;
    font-weight: 600;
    border-bottom: none;
  }
}

/* ── Schedule Page ───────────────────────────────────────── */
.schedule-tabs {
  display: flex; gap: 0; flex-wrap: wrap;
  border-bottom: 2px solid var(--border);
  margin-bottom: 32px;
}
.sch-tab {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 20px; background: none; border: none;
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem; font-weight: 600; color: var(--text-muted);
  white-space: nowrap; transition: color .2s, border-color .2s;
}
.sch-tab:hover { color: var(--text); }
.sch-tab.active { color: var(--text); border-bottom-color: var(--accent); }

.cal-panel { display: none; }
.cal-panel.active { display: block; }

.cal-embed-wrap {
  position: relative; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
  /* Min height so it looks good even before iframe loads */
  min-height: 520px;
}
.cal-embed-wrap iframe {
  width: 100%; min-height: 520px; border: none; display: block;
  /* Google Calendar light bg — we wrap it in a dark card */
  border-radius: var(--radius);
}
.cal-placeholder {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center;
  padding: 60px 32px; gap: 16px;
}
.cal-placeholder .ph-icon { font-size: 3rem; }
.cal-placeholder h3 { font-size: 1.15rem; font-weight: 700; }
.cal-placeholder p { color: var(--text-muted); font-size: 0.9rem; max-width: 420px; }
.cal-placeholder code {
  display: block; background: var(--bg); border: 1px solid var(--border);
  border-radius: 6px; padding: 10px 14px; font-size: 0.8rem;
  color: var(--accent); text-align: left; margin-top: 4px;
  word-break: break-all;
}

.how-to-steps { display: flex; flex-direction: column; gap: 0; }
.how-step {
  display: flex; gap: 18px; padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.how-step:last-child { border-bottom: none; }
.step-num {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 800; font-size: 0.88rem; font-family: 'Sora', sans-serif;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.step-body h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.step-body p  { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }
.step-body a  { color: var(--accent); text-decoration: underline; }

.exam-dates-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.exam-date-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px 18px;
}
.exam-date-card .exam-season {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--gold); margin-bottom: 6px;
}
.exam-date-card h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 4px; }
.exam-date-card p  { font-size: 0.82rem; color: var(--text-muted); }

@media (max-width: 640px) {
  .exam-dates-grid { grid-template-columns: 1fr; }
  .sch-tab { font-size: 0.8rem; padding: 10px 14px; }
}

/* ── Scroll-to-top button ─────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 158px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.20);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, background .2s;
  z-index: 98;
  pointer-events: none;
}
.scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-top:hover   { background: var(--accent-dark, #c8860a); }

/* ── Legal pages (privacy.html & terms.html) ─────────── */
.legal-doc {
  max-width: 740px;
  margin: 0 auto;
}
.legal-intro {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.legal-section {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.legal-section:last-child { border-bottom: none; }
.legal-section h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.legal-section p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 12px;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul {
  list-style: disc;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-muted);
  line-height: 1.7;
}
.legal-section-highlight {
  background: var(--surface);
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm);
  padding: 24px 28px !important;
  margin-top: 8px;
}
.legal-email {
  display: inline-block;
  margin-top: 8px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  word-break: break-all;
}
.legal-email:hover { text-decoration: underline; }
.accent-text { color: var(--accent); }
