/* ===================================================
   EMBER EDUCATION — STYLESHEET
   =================================================== */

/* ----- CSS VARIABLES ----- */
:root {
  /* Logo-derived palette: cream foundation, espresso text, terracotta as a sparing accent. */
  --navy:        #2a1f1a;   /* espresso — primary text / dark surfaces */
  --navy-light:  #3d2e27;
  --navy-mid:    #5b463d;
  --gold:        #a8341f;   /* logo red — page accent (matches the logo's spark) */
  --gold-light:  #e9b59f;   /* peachy tint for accent on dark backgrounds */
  --gold-dark:   #7c281d;   /* deeper red for hover */
  --gold-fg:     #fdf7ec;   /* cream text colour for use on top of --gold backgrounds */
  --brand-red:   #a8341f;   /* logo spark — kept as a separate variable in case accent ever changes */
  --white:       #ffffff;
  --off-white:   #faf5ee;   /* page foundation — softer, lighter than before */
  --light-gray:  #ebe1d5;   /* soft beige — surfaces / pills */
  --mid-gray:    #7a6e66;   /* warm taupe */
  --dark-gray:   #2a201c;   /* alias of espresso for legibility */
  --text:        #2a201c;
  --text-light:  #6e6258;
  --chemistry:   #a8392a;   /* terracotta */
  --physics:     #6a4a3e;   /* warm cocoa */
  --maths:       #4a6175;   /* slate */
  --e-maths:     #5e6e5b;   /* sage */
  --success:     #4a6e4d;
  --error:       #a64c44;
  --border:      #e4d7cd;
  --shadow:      0 2px 16px rgba(42, 32, 28, 0.08);
  --shadow-lg:   0 12px 36px rgba(42, 32, 28, 0.16);
  --radius:      12px;
  --radius-sm:   8px;
  --radius-lg:   20px;
  --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----- RESET & BASE ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
  color: var(--navy);
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ----- UTILITIES ----- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 100px 0; }
.bg-light    { background: var(--off-white); }
.bg-dark     { background: var(--navy); }
.bg-gradient { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%); }

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-label.light { color: var(--gold-light); }

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}
.section-title.light { color: var(--off-white); }

.section-subtitle {
  font-size: 17px;
  color: var(--text-light);
  max-width: 620px;
  margin: 0 auto;
}
.section-subtitle.light { color: rgba(255,255,255,0.75); }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

/* ----- BUTTONS ----- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--gold);
  color: var(--gold-fg);
  font-weight: 700;
  font-size: 15px;
  border-radius: 50px;
  transition: var(--transition);
  border: 2px solid var(--gold);
}
.btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(168, 57, 42, 0.32);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: var(--navy);
  font-weight: 700;
  font-size: 15px;
  border-radius: 50px;
  border: 2px solid var(--navy);
  transition: var(--transition);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  color: var(--navy);
  font-weight: 600;
  font-size: 14px;
  border-radius: 50px;
  border: 2px solid var(--navy);
  transition: var(--transition);
}
.btn-outline-dark:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: var(--gold);
  color: var(--gold-fg);
  font-weight: 700;
  font-size: 16px;
  border-radius: 50px;
  border: 2px solid var(--gold);
  transition: var(--transition);
}
.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(168,52,31,0.45);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: #25D366;
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  border-radius: 50px;
  border: 2px solid #25D366;
  transition: var(--transition);
}
.btn-whatsapp:hover {
  background: #128C7E;
  border-color: #128C7E;
  transform: translateY(-2px);
}

.btn-large { padding: 18px 36px; font-size: 17px; }

.btn-small {
  display: inline-flex;
  padding: 8px 18px;
  background: var(--gold);
  color: var(--gold-fg);
  font-weight: 600;
  font-size: 13px;
  border-radius: 50px;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-small:hover {
  background: var(--gold-dark);
  color: var(--white);
}

.btn-full { width: 100%; justify-content: center; }

/* ----- NAVIGATION ----- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(253, 247, 236, 0.85);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(42, 32, 28, 0.06);
  padding: 12px 0;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

/* ----- BRAND LOGO (inline SVG) ----- */
.brand-logo {
  display: block;
  height: 64px;
  width: auto;
  flex-shrink: 0;
}
.brand-mark { fill: var(--brand-red); }
.brand-word {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 96px;
  letter-spacing: -0.01em;
  fill: var(--navy);
}
.brand-sub {
  font-family: 'Geist', 'Inter', sans-serif;
  font-size: 26px;
  letter-spacing: 5px;
  font-weight: 500;
  fill: #7a6a55;
}
.footer-logo .brand-word,
.sidebar-logo .brand-word,
.gate-logo .brand-word { fill: #faf2e6; }
.footer-logo .brand-sub,
.sidebar-logo .brand-sub,
.gate-logo .brand-sub { fill: rgba(255,255,255,0.6); }
.footer-logo .brand-logo  { height: 84px; }
.sidebar-logo .brand-logo { height: 56px; }
.login-logo .brand-logo   { height: 88px; }
.gate-logo .brand-logo    { height: 100px; }
@media (max-width: 768px) {
  .nav-logo .brand-logo { height: 48px; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  flex: 1;
}
.nav-links a {
  color: var(--navy);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--gold); }
.nav-portal {
  background: rgba(168,52,31,0.08);
  border: 1px solid rgba(168,52,31,0.25);
  color: var(--gold) !important;
  padding: 6px 14px;
  border-radius: 20px;
}
.nav-portal:hover { background: rgba(168,52,31,0.14); }

.btn-nav { white-space: nowrap; font-size: 14px; padding: 10px 20px; }
.nav-cta { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: var(--transition);
  border-radius: 2px;
}

/* ----- HERO ----- */
.hero {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 60% at 80% 0%, #f5dccd 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 0% 100%, #f0e2cc 0%, transparent 55%),
    linear-gradient(180deg, #fdf7ec 0%, #f8eedd 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 140px 24px 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.22;
}
.orb-1 {
  width: 520px; height: 520px;
  background: var(--gold);
  top: -180px; right: -80px;
  animation: float 8s ease-in-out infinite;
}
.orb-2 {
  width: 380px; height: 380px;
  background: var(--gold-light);
  bottom: -80px; left: -80px;
  animation: float 10s ease-in-out infinite reverse;
}
.orb-3 {
  width: 280px; height: 280px;
  background: #f0c8a4;
  top: 55%; left: 38%;
  animation: float 7s ease-in-out infinite 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}

.hero-content {
  text-align: center;
  max-width: 820px;
  position: relative;
  z-index: 1;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 14px 18px;
  margin-bottom: 28px;
}
.hero-badge-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 2px rgba(42, 32, 28, 0.04);
}
.hero-badges .hero-badge { margin-bottom: 0; }
.hero-badge i { color: var(--gold); }
.contact-whatsapp-wrap {
  padding: 28px 28px;
  align-self: start;
}
.contact-whatsapp-card h3 { margin-bottom: 8px; }
.contact-whatsapp-card p { color: var(--text-light); margin-bottom: 22px; font-size: 14px; }

.hero-postcode {
  font-family: 'Geist', 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--text-light);
  font-weight: 500;
}

/* ===== H2 PHYSICS TOGGLE =====
   Add class="physics-off" to <body> on any page to hide every H2 Physics
   element (tags, programme card, footer link, enrol checkbox, etc.).
   Remove the class to show H2 Physics again. */
body.physics-off .physics-only { display: none !important; }

/* ===== FOR MI STUDENTS ===== */
.mi-focus { background: var(--off-white); }
.mi-content {
  max-width: 760px;
  margin: 0 auto;
}
.mi-content p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 18px;
}
.mi-lead {
  font-size: 18px;
  color: var(--navy);
  font-weight: 500;
}
.mi-subheading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
  color: var(--navy);
  margin-top: 36px;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.mi-cta { text-align: center; margin-top: 40px; }

/* ===== FEES & REFERRAL ===== */
.fees-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 32px;
}
.fees-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.fees-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px;
  color: var(--navy);
  margin-bottom: 6px;
}
.fees-card h3::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--border);
  margin: 10px 0 18px;
}
.fees-lead {
  color: var(--text);
  margin-bottom: 12px;
  font-size: 15px;
}
.fees-track { margin-bottom: 16px; }
.fees-track:last-of-type { margin-bottom: 8px; }
.fees-track h4 {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 6px;
}
.fees-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}
.fees-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 15px;
  color: var(--text);
}
.fees-list li:last-child { border-bottom: none; }
.fees-list li span:last-child { font-weight: 600; color: var(--navy); }
.fees-promo {
  color: var(--brand-red);
  font-weight: 600;
  font-size: 14px;
  margin: 8px 0 4px;
}
.fees-note {
  color: var(--text-light);
  font-style: italic;
  font-size: 13.5px;
  margin: 4px 0 0;
}
@media (max-width: 768px) {
  .fees-grid { grid-template-columns: 1fr; gap: 20px; }
  .fees-card { padding: 24px 20px; }
}

.hero-title {
  font-size: clamp(44px, 8vw, 88px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.05;
  margin-bottom: 24px;
}
.hero-highlight {
  color: var(--gold);
  font-style: italic;
  position: relative;
  display: inline-block;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 28px;
  line-height: 1.7;
}
.hero-subtitle strong { color: var(--navy); }
.hero-story {
  font-family: 'Instrument Serif', 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-style: italic;
  color: var(--navy);
  margin-bottom: 18px;
  line-height: 1.55;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 36px;
}
.tag {
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-trust {
  display: flex;
  gap: 32px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 28px 40px;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.trust-item {
  text-align: center;
}
.trust-number {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.trust-item > span:last-of-type:not(.trust-number) {
  font-size: 24px;
  color: var(--gold);
  font-weight: 700;
}
.trust-label {
  display: block;
  font-size: 12px;
  color: var(--text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}
.trust-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
  font-size: 12px;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ----- ANNOUNCEMENT BAR ----- */
.announcement-bar {
  background: var(--off-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
}
.announcement-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  flex-wrap: wrap;
  text-align: center;
}
.announcement-inner i { color: var(--gold); }
.announcement-inner a {
  font-weight: 700;
  color: var(--gold);
}
.announcement-inner a:hover { color: var(--gold-dark); }

/* ----- ABOUT ----- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 72px;
  align-items: center;
}

.about-image-wrap { position: relative; }
.about-image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
}
.about-image-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--navy-light), var(--navy-mid));
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255,255,255,0.3);
  font-size: 14px;
}
.about-image-placeholder i { font-size: 64px; color: var(--gold); opacity: 0.4; }

.about-badge-card {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
}
.about-badge-card i { font-size: 28px; color: var(--gold); }
.about-badge-card strong { display: block; font-size: 14px; color: var(--navy); }
.about-badge-card span { font-size: 12px; color: var(--text-light); }

.about-content .section-title { text-align: left; }

.about-text {
  color: var(--text-light);
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.8;
}

.credentials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0;
}
.credential-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--off-white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.credential-item i { font-size: 20px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.credential-item strong { display: block; font-size: 13px; font-weight: 600; color: var(--navy); }
.credential-item span { font-size: 12px; color: var(--text-light); }

/* ----- PROGRAMMES ----- */
.programmes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 880px;
  margin: 0 auto;
}
/* Three cards: Chem (left) + Math (right) on row 1, Physics centred on row 2 */
.programmes-grid-tri .programme-card:nth-child(3) {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc(50% - 14px);
}
@media (max-width: 768px) {
  .programmes-grid-tri .programme-card:nth-child(3) { width: 100%; }
}
.programme-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 2px solid var(--border);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.programme-card:hover {
  border-color: var(--gold);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.programme-card.featured {
  border-color: var(--gold);
  background: var(--navy);
  color: var(--white);
}
.programme-card.featured h3 { color: var(--white); }
.programme-card.featured p { color: rgba(255,255,255,0.7); }
.programme-card.featured .programme-subjects li { color: rgba(255,255,255,0.8); }
.programme-card.featured .programme-subjects i { color: var(--gold); }

.programme-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--gold-fg);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
}

.programme-icon {
  width: 56px;
  height: 56px;
  background: rgba(168,52,31,0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.programme-card.featured .programme-icon { background: rgba(168,52,31,0.2); }
.programme-icon i { font-size: 24px; color: var(--gold); }

.programme-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(168,52,31,0.1);
  padding: 4px 12px;
  border-radius: 20px;
  align-self: flex-start;
}

.programme-card h3 { font-size: 22px; }
.programme-card p { font-size: 14px; color: var(--text-light); line-height: 1.7; }

.programme-subjects {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.programme-subjects li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}
.programme-subjects i { color: var(--success); font-size: 12px; }

/* ----- SUBJECTS ----- */
.subject-filters {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 10px 24px;
  border-radius: 50px;
  border: 2px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  background: var(--white);
  transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

.subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.subject-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.subject-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gold);
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}
.subject-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--gold);
}
.subject-card:hover::before { transform: scaleX(1); }

.subject-level-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  align-self: flex-start;
}
.subject-level-tag.a-level { background: #dbeafe; color: #1d4ed8; }
.subject-level-tag.o-level { background: #dcfce7; color: #15803d; }

.subject-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.subject-icon.chemistry { background: #fef2f2; color: var(--chemistry); }
.subject-icon.physics   { background: #fdf4ff; color: var(--physics); }
.subject-icon.maths     { background: #eff6ff; color: var(--maths); }
.subject-icon.e-maths   { background: #f0fdf4; color: var(--e-maths); }

.subject-card h3 { font-size: 20px; color: var(--navy); }
.subject-card p  { font-size: 14px; color: var(--text-light); line-height: 1.7; flex: 1; }

.subject-details {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-light);
}
.subject-details span { display: flex; align-items: center; gap: 5px; }
.subject-details i { color: var(--gold); }

.subject-outcome {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--success);
  background: #f0fdf4;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid #bbf7d0;
}
.subject-outcome i { color: var(--gold); }
.subject-outcome strong { color: var(--navy); }

.subject-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  transition: var(--transition);
}
.subject-cta:hover { color: var(--gold); gap: 10px; }

/* ----- WHY CHOOSE US ----- */
.why-us.bg-dark {
  background:
    radial-gradient(ellipse 60% 40% at 20% 0%, rgba(168,52,31,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 100%, rgba(168,52,31,0.06) 0%, transparent 60%),
    #2f3236;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  padding: 32px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.feature-card:hover {
  background: rgba(168,52,31,0.08);
  border-color: rgba(168,52,31,0.3);
  transform: translateY(-4px);
}
.feature-icon {
  width: 56px;
  height: 56px;
  background: rgba(168,52,31,0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--gold);
  margin-bottom: 20px;
}
.feature-card h3 { font-size: 18px; color: var(--white); margin-bottom: 10px; }
.feature-card p  { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.7; }

/* ----- HOW IT WORKS ----- */
.steps-grid {
  display: flex;
  align-items: center;
  gap: 16px;
}
.step-card {
  flex: 1;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
  position: relative;
}
.step-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
  transform: translateY(-4px);
}
.step-number {
  font-family: 'Playfair Display', serif;
  font-size: 64px;
  font-weight: 800;
  color: var(--gold);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: -20px;
}
.step-icon {
  width: 64px;
  height: 64px;
  background: rgba(168,52,31,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--gold);
  margin: 0 auto 20px;
}
.step-card h3 { font-size: 20px; margin-bottom: 10px; }
.step-card p  { font-size: 14px; color: var(--text-light); line-height: 1.7; margin-bottom: 20px; }
.step-link { font-size: 14px; font-weight: 600; color: var(--gold); }

.step-arrow {
  color: var(--gold);
  font-size: 24px;
  opacity: 0.4;
  flex-shrink: 0;
}

/* ----- RESULTS ----- */
.results-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}
.result-stat {
  text-align: center;
  padding: 36px 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.result-number {
  font-family: 'Playfair Display', serif;
  font-size: 52px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 8px;
}
.result-label { font-size: 14px; font-weight: 600; color: var(--text-light); margin-bottom: 4px; }
.result-year  { font-size: 12px; color: var(--gold); font-weight: 600; }

.testimonials-slider { overflow: hidden; position: relative; }
.testimonials-track {
  display: flex;
  gap: 24px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.testimonial-card {
  flex: 0 0 calc(33.333% - 16px);
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.testimonial-stars { color: #f59e0b; font-size: 14px; margin-bottom: 16px; }
.testimonial-text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 24px;
}
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.author-avatar {
  width: 44px;
  height: 44px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.author-info strong { display: block; font-size: 14px; color: var(--navy); }
.author-info span   { font-size: 12px; color: var(--text-light); }

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}
.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--border);
  color: var(--navy);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.slider-btn:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.slider-dots { display: flex; gap: 8px; }
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: var(--transition);
  cursor: pointer;
}
.slider-dot.active { background: var(--navy); width: 24px; border-radius: 4px; }

/* ----- RESOURCES ----- */
.resources-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.resources-content .section-title { text-align: left; }
.resources-content p { color: var(--text-light); font-size: 16px; margin-bottom: 20px; }
.resources-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}
.resources-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  color: var(--text);
}
.resources-list i {
  color: var(--gold);
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}
.resources-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.portal-mockup {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}
.portal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
}
.portal-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.portal-dot.red    { background: #ef4444; }
.portal-dot.yellow { background: #f59e0b; }
.portal-dot.green  { background: #22c55e; }
.portal-title { font-size: 12px; font-weight: 600; color: var(--text-light); margin-left: 8px; }

.portal-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.portal-video-thumb {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--off-white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.portal-video-thumb i { font-size: 28px; color: var(--navy); opacity: 0.2; flex-shrink: 0; }
.video-info strong { display: block; font-size: 13px; color: var(--navy); }
.video-info span   { font-size: 11px; color: var(--text-light); }
.lock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  backdrop-filter: blur(2px);
}
.lock-overlay i { color: var(--gold); }
.portal-unlock-msg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
  padding: 12px;
  background: rgba(168,52,31,0.08);
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(168,52,31,0.4);
}

/* ----- SCHEDULE DROP-IN CALLOUT ----- */
.schedule-dropin {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}
.schedule-dropin > i {
  color: var(--gold);
  font-size: 22px;
  margin-top: 2px;
  flex-shrink: 0;
}
.schedule-dropin strong {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.schedule-dropin p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

/* ----- SCHEDULE TABLE ----- */
.schedule-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.schedule-table th {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 16px 20px;
  text-align: left;
}
.schedule-table td {
  padding: 16px 20px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.schedule-table tr:last-child td { border-bottom: none; }
.schedule-table tr:hover td { background: var(--off-white); }

.subj-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.subj-pill.chemistry { background: #fef2f2; color: var(--chemistry); }
.subj-pill.maths     { background: #eff6ff; color: var(--maths); }
.subj-pill.physics   { background: #fdf4ff; color: var(--physics); }
.subj-pill.e-maths   { background: #f0fdf4; color: var(--e-maths); }

.avail-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.avail-badge.open    { background: #dcfce7; color: #15803d; }
.avail-badge.limited { background: #fef3c7; color: #92400e; }
.avail-badge.full    { background: #fee2e2; color: #991b1b; }

.schedule-note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 8px;
}
.schedule-note i { color: var(--gold); }
.schedule-note a { color: var(--navy); font-weight: 600; text-decoration: underline; }

/* ----- SCHEDULE: loading skeleton ----- */
.sched-skel {
  height: 84px;
  border-radius: var(--radius-lg);
  margin-bottom: 14px;
  background: linear-gradient(90deg, #efe7dd 25%, #f7f1ea 37%, #efe7dd 63%);
  background-size: 400% 100%;
  animation: schedShimmer 1.4s ease infinite;
}
@keyframes schedShimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* ----- SCHEDULE: class cards (one row per class) ----- */
.sched-list { display: flex; flex-direction: column; gap: 14px; }
.sched-class-card {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px 24px;
  transition: var(--transition);
}
.sched-class-card:hover { box-shadow: var(--shadow-lg); border-color: var(--gold-light); }
.scc-main { flex: 1 1 200px; min-width: 180px; }
.scc-school { font-family: 'Playfair Display', Georgia, serif; font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.scc-subject { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.scc-level { font-size: 13px; color: var(--text-light); font-weight: 600; }
.scc-starts { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; background: #fef3c7; color: #92400e; }
.scc-starts i { font-size: 11px; }
.scc-when { flex: 0 1 210px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--text); }
.scc-when span { display: flex; align-items: center; }
.scc-when i { color: var(--gold); width: 16px; margin-right: 8px; text-align: center; }
.scc-avail { flex: 0 0 auto; }
.scc-action { flex: 0 0 auto; }
.scc-action .btn-primary, .scc-action .btn-outline-dark { white-space: nowrap; }

/* ----- SCHEDULE: homepage teaser chips ----- */
.sched-teaser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.sched-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: var(--transition);
}
.sched-chip:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.sched-chip-school { font-family: 'Playfair Display', Georgia, serif; font-size: 18px; font-weight: 700; color: var(--navy); }
.sched-chip-meta { font-size: 13px; color: var(--text-light); }
.schedule-teaser-cta { text-align: center; margin-top: 32px; }

/* ----- SCHEDULE: "don't see your JC?" request callout ----- */
.schedule-request {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding: 28px 32px;
  background: rgba(168, 52, 31, 0.06);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-lg);
}
.schedule-request h3 { font-family: 'Playfair Display', Georgia, serif; font-size: 22px; color: var(--navy); margin-bottom: 6px; }
.schedule-request p { font-size: 15px; color: var(--text-light); line-height: 1.6; max-width: 520px; margin: 0; }
.schedule-request .btn-primary { flex-shrink: 0; }

@media (max-width: 700px) {
  .sched-class-card { align-items: flex-start; gap: 12px; }
  .scc-when { flex-basis: 100%; }
  .scc-action { width: 100%; }
  .scc-action .btn-primary, .scc-action .btn-outline-dark { width: 100%; justify-content: center; }
  .schedule-request { flex-direction: column; align-items: flex-start; }
}

/* ----- BOOKING CTA ----- */
.cta-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: center;
}
.cta-content h2 { font-size: 40px; color: var(--white); margin-bottom: 16px; }
.cta-content p  { font-size: 17px; color: rgba(255,255,255,0.75); margin-bottom: 32px; line-height: 1.8; }
.cta-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.cta-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(10px);
}
.cta-card-icon { font-size: 36px; color: var(--gold); margin-bottom: 16px; }
.cta-card h4   { color: var(--white); font-size: 18px; margin-bottom: 16px; }
.cta-card ul   { display: flex; flex-direction: column; gap: 10px; }
.cta-card li   {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
}
.cta-card i    { color: var(--gold); }

/* ----- FAQ ----- */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 960px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  background: var(--white);
  transition: var(--transition);
}
.faq-question:hover { background: var(--off-white); }
.faq-question.open { background: var(--navy); color: var(--white); }
.faq-question.open i { color: var(--gold); transform: rotate(45deg); }
.faq-question i { transition: var(--transition); color: var(--gold); flex-shrink: 0; }
.faq-answer {
  display: none;
  padding: 0 24px 20px;
  background: var(--off-white);
  border-top: 1px solid var(--border);
}
.faq-answer.open { display: block; }
.faq-answer p { font-size: 14px; color: var(--text-light); line-height: 1.8; padding-top: 16px; }
.faq-answer a { color: var(--gold); font-weight: 600; }

/* ----- CONTACT ----- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; }
.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.contact-item:last-child { margin-bottom: 0; }
.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(168,52,31,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--gold);
  flex-shrink: 0;
}
.contact-item strong { display: block; font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.contact-item p  { font-size: 14px; color: var(--text-light); line-height: 1.7; margin: 0; }
.contact-item a  { color: var(--gold); font-weight: 500; }

.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.map-embed iframe { width: 100%; height: 240px; display: block; border: 0; }

.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.contact-form h3 { font-size: 24px; color: var(--navy); margin-bottom: 28px; }

.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-group input.error,
.form-group textarea.error { border-color: var(--error); }

.form-success {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: #dcfce7;
  border-radius: var(--radius-sm);
  color: #15803d;
  font-weight: 600;
  font-size: 14px;
  margin-top: 16px;
}

/* ----- FOOTER ----- */
.footer-main { background: var(--navy); padding: 80px 0 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
}
.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.5); line-height: 1.8; margin-bottom: 24px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 16px;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--gold); color: var(--gold-fg); }

.footer-links h4 { color: var(--white); font-size: 14px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 20px; }
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links li a { font-size: 14px; color: rgba(255,255,255,0.5); transition: var(--transition); }
.footer-links li a:hover { color: var(--gold); }

.footer-contact h4 { color: var(--white); font-size: 14px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 20px; }
.footer-contact p  { font-size: 14px; color: rgba(255,255,255,0.5); line-height: 1.8; margin-bottom: 12px; display: flex; align-items: flex-start; gap: 10px; }
.footer-contact i  { color: var(--gold); margin-top: 2px; flex-shrink: 0; }
.footer-contact a  { color: rgba(255,255,255,0.5); transition: var(--transition); }
.footer-contact a:hover { color: var(--gold); }

.footer-bottom {
  background: rgba(0,0,0,0.2);
  padding: 20px 0;
  margin-top: 40px;
}
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.4); }
.footer-bottom i { color: var(--chemistry); }

/* ----- WHATSAPP FLOAT ----- */
.whatsapp-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 28px;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 999;
  transition: var(--transition);
  animation: pulse-wa 3s ease-in-out infinite;
}
.whatsapp-float:hover {
  background: #128C7E;
  transform: scale(1.1);
  color: var(--white);
}
@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50%       { box-shadow: 0 4px 40px rgba(37,211,102,0.7); }
}
.wa-tooltip {
  position: absolute;
  right: 72px;
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.whatsapp-float:hover .wa-tooltip { opacity: 1; }

/* ----- BACK TO TOP ----- */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 999;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
  pointer-events: none;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.back-to-top:hover { background: var(--gold); color: var(--gold-fg); }

/* ----- SCROLL ANIMATIONS ----- */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----- RESPONSIVE ----- */
@media (max-width: 1024px) {
  .nav-links { gap: 20px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-image-frame { max-width: 400px; margin: 0 auto; }
  .programmes-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .results-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cta-inner { grid-template-columns: 1fr; }
  .cta-card { max-width: 480px; }
  .resources-inner { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section-pad { padding: 72px 0; }
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 18px; color: var(--white); }
  .btn-nav { display: none; }
  .hamburger { display: flex; z-index: 1000; }
  .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding: 120px 24px 80px; }
  .hero-trust { gap: 20px; padding: 20px 24px; }
  .trust-divider { display: none; }
  .trust-number { font-size: 32px; }

  .programmes-grid { grid-template-columns: 1fr; }
  .subjects-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .steps-grid { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }
  .results-stats { grid-template-columns: 1fr 1fr; }
  .testimonial-card { flex: 0 0 calc(100% - 0px); }
  .faq-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .credentials-grid { grid-template-columns: 1fr; }
  .hero-actions .btn-large { padding: 14px 24px; font-size: 15px; }
  .cta-actions { flex-direction: column; }
  .btn-gold, .btn-whatsapp { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 40px; }
  .hero-trust { flex-direction: column; gap: 20px; }
  .result-number { font-size: 40px; }
  .whatsapp-float { bottom: 20px; right: 20px; width: 52px; height: 52px; font-size: 24px; }
  .back-to-top { bottom: 84px; right: 20px; }
}

/* ===================================================================
   FREE MATERIALS PAGE  (free-materials.html)
   =================================================================== */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 22px;
  transition: var(--transition);
}
.back-link:hover { color: var(--gold); }

.materials-hero {
  padding: 150px 0 56px;
  background: var(--white);
  text-align: center;
}
.materials-hero .back-link { display: inline-flex; }
.materials-hero .section-label { display: block; }
.materials-hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.08;
  margin-bottom: 18px;
}
.materials-hero-sub {
  font-size: 17px;
  color: var(--text-light);
  max-width: 680px;
  margin: 0 auto 24px;
  line-height: 1.65;
}
.materials-hero-sub strong { color: var(--navy); font-weight: 600; }
.materials-hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 26px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.materials-hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.materials-hero-meta i { color: var(--gold); }

/* ----- subject groups ----- */
.materials-group { margin-bottom: 56px; }
.materials-group:last-of-type { margin-bottom: 0; }
.materials-group-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.materials-group-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--gold);
  color: var(--gold-fg);
  font-size: 22px;
}
.materials-group-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  color: var(--navy);
  margin: 0;
  line-height: 1.1;
}
.materials-group-sub {
  font-size: 14.5px;
  color: var(--text-light);
  margin: 4px 0 0;
}

/* ----- material cards ----- */
.materials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.material-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: var(--transition);
}
.material-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(42, 32, 28, 0.10);
  border-color: var(--gold-light);
}
.material-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.material-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(168, 52, 31, 0.09);
  color: var(--gold);
  font-size: 20px;
}
.material-type {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(168, 52, 31, 0.09);
  padding: 6px 12px;
  border-radius: 50px;
}
.material-type.type-notes {
  color: var(--navy);
  background: rgba(42, 31, 26, 0.07);
}
.material-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  color: var(--navy);
  margin: 0 0 10px;
  line-height: 1.2;
}
.material-desc {
  font-size: 14.5px;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0 0 18px;
}
.material-topics {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.material-topics li {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
  background: var(--off-white);
  border: 1px solid var(--border);
  padding: 5px 11px;
  border-radius: 50px;
}
.material-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
}
.material-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
}
.material-meta i { color: var(--gold); }
.material-actions { display: flex; gap: 10px; }
.btn-sm { padding: 9px 16px; font-size: 13px; }

.materials-disclaimer {
  margin-top: 44px;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-light);
}
.materials-disclaimer i { color: var(--gold); margin-right: 6px; }

/* ----- homepage teaser band ----- */
.free-teaser { padding: 72px 0; background: var(--white); }
.free-teaser-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  background: linear-gradient(135deg, #fbf3ea 0%, #fdf7ef 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
}
.free-teaser-text h2 { margin-bottom: 14px; }
.free-teaser-text p {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 460px;
}
.free-teaser-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.free-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  transition: var(--transition);
}
.free-pill i { color: var(--gold); font-size: 16px; flex-shrink: 0; }
.free-pill:hover {
  color: var(--gold);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(42, 32, 28, 0.08);
}

@media (max-width: 768px) {
  .materials-hero { padding: 128px 0 40px; }
  .materials-grid { grid-template-columns: 1fr; gap: 18px; }
  .material-card { padding: 24px 20px; }
  .materials-group { margin-bottom: 44px; }
  .free-teaser { padding: 56px 0; }
  .free-teaser-inner { grid-template-columns: 1fr; gap: 28px; padding: 32px 24px; }
  .free-teaser-text p { max-width: none; }
}
@media (max-width: 480px) {
  .materials-hero h1 { font-size: 28px; }
  .materials-hero-sub { font-size: 15.5px; }
  .free-teaser-cards { grid-template-columns: 1fr; }
  .material-foot { flex-direction: column; align-items: flex-start; }
  .materials-group-head { gap: 12px; }
}
