/* ============================================================
   ONLINE ACADEMY — DESIGN SYSTEM
   Palette: Sky Blue + White (deep navy-blue for contrast/text)
   Type: Sora (display) / Inter (body) / JetBrains Mono (data)
   ============================================================ */

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

:root{
  /* Color tokens */
  --sky: #0EA5E9;
  --sky-dark: #0369A1;
  --sky-deep: #075985;
  --navy: #0C2340;
  --navy-soft: #123A5E;
  --sky-tint: #EAF6FD;
  --sky-pale: #F5FBFE;
  --sky-line: #D7ECF8;
  --white: #FFFFFF;
  --ink: #1B2733;
  --ink-soft: #4B5D6E;
  --gold: #C9A24B; /* used at <5% opacity only, for Quran geometric motif */

  /* Type scale */
  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --max: 1200px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 10px rgba(12,35,64,0.06);
  --shadow-md: 0 12px 32px rgba(12,35,64,0.10);
  --shadow-lg: 0 24px 60px rgba(12,35,64,0.14);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg{ display:block; max-width:100%; }
a{ color: inherit; text-decoration: none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ font-family: var(--font-display); color: var(--navy); margin:0 0 .5em; line-height:1.15; letter-spacing: -0.01em; }
p{ margin:0 0 1em; color: var(--ink-soft); }
button{ font-family: inherit; cursor:pointer; }

:focus-visible{
  outline: 3px solid var(--sky-dark);
  outline-offset: 2px;
  border-radius: 4px;
}

.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow{
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky-dark);
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom: 14px;
}
.eyebrow::before{
  content:"";
  width:7px; height:7px; border-radius:50%;
  background: var(--sky);
  box-shadow: 0 0 0 4px rgba(14,165,233,0.18);
}

.section{ padding: 88px 0; }
.section--tight{ padding: 56px 0; }
.section--tint{ background: var(--sky-pale); }
.section-head{ max-width: 640px; margin-bottom: 48px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head h2{ font-size: clamp(28px, 3.4vw, 40px); }
.section-head p{ font-size: 17px; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 999px;
  border: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn-primary{
  background: var(--sky);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(14,165,233,0.35);
}
.btn-primary:hover{ background: var(--sky-dark); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(3,105,161,0.4); }
.btn-outline{
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--sky-line);
}
.btn-outline:hover{ border-color: var(--sky); background: var(--sky-tint); }
.btn-ghost{
  background: var(--white);
  color: var(--sky-dark);
  border: 1.5px solid var(--sky-line);
}
.btn-ghost:hover{ background: var(--sky-tint); }
.btn-block{ width:100%; }
.btn-lg{ padding: 16px 32px; font-size: 16px; }

/* ---------- Header / Nav ---------- */
.brand-topbar{
  background: var(--sky-tint); border-bottom: 1px solid var(--sky-line);
  padding: 7px 0; text-align:center;
}
.brand-topbar span{
  font-family: var(--font-mono); font-size: 11.5px; font-weight:600;
  letter-spacing: 0.04em; color: var(--sky-dark);
}
.site-header{
  position: sticky; top:0; z-index: 100;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--sky-line);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding: 16px 0;
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--navy);
}
.brand-mark{
  width: 36px; height:36px; border-radius: 10px;
  background: linear-gradient(155deg, var(--sky), var(--sky-deep));
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 6px 16px rgba(14,165,233,0.35);
}
.brand-mark svg{ width:20px; height:20px; }
.brand-stack{
  display:flex; flex-direction:column; justify-content:center;
  line-height:1.18; font-family: var(--font-display); font-weight:700;
  font-size:13.5px; letter-spacing:.01em; color:var(--navy);
  text-transform:uppercase;
}
.brand-stack-light{ color:#fff; }

.brand-logo{ height: 54px; width:auto; display:block; }
.footer-brand .brand-logo{ height: 60px; margin-bottom: 14px; }

.nav-links{
  display:flex; align-items:center; gap: 34px;
}
.nav-links a{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--navy-soft);
  position: relative;
  padding: 6px 0;
}
.nav-links a::after{
  content:"";
  position:absolute; left:0; right:100%; bottom:0; height:2px;
  background: var(--sky);
  transition: right .2s ease;
}
.nav-links a:hover::after, .nav-links a.active::after{ right:0; }
.nav-links a.active{ color: var(--sky-dark); }

.nav-cta{ display:flex; align-items:center; gap:14px; }
.nav-toggle{
  display:none;
  background:none; border:none; padding:8px;
}
.nav-toggle svg{ width:26px; height:26px; color: var(--navy); }

@media (max-width: 900px){
  .nav-links{
    position: fixed; inset: 68px 16px auto 16px;
    background: var(--white);
    border: 1px solid var(--sky-line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 22px;
    gap: 16px;
    transform: translateY(-12px);
    opacity:0;
    pointer-events:none;
    transition: all .22s ease;
  }
  .nav-links.open{ transform: translateY(0); opacity:1; pointer-events:auto; }
  .nav-toggle{ display:block; }
  .nav-cta .btn-ghost{ display:none; }
}

/* ---------- Hero ---------- */
.hero{
  position: relative;
  padding: 64px 0 40px;
  overflow: hidden;
  background:
    radial-gradient(680px 420px at 82% -10%, rgba(14,165,233,0.16), transparent 60%),
    radial-gradient(520px 360px at -5% 40%, rgba(14,165,233,0.10), transparent 60%);
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items:center;
}
.hero h1{
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero h1 .accent{ color: var(--sky); }
.hero-sub{ font-size: 18px; max-width: 500px; margin-bottom: 28px; }
.hero-cta{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom: 30px; }

.hero-badges{
  display:flex; flex-wrap:wrap; gap: 10px;
}
.badge{
  display:inline-flex; align-items:center; gap:7px;
  font-family: var(--font-mono);
  font-size: 12.5px; font-weight:600;
  color: var(--sky-deep);
  background: var(--sky-tint);
  border: 1px solid var(--sky-line);
  padding: 7px 13px;
  border-radius: 999px;
}
.badge svg{ width:14px; height:14px; }

/* Signature: Live class mockup */
.live-mock{
  position: relative;
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-lg);
  transform: rotate(0.4deg);
}
.live-mock-bar{
  display:flex; align-items:center; justify-content:space-between;
  padding: 4px 6px 14px;
}
.live-dots{ display:flex; gap:6px; }
.live-dots span{ width:9px; height:9px; border-radius:50%; background: rgba(255,255,255,0.25); }
.live-tag{
  display:flex; align-items:center; gap:6px;
  font-family: var(--font-mono);
  font-size: 11.5px; font-weight:600; letter-spacing: .05em;
  color: #FCA5A5;
  background: rgba(252,165,165,0.12);
  padding: 5px 10px; border-radius: 999px;
}
.live-tag .pulse{
  width:7px; height:7px; border-radius:50%; background:#F87171;
  animation: pulse 1.6s infinite;
}
@keyframes pulse{ 0%,100%{ box-shadow:0 0 0 0 rgba(248,113,113,.55);} 70%{ box-shadow:0 0 0 7px rgba(248,113,113,0);} }

.live-tiles{
  display:grid; grid-template-columns: 1fr 1fr; gap:10px; margin-bottom: 10px;
}
.live-tile{
  aspect-ratio: 4/3;
  border-radius: 12px;
  position: relative;
  overflow:hidden;
  display:flex; align-items:flex-end;
}
.live-tile.tutor{ background: linear-gradient(160deg, #0E7FB0, #0C4A6E); }
.live-tile.student{ background: linear-gradient(160deg, #1D4E7A, #0C2340); }
.live-tile .avatar{
  width:54px; height:54px; border-radius:50%;
  background: rgba(255,255,255,0.14);
  border: 2px solid rgba(255,255,255,0.4);
  margin: auto;
}
.tile-character{ width:78%; max-width:130px; margin:auto; display:block; }
.live-tile .name-tag{
  font-family: var(--font-mono);
  font-size: 11px; color:#fff; background: rgba(0,0,0,0.32);
  padding: 4px 8px; border-radius:6px; margin: 8px;
}
.live-board{
  background: #F5FBFE;
  border-radius: 12px;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--navy);
}
.live-board .eq{ color: var(--sky-dark); font-weight:600; }
.live-chat{
  margin-top:10px;
  display:flex; align-items:center; gap:8px;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 9px 12px;
}
.live-chat .dot{ width:8px; height:8px; border-radius:50%; background: var(--sky); }
.live-chat span{ font-family: var(--font-mono); font-size:11.5px; color: rgba(255,255,255,0.75); }

.floating-stat{
  position:absolute; bottom: -18px; left: -18px;
  background:#fff; border-radius: 14px; padding: 12px 16px;
  box-shadow: var(--shadow-md); border:1px solid var(--sky-line);
  display:flex; align-items:center; gap:10px;
}
.floating-stat b{ font-family: var(--font-display); font-size:18px; color:var(--navy); display:block; }
.floating-stat small{ font-family: var(--font-mono); font-size:10.5px; color: var(--ink-soft); }

/* ---------- Trust / marquee strip ---------- */
.trust-strip{
  border-top: 1px solid var(--sky-line);
  border-bottom: 1px solid var(--sky-line);
  background: var(--sky-pale);
  padding: 22px 0;
}
.trust-row{
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap: 18px;
}
.trust-item{
  display:flex; align-items:center; gap:10px;
  font-family: var(--font-display); font-weight:600; font-size: 14.5px; color: var(--navy-soft);
}
.trust-item svg{ width:20px; height:20px; color: var(--sky-dark); flex-shrink:0; }

/* ---------- Cards ---------- */
.grid{ display:grid; gap: 24px; }
.grid-2{ grid-template-columns: repeat(2,1fr); }
.grid-3{ grid-template-columns: repeat(3,1fr); }
.grid-4{ grid-template-columns: repeat(4,1fr); }

.card{
  background: var(--white);
  border: 1px solid var(--sky-line);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }

.icon-tile{
  width: 48px; height:48px; border-radius: 12px;
  background: var(--sky-tint);
  display:flex; align-items:center; justify-content:center;
  margin-bottom: 18px;
}
.icon-tile svg{ width:24px; height:24px; color: var(--sky-dark); }

/* Linked-dot glyph: recurring tutor<->student motif used instead of numbering */
.link-glyph{ display:inline-flex; align-items:center; gap:5px; }
.link-glyph .d{ width:7px; height:7px; border-radius:50%; background: var(--sky); }
.link-glyph .line{ width:20px; height:2px; background: var(--sky-line); position:relative; }
.link-glyph .line::after{ content:""; position:absolute; inset:0; background: var(--sky); width:60%; }
.link-glyph .d2{ width:7px; height:7px; border-radius:50%; background: var(--navy); }

/* ---------- How it works ---------- */
.steps{
  display:grid; grid-template-columns: repeat(4,1fr); gap: 20px;
}
.step{ position:relative; padding-top: 6px; }
.step-index{
  font-family: var(--font-mono); font-size:13px; font-weight:600;
  color: var(--sky-dark); margin-bottom:10px; display:block;
}
.step h4{ font-size:17px; margin-bottom:8px; }
.step p{ font-size: 14.5px; }
.step-connector{
  position:absolute; top: 30px; left: calc(100% - 6px); width: 44px; height:1px;
  background: repeating-linear-gradient(90deg, var(--sky-line) 0 6px, transparent 6px 10px);
}

/* ---------- Testimonials ---------- */
.quote-card{
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 34px;
}
.quote-card p{ color: rgba(255,255,255,0.88); font-size: 16.5px; }
.quote-who{ display:flex; align-items:center; gap:12px; margin-top: 18px; }
.quote-avatar{ width:40px; height:40px; border-radius:50%; background: linear-gradient(155deg,var(--sky),var(--sky-deep)); }
.quote-name{ font-family: var(--font-display); font-weight:700; font-size:14.5px; color:#fff; }
.quote-loc{ font-family: var(--font-mono); font-size:12px; color: rgba(255,255,255,0.55); }

/* ---------- CTA band ---------- */
.cta-band{
  background: linear-gradient(135deg, var(--sky-deep), var(--sky-dark) 55%, var(--sky));
  border-radius: var(--radius-lg);
  padding: 56px;
  color:#fff;
  display:flex; align-items:center; justify-content:space-between; gap: 30px; flex-wrap:wrap;
  position: relative; overflow:hidden;
}
.cta-band::before{
  content:""; position:absolute; inset:0;
  background: radial-gradient(400px 240px at 90% 10%, rgba(255,255,255,0.18), transparent 60%);
}
.cta-band h2{ color:#fff; margin-bottom:8px; font-size: clamp(24px,2.6vw,32px); }
.cta-band p{ color: rgba(255,255,255,0.85); margin:0; }
.cta-band .btn-primary{ background:#fff; color: var(--sky-dark); box-shadow:none; }
.cta-band .btn-primary:hover{ background: var(--sky-tint); }

/* ---------- Footer ---------- */
.site-footer{ background: var(--navy); color: rgba(255,255,255,0.7); padding: 64px 0 28px; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; margin-bottom: 46px; }
.footer-brand p{ color: rgba(255,255,255,0.55); font-size: 14.5px; max-width: 280px; }
.footer-col h5{
  font-family: var(--font-display); color:#fff; font-size:14px; letter-spacing:.03em;
  text-transform: uppercase; margin-bottom: 16px;
}
.footer-col ul li{ margin-bottom: 11px; }
.footer-col a{ color: rgba(255,255,255,0.62); font-size: 14.5px; transition: color .15s; }
.footer-col a:hover{ color: var(--sky); }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px;
  font-size: 13px; color: rgba(255,255,255,0.45);
}
.social-row{ display:flex; gap:12px; }
.social-row a{
  width:34px; height:34px; border-radius:50%; border:1px solid rgba(255,255,255,0.18);
  display:flex; align-items:center; justify-content:center;
}
.social-row a:hover{ border-color: var(--sky); }
.social-row svg{ width:15px; height:15px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero{
  padding: 56px 0 48px;
  background: linear-gradient(180deg, var(--sky-tint), #fff);
  border-bottom: 1px solid var(--sky-line);
}
.breadcrumb{
  font-family: var(--font-mono); font-size:12.5px; color: var(--sky-dark); margin-bottom:14px;
}
.page-hero h1{ font-size: clamp(30px,3.6vw,44px); max-width:720px; }
.page-hero p{ font-size:17px; max-width:640px; }

/* ---------- Subject detail blocks (Services page) ---------- */
.subject-block{
  display:grid; grid-template-columns: 0.95fr 1.05fr; gap: 48px; align-items:center;
  padding: 56px 0;
  border-bottom: 1px solid var(--sky-line);
}
.subject-block:last-child{ border-bottom:none; }
.subject-block.reverse{ direction: rtl; }
.subject-block.reverse > *{ direction: ltr; }
.subject-tag{
  display:inline-flex; align-items:center; gap:8px;
  font-family: var(--font-mono); font-size:12px; font-weight:600; letter-spacing:.05em;
  color: var(--sky-dark); background: var(--sky-tint); padding:6px 12px; border-radius:999px;
  margin-bottom: 16px;
}
.subject-block h3{ font-size: clamp(22px,2.4vw,28px); }
.subject-topics{ display:flex; flex-wrap:wrap; gap:8px; margin: 18px 0 20px; }
.topic-chip{
  font-family: var(--font-mono); font-size: 12.5px; color: var(--navy-soft);
  background: var(--sky-pale); border:1px solid var(--sky-line);
  padding: 6px 11px; border-radius: 8px;
}
.subject-meta{ display:flex; gap: 26px; margin: 20px 0 6px; flex-wrap:wrap; }
.subject-meta div small{ display:block; font-family:var(--font-mono); font-size:11px; color: var(--ink-soft); margin-bottom:3px; }
.subject-meta div b{ font-family: var(--font-display); font-size:15px; color: var(--navy); }

.subject-visual{
  background: var(--sky-pale);
  border: 1px solid var(--sky-line);
  border-radius: var(--radius-lg);
  padding: 34px;
  min-height: 260px;
  display:flex; align-items:center; justify-content:center;
  position:relative;
  overflow:hidden;
}
.subject-visual svg{ width: 100%; max-width: 300px; }

/* Quran section divider — subtle geometric linework, respectful & minimal */
.geo-divider{
  height: 46px;
  background-image: repeating-linear-gradient(45deg, rgba(201,162,75,0.35) 0 1.5px, transparent 1.5px 22px),
                     repeating-linear-gradient(-45deg, rgba(201,162,75,0.35) 0 1.5px, transparent 1.5px 22px);
  background-position: center;
  opacity: 0.5;
  mask-image: linear-gradient(90deg, transparent, black 20%, black 80%, transparent);
}

.quran-panel{
  background: linear-gradient(160deg, var(--navy), #123A5E);
  border-radius: var(--radius-lg);
  padding: 52px;
  color: #fff;
}
.quran-panel h2{ color:#fff; }
.quran-panel .section-head p{ color: rgba(255,255,255,0.72); }
.quran-panel .eyebrow{ color: #7FD4FF; }
.quran-panel .eyebrow::before{ background:#7FD4FF; box-shadow: 0 0 0 4px rgba(127,212,255,0.18); }
.qcard{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-md);
  padding: 24px;
}
.qcard h4{ color:#fff; font-size:16.5px; }
.qcard p{ color: rgba(255,255,255,0.68); font-size:14.5px; margin-bottom:0; }
.qcard .icon-tile{ background: rgba(127,212,255,0.14); }
.qcard .icon-tile svg{ color: #7FD4FF; }

/* ---------- Forms ---------- */
.form-card{
  background:#fff; border:1px solid var(--sky-line); border-radius: var(--radius-lg);
  padding: 40px; box-shadow: var(--shadow-sm);
}
.form-row{ display:grid; gap: 18px; margin-bottom: 18px; }
.form-row.two{ grid-template-columns: 1fr 1fr; }
.form-row.three{ grid-template-columns: 1fr 1fr 1fr; }
.field label{
  display:block; font-family: var(--font-display); font-weight:600; font-size: 13.5px;
  color: var(--navy); margin-bottom: 8px;
}
.field .hint{ font-family: var(--font-body); font-weight:400; color: var(--ink-soft); font-size:12.5px; }
.field input, .field select, .field textarea{
  width:100%; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--sky-line);
  font-family: var(--font-body); font-size: 14.5px; color: var(--ink); background: var(--sky-pale);
  transition: border-color .15s ease, background .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline:none; border-color: var(--sky); background:#fff;
}
.field textarea{ resize: vertical; min-height: 96px; }

.pref-group{ display:grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.pref-option{
  border: 1.5px solid var(--sky-line); border-radius: 12px; padding: 14px;
  cursor:pointer; text-align:center; transition: all .15s ease; background:#fff;
}
.pref-option input{ display:none; }
.pref-option svg{ width:22px; height:22px; margin: 0 auto 8px; color: var(--sky-dark); }
.pref-option span{ display:block; font-family: var(--font-display); font-weight:600; font-size: 13px; color: var(--navy); }
.pref-option small{ display:block; font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); margin-top:3px; }
.pref-option:has(input:checked){
  border-color: var(--sky); background: var(--sky-tint); box-shadow: 0 0 0 3px rgba(14,165,233,0.14);
}

.subject-select-grid{ display:grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.subject-select-grid label{
  border: 1.5px solid var(--sky-line); border-radius: 10px; padding: 11px 8px;
  text-align:center; font-family: var(--font-display); font-weight:600; font-size: 12.5px;
  color: var(--navy-soft); cursor:pointer; transition: all .15s ease;
}
.subject-select-grid input{ display:none; }
.subject-select-grid label:has(input:checked){
  border-color: var(--sky); background: var(--sky-tint); color: var(--sky-dark);
}

.form-note{
  display:flex; gap:10px; align-items:flex-start;
  background: var(--sky-tint); border:1px solid var(--sky-line);
  border-radius: 12px; padding: 14px 16px; margin-top: 20px;
  font-size: 13.5px; color: var(--navy-soft);
}
.form-note svg{ width:18px; height:18px; flex-shrink:0; color: var(--sky-dark); margin-top:1px; }

.form-error-message{
  background: #FDECEC; border:1px solid #F3B9B9; color:#8A2727;
  border-radius: 12px; padding: 14px 16px; margin-top: 20px;
  font-size: 14px; font-weight:500;
}

.success-panel{
  display:none; text-align:center; padding: 50px 20px;
}
.success-panel.show{ display:block; }
.success-icon{
  width:64px; height:64px; border-radius:50%; background: var(--sky-tint);
  display:flex; align-items:center; justify-content:center; margin: 0 auto 18px;
}
.success-icon svg{ width:30px; height:30px; color: var(--sky-dark); }

/* ---------- About page specifics ---------- */
.value-row{ display:grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.stat-strip{ display:grid; grid-template-columns: repeat(4,1fr); gap:20px; text-align:center; }
.stat-strip b{ display:block; font-family: var(--font-display); font-size: 32px; color: var(--navy); }
.stat-strip small{ font-family: var(--font-mono); font-size:12px; color: var(--ink-soft); }
.team-card{ text-align:center; }
.team-photo{
  width:88px; height:88px; border-radius:50%; margin: 0 auto 14px;
  background: linear-gradient(155deg, var(--sky), var(--sky-deep));
  display:flex; align-items:center; justify-content:center;
  font-family: var(--font-display); color:#fff; font-weight:700; font-size:22px;
}
.team-card h4{ font-size:15.5px; margin-bottom:2px; }
.team-card .role{ font-family: var(--font-mono); font-size:12px; color: var(--sky-dark); margin-bottom:8px; display:block; }

/* ---------- Contact page ---------- */
.contact-grid{ display:grid; grid-template-columns: 0.85fr 1.15fr; gap: 40px; }
.contact-info-card{
  background: var(--navy); color:#fff; border-radius: var(--radius-lg); padding: 34px;
}
.contact-info-card h3{ color:#fff; }
.contact-info-card p{ color: rgba(255,255,255,0.65); }
.contact-line{ display:flex; gap:14px; align-items:flex-start; padding: 16px 0; border-top: 1px solid rgba(255,255,255,0.12); }
.contact-line:first-of-type{ border-top:none; }
.contact-line svg{ width:19px; height:19px; color: #7FD4FF; flex-shrink:0; margin-top:2px; }
.contact-line b{ display:block; font-family: var(--font-display); font-size:14px; color:#fff; margin-bottom:2px; }
.contact-line span{ font-size: 13.5px; color: rgba(255,255,255,0.62); }

.region-pill-row{ display:flex; flex-wrap:wrap; gap:8px; margin-top:20px; }
.region-pill{
  font-family: var(--font-mono); font-size:11.5px; color: #fff;
  background: rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.16);
  padding: 6px 11px; border-radius: 999px;
}

.faq-item{ border-bottom: 1px solid var(--sky-line); padding: 20px 0; }
.faq-q{
  display:flex; justify-content:space-between; align-items:center; cursor:pointer;
  font-family: var(--font-display); font-weight:600; font-size: 15.5px; color: var(--navy);
}
.faq-q svg{ width:18px; height:18px; color: var(--sky-dark); transition: transform .2s ease; flex-shrink:0; }
.faq-item.open .faq-q svg{ transform: rotate(45deg); }
.faq-a{ max-height:0; overflow:hidden; transition: max-height .25s ease; }
.faq-item.open .faq-a{ max-height: 200px; }
.faq-a p{ padding-top: 12px; font-size: 14.5px; }

/* ---------- Utility ---------- */
.mt-0{ margin-top:0 !important; }
.text-center{ text-align:center; }
.center-btn{ display:flex; justify-content:center; }

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .grid-4{ grid-template-columns: repeat(2,1fr); }
  .grid-3{ grid-template-columns: repeat(2,1fr); }
  .steps{ grid-template-columns: repeat(2,1fr); }
  .step-connector{ display:none; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .subject-block, .subject-block.reverse{ grid-template-columns: 1fr; direction: ltr; }
  .subject-visual{ order:-1; }
  .contact-grid{ grid-template-columns: 1fr; }
  .value-row{ grid-template-columns: 1fr; }
  .form-row.two, .form-row.three{ grid-template-columns: 1fr; }
  .pref-group{ grid-template-columns: 1fr 1fr; }
  .subject-select-grid{ grid-template-columns: repeat(2,1fr); }
  .stat-strip{ grid-template-columns: repeat(2,1fr); gap: 28px; }
}
@media (max-width: 620px){
  .grid-2, .grid-3, .grid-4{ grid-template-columns: 1fr; }
  .section{ padding: 60px 0; }
  .cta-band{ padding: 36px 24px; flex-direction:column; align-items:flex-start; }
  .trust-row{ justify-content:flex-start; }
  .quran-panel{ padding: 28px; }
  .pref-group{ grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ===================== Video testimonials ===================== */
.video-card{
  background: var(--white); border: 1px solid var(--sky-line); border-radius: var(--radius-md);
  overflow: hidden; transition: transform .2s ease, box-shadow .2s ease;
}
.video-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-md); }
.video-placeholder{
  aspect-ratio: 4/5; background: linear-gradient(150deg, var(--sky-tint), var(--sky-line));
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px;
}
.play-btn{
  width:58px; height:58px; border-radius:50%; background: var(--sky); color:#fff;
  display:flex; align-items:center; justify-content:center; box-shadow: 0 10px 24px rgba(14,165,233,0.35);
}
.play-btn svg{ width:22px; height:22px; margin-left:2px; }
.video-label{ font-family: var(--font-mono); font-size:11.5px; font-weight:600; letter-spacing:.03em; color: var(--sky-dark); text-transform:uppercase; }
.video-caption{ padding:16px 18px; }
.video-caption b{ display:block; font-family: var(--font-display); font-size:14.5px; color:var(--navy); margin-bottom:2px; }
.video-caption span{ font-size:12.5px; color: var(--ink-soft); }
.video-embed{ position:relative; aspect-ratio:4/5; background:#000; }
.video-embed iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; display:block; }

/* ===================== Exam board badges ===================== */
.board-grid{ display:flex; flex-wrap:wrap; justify-content:center; gap:14px; }
.board-badge{
  font-family: var(--font-display); font-weight:700; font-size:14.5px; color:var(--navy);
  background:#fff; border:1.5px solid var(--sky-line); border-radius:12px;
  padding:15px 24px; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease;
}
.board-badge:hover{ transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--sky); }

/* ===================== Floating WhatsApp button ===================== */
.whatsapp-float{
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 10px 26px rgba(37,211,102,0.45);
  transition: transform .18s ease, box-shadow .18s ease;
}
.whatsapp-float:hover{ transform: translateY(-3px) scale(1.05); box-shadow: 0 14px 32px rgba(37,211,102,0.55); }
.whatsapp-float svg{ width:28px; height:28px; }
.whatsapp-float .wa-ping{
  position:absolute; inset:0; border-radius:50%; background:#25D366;
  opacity:.55; animation: wa-pulse 2.2s infinite;
}
@keyframes wa-pulse{ 0%{ transform:scale(1); opacity:.5; } 100%{ transform:scale(1.6); opacity:0; } }
@media (max-width:640px){
  .whatsapp-float{ right:16px; bottom:16px; width:52px; height:52px; }
  .whatsapp-float svg{ width:25px; height:25px; }
}

/* ===================== Subjects & Curriculum explorer ===================== */
/* Scoped to .subjects-page only — never touches the original 5 site pages */
.subjects-page .section{ padding: 56px 0; }
.subjects-page .section--tight{ padding: 36px 0; }
.subjects-page .section-head{ margin-bottom: 28px; }
.subjects-page .page-hero{ padding: 40px 0 32px; }

.subject-breadcrumb .crumb-sep{ color: var(--sky-line); margin: 0 2px; }
.subject-breadcrumb a{ color: var(--ink-soft); text-decoration:none; }
.subject-breadcrumb a:hover{ color: var(--sky-dark); text-decoration:underline; }
.subject-breadcrumb span:last-child{ color: var(--navy); font-weight:600; }

.subject-hub-grid{ margin-top: 8px; }
.subject-hub-card{
  display:block; text-decoration:none; color:inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.subject-hub-card:hover, .subject-tile-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(3,105,161,0.14);
  border-color: var(--sky);
  background: var(--sky-tint);
}
.subject-hub-card:hover h4, .subject-tile-card:hover h4{ color: var(--sky-dark); }
.subject-hub-flag{ font-size: 34px; margin-bottom: 10px; line-height:1; }
.subject-hub-card--other{ border-style:dashed; }
.subject-hub-card--other h4{ color: var(--sky-dark); }
@media (max-width:920px){ .subject-hub-card--other{ grid-column:auto !important; } }
.subject-hub-card h4{ font-family: var(--font-display); font-size:17px; color: var(--navy); margin-bottom:6px; transition: color .18s ease; }

.subject-detail-grid{ align-items:flex-start; gap: 48px; }
.subject-cover-wrap{ max-width: 220px; }
.subject-tile-card{ text-align:center; padding:28px 20px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease; }
.subject-tile-card .icon-tile{ margin:0 auto 16px; }
.subject-tile-card h4{ font-family: var(--font-display); font-size:16px; color: var(--navy); margin-bottom:4px; transition: color .18s ease; }
.subject-tile-caption{ display:block; font-family: var(--font-mono); font-size:11px; letter-spacing:.06em; text-transform:uppercase; color: var(--ink-soft); }
.subject-detail-grid p{ margin-bottom:14px; line-height:1.7; color: var(--ink-soft); }

/* Subject switcher: horizontal row of compact subject tiles up top, active
   subject's content below, Important Topics below that. Clicking a tile is a
   normal link to that subject's own real, indexable page — fast static
   navigation giving a "content updates" feel, not client-side routing, so
   every subject keeps its own crawlable URL. */
.subject-switcher-rail{
  display:flex; gap:10px; overflow-x:auto; padding-bottom:10px; margin-bottom:8px;
  scroll-behavior:smooth; scroll-padding-inline:16px;
}
.subject-switcher-rail a{ text-decoration:none; flex:0 0 auto; }
.subject-switcher-rail .subject-tile-card{
  padding:14px 18px; display:flex; flex-direction:row; align-items:center; gap:10px;
  min-width:0; white-space:nowrap;
}
.subject-switcher-rail .subject-tile-card .icon-tile{ width:32px; height:32px; margin:0; flex-shrink:0; }
.subject-switcher-rail .subject-tile-card .icon-tile svg{ width:16px; height:16px; }
.subject-switcher-rail .subject-tile-card h4{ margin:0; font-size:14.5px; }
.subject-switcher-rail .subject-tile-card .subject-tile-caption{ display:none; }
.subject-tile-card.is-active{
  border-color: var(--sky); background: var(--sky-tint);
  box-shadow: 0 10px 26px rgba(3,105,161,0.16);
}
.subject-tile-card.is-active h4{ color: var(--sky-dark); }
.subject-tile-card.is-active .subject-tile-caption{ color: var(--sky-dark); }
.subject-switcher-content{ max-width:820px; margin:0 auto; }

.topics-grid{ margin-top:8px; }
.topic-group{
  background:#fff; border:1px solid var(--sky-line); border-radius:14px;
  padding:22px 24px;
}
.topic-group h4{ font-family: var(--font-display); font-size:15.5px; color: var(--navy); margin-bottom:10px; }
.topic-group ul{ margin:0; padding-left:18px; }
.topic-group li{ font-size:14px; color: var(--ink-soft); margin-bottom:6px; line-height:1.5; }

.topics-flat-list{
  list-style:none; margin:0; padding:0; max-width:820px; margin:0 auto;
  display:grid; gap:14px;
}
.topics-flat-list li{
  background:#fff; border:1px solid var(--sky-line); border-radius:12px;
  padding:16px 20px; font-size:14.5px; color: var(--ink-soft); line-height:1.6;
}
.topics-flat-list li b{ color: var(--navy); font-family: var(--font-display); font-weight:600; }

.related-links{ margin-top:36px; text-align:center; }
.related-links h4{ font-family: var(--font-display); font-size:15px; color: var(--navy); margin-bottom:10px; }
.related-links ul{ list-style:none; padding:0; margin:0; display:flex; flex-wrap:wrap; gap:10px 18px; justify-content:center; }
.related-links a{ color: var(--sky-dark); font-size:14px; text-decoration:none; font-weight:600; }
.related-links a:hover{ text-decoration:underline; }

@media (max-width:820px){
  .subject-detail-grid{ grid-template-columns:1fr; }
  .subject-cover-wrap{ max-width:160px; }
}
