/* ==========================================================================
   R2S Tutoring — site styles
   Brand: navy #14213D · orange #E85A0C · slate #4A5672 (taken from the logo files)
   ========================================================================== */

:root {
  --navy: #14213d;
  --navy-800: #1a2a4c;
  --navy-700: #22345c;
  --orange: #e85a0c;
  --orange-600: #cf4f09;
  --orange-50: #fff2ea;
  --slate: #4a5672;
  --muted: #6b7590;
  --line: #e6e9f0;
  --bg: #ffffff;
  --bg-soft: #f5f6f9;
  --wa: #25d366;
  --radius: 22px;
  --shadow: 0 24px 48px -28px rgba(20, 33, 61, 0.35);
  --font-head: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "Noto Sans Arabic", "Outfit", system-ui, sans-serif;
  --container: 1180px;
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  caret-color: transparent; /* hide the blinking cursor on normal text (browsers with "caret browsing"/F7 on) */
}
input, textarea, select, [contenteditable] { caret-color: var(--orange); } /* keep it where people actually type */
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.06; letter-spacing: -0.025em; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
[lang="ar"], .ar { font-family: var(--font-ar); letter-spacing: 0; }
[lang="zh"] { font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Outfit", sans-serif; }
[lang="zh"] small { font-family: inherit; letter-spacing: .08em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--orange); color: #fff; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--orange); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 12px; }
.text-orange { color: var(--orange); }
.nowrap { white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 16px; line-height: 1;
  padding: 16px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 11px 18px; font-size: 15px; }
.btn-sm svg { width: 18px; height: 18px; }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 14px 28px -14px rgba(232, 90, 12, .9); }
.btn-primary:hover { background: var(--orange-600); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn-outline { color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { box-shadow: 0 14px 28px -14px rgba(0, 0, 0, .45); }
.btn .arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-head); font-weight: 600; font-size: 13px;
  letter-spacing: .2em; text-transform: uppercase; color: var(--orange);
}
.eyebrow::before {
  content: ""; width: 34px; height: 3px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, currentColor 0 8px, transparent 8px 13px);
}
.section { padding: clamp(60px, 7vw, 96px) 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 4.5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.h2 { font-size: clamp(36px, 5.2vw, 62px); margin-top: 16px; text-wrap: balance; }
.h2.caps { text-transform: uppercase; letter-spacing: -.01em; margin-top: 0; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--slate); margin-top: 20px; line-height: 1.65; }
.on-dark .lead, .on-dark p { color: rgba(255, 255, 255, .72); }
.on-dark { color: #fff; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 70;
  background: var(--orange); transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 60; padding: 18px 0; transition: padding .3s ease; }
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line); opacity: 0; transition: opacity .3s ease;
}
.site-header.is-solid { padding: 10px 0; }
.site-header.is-solid::before { opacity: 1; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; position: relative; z-index: 2; }
.brand-icon { width: 42px; height: 42px; flex: none; }
.brand-word { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; } /* flex-start: never stretch the logo image */
.brand-letters { height: 22px; width: auto; }
.site-header .brand-letters { height: 30px; transition: height .3s ease; }
.site-header.is-solid .brand-letters { height: 26px; }
.brand-sub { font-family: var(--font-head); font-weight: 600; font-size: 9.5px; letter-spacing: .42em; text-transform: uppercase; color: #b8c0d4; line-height: 1; }
.brand .dark { display: none; }
.site-header.is-solid .brand .light { display: none; }
.site-header.is-solid .brand .dark { display: block; }
.site-header.is-solid .brand-sub { color: var(--slate); }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a:not(.btn) {
  position: relative; display: block; padding: 9px 15px; border-radius: 999px;
  font-weight: 500; font-size: 15px; color: rgba(255, 255, 255, .82);
  transition: color .2s ease, background-color .2s ease;
}
.nav-links a:not(.btn):hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-links a[aria-current="page"] { color: #fff; }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%; background: var(--orange);
}
.site-header.is-solid .nav-links a:not(.btn) { color: var(--slate); }
.site-header.is-solid .nav-links a:not(.btn):hover { color: var(--navy); background: var(--bg-soft); }
.site-header.is-solid .nav-links a[aria-current="page"] { color: var(--navy); }
.nav-cta { margin-left: 10px; }

.menu-toggle {
  display: none; position: relative; z-index: 2; width: 46px; height: 46px; border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .2); background: transparent; cursor: pointer;
}
.menu-toggle span {
  position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: #fff;
  transition: transform .3s ease, top .3s ease, background-color .3s ease;
}
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 22px; transition: opacity .2s ease; }
.menu-toggle span:nth-child(3) { top: 29px; }
.site-header.is-solid .menu-toggle { border-color: var(--line); }
.site-header.is-solid .menu-toggle span { background: var(--navy); }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; justify-content: center; gap: 6px;
    background: var(--navy); padding: 100px 24px 40px;
    opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
  }
  .nav-links a:not(.btn) { font-family: var(--font-head); font-size: 30px; font-weight: 600; color: #fff !important; background: none !important; text-align: center; padding: 10px 20px; }
  .nav-links a[aria-current="page"]::after { bottom: -2px; width: 7px; height: 7px; margin-left: -3.5px; }
  .nav-cta { margin: 20px 0 0; }
  .menu-open .nav-links { opacity: 1; visibility: visible; }
  .menu-open .site-header .brand .light { display: block; }
  .menu-open .site-header .brand .dark { display: none; }
  .menu-open .site-header .brand-sub { color: #b8c0d4; }
  .menu-open .site-header .menu-toggle { border-color: rgba(255, 255, 255, .2); }
  .menu-open .site-header .menu-toggle span { background: #fff; }
  .menu-open .menu-toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle span:nth-child(3) { top: 22px; transform: rotate(-45deg); }
  .menu-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh;
  background: linear-gradient(180deg, #0f1930 0%, var(--navy) 50%, #1a2a4c 100%);
  color: #fff;
}
.hero::before { /* faint star field */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 12%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 74% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 34%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 56% 8%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 8% 44%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 93% 10%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 40% 30%, #fff 50%, transparent 51%);
}
.hero-copy { position: relative; z-index: 2; text-align: center; padding: clamp(104px, 14vh, 140px) 0 20px; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
  padding: 8px 16px 8px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .13);
  font-size: 14px; color: rgba(255, 255, 255, .85);
}
.hero-chip .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; }
.hero-chip .dot svg { width: 13px; height: 13px; color: #fff; }
.hero-chip .sep { opacity: .35; }
.hero h1 { font-size: clamp(48px, 8vw, 104px); line-height: .96; letter-spacing: -.04em; margin-top: 24px; }
.hero h1 .accent { color: var(--orange); }
.hero-sub { max-width: 700px; margin: 22px auto 0; text-wrap: balance; font-size: clamp(17px, 1.6vw, 20px); color: rgba(255, 255, 255, .74); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }
.hero-next { color: rgba(255, 255, 255, .6); }
.hero-next .rotator { display: inline-block; min-width: 10ch; text-align: left; color: #fff; font-weight: 600; transition: opacity .35s ease, transform .35s ease; }
.hero-next .rotator.is-out { opacity: 0; transform: translateY(-6px); }

.hero-scene { position: relative; flex: 1 0 clamp(240px, 36vh, 420px); }
.hero-scene svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; } /* let the sun glow fade upward instead of being cut */
.scene-sun { filter: drop-shadow(0 0 36px rgba(232, 90, 12, .55)); }

.hello {
  position: absolute; z-index: 1; padding: 10px 18px; border-radius: 18px 18px 18px 5px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  font-family: var(--font-head); font-weight: 600; font-size: 18px; color: #fff;
  backdrop-filter: blur(4px); animation: floaty 7s ease-in-out infinite;
}
.hello small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.hello.r { border-radius: 18px 18px 5px 18px; }
.hello.o { background: rgba(232, 90, 12, .16); border-color: rgba(232, 90, 12, .4); }
.hello-1 { top: 23%; left: 6%; }
.hello-2 { top: 19%; right: 7%; animation-delay: -2s; }
.hello-3 { top: 47%; left: 10%; animation-delay: -4s; }
.hello-4 { top: 51%; right: 10%; animation-delay: -1s; }
.hello-5 { top: 66%; left: 4%; animation-delay: -5s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (max-width: 1240px) { .hello { display: none; } }

/* Sub-page hero */
.hero--page { min-height: 0; }
.hero--page .hero-copy { padding-top: clamp(130px, 18vh, 170px); }
.hero--page h1 { font-size: clamp(42px, 6.6vw, 84px); }.hero--page .hero-scene { flex: 0 0 clamp(170px, 24vh, 240px); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding: 26px 0; border-bottom: 1px solid var(--line); background: #fff; }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee-group { display: flex; align-items: center; gap: 30px; padding-right: 30px; }
.marquee-item { font-family: var(--font-head); font-weight: 700; font-size: clamp(22px, 2.7vw, 36px); white-space: nowrap; letter-spacing: -.02em; }
/* Hollow words: white fill painted over the outline, so only the outer edge shows
   (the font's overlapping letter parts would otherwise show as lines inside letters) */
.marquee-item.outline { color: #fff; -webkit-text-stroke: 3px var(--navy); paint-order: stroke fill; }
.marquee-item.ar { font-family: var(--font-ar); }
.marquee-sep { width: 11px; height: 11px; border-radius: 3px; background: var(--orange); transform: rotate(45deg); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Audience cards ---------- */
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px 26px;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card-icon { width: 58px; height: 58px; border-radius: 17px; display: grid; place-items: center; background: var(--orange-50); color: var(--orange); margin: 0 0 24px; }
/* Compact version for the four home page cards */
.cards-4 .card { padding: 24px 24px 22px; }
.cards-4 .card-icon { width: 48px; height: 48px; border-radius: 14px; margin-bottom: 16px; }
.cards-4 .card-icon svg { width: 24px; height: 24px; }
.cards-4 .card h3 { font-size: 22px; }
.cards-4 .card p { margin-top: 8px; font-size: 15px; }
.cards-4 .card-link { padding-top: 16px; }
.card-icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 24px; }
.card p { margin-top: 10px; color: var(--slate); font-size: 15.5px; }
.card-link { margin-top: auto; padding-top: 24px; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; font-size: 15px; }
.card-link svg { width: 18px; height: 18px; transition: transform .25s ease; }
.card:hover .card-link svg { transform: translateX(5px); }
.card--dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.card--dark p { color: rgba(255, 255, 255, .72); }
.card--dark .card-num { color: rgba(255, 255, 255, .5); }
.card--dark .card-icon { background: rgba(232, 90, 12, .18); }

/* ---------- The road (journey) ---------- */
.journey { background: var(--bg-soft); overflow: hidden; }
.journey-track { position: relative; }
.road-svg { position: absolute; inset: 0; z-index: 0; overflow: visible; pointer-events: none; }
.journey-start {
  position: relative; z-index: 1; display: flex; justify-content: center; margin-bottom: 0;
}
.journey-start span {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 14px;
  box-shadow: 0 12px 24px -14px rgba(20, 33, 61, .7);
}
.journey-start svg { width: 16px; height: 16px; color: var(--orange); }
.stops { position: relative; z-index: 1; list-style: none; display: grid; gap: clamp(110px, 13vw, 170px); padding-top: 150px; }
.stop { position: relative; display: flex; }
.stop--right { justify-content: flex-end; }
.stop-card {
  position: relative; width: min(36%, 430px); background: #fff; border: 1px solid var(--line); border-radius: 24px;
  padding: 28px 30px 30px; box-shadow: 0 30px 50px -36px rgba(20, 33, 61, .45);
  opacity: .5; transform: translateY(18px) scale(.97);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1), border-color .5s ease, box-shadow .5s ease;
}
.stop.is-reached .stop-card { opacity: 1; transform: none; border-color: rgba(232, 90, 12, .35); box-shadow: 0 34px 60px -34px rgba(232, 90, 12, .45); }
.stop-sign {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 9px;
  background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 12px;
  letter-spacing: .16em; text-transform: uppercase; transition: background-color .4s ease;
}
.stop-sign svg { width: 14px; height: 14px; }
.stop.is-reached .stop-sign { background: var(--orange); }
.stop-card h3 { font-size: clamp(23px, 2.4vw, 29px); margin-top: 18px; }
.stop-card p { margin-top: 10px; color: var(--slate); }
.stop-card a { color: var(--orange); font-weight: 600; white-space: nowrap; }
.stop-num {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-family: var(--font-head); font-weight: 800; font-size: clamp(120px, 15vw, 200px); line-height: 1; letter-spacing: -.06em;
  color: rgba(20, 33, 61, .05); transition: color .6s ease;
  user-select: none; pointer-events: none;
}
.stop--left .stop-num { right: 2%; }
.stop--right .stop-num { left: 2%; }
.stop.is-reached .stop-num { color: rgba(232, 90, 12, .14); }

.finish { position: relative; z-index: 1; text-align: center; padding-top: 140px; }
.finish-inner { padding-top: 54px; opacity: .55; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.finish.is-reached .finish-inner { opacity: 1; transform: none; }
.finish-tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--orange); }
.finish h3 { font-size: clamp(38px, 5.4vw, 64px); margin-top: 14px; }
.finish h3.caps { text-transform: uppercase; letter-spacing: -.01em; text-wrap: balance; }
.finish p { margin: 16px auto 0; max-width: 520px; color: var(--slate); font-size: 18px; }
.finish .hero-actions { margin-top: 30px; }

/* road SVG parts */
.road-ghost { stroke: #e2e6ee; }
.road-ghost-line { stroke: #fff; }
.road-base { stroke: var(--navy); }
.road-edge { stroke: rgba(255, 255, 255, .28); }
.road-inner { stroke: var(--navy); }
.road-line { stroke: #fff; }
.road-dot { fill: #fff; stroke: var(--navy); transition: fill .4s ease; }
.road-dot.is-reached { fill: var(--orange); }

@media (max-width: 760px) {
  .stops { gap: 64px; padding-top: 110px; }
  .stop, .stop--right { justify-content: flex-start; }
  .stop-card { width: 100%; margin-left: 64px; padding: 24px 22px 26px; }
  .stop-num { display: none; }
  .journey-start { justify-content: flex-start; }
  .finish { text-align: center; padding-top: 90px; }
  .finish .hero-actions { justify-content: center; }
}

/* ---------- Languages ---------- */
.langs { background: var(--navy); color: #fff; overflow: hidden; }
.langs::before {
  content: ""; position: absolute; width: 640px; height: 640px; right: -220px; top: -220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 90, 12, .22), transparent 65%); pointer-events: none;
}
.langs-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; position: relative; }
.langs .h2 .accent { color: var(--orange); }

.lang-demo { margin-top: 38px; background: var(--navy-800); border: 1px solid rgba(255, 255, 255, .1); border-radius: 26px; overflow: hidden; }
.lang-tabs { display: flex; gap: 6px; padding: 8px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.lang-tab {
  flex: 1; border: 0; border-radius: 14px; padding: 11px 10px; background: transparent; cursor: pointer;
  color: rgba(255, 255, 255, .6); font-family: var(--font-head); font-weight: 600; font-size: 15px;
  transition: background-color .25s ease, color .25s ease;
}
.lang-tab:hover { color: #fff; }
.lang-tab[aria-selected="true"] { background: var(--orange); color: #fff; }
.lang-tab.ar { font-family: var(--font-ar); }
.lang-board {
  position: relative; padding: 30px 30px 34px; min-height: 238px;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 28px 28px;
}
.lang-panel { display: none; }
.lang-panel.is-active { display: block; animation: fadeUp .45s ease both; }
.lang-panel .say { font-family: var(--font-head); font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; color: #fff; }
.lang-panel[lang="ar"] .say { font-family: var(--font-ar); }
.lang-panel .how { margin-top: 8px; color: rgba(255, 255, 255, .62); font-size: 16px; }
.math { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 24px; direction: ltr; }
.math span { font-family: var(--font-head); font-weight: 600; font-size: clamp(20px, 2.2vw, 26px); padding: 8px 14px; border-radius: 12px; background: rgba(255, 255, 255, .06); color: #fff; }
.math i { font-style: normal; color: rgba(255, 255, 255, .35); }
.math span.res { background: var(--orange); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.lang-col h3 { font-size: 14px; font-family: var(--font-head); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .5); margin-bottom: 14px; }
.lang-col + .lang-col { margin-top: 32px; }
.lang-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; list-style: none; }
.lang-item {
  border-radius: 20px; padding: 20px 18px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
  transition: transform .3s ease, background-color .3s ease, border-color .3s ease;
}
.lang-item:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .08); border-color: rgba(232, 90, 12, .5); }
.lang-item .hi { display: block; font-family: var(--font-head); font-weight: 700; font-size: clamp(22px, 2.3vw, 28px); color: #fff; }
.lang-item .hi[lang="ar"] { font-family: var(--font-ar); }
.lang-item .nm { display: block; margin-top: 4px; font-size: 14px; color: rgba(255, 255, 255, .55); }
.lang-item--accent { background: var(--orange); border-color: var(--orange); }
.lang-item--accent .nm { color: rgba(255, 255, 255, .85); }
.lang-item--accent:hover { background: var(--orange-600); }
.lang-item--wide { grid-column: 1 / -1; }

/* ---------- Stats ---------- */
.stats { padding: clamp(56px, 7vw, 84px) 0; border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { padding-left: 22px; border-left: 3px solid var(--line); }
.stat:first-child { border-left-color: var(--orange); }
.stat-value { font-family: var(--font-head); font-weight: 800; font-size: clamp(44px, 5.4vw, 68px); line-height: 1; letter-spacing: -.04em; }
.stat-value .plus { color: var(--orange); }
.stat-label { margin-top: 10px; color: var(--slate); font-size: 15.5px; max-width: 22ch; }

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.why-intro { position: sticky; top: 120px; }
.why-intro .btn { margin-top: 32px; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.feature { padding: 28px 26px; border-radius: var(--radius); background: var(--bg-soft); transition: background-color .3s ease, transform .3s ease; }
.feature:hover { background: var(--orange-50); transform: translateY(-4px); }.feature-icon { width: 50px; height: 50px; border-radius: 14px; background: #fff; display: grid; place-items: center; color: var(--orange); box-shadow: 0 8px 18px -12px rgba(20, 33, 61, .4); }
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 21px; margin-top: 22px; }
.feature p { margin-top: 8px; color: var(--slate); font-size: 15.5px; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 860px; margin-inline: auto; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 4px; font-family: var(--font-head); font-weight: 600; font-size: clamp(18px, 1.9vw, 22px);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { position: relative; width: 36px; height: 36px; border-radius: 50%; background: var(--bg-soft); flex: none; transition: background-color .3s ease, transform .3s ease; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: var(--navy); border-radius: 2px; transition: transform .3s ease, background-color .3s ease; }
.faq summary .pm::after { transform: rotate(90deg); }
.faq details[open] summary .pm { background: var(--orange); transform: rotate(180deg); }
.faq details[open] summary .pm::before, .faq details[open] summary .pm::after { background: #fff; }
.faq details[open] summary .pm::after { transform: rotate(0); }
.faq summary:hover { color: var(--orange); }
.faq .answer { padding: 0 60px 26px 4px; color: var(--slate); }
.faq .answer a { color: var(--orange); font-weight: 600; }
.faq details[open] .answer { animation: fadeUp .35s ease both; }

/* ---------- Booking ---------- */
.book { background: var(--bg-soft); }
.book-card { display: grid; grid-template-columns: .9fr 1.1fr; border-radius: 32px; overflow: hidden; background: #fff; box-shadow: 0 40px 80px -50px rgba(20, 33, 61, .5); }
.book-info { position: relative; background: var(--navy); color: #fff; padding: clamp(36px, 5vw, 60px); overflow: hidden; }
.book-info::after { /* a little road running off the corner */
  content: ""; position: absolute; right: -60px; bottom: -40px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 90, 12, .35), transparent 65%);
}
.book-info .h2 { font-size: clamp(32px, 3.8vw, 46px); }
.book-info .lead { color: rgba(255, 255, 255, .7); }
.contact-list { list-style: none; margin-top: 36px; display: grid; gap: 14px; position: relative; z-index: 1; }
.contact-list a, .contact-list div { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); transition: background-color .25s ease, border-color .25s ease; }
.contact-list a:hover { background: rgba(255, 255, 255, .1); border-color: rgba(232, 90, 12, .5); }
.contact-list .ci { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--orange); flex: none; }
.contact-list .ci.wa { background: var(--wa); }
.contact-list .ci svg { width: 20px; height: 20px; color: #fff; }
.contact-list small { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.contact-list strong { font-family: var(--font-head); font-weight: 600; font-size: 17px; }

.book-form { padding: clamp(32px, 5vw, 60px); display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-content: start; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: 14px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg-soft);
  font-size: 16px; transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 112px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2314213d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 44px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); background: #fff; box-shadow: 0 0 0 4px rgba(232, 90, 12, .12); }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.form-note { font-size: 14px; color: var(--muted); }
.form-note a { color: var(--navy); font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band { padding: 0 0 clamp(60px, 7vw, 96px); }
.slogans + .cta-band { padding-top: clamp(60px, 7vw, 96px); } /* coloured section above has no white space of its own */
.cta-card {
  position: relative; overflow: hidden; border-radius: 34px; padding: clamp(40px, 6vw, 76px);
  background: linear-gradient(120deg, var(--orange) 0%, #f0742c 100%); color: #fff;
  display: grid; grid-template-columns: 1.3fr auto; gap: 32px; align-items: center;
}
.cta-card::before { /* road centre line */
  content: ""; position: absolute; left: -5%; right: -5%; bottom: 34px; height: 5px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .45) 0 38px, transparent 38px 64px);
  animation: dashes 2.4s linear infinite;
}
.cta-card::after { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -180px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
@keyframes dashes { to { background-position: 64px 0; } }
.cta-card h2 { font-size: clamp(34px, 4.6vw, 56px); position: relative; z-index: 1; }
.cta-card p { margin-top: 14px; font-size: 18px; color: rgba(255, 255, 255, .88); max-width: 560px; position: relative; z-index: 1; }
.cta-card .hero-actions { margin: 0; justify-content: flex-end; position: relative; z-index: 1; }

/* ---------- About page ---------- */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.big-quote { font-family: var(--font-head); font-weight: 700; font-size: clamp(32px, 4.4vw, 54px); line-height: 1.08; letter-spacing: -.03em; }
.big-quote .accent { color: var(--orange); }
.story-text p + p { margin-top: 18px; }
.story-text p { color: var(--slate); font-size: 18px; }
.story-text strong { color: var(--navy); }

.mvv { background: var(--bg-soft); }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mvv .card { padding: 34px 30px; }
.mvv .card h3 { font-size: 26px; }
.mvv .card p { font-size: 17px; }
.mvv .card .card-icon { margin-top: 0; }

.values { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; counter-reset: v; }
.value { display: grid; grid-template-columns: auto 1fr; gap: 24px; padding: 32px 0; border-top: 1px solid var(--line); }
.value-n { font-family: var(--font-head); font-weight: 800; font-size: 42px; line-height: 1; color: var(--orange); letter-spacing: -.04em; }
.value h3 { font-size: 24px; }
.value p { margin-top: 8px; color: var(--slate); }

.slogans { background: var(--navy); color: #fff; overflow: hidden; }
.slogan-list { list-style: none; display: grid; gap: 0; }
.slogan-row { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: clamp(18px, 2.4vw, 28px) 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.slogan-row:last-child { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.slogan-row .s { font-family: var(--font-head); font-weight: 700; font-size: clamp(30px, 5.4vw, 72px); letter-spacing: -.035em; line-height: 1.05; }
.slogan-row .s .accent { color: var(--orange); }
.slogan-row[lang="ar"] .s { font-family: var(--font-ar); letter-spacing: 0; }
.slogan-row .l { font-family: var(--font-head); font-weight: 600; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .45); white-space: nowrap; font-family: var(--font-head); }

.steps-road { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; list-style: none; padding-top: 58px; }
.steps-road::before { /* horizontal road */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 36px; border-radius: 18px; background: var(--navy);
}
.steps-road::after {
  content: ""; position: absolute; left: 24px; right: 24px; top: 16.5px; height: 3px;
  background: repeating-linear-gradient(90deg, #fff 0 20px, transparent 20px 34px);
  animation: dashes2 2s linear infinite;
}
@keyframes dashes2 { to { background-position: 34px 0; } }
.step { position: relative; }
.step::before { content: ""; position: absolute; top: -40px; left: 18px; width: 22px; height: 22px; border-radius: 50%; background: var(--orange); border: 4px solid #fff; z-index: 1; }
.step-k { font-family: var(--font-head); font-weight: 600; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--orange); }
.step h3 { font-size: 24px; margin-top: 10px; }
.step p { margin-top: 8px; color: var(--slate); font-size: 16px; }

/* ---------- What we teach page ---------- */
.teach-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; margin-bottom: 36px; }
.teach-bar p { color: var(--slate); }
.seg { display: inline-flex; padding: 5px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; padding: 10px 18px; border-radius: 999px; cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--slate); transition: background-color .25s ease, color .25s ease; }
.seg button.ar { font-family: var(--font-ar); }
.seg button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.teach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.teach-card { border-radius: 26px; padding: clamp(28px, 3.4vw, 40px); border: 1px solid var(--line); background: #fff; transition: box-shadow .35s ease, transform .35s ease; scroll-margin-top: 110px; }
.teach-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.teach-head { display: flex; align-items: center; gap: 16px; }
.teach-head .card-icon { margin: 0; }
.teach-head small { display: block; font-family: var(--font-head); font-weight: 600; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.teach-head h2 { font-size: clamp(26px, 2.8vw, 34px); }
.teach-card > p { margin-top: 16px; color: var(--slate); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 22px; }
.chips li { padding: 8px 14px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); font-size: 14.5px; font-weight: 500; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.chips li:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-50); }
.chips li.more { background: transparent; border-style: dashed; color: var(--muted); }
.chips[dir="rtl"] li { font-family: var(--font-ar); }
.teach-card--dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.teach-card--dark > p { color: rgba(255, 255, 255, .72); }
.teach-card--dark .teach-head small { color: rgba(255, 255, 255, .5); }
.teach-card--dark .card-icon { background: rgba(232, 90, 12, .18); }
.teach-card--dark .chips li { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); }
.teach-card--dark .chips li:hover { background: rgba(232, 90, 12, .2); border-color: var(--orange); color: #fff; }
.teach-card--dark .chips li.more { background: transparent; color: rgba(255, 255, 255, .55); }
/* Phones (one column): School, Government exams, University, New languages. Desktop order unchanged. */
@media (max-width: 760px) {
  #school { order: 1; } #exams { order: 2; } #university { order: 3; } #languages { order: 4; }
}
.taught-in { margin-top: 20px; border-radius: 26px; padding: 26px clamp(24px, 3.4vw, 40px); background: var(--orange-50); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.taught-in p { font-family: var(--font-head); font-weight: 600; font-size: clamp(18px, 2vw, 22px); }
.taught-in .langs-inline { display: flex; gap: 10px; flex-wrap: wrap; }
.taught-in .langs-inline span { padding: 9px 16px; border-radius: 999px; background: #fff; font-family: var(--font-head); font-weight: 600; box-shadow: 0 6px 14px -10px rgba(20, 33, 61, .5); }
.taught-in .langs-inline span[lang="ar"] { font-family: var(--font-ar); }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--navy); color: rgba(255, 255, 255, .72); padding: clamp(64px, 8vw, 96px) 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer-brand .brand-word { align-items: center; gap: 7px; }
.footer-brand .brand-letters { height: 40px; width: auto; }
.footer-brand .brand-sub { font-size: 11px; letter-spacing: .32em; margin-right: -.32em; /* cancel trailing spacing so it centres */ }
.footer-slogan { margin-top: 22px; font-family: var(--font-head); font-weight: 700; font-size: 26px; color: #fff; letter-spacing: -.02em; }
.footer-slogan span { color: var(--orange); }
.footer-note { margin-top: 10px; font-size: 15px; max-width: 34ch; }
.site-footer h4 { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .45); font-weight: 600; margin-bottom: 18px; }
.footer-links { list-style: none; display: grid; gap: 10px; }
.footer-links a { transition: color .2s ease; }
.footer-links a:hover { color: var(--orange); }
.footer-links .num { font-family: var(--font-head); font-weight: 600; color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; color: rgba(255, 255, 255, .5); }

/* ---------- Floating contact buttons ---------- */
.fab { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 80; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.fab-btn {
  position: relative; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  box-shadow: 0 16px 30px -12px rgba(20, 33, 61, .55); transition: transform .25s ease, box-shadow .25s ease;
}
.fab-btn svg { width: 28px; height: 28px; position: relative; z-index: 1; }
.fab-btn:hover { transform: translateY(-3px) scale(1.04); }
.fab-call { background: var(--navy); width: 54px; height: 54px; margin-right: 3px; }
.fab-call svg { width: 23px; height: 23px; color: #fff; }
.fab-wa { background: var(--wa); }
.fab-wa::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--wa); animation: pulse 2.6s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .55; } 80%, 100% { transform: scale(1.7); opacity: 0; } }
.fab-label {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(8px, -50%); white-space: nowrap;
  background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 14px;
  padding: 8px 13px; border-radius: 10px; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.fab-label small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 12px; color: rgba(255, 255, 255, .65); }
.fab-btn:hover .fab-label, .fab-btn:focus-visible .fab-label { opacity: 1; transform: translate(0, -50%); }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
[data-reveal].is-visible { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .langs-grid, .why-grid, .story-grid { grid-template-columns: 1fr; }
  .why-intro { position: static; }
  .book-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .cta-card { grid-template-columns: 1fr; }
  .cta-card .hero-actions { justify-content: flex-start; }
  .steps-road { grid-template-columns: repeat(2, 1fr); row-gap: 90px; }
  .steps-road::before, .steps-road::after { display: none; }
  .step { padding-top: 0; }
  .step::before { top: -34px; left: 0; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .cards-4, .cards-3, .teach-grid, .features, .values { grid-template-columns: 1fr; }
  .lang-list { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .lang-item { padding: 16px 12px; }
  .book-form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .steps-road { grid-template-columns: 1fr; row-gap: 64px; }
  .slogan-row { flex-direction: column; gap: 6px; }
  .faq .answer { padding-right: 4px; }
  .fab-btn { width: 56px; height: 56px; }
  .fab-call { width: 50px; height: 50px; }
}
@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; }
  .lang-list { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
