/* ─── CUBIC CREW — Global Styles ──────────────────────────────────────────── */

:root {
  --blue:     #2B5CE6;
  --blue-dk:  #1A3FA8;
  --navy:     #0F1C3F;
  --navy-lt:  #1a2f5e;
  --grey-lt:  #F4F6FA;
  --grey-bd:  #E2E8F0;
  --grey-mid: #8A94A6;
  --text:     #1A1A1A;
  --text-lt:  #374151;
  --white:    #FFFFFF;
  --green:    #16a34a;
  --orange:   #b45309;
  --radius:   12px;
  --radius-sm:8px;
  --shadow:   0 2px 12px rgba(0,0,0,.07);
  --shadow-md:0 8px 32px rgba(0,0,0,.1);
  --max-w:    1160px;
  --section-pad: 80px 24px;
  --section-pad-sm: 48px 20px;
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ─── UTILITY ─────────────────────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.section-label {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 8px;
}
.section-title {
  font-size: clamp(22px, 4vw, 30px); font-weight: 800; color: var(--navy);
  letter-spacing: -.02em; line-height: 1.2; margin-bottom: 8px;
}
.section-sub {
  font-size: 16px; color: var(--grey-mid); max-width: 580px; margin-bottom: 32px;
}

/* ─── BUTTONS ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 14px 26px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 700; transition: all .18s; cursor: pointer;
  min-height: 48px; white-space: nowrap;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dk); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(43,92,230,.35); }
.btn-ghost-dark { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.35); }
.btn-ghost-dark:hover { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.08); }
.btn-ghost-blue { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-ghost-blue:hover { background: var(--blue); color: var(--white); }
.btn-white { background: var(--white); color: var(--blue); }
.btn-white:hover { background: var(--grey-lt); transform: translateY(-1px); }
.btn-wa { background: #25D366; color: var(--white); }
.btn-wa:hover { background: #1dbe5a; }

/* ─── NAVIGATION ──────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.97); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--grey-bd);
  padding: 0 24px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { font-weight: 900; font-size: 18px; color: var(--blue); letter-spacing: .04em; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--text-lt);
  cursor: pointer; transition: all .15s; position: relative;
}
.nav-link:hover { background: var(--grey-lt); color: var(--navy); }
.nav-link.active { color: var(--blue); font-weight: 600; }
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none; position: absolute; top: calc(100% + 4px); left: 0;
  background: var(--white); border: 1px solid var(--grey-bd); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 8px; min-width: 180px; z-index: 300;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-item {
  display: block; padding: 10px 14px; border-radius: 8px; font-size: 14px; color: var(--text-lt);
  transition: all .12s;
}
.nav-dropdown-item:hover { background: var(--grey-lt); color: var(--navy); }
.nav-cta { background: var(--blue); color: var(--white) !important; padding: 9px 18px !important; border-radius: 8px; font-weight: 700 !important; margin-left: 8px; }
.nav-cta:hover { background: var(--blue-dk) !important; }

/* hamburger */
.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 8px; cursor: pointer; border-radius: 8px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: all .2s; }
.nav-mobile {
  display: none; position: fixed; inset: 64px 0 0 0; background: var(--white); z-index: 199;
  padding: 24px; overflow-y: auto; flex-direction: column; gap: 4px;
}
.nav-mobile.open { display: flex; }
.nav-mobile-item {
  display: block; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 16px; font-weight: 500;
  color: var(--text); border-bottom: 1px solid var(--grey-lt);
}
.nav-mobile-item:last-child { border-bottom: none; }
.nav-mobile-cta { background: var(--blue); color: var(--white) !important; margin-top: 12px; text-align: center; font-weight: 700; border-radius: var(--radius-sm); }

/* ─── HERO ────────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #080f22 0%, var(--navy) 55%, #1a3a6e 100%);
  padding: 88px 24px 80px; color: var(--white); position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(43,92,230,.18) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner { max-width: var(--max-w); margin: 0 auto; position: relative; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(43,92,230,.25); border: 1px solid rgba(43,92,230,.45); color: #93baff;
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(28px, 5.5vw, 52px); font-weight: 900; line-height: 1.1;
  letter-spacing: -.03em; margin-bottom: 20px; max-width: 680px;
}
.hero-sub {
  font-size: clamp(15px, 2vw, 18px); color: rgba(255,255,255,.72); max-width: 560px;
  line-height: 1.65; margin-bottom: 36px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ─── SUBJECT GRID (homepage) ─────────────────────────────────────────────── */
.subjects-section { padding: var(--section-pad); background: var(--grey-lt); }
.subjects-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 32px;
}
.subject-card {
  background: var(--white); border-radius: var(--radius); padding: 22px 20px;
  border: 1.5px solid var(--grey-bd); transition: all .18s; display: flex; flex-direction: column;
}
.subject-card:hover { border-color: var(--blue); box-shadow: 0 6px 24px rgba(43,92,230,.12); transform: translateY(-2px); }
.subject-card-wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 20px; }
.subject-tag {
  display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; padding: 3px 9px; border-radius: 4px; margin-bottom: 10px;
}
.tag-math   { background: #EEF3FF; color: var(--blue); }
.tag-econ   { background: #F0FFF4; color: var(--green); }
.tag-ds     { background: #FEF9EE; color: var(--orange); }
.subject-name { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 5px; }
.subject-desc { font-size: 13px; color: var(--grey-mid); line-height: 1.45; flex: 1; }
.subject-link { font-size: 13px; font-weight: 700; color: var(--blue); margin-top: 14px; display: inline-flex; align-items: center; gap: 4px; }
.subject-icon { width: 52px; height: 52px; border-radius: var(--radius-sm); background: #FEF9EE; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }

/* ─── TRUST BAR ───────────────────────────────────────────────────────────── */
.trust-section { background: var(--navy); padding: var(--section-pad); }
.trust-stats { display: flex; gap: 0; margin-bottom: 32px; width: 100%; max-width: 100%; }
.trust-stat { flex: 1; text-align: center; padding: 0 24px; border-right: 1px solid rgba(255,255,255,.1); }
.trust-stat:last-child { border-right: none; }
.trust-stat-num { font-size: clamp(28px, 5vw, 44px); font-weight: 900; color: var(--white); letter-spacing: -.03em; }
.trust-stat-label { font-size: 13px; color: rgba(255,255,255,.5); margin-top: 4px; }
.trust-badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 0; }
.badge {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.8); font-size: 13px; font-weight: 500;
  padding: 10px 14px; border-radius: 12px; text-align: center;
}

/* ─── REVIEWS ─────────────────────────────────────────────────────────────── */
.reviews-section { padding: var(--section-pad); background: var(--white); }
.review-card {
  background: var(--grey-lt); border-radius: 16px; padding: 32px;
  border: 1px solid var(--grey-bd);
}
.review-stars { color: #FBBF24; font-size: 18px; margin-bottom: 14px; letter-spacing: 2px; }
.review-text { font-size: 16px; color: var(--text-lt); line-height: 1.7; font-style: italic; margin-bottom: 20px; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-dk));
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 700; font-size: 15px; flex-shrink: 0;
}
.review-photo {
  width: 40px; height: 40px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0; background: none;
  display: block;
}
.review-name { font-weight: 700; font-size: 14px; color: var(--navy); }
.review-course { font-size: 12px; color: var(--grey-mid); }
.reviews-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }


/* ─── FINAL CTA ───────────────────────────────────────────────────────────── */
.final-cta {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dk) 100%);
  padding: var(--section-pad); text-align: center;
}
.final-cta h2 { font-size: clamp(24px, 4vw, 36px); font-weight: 900; color: var(--white); margin-bottom: 12px; letter-spacing: -.02em; }
.final-cta p { font-size: 16px; color: rgba(255,255,255,.75); max-width: 500px; margin: 0 auto 32px; }
.final-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─── SUBJECT PAGE: PAIN POINTS ───────────────────────────────────────────── */
.pain-section { padding: var(--section-pad); background: var(--white); }
.pain-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.pain-card { border-radius: var(--radius); padding: 22px; border: 1px solid; }
.pain-card.math  { background: #FEF2F2; border-color: #FECACA; }
.pain-card.econ  { background: #FFFBEB; border-color: #FDE68A; }
.pain-card.ds    { background: #F0FFF4; border-color: #BBF7D0; }
.pain-icon { font-size: 22px; margin-bottom: 10px; }
.pain-text { font-size: 14px; color: var(--text-lt); line-height: 1.55; font-weight: 500; text-wrap: balance; }

/* ─── SUBJECT PAGE: FORMATS ───────────────────────────────────────────────── */
.formats-section { padding: var(--section-pad); background: var(--grey-lt); }
.formats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.formats-grid--two { grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; }
.format-card {
  background: var(--white); border-radius: 16px; padding: 28px 24px;
  border: 1.5px solid var(--grey-bd); display: flex; flex-direction: column; position: relative;
}
.format-card.featured { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(43,92,230,.08); }
.format-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: var(--white); font-size: 10px; font-weight: 700;
  padding: 3px 14px; border-radius: 20px; white-space: nowrap;
}
.format-name { font-size: 17px; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.format-size { font-size: 12px; color: var(--grey-mid); margin-bottom: 16px; }
.format-price { font-size: 28px; font-weight: 900; color: var(--blue); letter-spacing: -.02em; }
.format-price-note { font-size: 13px; color: var(--grey-mid); margin-bottom: 20px; margin-top: 2px; }
.format-list { list-style: none; display: flex; flex-direction: column; gap: 8px; flex: 1; margin-bottom: 24px; }
.format-list li { font-size: 14px; color: var(--text-lt); display: flex; gap: 9px; align-items: flex-start; }
.format-list li::before { content: "✓"; color: var(--blue); font-weight: 800; flex-shrink: 0; }
.format-cta { width: 100%; padding: 13px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 700; text-align: center; transition: all .15s; min-height: 48px; display: block; }
.format-cta-wa { display: block; width: 100%; padding: 10px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; text-align: center; color: #16a34a; background: #f0fdf4; border: 1.5px solid #bbf7d0; margin-top: 8px; transition: all .15s; }
.format-cta-wa:hover { background: #dcfce7; }
.format-cta.primary { background: var(--blue); color: var(--white); }
.format-cta.primary:hover { background: var(--blue-dk); }
.format-cta.outline { background: var(--white); color: var(--blue); border: 1.5px solid var(--blue); }
.format-cta.outline:hover { background: var(--blue); color: var(--white); }

.crash-card {
  background: #FFF7ED; border: 1.5px solid #FED7AA; border-radius: 14px;
  padding: 22px 24px; margin-top: 16px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.crash-badge { display: inline-block; background: #EA580C; color: var(--white); font-size: 10px; font-weight: 700; padding: 3px 12px; border-radius: 20px; margin-bottom: 6px; }
.crash-title { font-size: 16px; font-weight: 800; color: #7c2d12; }
.crash-desc { font-size: 13px; color: #9a3412; line-height: 1.5; margin-top: 4px; }
.crash-price { font-size: 26px; font-weight: 900; color: #EA580C; margin-left: auto; white-space: nowrap; }
.crash-price small { font-size: 13px; font-weight: 500; }

/* Schedule list */
.schedule-list { margin-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.schedule-item { font-size: 12px; color: var(--grey-mid); display: flex; gap: 8px; }
.schedule-item::before { content: "→"; color: var(--blue); flex-shrink: 0; }

/* ─── SUBJECT PAGE: BENEFITS ──────────────────────────────────────────────── */
.benefits-section { padding: var(--section-pad); background: var(--white); }
.benefits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.benefit-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px; background: var(--grey-lt); border-radius: var(--radius-sm);
}
.benefit-icon {
  width: 40px; height: 40px; border-radius: 10px; background: #EEF3FF;
  display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0;
}
.benefit-title { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.benefit-desc { font-size: 13px; color: var(--grey-mid); line-height: 1.45; }

/* ─── SUBJECT PAGE: WHY ───────────────────────────────────────────────────── */
.why-section { padding: var(--section-pad); background: var(--navy); }
.why-label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #7aadff; margin-bottom: 8px; }
.why-title { font-size: clamp(22px, 4vw, 30px); font-weight: 900; color: var(--white); line-height: 1.2; margin-bottom: 32px; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.why-item {
  display: flex; gap: 12px; padding: 16px; align-items: flex-start;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-sm);
}
.why-check { color: #34d399; font-size: 16px; flex-shrink: 0; margin-top: 1px; font-weight: 700; }
.why-text { font-size: 14px; color: rgba(255,255,255,.82); line-height: 1.5; }

/* ─── SUBJECT PAGE: TUTORS ────────────────────────────────────────────────── */
.tutors-section { padding: var(--section-pad); background: var(--white); }
.tutors-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }
.tutors-grid.two-up { grid-template-columns: 1fr 1fr; max-width: 480px; }
.tutor-card {
  background: var(--grey-lt); border-radius: 14px; padding: 24px 20px; text-align: center;
  border: 1px solid var(--grey-bd);
}
.tutor-avatar {
  width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dk));
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 28px; font-weight: 900;
}
.tutor-name { font-size: 16px; font-weight: 800; color: var(--navy); margin-bottom: 3px; }
.tutor-role { font-size: 12px; font-weight: 700; color: var(--blue); margin-bottom: 8px; }
.tutor-cred { font-size: 12px; color: var(--grey-mid); line-height: 1.5; }

/* ─── SUBJECT PAGE: FAQ ───────────────────────────────────────────────────── */
.faq-section { padding: var(--section-pad); background: var(--grey-lt); }
.faq-list { margin-top: 28px; display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--white); border-radius: var(--radius-sm);
  border: 1px solid var(--grey-bd); overflow: hidden;
}
.faq-q {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 20px; cursor: pointer; transition: background .12s;
}
.faq-q:hover { background: #fafbff; }
.faq-q-text { font-size: 15px; font-weight: 600; color: var(--navy); }
.faq-icon {
  width: 28px; height: 28px; border-radius: 50%; background: var(--grey-lt);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 300; color: var(--blue); flex-shrink: 0; transition: transform .2s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease;
  font-size: 14px; color: var(--text-lt); line-height: 1.65; padding: 0 20px;
}
.faq-item.open .faq-a { max-height: 400px; padding: 0 20px 18px; }

/* ─── EXAM LAB SECTION ────────────────────────────────────────────────────── */
.exam-lab-section { padding: var(--section-pad); background: var(--navy); }
.exam-lab-inner { max-width: 680px; margin: 0 auto; text-align: center; }
.exam-lab-badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.exam-lab-badge {
  display: inline-block; background: var(--blue); color: var(--white);
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 20px;
}
.exam-lab-badge--hot {
  background: rgba(251,146,60,.2); color: #fdba74;
  border-color: rgba(251,146,60,.4); text-transform: none; letter-spacing: 0;
}
.exam-lab-title { font-size: clamp(22px, 3.5vw, 30px); font-weight: 900; color: var(--white); margin-bottom: 12px; }
.exam-lab-sub { font-size: 15px; color: rgba(255,255,255,.75); line-height: 1.6; margin-bottom: 20px; }
.exam-lab-list {
  list-style: none; padding: 0; margin: 0 auto 28px; display: inline-flex;
  flex-wrap: wrap; gap: 10px 20px; justify-content: center;
}
.exam-lab-list li { font-size: 14px; color: rgba(255,255,255,.85); font-weight: 500; }
.exam-lab-list li::before { content: '✓ '; color: var(--blue); font-weight: 700; }
.exam-lab-date { font-size: 15px; font-weight: 600; color: rgba(255,255,255,.85); margin-bottom: 16px; }
.exam-lab-btn { display: inline-block; }
.exam-lab-coupon { margin-top: 12px; font-size: 14px; color: rgba(255,255,255,.65); }
.exam-lab-coupon code {
  background: rgba(255,255,255,.12); color: var(--white);
  padding: 2px 8px; border-radius: 6px; font-weight: 700; letter-spacing: .04em;
}
.exam-lab-coming-soon { font-size: 15px; color: rgba(255,255,255,.5); font-style: italic; }
.exam-lab-coupon-br { display: none; }

/* ─── ENROLL CTA SECTION ──────────────────────────────────────────────────── */
.enroll-section {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dk) 100%);
  padding: var(--section-pad); text-align: center;
}
.enroll-section h2 { font-size: clamp(22px, 4vw, 32px); font-weight: 900; color: var(--white); margin-bottom: 10px; }
.enroll-section p { font-size: 16px; color: rgba(255,255,255,.75); max-width: 480px; margin: 0 auto 28px; }
.enroll-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Sticky mobile CTA */
.sticky-cta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--white); border-top: 1px solid var(--grey-bd);
  padding: 12px 16px; gap: 10px; z-index: 300; box-shadow: 0 -4px 20px rgba(0,0,0,.1);
}
.sticky-btn { flex: 1; padding: 13px; border-radius: 10px; font-size: 14px; font-weight: 700; text-align: center; }

/* ─── CONTACT PAGE ────────────────────────────────────────────────────────── */
.contact-section { padding: var(--section-pad); }
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; margin-top: 32px; }
.contact-form-title { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 20px; }
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-lt); margin-bottom: 6px; }
.form-input {
  width: 100%; border: 1.5px solid var(--grey-bd); border-radius: var(--radius-sm);
  padding: 11px 14px; font-size: 15px; color: var(--text); background: var(--white);
  outline: none; transition: border-color .15s; font-family: inherit;
}
.form-input:focus { border-color: var(--blue); }
.form-input.textarea { height: 110px; resize: vertical; }
.form-submit {
  width: 100%; background: var(--blue); color: var(--white); border: none;
  padding: 14px; border-radius: var(--radius-sm); font-size: 16px; font-weight: 700;
  cursor: pointer; transition: all .15s; min-height: 52px;
}
.form-submit:hover { background: var(--blue-dk); transform: translateY(-1px); }
.contact-alt-title { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.contact-channel {
  display: flex; align-items: center; gap: 14px; padding: 16px;
  background: var(--white); border-radius: var(--radius-sm); border: 1px solid var(--grey-bd);
  margin-bottom: 10px; transition: border-color .15s;
}
.contact-channel:hover { border-color: var(--blue); }
.channel-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.ch-wa   { background: #D4FAD5; }
.ch-mail { background: #EEF3FF; }
.channel-label { font-size: 15px; font-weight: 700; color: var(--navy); }
.channel-sub { font-size: 12px; color: var(--grey-mid); margin-top: 2px; }
.contact-quicklinks { display: grid; grid-template-columns: repeat(5,1fr); gap: 10px; margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--grey-bd); }
.ql-card { background: var(--grey-lt); border-radius: var(--radius-sm); padding: 16px; text-align: center; border: 1px solid var(--grey-bd); transition: all .15s; }
.ql-card:hover { border-color: var(--blue); background: #EEF3FF; }
.ql-emoji { font-size: 22px; margin-bottom: 6px; }
.ql-name { font-size: 12px; font-weight: 600; color: var(--navy); }

/* ─── FOOTER ──────────────────────────────────────────────────────────────── */
.footer { background: #070d1a; padding: 40px 24px 28px; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; margin-bottom: 32px; flex-wrap: wrap; }
.footer-logo { font-weight: 900; font-size: 20px; color: var(--blue); letter-spacing: .04em; margin-bottom: 8px; }
.footer-tagline { font-size: 13px; color: rgba(255,255,255,.35); max-width: 240px; line-height: 1.5; }
.footer-nav { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-nav-col { display: flex; flex-direction: column; gap: 8px; }
.footer-nav-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: 4px; }
.footer-nav-link { font-size: 14px; color: rgba(255,255,255,.5); transition: color .12s; }
.footer-nav-link:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.07); }
.footer-copy { font-size: 13px; color: rgba(255,255,255,.25); }
.footer-legal-links { display: flex; gap: 16px; }
.footer-legal-link { font-size: 12px; color: rgba(255,255,255,.35); text-decoration: none; }
.footer-legal-link:hover { color: rgba(255,255,255,.7); }
.footer-wa { display: inline-flex; align-items: center; gap: 6px; background: rgba(37,211,102,.12); border: 1px solid rgba(37,211,102,.25); color: #25D366; font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 20px; transition: all .15s; }
.footer-wa:hover { background: rgba(37,211,102,.2); }

/* ─── LEGAL PAGES ─────────────────────────────────────────────────────────── */
.legal-section { padding: 64px 0 80px; background: var(--white); }
.legal-title { font-size: clamp(24px, 4vw, 36px); font-weight: 900; color: var(--navy); margin-bottom: 40px; letter-spacing: -.02em; }
.legal-content h2 { font-size: 18px; font-weight: 800; color: var(--navy); margin: 36px 0 10px; }
.legal-content h3 { font-size: 15px; font-weight: 700; color: var(--navy); margin: 24px 0 8px; }
.legal-content p { font-size: 15px; color: var(--text-lt); line-height: 1.7; margin-bottom: 14px; }
.legal-content ul { padding-left: 20px; margin-bottom: 14px; }
.legal-content ul li { font-size: 15px; color: var(--text-lt); line-height: 1.7; margin-bottom: 6px; }
.legal-content a { color: var(--blue); text-decoration: underline; }
.legal-content a:hover { color: var(--blue-dk); }
.legal-table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 14px; }
.legal-table th { background: var(--grey-lt); color: var(--navy); font-weight: 700; padding: 10px 12px; text-align: left; border: 1px solid var(--grey-bd); }
.legal-table td { padding: 9px 12px; border: 1px solid var(--grey-bd); color: var(--text-lt); vertical-align: top; }
.legal-table tr:nth-child(even) td { background: #fafafa; }

/* ─── PAYMENT NOTICE ──────────────────────────────────────────────────────── */
.payment-notice {
  background: #FFF7ED; border: 1px solid #FED7AA; border-radius: 8px;
  padding: 12px 16px; margin-top: 12px; font-size: 13px; color: #92400e; line-height: 1.5;
  display: none;
}

/* ─── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .subjects-grid { grid-template-columns: 1fr 1fr; }
  .formats-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .tutors-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-quicklinks { grid-template-columns: repeat(3,1fr); }
  .footer-top { flex-direction: column; }
}

@media (max-width: 640px) {
  :root { --section-pad: var(--section-pad-sm); }
  .exam-lab-coupon-br { display: inline; }

  /* ── Nav ── */
  .nav-links { display: none; }
  .nav-burger { display: flex; }

  /* ── Hero ── */
  .hero { padding: 52px 20px 48px; }
  .hero h1 { font-size: clamp(26px, 7.5vw, 36px); }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; white-space: normal; text-align: center; }

  /* ── Buttons: allow wrapping on narrow screens ── */
  .btn { white-space: normal; }

  /* ── nobr: disable on mobile to prevent horizontal scroll ── */
  nobr { white-space: normal; }

  /* ── Trust section ── */
  .trust-stats { flex-direction: column; max-width: 100%; align-items: center; }
  .trust-stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); padding: 16px 0; text-align: center; width: 100%; }
  .trust-stat:last-child { border-bottom: none; }
  .trust-badges { grid-template-columns: 1fr; gap: 8px; }

  /* ── Hero tag: allow wrapping, show line break ── */
  .hero-tag { white-space: normal; text-align: center; justify-content: center; display: flex; flex-wrap: wrap; }
  .tag-br { display: block; }

  /* ── Subject grid: 1 column ── */
  .subjects-grid { grid-template-columns: 1fr; }
  .subject-card-wide { flex-direction: column; align-items: flex-start; gap: 12px; }
  .subject-link-wide { align-self: flex-start !important; }

  /* ── Pain ── */
  .pain-grid { grid-template-columns: 1fr; }

  /* ── Formats ── */
  .formats-grid { grid-template-columns: 1fr; }
  .format-card { padding: 22px 18px; }

  /* ── Benefits ── */
  .benefits-grid { grid-template-columns: 1fr; }

  /* ── Why ── */
  .why-grid { grid-template-columns: 1fr; }

  /* ── Tutors: 1 per row ── */
  .tutors-grid { grid-template-columns: 1fr; }
  .tutors-grid.two-up { grid-template-columns: 1fr; max-width: 100%; }
  .tutors-grid.one-up { max-width: 100%; }

  /* ── Reviews: stacked, one per row ── */
  .reviews-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 16px; }
  .review-card { padding: 20px 18px; }
  .review-text { font-size: 14px; line-height: 1.55; margin-bottom: 12px; }
  .review-stars { font-size: 14px; margin-bottom: 8px; }
  .review-avatar { width: 34px; height: 34px; font-size: 13px; }
  .review-name { font-size: 13px; }
  .review-course { font-size: 11px; }

  /* ── Notice box ── */
  .notice-container { padding: 28px 20px; }

  /* ── Final / enroll CTAs ── */
  .final-cta-btns { flex-direction: column; align-items: center; }
  .final-cta-btns .btn { width: 100%; max-width: 320px; }
  .enroll-btns { flex-direction: column; align-items: center; }
  .enroll-btns .btn { width: 100%; max-width: 320px; }

  /* ── Crash card ── */
  .crash-card { flex-direction: column; align-items: flex-start; }
  .crash-price { margin-left: 0; }

  /* ── Sticky CTA ── */
  .sticky-cta { display: flex; }

  /* ── Contact ── */
  .contact-quicklinks { grid-template-columns: 1fr 1fr; }

  /* ── Footer ── */
  .footer-nav { gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  /* ── IDSST schedule box ── */
  .idsst-schedule-box { padding: 22px 16px; }
}

@media (min-width: 641px) and (max-width: 900px) {
  .pain-grid { grid-template-columns: 1fr 1fr; }
}

/* ─── Format price row ───────────────────────────────────────────────────── */
.format-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}
.format-price-row .format-price { margin-bottom: 0; }
.format-price-row .format-price-note { margin-bottom: 0; }

/* ─── Coming-soon button placeholder ─────────────────────────────────────── */
.format-coming-soon {
  display: block;
  margin-top: 16px;
  padding: 12px 16px;
  background: #fffbeb;
  border: 1px solid #f59e0b;
  border-radius: var(--radius-sm);
  color: #92400e;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.format-coming-soon:hover {
  background: #fef3c7;
  border-color: #d97706;
}
/* ─── Contact form secondary link (below WhatsApp button) ────────────────── */
.format-cta-contact {
  display: block;
  margin-top: 8px;
  text-align: center;
  font-size: 13px;
  color: var(--grey-mid);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.format-cta-contact:hover { color: var(--navy); }

/* ─── Schedule block (inside format card) ────────────────────────────────── */
.schedule-block {
  margin: 12px 0 16px;
  padding: 12px 14px;
  background: var(--grey-lt);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--blue);
}
.schedule-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--grey-mid);
  margin-bottom: 8px;
}
.schedule-item {
  font-size: 13px;
  color: var(--text);
  padding: 3px 0;
  font-variant-numeric: tabular-nums;
}

/* ─── Formats notice ─────────────────────────────────────────────────────── */
.formats-notice {
  background: #EEF3FF;
  border: 1px solid #c7d7fb;
  border-radius: var(--radius);
  padding: 14px 20px;
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 28px;
  line-height: 1.6;
}

/* ─── Page-level unavailable notice ─────────────────────────────────────── */
.unavailable-notice {
  background: #fffbeb;
  border: 2px solid #f59e0b;
  border-radius: var(--radius);
  padding: 16px 24px;
  font-size: 15px;
  color: #78350f;
  text-align: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ─── Subject link soon state ─────────────────────────────────────────────── */
.subject-link-soon {
  color: var(--orange) !important;
  font-size: 13px;
}

/* ─── LAYOUT & TEXT FIXES ────────────────────────────────────────────────── */

/* Balanced text wrapping for headings and hero sub */
h1, h2 { text-wrap: balance; }
.hero-sub { text-wrap: balance; }
.why-text { text-wrap: balance; overflow-wrap: break-word; }

/* Hero h1 — slightly smaller max to prevent single-word orphans */
.hero h1 { font-size: clamp(28px, 5vw, 46px); }

/* Review cards — equal height with author always at bottom */
.review-card { display: flex; flex-direction: column; }
.review-text { flex: 1; }

/* Tutor cred — safe line breaking */
.tutor-cred { overflow-wrap: break-word; word-break: break-word; }

/* Single tutor — centered card */
.tutors-grid.one-up {
  grid-template-columns: 1fr;
  max-width: 380px;
  margin: 28px auto 0;
}

/* Footer tagline — wider so "students" doesn't orphan */
.footer-tagline { max-width: 320px; }

/* Format price — back to stacked (not side-by-side) */
.format-price-row { display: block; }
.format-price-row .format-price { display: block; margin-bottom: 2px; }
.format-price-row .format-price-note { display: block; margin-bottom: 20px; margin-top: 0; }

/* IDSST two-column course layout */
.idsst-course-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 28px;
  align-items: stretch;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
.idsst-schedule-box {
  background: var(--white);
  border-radius: 16px;
  padding: 28px 24px;
  border: 1.5px solid var(--blue);
  box-shadow: 0 0 0 3px rgba(43,92,230,.06);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.idsst-schedule-box .schedule-item {
  justify-content: center;
}
.idsst-schedule-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 11px;
  color: var(--blue);
}
.idsst-schedule-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--grey-bd);
  font-size: 13px;
  color: var(--text-lt);
}
.idsst-schedule-item:last-child { border-bottom: none; }
.idsst-schedule-item .s-date { font-weight: 600; color: var(--navy); }
.idsst-schedule-item .s-time { color: var(--grey-mid); font-size: 12px; }

@media (max-width: 900px) {
  .idsst-course-grid { grid-template-columns: 1fr; }
}

/* Nav logo image */
.nav-logo img { display: block; height: 32px; width: auto; }
.nav-logo { display: flex; align-items: center; }


/* Notice box — sits in its own padded container between hero and pain */
.notice-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px 24px 56px;
}

/* section-sub on subjects page — allow full width so it stays on one line */
.subjects-section .section-sub { max-width: 100%; }

/* Subject card desc — balanced wrapping */
.subject-desc { text-wrap: balance; }

/* When a notice container precedes the pain section, collapse pain top padding */
.notice-container + .pain-section { padding-top: 0; }

/* Footer logo SVG — white filter */
.footer-logo img { filter: brightness(0) invert(1); display: block; height: 26px; width: auto; margin-bottom: 8px; }

/* Tutor cred — tighter line-height for multi-line creds */
.tutor-cred { font-size: 12px; color: var(--grey-mid); line-height: 1.55; text-wrap: balance; }

/* Hero tag line break — hidden on desktop, shown on mobile via @media block */
@media (min-width: 641px) { .tag-br { display: none; } }
