:root {
  --navy: #0B1D3A;
  --blue: #1A5CFF;
  --blue-light: #E8EFFE;
  --gold: #F5A623;
  --gold-light: #FEF3DC;
  --teal: #00C9A7;
  --teal-light: #DFFAF5;
  --white: #FFFFFF;
  --gray-light: #F7F8FC;
  --gray: #8A94A6;
  --text: #0B1D3A;
  --radius: 14px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; color: var(--text); background: var(--white); line-height: 1.7; }
h1,h2,h3,h4 { font-family: 'Syne', sans-serif; line-height: 1.2; }

/* Page Offset for inner pages with fixed nav */
.page-offset { padding-top: 80px; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  background: rgba(11,29,58,0.97);
  backdrop-filter: blur(10px);
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-logo a { font-family: 'Syne', sans-serif; font-size: 1.3rem; font-weight: 800; color: var(--white); letter-spacing: -0.5px; text-decoration: none; }
.nav-logo a span { color: var(--gold); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: var(--blue); color: var(--white); border: none; padding: 0.55rem 1.3rem;
  border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 500;
  cursor: pointer; transition: background 0.2s; text-decoration: none;
}
.nav-cta:hover { background: #0f46d6; }

/* HERO */
.hero {
  min-height: 100vh; background: var(--navy);
  display: flex; align-items: center;
  padding: 8rem 2rem 4rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(26,92,255,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -100px; left: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,201,167,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { max-width: 1100px; margin: 0 auto; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; z-index: 1; position: relative;}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(245,166,35,0.12); color: var(--gold);
  border: 1px solid rgba(245,166,35,0.3);
  padding: 0.4rem 1rem; border-radius: 100px; font-size: 0.85rem; font-weight: 500;
  margin-bottom: 1.5rem;
}
.hero-badge::before { content: '★'; font-size: 0.75rem; }
.hero h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); color: var(--white); font-weight: 800; margin-bottom: 1.2rem; }
.hero h1 .accent { color: var(--gold); }
.hero p { color: rgba(255,255,255,0.65); font-size: 1.05rem; max-width: 480px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  background: var(--blue); color: var(--white); padding: 0.85rem 2rem;
  border-radius: 10px; font-weight: 600; font-size: 1rem; text-decoration: none;
  transition: transform 0.2s, background 0.2s; display: inline-block; border: none; cursor: pointer;
}
.btn-primary:hover { background: #0f46d6; transform: translateY(-1px); }
.btn-secondary {
  background: rgba(255,255,255,0.08); color: var(--white); padding: 0.85rem 2rem;
  border-radius: 10px; font-weight: 500; font-size: 1rem; text-decoration: none;
  border: 1px solid rgba(255,255,255,0.15); transition: background 0.2s; display: inline-block;
}
.btn-secondary:hover { background: rgba(255,255,255,0.14); }
.hero-stats { display: flex; gap: 2rem; margin-top: 2.5rem; }
.hero-stat strong { font-family: 'Syne', sans-serif; font-size: 1.8rem; font-weight: 800; color: var(--white); display: block; }
.hero-stat span { color: rgba(255,255,255,0.5); font-size: 0.85rem; }
.hero-visual {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px; padding: 2rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.hero-card {
  background: rgba(255,255,255,0.06); border-radius: 12px; padding: 1.2rem;
  border: 1px solid rgba(255,255,255,0.07);
}
.hero-card .icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.hero-card h4 { color: var(--white); font-size: 0.9rem; font-weight: 600; margin-bottom: 0.3rem; }
.hero-card p { color: rgba(255,255,255,0.5); font-size: 0.8rem; line-height: 1.4; }
.hero-card.featured { grid-column: span 2; background: rgba(26,92,255,0.15); border-color: rgba(26,92,255,0.3); }

/* SECTIONS */
section { padding: 5rem 2rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-tag {
  display: inline-block; background: var(--blue-light); color: var(--blue);
  font-size: 0.8rem; font-weight: 600; padding: 0.3rem 0.9rem;
  border-radius: 100px; margin-bottom: 1rem; letter-spacing: 0.5px; text-transform: uppercase;
}
.section-title { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; margin-bottom: 1rem; color: var(--navy); }
.section-sub { color: var(--gray); max-width: 560px; font-size: 1rem; }
.section-header { margin-bottom: 3rem; text-align: left; }

/* WHY US */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.why-card {
  background: var(--gray-light); border-radius: var(--radius); padding: 1.8rem;
  border: 1px solid #EAEDF3; transition: transform 0.2s, box-shadow 0.2s;
}
.why-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(11,29,58,0.08); }
.why-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 1rem;
}
.why-icon.blue { background: var(--blue-light); }
.why-icon.gold { background: var(--gold-light); }
.why-icon.teal { background: var(--teal-light); }
.why-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.why-card p { font-size: 0.9rem; color: var(--gray); }

/* PAST PAPERS */
.papers-bg { background: var(--gray-light); }
.papers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.paper-card {
  background: var(--white); border-radius: var(--radius); padding: 1.4rem;
  border: 1px solid #EAEDF3; display: flex; flex-direction: column; gap: 0.8rem;
  transition: box-shadow 0.2s;
}
.paper-card:hover { box-shadow: 0 6px 20px rgba(11,29,58,0.1); }
.paper-badge {
  display: inline-block; font-size: 0.75rem; font-weight: 600; padding: 0.25rem 0.7rem;
  border-radius: 100px; width: fit-content;
}
.paper-badge.grade6 { background: #EDE9FF; color: #5B4DD4; }
.paper-badge.grade7 { background: var(--gold-light); color: #9B6B00; }
.paper-badge.grade8 { background: var(--teal-light); color: #007B64; }
.paper-badge.grade9 { background: #FFE9E9; color: #B93C3C; }
.paper-badge.grade10 { background: #E3F2FD; color: #1565C0; }
.paper-badge.grade11 { background: #E8F5E9; color: #2E7D32; }
.paper-card h4 { font-size: 0.95rem; font-weight: 700; margin-top: 0.5rem;}
.paper-card p { font-size: 0.85rem; color: var(--gray); flex: 1; }
.paper-dl {
  display: flex; align-items: center; gap: 0.5rem;
  color: var(--blue); font-size: 0.88rem; font-weight: 600;
  text-decoration: none; cursor: pointer; background: var(--blue-light);
  padding: 0.5rem 1rem; border-radius: 8px; justify-content: center;
  transition: background 0.2s; margin-top: auto;
}
.paper-dl:hover { background: #d0dcff; }
.paper-dl::before { content: '↓'; font-weight: 700; }

/* NOTES */
.notes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.note-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  border: 1px solid #EAEDF3; transition: transform 0.2s;
}
.note-card:hover { transform: translateY(-2px); }
.note-header { padding: 1.4rem 1.4rem 1rem; }
.note-header h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.3rem; }
.note-header p { font-size: 0.85rem; color: var(--gray); }
.note-topics { padding: 0 1.4rem; }
.note-topic {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 0; border-top: 1px solid #F0F2F7;
  font-size: 0.88rem; color: var(--text);
}
.note-topic::before { content: '✓'; color: var(--teal); font-weight: 700; font-size: 0.8rem; }
.note-footer { padding: 1rem 1.4rem 1.4rem; }
.btn-outline {
  width: 100%; text-align: center; display: block;
  border: 1.5px solid var(--navy); color: var(--navy);
  padding: 0.6rem; border-radius: 8px; font-weight: 600; font-size: 0.88rem;
  text-decoration: none; transition: all 0.2s; cursor: pointer;
  background: transparent;
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* GRADES */
.grades-bg { background: var(--navy); }
.grades-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.grade-card {
  border-radius: var(--radius); padding: 2rem 1.5rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  transition: background 0.2s, transform 0.2s;
  text-align: center;
}
.grade-card:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); }
.grade-num { font-family: 'Syne', sans-serif; font-size: 3rem; font-weight: 800; color: var(--gold); line-height: 1; margin-bottom: 0.5rem; }
.grade-card h3 { color: var(--white); font-size: 1rem; margin-bottom: 0.8rem; }
.grade-card ul { list-style: none; text-align: left; }
.grade-card li { color: rgba(255,255,255,0.6); font-size: 0.85rem; padding: 0.3rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.grade-card li::before { content: '→ '; color: var(--teal); }
.grades-title { color: var(--white); }
.grades-sub { color: rgba(255,255,255,0.5); }
.grades-tag { background: rgba(245,166,35,0.15); color: var(--gold); }

/* TESTIMONIALS */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.testi-card {
  background: var(--gray-light); border-radius: var(--radius); padding: 1.8rem;
  border: 1px solid #EAEDF3;
}
.testi-stars { color: var(--gold); font-size: 0.9rem; margin-bottom: 1rem; }
.testi-text { font-size: 0.95rem; color: var(--text); line-height: 1.7; margin-bottom: 1.2rem; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 0.8rem; }
.testi-avatar {
  width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 0.85rem; font-family: 'Syne', sans-serif;
}
.av1 { background: var(--blue-light); color: var(--blue); }
.av2 { background: var(--gold-light); color: #9B6B00; }
.av3 { background: var(--teal-light); color: #007B64; }
.testi-name { font-weight: 600; font-size: 0.9rem; }
.testi-grade { font-size: 0.8rem; color: var(--gray); }

/* ENROL CTA */
.enrol-bg { background: var(--blue); }
.enrol-inner { text-align: center; }
.enrol-inner h2 { color: var(--white); font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; margin-bottom: 1rem; }
.enrol-inner p { color: rgba(255,255,255,0.75); max-width: 500px; margin: 0 auto 2rem; }
.enrol-form { display: flex; gap: 1rem; max-width: 500px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.enrol-input {
  flex: 1; min-width: 220px; padding: 0.85rem 1.2rem; border: none;
  border-radius: 10px; font-family: 'DM Sans', sans-serif; font-size: 0.95rem;
  outline: none;
}
.enrol-btn {
  background: var(--gold); color: var(--navy); padding: 0.85rem 2rem;
  border-radius: 10px; border: none; font-weight: 700; font-size: 0.95rem;
  cursor: pointer; font-family: 'Syne', sans-serif; transition: opacity 0.2s;
}
.enrol-btn:hover { opacity: 0.9; }
.enrol-features { display: flex; justify-content: center; gap: 2rem; margin-top: 1.5rem; flex-wrap: wrap; }
.enrol-feature { color: rgba(255,255,255,0.75); font-size: 0.85rem; }
.enrol-feature::before { content: '✓ '; color: var(--gold); font-weight: 700; }

/* FOOTER */
footer { background: var(--navy); padding: 3rem 2rem 2rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 2rem; }
.footer-logo { font-family: 'Syne', sans-serif; font-size: 1.3rem; font-weight: 800; color: var(--white); margin-bottom: 0.8rem; }
.footer-logo span { color: var(--gold); }
.footer-desc { color: rgba(255,255,255,0.45); font-size: 0.88rem; line-height: 1.7; }
.footer-col h4 { color: var(--white); font-weight: 700; font-size: 0.9rem; margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: rgba(255,255,255,0.45); font-size: 0.88rem; text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: rgba(255,255,255,0.8); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; }
.footer-copy { color: rgba(255,255,255,0.3); font-size: 0.82rem; }
.footer-seo { color: rgba(255,255,255,0.3); font-size: 0.82rem; }

/* MODAL */
.modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(11,29,58,0.7);
  z-index: 1000; align-items: center; justify-content: center; padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white); border-radius: 20px; padding: 2.5rem;
  max-width: 420px; width: 100%; position: relative;
}
.modal h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 0.5rem; color: var(--navy); }
.modal p { color: var(--gray); font-size: 0.9rem; margin-bottom: 1.5rem; }
.modal-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--gray); }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--text); }
.form-group input, .form-group select {
  width: 100%; padding: 0.7rem 1rem; border: 1.5px solid #EAEDF3; border-radius: 8px;
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem; outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus { border-color: var(--blue); }
.modal-submit {
  width: 100%; background: var(--blue); color: var(--white); border: none;
  padding: 0.9rem; border-radius: 10px; font-weight: 700; font-size: 1rem;
  cursor: pointer; font-family: 'Syne', sans-serif; transition: background 0.2s;
  margin-top: 0.5rem;
}
.modal-submit:hover { background: #0f46d6; }
.success-msg { display: none; text-align: center; padding: 1rem 0; }
.success-msg .tick { font-size: 3rem; }
.success-msg h4 { font-size: 1.1rem; font-weight: 700; margin: 0.5rem 0; color: var(--navy); }
.success-msg p { color: var(--gray); }

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  nav .nav-links { display: none; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
