/* ============================================================
   SYEMEN CAREERS — V2
   Built to match the reference (tipshindawi.com):
   dark canvas, one vivid accent, centred sections, pill eyebrows,
   two-tone headings, icon cards, glowing pill CTAs,
   plus a light/dark toggle and Arabic/English (RTL) switch.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap");

:root {
  /* Dark theme (default, like the reference) */
  --bg: #0d0d10;
  --bg-alt: #121216;
  --card: #17171c;
  --card-2: #1c1c22;
  --line: #26262e;
  --line-2: #34343e;
  --text: #f3f3f6;
  --muted: #9b9ba6;

  /* Accent — taken from the SY logo */
  --accent: #2563ff;
  --accent-2: #2ec4ff;
  --accent-deep: #0b3fd6;
  --accent-soft: rgba(37, 99, 255, 0.13);
  --accent-line: rgba(37, 99, 255, 0.32);
  --glow: 0 0 34px rgba(37, 99, 255, 0.45);

  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;

  /* FREE — its own colour so the price never gets lost in the page */
  --free: #22e39a;
  --free-deep: #0aa571;
  --free-soft: rgba(34, 227, 154, 0.13);
  --free-line: rgba(34, 227, 154, 0.34);
  --free-glow: 0 0 40px rgba(34, 227, 154, 0.4);

  --max: 1180px;
  --r: 14px;
  --r-lg: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="light"] {
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --card: #ffffff;
  --card-2: #f6f7fb;
  --line: #e6e8ef;
  --line-2: #d6dae5;
  --text: #0f1116;
  --muted: #636a7a;
  --accent-soft: rgba(37, 99, 255, 0.08);
  --accent-line: rgba(37, 99, 255, 0.25);
  --glow: 0 10px 30px rgba(37, 99, 255, 0.28);
  --free: #059669;
  --free-soft: rgba(5, 150, 105, 0.09);
  --free-line: rgba(5, 150, 105, 0.28);
  --free-glow: 0 10px 30px rgba(5, 150, 105, 0.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Outfit, "Segoe UI", system-ui, sans-serif;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  transition: background .3s, color .3s;
}
html[lang="ar"] body { font-family: Cairo, "Segoe UI", sans-serif; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 800; line-height: 1.12; letter-spacing: -0.035em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.3; }

.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.section { padding: 96px 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }

/* Section intro pattern from the reference */
.eyebrow {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.section-intro { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-intro h2 { margin: 18px 0 12px; }
.section-intro p { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ---------- Review strip ---------- */
.review-strip {
  background: #000; color: #9b9ba6; padding: 8px 20px;
  font-size: .76rem; display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
}
.review-strip b { color: #fff; }
.review-strip .sp { margin-left: auto; }
[dir="rtl"] .review-strip .sp { margin-left: 0; margin-right: auto; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; gap: 14px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; flex: none; white-space: nowrap; }
.logo img {
  height: 40px; width: auto; max-width: 52px;
  object-fit: contain; background: none; border: 0; border-radius: 0;
  display: block;
}
.logo b { font-size: 1.18rem; font-weight: 700; letter-spacing: -.03em; }

.nav-links { display: flex; gap: 2px; margin-inline: auto; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px;
  font-size: .92rem; font-weight: 500; color: var(--muted);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.on { color: var(--accent); }
.nav-links a.pill {
  background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); font-weight: 600;
}
.nav-menu {
  display: none;
  width: 42px; height: 42px;
  border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--card); padding: 10px 9px;
  flex-direction: column; justify-content: space-between;
  cursor: pointer;
}
.nav-menu span { display: block; height: 2px; background: var(--text); border-radius: 2px; }
.hero-actions { position: relative; z-index: 4; }
.btn { position: relative; z-index: 1; isolation: isolate; }
.ribbon-information { background: linear-gradient(90deg, #1d4ed8, #2563eb, #1d4ed8); }
.ribbon-important { background: linear-gradient(90deg, #1e40af, #3b82f6, #1e40af); }
.ribbon.ribbon-warning,
html[data-theme="light"] .ribbon.ribbon-warning {
  background: linear-gradient(90deg, #7f1d1d, #dc2626, #7f1d1d);
  color: #fff;
}
.ribbon-promotion { }
a.ribbon { display: block; text-decoration: none; color: inherit; }

/* Toggles */
.toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--card);
  font-size: .78rem; font-weight: 600; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.toggle:hover { border-color: var(--accent); }
.toggle svg { width: 15px; height: 15px; }
.lang-toggle { font-weight: 700; letter-spacing: .04em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
  font-size: .95rem; font-weight: 600; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent-deep), var(--accent) 60%, var(--accent-2));
  color: #fff; box-shadow: var(--glow);
}
.btn-primary:hover { box-shadow: 0 0 46px rgba(37, 99, 255, 0.6); }
.btn-outline { border-color: var(--line-2); background: transparent; color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 9px 18px; font-size: .86rem; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }
[dir="rtl"] .btn .arrow { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(3px); }

/* ---------- Hero ----------
   Photographic background. The hero always renders as a dark band so the
   headline stays legible in both the light and dark themes. */
.hero {
  position: relative; overflow: hidden;
  padding: 132px 0 148px; text-align: center;
  color: #fff;
  background: #07080c url("assets/hero-bg.jpg") center 46% / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 920px 480px at 50% 12%, rgba(37, 99, 255, .28), transparent 68%),
    linear-gradient(180deg, rgba(6, 8, 14, .58) 0%, rgba(6, 8, 14, .32) 46%, rgba(6, 8, 14, .86) 100%);
}
.hero::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 150px;
  z-index: 0; pointer-events: none;
  background: linear-gradient(transparent, var(--bg));
}
.hero-in { position: relative; z-index: 1; }
.hero .eyebrow {
  background: rgba(37, 99, 255, .22);
  border-color: rgba(120, 170, 255, .5);
  color: #cfe0ff;
  backdrop-filter: blur(6px);
}
.hero .btn-outline { border-color: rgba(255, 255, 255, .34); color: #fff; backdrop-filter: blur(6px); }
.hero .btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, .1); color: #fff; }
.hero .free-chip { background: rgba(34, 227, 154, .16); backdrop-filter: blur(6px); }
.hero .hero-tick { background: linear-gradient(#8ab4ff, transparent); }
.hero-tick {
  width: 3px; height: 58px; margin: 0 auto 30px;
  background: linear-gradient(var(--accent), transparent);
  border-radius: 2px;
}
.hero h1 { margin-bottom: 22px; color: #fff; }
.hero h1 .hl {
  background: linear-gradient(120deg, var(--accent-2), var(--accent) 55%, var(--accent-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { max-width: 620px; margin: 0 auto; color: rgba(243, 243, 246, .86); font-size: 1.12rem; }
.hero-actions { display: flex; gap: 12px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.hero-note { margin-top: 24px; font-size: .88rem; color: rgba(243, 243, 246, .7); }

.hero-ticker {
  display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center;
  margin-top: 30px; padding: 10px 18px;
  border-radius: 999px;
  background: rgba(8, 10, 16, .55);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(10px);
  font-size: .88rem; color: rgba(243, 243, 246, .86);
}
.hero-ticker b { color: #fff; font-weight: 700; }
.hero-ticker .sep { width: 1px; height: 14px; background: rgba(255, 255, 255, .22); }
.hero-ticker .live { color: var(--free); font-weight: 800; letter-spacing: .12em; font-size: .7rem; }
.hero-ticker .cost { color: var(--free); font-weight: 800; }

/* ---------- Stat cards ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 28px 22px; text-align: center;
  transition: border-color .25s, transform .25s var(--ease);
}
.stat:hover { border-color: var(--accent-line); transform: translateY(-4px); }
.ico {
  width: 44px; height: 44px; border-radius: 12px; margin: 0 auto 16px;
  display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent);
}
.ico svg { width: 21px; height: 21px; }
.stat .v {
  font-size: 2.1rem; font-weight: 800; line-height: 1; letter-spacing: -.05em;
  color: var(--accent); margin-bottom: 8px;
}
.stat .l { font-weight: 700; font-size: .96rem; }
.stat .d { font-size: .8rem; color: var(--muted); margin-top: 4px; line-height: 1.5; }

/* ---------- Feature cards ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px; display: flex; gap: 14px; align-items: flex-start;
  transition: border-color .25s, transform .25s var(--ease);
}
.feature:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.feature .ico { margin: 0; width: 38px; height: 38px; border-radius: 10px; flex: none; }
.feature .ico svg { width: 18px; height: 18px; }
.feature h3 { margin: 0 0 4px; font-size: 1rem; }
.feature p { margin: 0; font-size: .87rem; color: var(--muted); line-height: 1.6; }

/* ---------- Course cards ---------- */
.courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.course {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px; display: flex; flex-direction: column; gap: 14px;
  transition: border-color .25s, transform .25s var(--ease);
}
.course::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(360px circle at 50% 0%, rgba(37,99,255,.12), transparent 70%);
  transition: opacity .3s;
}
.course:hover { border-color: var(--accent-line); transform: translateY(-5px); }
.course:hover::after { opacity: 1; }
.course-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.course-mark {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  color: var(--accent); font-weight: 800; font-size: .8rem; letter-spacing: .02em;
}
.course h3 { margin: 0; font-size: 1.28rem; font-weight: 800; }
.course .tag-line { margin: 0; color: var(--muted); font-size: .93rem; flex: 1; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line-2);
  font-size: .76rem; font-weight: 500; color: var(--muted);
}
.chip-accent { border-color: var(--accent-line); color: var(--accent); background: var(--accent-soft); }

.state { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: .76rem; font-weight: 700; }
.state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.state-open { color: var(--ok); background: rgba(52, 211, 153, .12); }
.state-full { color: var(--danger); background: rgba(248, 113, 113, .12); }
.state-closed { color: var(--muted); background: rgba(148, 163, 184, .16); }

.meter { display: flex; flex-direction: column; gap: 7px; }
.meter-top { display: flex; justify-content: space-between; font-size: .82rem; color: var(--muted); }
.meter-top b { color: var(--text); font-weight: 700; }
.meter-bar { height: 6px; border-radius: 99px; background: var(--card-2); border: 1px solid var(--line); overflow: hidden; }
.meter-bar i {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent-2));
}
.meter-bar i.warn { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.meter-bar i.max { background: linear-gradient(90deg, #dc2626, #f87171); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 22px; position: relative;
  transition: border-color .25s, transform .25s var(--ease);
}
.step:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.step .n {
  font-size: 2.4rem; font-weight: 800; line-height: 1; letter-spacing: -.06em;
  color: var(--line-2); margin-bottom: 12px;
}
.step:hover .n { color: var(--accent); }
.step h3 { margin: 0 0 6px; font-size: 1.05rem; }
.step p { margin: 0; font-size: .88rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden; text-align: center;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 28px; padding: 62px 34px;
}
.cta::before {
  content: ""; position: absolute; inset: -50% 20% 40% 20%;
  background: radial-gradient(ellipse at center, rgba(37,99,255,.24), transparent 65%);
  filter: blur(20px); pointer-events: none;
}
.cta > * { position: relative; z-index: 1; }
.cta img {
  height: 58px; width: auto; max-width: 72px;
  object-fit: contain; margin: 0 auto 20px;
  background: none; border: 0; border-radius: 0;
}
.cta p { color: var(--muted); max-width: 520px; margin: 0 auto 26px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 56px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1fr; gap: 34px; }
.footer h4 { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.footer a { display: block; padding: 4px 0; font-size: .9rem; color: var(--muted); }
.footer a:hover { color: var(--accent); }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.footer .socials a {
  width: 36px; height: 36px; padding: 0;
  display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 10px;
  color: var(--muted);
}
.footer .socials a:hover { color: var(--accent); border-color: var(--accent); }
.socials svg { width: 16px; height: 16px; }
.footer .contact-line { display: block; padding: 4px 0; font-size: .9rem; color: var(--muted); }
.footer .contact-line:hover { color: var(--accent); }
.footer-bottom a { display: inline; padding: 0; }

.countdown-shell { position: relative; z-index: 3; margin-top: -54px; padding-bottom: 10px; }
.course-brief {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px;
}
.course-brief .course-brief-title { margin: 0 0 16px; font-size: 1.15rem; }
.course-brief .facts { grid-template-columns: repeat(2, 1fr); }
.footer .about { color: var(--muted); font-size: .9rem; max-width: 34ch; margin-top: 14px; }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; gap: 14px; flex-wrap: wrap; font-size: .84rem; color: var(--muted);
}
.footer-bottom .sp { margin-left: auto; }
[dir="rtl"] .footer-bottom .sp { margin-left: 0; margin-right: auto; }
.footer a.powered-lockup,
.powered-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 28px;
  padding: 32px 20px 10px;
  border-top: 1px solid var(--line);
  text-decoration: none;
  font-size: inherit;
}
.powered-lockup .powered-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.powered-lockup .powered-name {
  font-size: clamp(1.7rem, 3.4vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
  background: linear-gradient(120deg, #8fd4ff 0%, #2ec4ff 42%, #1a73e8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.powered-lockup:hover .powered-name {
  background: linear-gradient(120deg, #ffffff 0%, #2ec4ff 55%, #5aa9ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   FREE — the price is the strongest message on the site
   ============================================================ */

/* Announcement ribbon, sits above the nav on every page */
.ribbon {
  background: linear-gradient(90deg, var(--free-deep), var(--free) 50%, var(--free-deep));
  background-size: 200% 100%;
  animation: ribbon-slide 9s linear infinite;
  color: #04231a;
  text-align: center;
  padding: 9px 20px;
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .01em;
}
html[data-theme="light"] .ribbon { color: #fff; }
.ribbon b { font-weight: 800; letter-spacing: .06em; }
@keyframes ribbon-slide { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .ribbon { animation: none; } }

/* Hero price chip */
.free-chip {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 26px; padding: 9px 20px 9px 12px;
  border-radius: 999px;
  background: var(--free-soft); border: 1px solid var(--free-line);
  color: var(--free); font-size: .92rem; font-weight: 600;
}
[dir="rtl"] .free-chip { padding: 9px 12px 9px 20px; }
.free-chip b {
  padding: 4px 12px; border-radius: 999px;
  background: var(--free); color: #04231a;
  font-size: .82rem; font-weight: 800; letter-spacing: .1em;
}
html[data-theme="light"] .free-chip b { color: #fff; }

/* The big band: the "in a big way" treatment */
.free-band { position: relative; overflow: hidden; text-align: center; padding: 104px 0; }
.free-band::before {
  content: ""; position: absolute; z-index: 0;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 1000px; height: 560px;
  background: radial-gradient(ellipse at center, rgba(34, 227, 154, .26), transparent 66%);
  filter: blur(30px); pointer-events: none;
}
.free-band > * { position: relative; z-index: 1; }
.free-band .eyebrow { background: var(--free-soft); border-color: var(--free-line); color: var(--free); }

.free-word {
  margin: 6px 0 4px;
  font-size: clamp(5rem, 19vw, 14rem);
  font-weight: 800;
  line-height: .84;
  letter-spacing: -.06em;
  background: linear-gradient(160deg, #d9fff0 0%, var(--free) 42%, var(--free-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 44px rgba(34, 227, 154, .35));
}
html[data-theme="light"] .free-word {
  background: linear-gradient(160deg, #10b981 0%, #059669 45%, #046c4e 100%);
  -webkit-background-clip: text; background-clip: text;
  filter: none;
}
html[lang="ar"] .free-word { font-size: clamp(3.6rem, 13vw, 9rem); line-height: 1.1; letter-spacing: 0; }

.free-strike {
  display: block; margin-bottom: 8px;
  color: var(--muted); font-size: 1.05rem; font-weight: 600;
}
.free-sub { max-width: 560px; margin: 18px auto 0; color: var(--muted); font-size: 1.12rem; }

.free-points {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  max-width: 860px; margin: 44px auto 0;
}
.free-point {
  background: var(--card); border: 1px solid var(--free-line); border-radius: var(--r);
  padding: 22px 18px; text-align: center;
  transition: transform .25s var(--ease), box-shadow .25s;
}
.free-point:hover { transform: translateY(-4px); box-shadow: var(--free-glow); }
.free-point .ico { background: var(--free-soft); border-color: var(--free-line); color: var(--free); }
.free-point h3 { margin: 0 0 4px; font-size: 1rem; }
.free-point p { margin: 0; font-size: .85rem; color: var(--muted); }
.free-note { margin-top: 32px; font-size: .9rem; color: var(--muted); }

/* FREE tag on course cards */
.chip-free {
  background: var(--free-soft); border-color: var(--free-line);
  color: var(--free); font-weight: 800; letter-spacing: .08em;
}
.free-corner {
  position: absolute; top: 0; inset-inline: 0; height: 26px;
  display: grid; place-items: center; z-index: 2;
  background: linear-gradient(90deg, var(--free-deep), var(--free) 50%, var(--free-deep));
  color: #04231a; font-size: .66rem; font-weight: 800; letter-spacing: .22em;
}
html[data-theme="light"] .free-corner { color: #fff; }
.course { padding-top: 46px; }

/* Price card on the course detail page */
.price-card {
  background: var(--card); border: 1px solid var(--free-line); border-radius: var(--r-lg);
  padding: 26px; text-align: center; position: relative; overflow: hidden;
}
.price-card::before {
  content: ""; position: absolute; inset: -60% 10% 50% 10%;
  background: radial-gradient(ellipse at center, rgba(34, 227, 154, .22), transparent 65%);
  filter: blur(18px); pointer-events: none;
}
.price-card > * { position: relative; z-index: 1; }
.price-card .label { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.price-card .amount {
  font-size: clamp(3rem, 7vw, 4.4rem); font-weight: 800; line-height: 1; letter-spacing: -.05em;
  margin: 10px 0 6px;
  background: linear-gradient(160deg, #d9fff0, var(--free) 45%, var(--free-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
html[data-theme="light"] .price-card .amount {
  background: linear-gradient(160deg, #10b981, #046c4e);
  -webkit-background-clip: text; background-clip: text;
}
html[lang="ar"] .price-card .amount { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.price-card .fine { font-size: .84rem; color: var(--muted); margin: 0; }
.btn-free {
  background: linear-gradient(135deg, var(--free-deep), var(--free));
  color: #04231a; box-shadow: var(--free-glow); font-weight: 700;
}
html[data-theme="light"] .btn-free { color: #fff; }
.btn-free:hover { box-shadow: 0 0 52px rgba(34, 227, 154, .58); }

/* ============================================================
   LIVE BRIEF — everything an applicant needs, at a glance
   ============================================================ */
.brief-shell { position: relative; z-index: 3; margin-top: -74px; }

.brief {
  background: var(--card); border: 1px solid var(--line-2);
  border-radius: 26px; padding: 28px 30px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
}
html[data-theme="light"] .brief { box-shadow: 0 24px 60px rgba(20, 33, 61, .13); }

.brief-head {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding-bottom: 20px; margin-bottom: 22px; border-bottom: 1px solid var(--line);
}
.brief-head h2 { margin: 0; font-size: 1.3rem; }
.brief-head .sp { margin-inline-start: auto; }
.brief-head .stamp { font-size: .8rem; color: var(--muted); }

.live-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 13px 5px 10px; border-radius: 999px;
  background: var(--free-soft); border: 1px solid var(--free-line);
  color: var(--free); font-size: .7rem; font-weight: 800; letter-spacing: .16em;
}
[dir="rtl"] .live-badge { padding: 5px 10px 5px 13px; }
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--free);
  box-shadow: 0 0 0 0 rgba(34, 227, 154, .7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(34, 227, 154, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 227, 154, 0); }
}
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

/* Countdown */
.countdown-wrap {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 20px 22px; margin-bottom: 22px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--accent-soft), transparent 70%);
  border: 1px solid var(--accent-line);
}
.countdown-label { font-size: .95rem; font-weight: 600; }
.countdown-label small { display: block; color: var(--muted); font-weight: 400; font-size: .82rem; margin-top: 2px; }
.brief-note {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--text);
  font-size: .92rem;
  line-height: 1.5;
}
.countdown { display: flex; gap: 10px; margin-inline-start: auto; }
.cd-box {
  min-width: 68px; padding: 10px 8px; border-radius: 12px; text-align: center;
  background: var(--bg); border: 1px solid var(--line-2);
}
.cd-box b {
  display: block; font-size: 1.7rem; font-weight: 800; line-height: 1;
  letter-spacing: -.04em; color: var(--accent); font-variant-numeric: tabular-nums;
}
.cd-box span {
  display: block; margin-top: 5px; font-size: .64rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
@media (max-width: 620px) { .countdown { margin-inline-start: 0; } .cd-box { min-width: 58px; } }

/* Fact grid */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden; }
.fact { background: var(--card); padding: 16px 18px; }
.fact .k { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fact .v { font-size: 1.06rem; font-weight: 700; margin-top: 5px; }
.fact .v.free { color: var(--free); font-weight: 800; }
.fact .v.open { color: var(--ok); }
@media (max-width: 900px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } }

/* Seats by track */
.brief-tracks { margin-top: 24px; }
.brief-tracks h3 { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.trow {
  display: grid; grid-template-columns: 1.5fr 2fr auto auto; gap: 16px; align-items: center;
  padding: 11px 0; border-bottom: 1px solid var(--line);
}
.trow:last-child { border-bottom: 0; }
.trow a { font-weight: 600; font-size: .92rem; }
.trow a:hover { color: var(--accent); }
.trow .left { font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.trow .left b { color: var(--text); }
@media (max-width: 760px) {
  .trow { grid-template-columns: 1fr auto; row-gap: 8px; }
  .trow .meter-bar { grid-column: 1 / -1; }
}

.brief-foot {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line);
}
.brief-foot p { margin: 0; font-size: .87rem; color: var(--muted); max-width: 52ch; }
.brief-foot .sp { margin-inline-start: auto; }

.snapshot { padding: 22px 24px; }
.snapshot .facts { grid-template-columns: repeat(3, 1fr); }
.detail-side .countdown { margin-inline-start: 0; width: 100%; justify-content: space-between; }
.detail-side .cd-box { min-width: 0; flex: 1; }

@media (max-width: 620px) {
  .snapshot .facts { grid-template-columns: repeat(2, 1fr); }
  .hero-ticker .sep { display: none; }
}

/* ============================================================
   PAGE HEADERS
   ============================================================ */
.page-head { position: relative; overflow: hidden; padding: 76px 0 60px; text-align: center; }
.page-head::before {
  content: ""; position: absolute; top: -60%; left: 50%; transform: translateX(-50%);
  width: 760px; height: 480px;
  background: radial-gradient(ellipse at center, rgba(37,99,255,.22), transparent 66%);
  filter: blur(22px); pointer-events: none;
}
.page-head > * { position: relative; z-index: 1; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 18px 0 12px; }
.page-head p { max-width: 600px; margin: 0 auto; color: var(--muted); }

.crumbs { display: flex; gap: 8px; justify-content: center; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.crumbs a:hover { color: var(--accent); }

/* ============================================================
   COURSE CATALOGUE
   ============================================================ */
.filter-bar {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px;
}
.filter-btn {
  padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--card);
  font-size: .87rem; font-weight: 600; color: var(--muted); cursor: pointer;
  transition: all .2s;
}
.filter-btn:hover { border-color: var(--accent); color: var(--text); }
.filter-btn.on {
  background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent);
}
.result-count { text-align: center; color: var(--muted); font-size: .88rem; margin-bottom: 22px; }

/* ============================================================
   COURSE DETAIL
   ============================================================ */
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 34px; align-items: start; }
.detail-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.panel h3 { font-size: 1.28rem; margin: 0 0 14px; }

.spec-list { display: flex; flex-direction: column; gap: 0; }
.spec {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .9rem;
}
.spec:last-child { border-bottom: 0; }
.spec span { color: var(--muted); }
.spec b { font-weight: 700; text-align: end; }

.block { margin-bottom: 48px; }
.block > h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 8px; }
.block > .lead { color: var(--muted); margin-bottom: 24px; }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.check-list li {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 15px 18px; font-size: .95rem;
}
.check-list li::before {
  content: "✓"; flex: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: .74rem; font-weight: 800;
  margin-top: 2px;
}
.tag-cloud { display: flex; flex-wrap: wrap; gap: 9px; }
.tag {
  padding: 8px 16px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line-2);
  font-size: .87rem; font-weight: 500;
  transition: all .2s;
}
.tag:hover { border-color: var(--accent); color: var(--accent); }

/* Week timeline */
.timeline { display: grid; gap: 14px; }
.tl-item {
  display: grid; grid-template-columns: 62px 1fr; gap: 18px; align-items: start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px 22px;
  transition: border-color .25s, transform .25s var(--ease);
}
.tl-item:hover { border-color: var(--accent-line); transform: translateX(4px); }
[dir="rtl"] .tl-item:hover { transform: translateX(-4px); }
.tl-week {
  text-align: center; border-radius: 12px; padding: 8px 4px;
  background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent);
}
.tl-week span { display: block; font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.tl-week b { display: block; font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.tl-item h3 { margin: 0 0 5px; font-size: 1.06rem; }
.tl-item p { margin: 0; font-size: .9rem; color: var(--muted); }

.project-box {
  background: linear-gradient(135deg, var(--accent-soft), transparent);
  border: 1px solid var(--accent-line); border-radius: var(--r-lg);
  padding: 28px;
}
.project-box .ico { margin: 0 0 14px; }
.project-box p { margin: 0; font-size: 1.05rem; }

/* ============================================================
   APPLICATION FORM
   ============================================================ */
.form-shell { max-width: 760px; margin: 0 auto; }

.stepper { display: flex; align-items: center; gap: 6px; margin-bottom: 34px; }
.st { display: flex; align-items: center; gap: 9px; flex: none; }
.st-dot {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-2); background: var(--card);
  font-size: .8rem; font-weight: 700; color: var(--muted);
  transition: all .25s;
}
.st-label { font-size: .84rem; color: var(--muted); font-weight: 600; }
.st.on .st-dot { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: var(--glow); }
.st.on .st-label { color: var(--text); }
.st.done .st-dot { background: var(--free-soft); border-color: var(--free-line); color: var(--free); }
.st-line { flex: 1; height: 1px; background: var(--line-2); min-width: 10px; }
@media (max-width: 860px) { .st-label { display: none; } }

.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; }
.form-card h2 { font-size: 1.6rem; margin-bottom: 6px; }
.form-card .lead { color: var(--muted); margin-bottom: 26px; font-size: .95rem; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .grid-2 { grid-template-columns: 1fr; } }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 7px; }
.field label .req { color: var(--danger); margin-inline-start: 3px; }
.field .hint { font-size: .78rem; color: var(--muted); margin-top: 6px; }
.input, .textarea, .select {
  width: 100%; padding: 12px 15px; border-radius: 11px;
  border: 1px solid var(--line-2); background: var(--bg);
  font-size: .94rem; transition: border-color .2s, box-shadow .2s;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.textarea { min-height: 130px; resize: vertical; font-family: inherit; }
.counter { text-align: end; font-size: .76rem; color: var(--muted); margin-top: 5px; }

.pick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 620px) { .pick-grid { grid-template-columns: 1fr; } }
.pick {
  display: flex; gap: 13px; align-items: flex-start; cursor: pointer;
  border: 1px solid var(--line-2); border-radius: var(--r); padding: 16px;
  background: var(--bg); transition: all .2s;
}
.pick:hover { border-color: var(--accent); }
.pick.on { border-color: var(--accent); background: var(--accent-soft); }
.pick input { margin-top: 3px; accent-color: var(--accent); flex: none; }
.pick b { display: block; font-size: .95rem; margin-bottom: 3px; }
.pick small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.pick .seats { display: block; margin-top: 6px; font-size: .78rem; color: var(--accent); font-weight: 700; }
.pick.dim { opacity: .5; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; }
.consent input { margin-top: 4px; accent-color: var(--accent); }

.form-nav { display: flex; gap: 12px; margin-top: 26px; }
.form-nav .sp { margin-inline-start: auto; }

.review-list { display: grid; gap: 0; }
.review-row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .92rem;
}
.review-row:last-child { border-bottom: 0; }
.review-row span { color: var(--muted); }
.review-row b { text-align: end; font-weight: 600; }
.total-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 20px; padding: 18px 22px; border-radius: var(--r);
  background: var(--free-soft); border: 1px solid var(--free-line);
}
.total-row span { font-weight: 600; }
.total-row b { font-size: 1.9rem; font-weight: 800; color: var(--free); letter-spacing: -.03em; }

.err { color: var(--danger); font-size: .82rem; margin-top: 6px; }
.input.bad, .textarea.bad, .select.bad { border-color: var(--danger); }
.file-name { margin-top: 8px; font-size: .82rem; color: var(--accent); font-weight: 600; }
input[type="file"].input { padding: 10px 12px; cursor: pointer; }
.date-wrap { position: relative; }
.date-wrap .input { padding-inline-end: 44px; color: var(--text); }
.date-wrap input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 3;
}
.date-cal {
  position: absolute;
  inset-inline-end: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: #ffffff;
  pointer-events: none;
  z-index: 2;
}
.date-cal svg { width: 18px; height: 18px; display: block; }
html[data-theme="light"] .date-cal { color: #0f1116; }
.btn.is-off { opacity: .55; pointer-events: none; cursor: not-allowed; }

/* ============================================================
   SUCCESS
   ============================================================ */
.success-wrap { max-width: 660px; margin: 0 auto; text-align: center; }
.tick-badge {
  width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 26px;
  display: grid; place-items: center;
  background: var(--free-soft); border: 1px solid var(--free-line); color: var(--free);
  box-shadow: var(--free-glow);
  animation: pop .5s var(--ease);
}
.tick-badge svg { width: 40px; height: 40px; }
@keyframes pop { from { transform: scale(.7); opacity: 0; } }
.ref-box {
  margin: 30px 0; padding: 22px; border-radius: var(--r-lg);
  background: var(--card); border: 1px dashed var(--accent-line);
}
.ref-box .label { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.ref-box .code {
  font-size: 1.7rem; font-weight: 800; letter-spacing: .1em; color: var(--accent); margin-top: 6px;
}
.next-list { text-align: start; display: grid; gap: 12px; margin-top: 30px; }

/* ============================================================
   JOURNEY HUB
   ============================================================ */
.hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hub-card {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  transition: border-color .25s, transform .25s var(--ease);
}
.hub-card:hover { border-color: var(--accent-line); transform: translateY(-5px); }
.hub-card .shot {
  height: 132px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent-soft), transparent);
  border-bottom: 1px solid var(--line);
  font-size: 2.2rem; font-weight: 800; color: var(--accent); letter-spacing: -.05em;
}
.hub-card .body { padding: 20px; }
.hub-card .step-no { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.hub-card h3 { margin: 6px 0 5px; font-size: 1.1rem; }
.hub-card p { margin: 0; font-size: .87rem; color: var(--muted); }
@media (max-width: 1000px) { .hub-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .hub-grid { grid-template-columns: 1fr; } }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .stats, .features, .courses, .steps { grid-template-columns: repeat(2, 1fr); }
  .free-points { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-menu { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    inset-inline: 16px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 10px;
    flex-direction: column;
    z-index: 60;
    box-shadow: 0 16px 40px rgba(0,0,0,.28);
  }
  .nav-links.open { display: flex; }
  .nav { position: sticky; }
  .nav-in { position: relative; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-side { position: static; }
}
@media (max-width: 620px) {
  .stats, .features, .courses, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 66px 0; }
  .hero { padding: 80px 0 48px; }
  .countdown-shell, .brief-shell { margin-top: 0; }
  .free-band { padding: 70px 0; }
  .form-card { padding: 22px; }
  .nav-apply { padding: 9px 14px; }
}
