/* ──────────────────────────────────────────────────────────────────────────
   معهد مداد العلم العالي للتدريب — صفحة هبوط
   Landing page in Will's navy + gold.
   Standalone demo: no build step, no framework, no dependency on the app.
   ────────────────────────────────────────────────────────────────────────── */

/* ── Fonts (copied from the production site's public/fonts) ─────────────── */
@font-face { font-family: "Thmanyah Sans"; src: url("assets/fonts/thmanyahsans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Thmanyah Sans"; src: url("assets/fonts/thmanyahsans-Medium.woff2")  format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Thmanyah Sans"; src: url("assets/fonts/thmanyahsans-Bold.woff2")    format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Thmanyah Sans"; src: url("assets/fonts/thmanyahsans-Black.woff2")   format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Thmanyah Display"; src: url("assets/fonts/thmanyahserifdisplay-Bold.woff2")  format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Thmanyah Display"; src: url("assets/fonts/thmanyahserifdisplay-Black.woff2") format("woff2"); font-weight: 900; font-display: swap; }

/* ── Tokens — lifted verbatim from app/globals.css ──────────────────────── */
:root {
  --brand-50:#eef5ff; --brand-100:#dbecff; --brand-200:#90c0ff; --brand-300:#468fff;
  --brand-400:#0869ff; --brand-500:#0051c9; --brand-600:#03459b; --brand-700:#002f79;
  --brand-800:#002063; --brand-900:#00184f;
  --gold-100:#e6dab3; --gold-200:#c2ae5e; --gold-300:#8d7538; --gold-400:#816622;
  --gold-500:#75580d; --gold-600:#604c0a; --gold-700:#4d3e09;
  --ink:#000c24; --ink-soft:#041d46; --paper:#ffffff; --paper-soft:#f3f9ff;
  --muted:#385c91; --line:#cfe2fb;
  --flame:#d9453a;            /* discount / urgency — red accent */
  --radius:18px; --radius-sm:12px;
  --shadow-sm:0 1px 2px rgba(0, 12, 36,.06), 0 4px 12px rgba(0, 12, 36,.05);
  --shadow-md:0 8px 28px rgba(0, 12, 36,.09);
  --shadow-lg:0 22px 60px rgba(0, 12, 36,.14);
  --container:1240px;
}

*,*::before,*::after { box-sizing:border-box; }
html {
  -webkit-text-size-adjust:100%;
  scroll-behavior:smooth;
  /* Anchor targets must clear the 76px sticky navbar, or #programs lands
     with its heading tucked underneath it. */
  scroll-padding-top:96px;
}
body {
  margin:0; background:var(--paper); color:var(--ink);
  font-family:"Thmanyah Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size:16px; line-height:1.75;
  font-feature-settings:"kern" 1,"calt" 1,"liga" 1;
  overflow-x:hidden;
}
/* Arabic never takes tracking — it breaks glyph joining. */
[dir="rtl"], [dir="rtl"] * { letter-spacing:0 !important; }
img { max-width:100%; display:block; }
a { color:inherit; text-decoration:none; }
button { font:inherit; cursor:pointer; border:0; background:none; color:inherit; }
:focus-visible { outline:2px solid var(--gold-400); outline-offset:3px; border-radius:6px; }

.container { width:100%; max-width:var(--container); margin-inline:auto; padding-inline:24px; }
.display { font-family:"Thmanyah Display", ui-serif, Georgia, serif; font-weight:900; line-height:1.25; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:13px 26px; border-radius:999px; font-weight:700; font-size:15px;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space:nowrap;
}
.btn:hover { transform:translateY(-2px); }
.btn-gold  { background:var(--gold-500); color:#ffffff; box-shadow:0 8px 22px rgba(117, 88, 13,.28); }
.btn-gold:hover { background:var(--gold-400); }
.btn-navy  { background:var(--brand-900); color:#ffffff; box-shadow:0 8px 22px rgba(0, 24, 79,.25); }
.btn-navy:hover { background:var(--brand-700); }
.btn-ghost { border:1.5px solid var(--line); background:#ffffff; color:var(--brand-900); }
.btn-ghost:hover { border-color:var(--brand-300); background:var(--brand-50); }
.btn-light { background:rgba(255, 255, 255,.14); color:#ffffff; border:1.5px solid rgba(255, 255, 255,.3); }
.btn-light:hover { background:rgba(255, 255, 255,.24); }
.btn-sm { padding:9px 18px; font-size:14px; }
.btn-block { width:100%; }

/* ── Section furniture ──────────────────────────────────────────────────── */
section { position:relative; }
.section { padding:84px 0; }
.section-tight { padding:60px 0; }
.eyebrow {
  display:inline-flex; align-items:center; gap:10px;
  font-size:14px; font-weight:700; color:var(--gold-500); margin:0 0 14px;
}
.eyebrow::before { content:""; width:34px; height:3px; border-radius:2px; background:var(--gold-300); }
.section-head { margin-bottom:40px; }
.section-head h2 { font-size:clamp(28px,3.4vw,44px); margin:0 0 12px; color:var(--brand-900); }
.section-head p { margin:0; color:var(--muted); font-size:17px; max-width:62ch; }
.head-row { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; flex-wrap:wrap; }

/* ── Top utility bar ────────────────────────────────────────────────────── */
.topbar { background:var(--brand-900); color:#adccf2; font-size:13.5px; }
.topbar .container { display:flex; align-items:center; justify-content:space-between; gap:16px; height:42px; }
.topbar-info { display:flex; align-items:center; gap:22px; }
.topbar-info span { display:inline-flex; align-items:center; gap:7px; }
.topbar a:hover { color:#ffffff; }
.topbar-social { display:flex; align-items:center; gap:14px; }

/* ── Navbar ─────────────────────────────────────────────────────────────── */
.nav {
  position:sticky; top:0; z-index:60; background:rgba(255, 255, 255,.92);
  backdrop-filter:saturate(180%) blur(12px); border-bottom:1px solid var(--line);
}
.nav .container { display:flex; align-items:center; gap:28px; height:76px; }
.brand { display:flex; align-items:center; gap:12px; }
.brand img { width:44px; height:44px; object-fit:contain; }
.brand-text strong { display:block; font-size:16px; color:var(--brand-900); line-height:1.35; }
.brand-text small { display:block; font-size:12px; color:var(--muted); }
.nav-links { display:flex; align-items:center; gap:4px; margin-inline-start:auto; }
.nav-links a {
  padding:9px 15px; border-radius:999px; font-size:15px; font-weight:500; color:var(--ink-soft);
  transition:background .16s ease, color .16s ease;
}
.nav-links a:hover, .nav-links a.active { background:var(--brand-50); color:var(--brand-900); font-weight:700; }
.nav-actions { display:flex; align-items:center; gap:10px; }
.icon-btn {
  width:42px; height:42px; display:grid; place-items:center; border-radius:50%;
  border:1.5px solid var(--line); color:var(--brand-900); position:relative; background:#ffffff;
  transition:border-color .16s ease, background .16s ease;
}
.icon-btn:hover { border-color:var(--brand-300); background:var(--brand-50); }
.cart-dot {
  position:absolute; top:-4px; inset-inline-start:-4px; min-width:19px; height:19px; padding:0 5px;
  border-radius:999px; background:var(--flame); color:#ffffff; font-size:11px; font-weight:700;
  display:grid; place-items:center; border:2px solid #ffffff;
}
.nav-toggle { display:none; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { background:linear-gradient(180deg,#ffffff 0%, var(--brand-50) 100%); overflow:hidden; }
.hero::before {
  content:""; position:absolute; inset-inline-end:-160px; top:-180px; width:620px; height:620px;
  background:radial-gradient(circle, rgba(194, 174, 94,.30), transparent 68%); pointer-events:none;
}
.hero .container { position:relative; display:grid; grid-template-columns:1.08fr .92fr; gap:56px; align-items:center; padding-block:72px 84px; }
.hero h1 { font-size:clamp(36px,5.2vw,64px); margin:0 0 20px; color:var(--brand-900); }
.hero h1 em { font-style:normal; color:var(--gold-500); }
.hero-sub { font-size:19px; color:var(--ink-soft); margin:0 0 30px; max-width:54ch; }

/* Search — course search directly in the hero */
.hero-search {
  display:flex; align-items:center; gap:8px; background:#ffffff; border:1px solid var(--line);
  border-radius:999px; padding:7px 7px 7px 7px; box-shadow:var(--shadow-md); max-width:560px;
}
.hero-search select {
  border:0; background:transparent; font:inherit; font-size:14.5px; color:var(--ink-soft);
  padding:10px 12px; border-inline-end:1px solid var(--line); outline:none; cursor:pointer;
}
.hero-search input { flex:1; border:0; outline:none; font:inherit; font-size:15px; padding:10px 6px; background:transparent; min-width:0; }
.hero-search input::placeholder { color:#5f8ed0; }

.hero-cta { display:flex; gap:12px; flex-wrap:wrap; margin-top:22px; }

.live-trainees { display:flex; align-items:center; gap:12px; margin-top:30px; }
.avatars { display:flex; }
.avatars span {
  width:40px; height:40px; border-radius:50%; border:2.5px solid #ffffff; display:grid; place-items:center;
  font-size:14px; font-weight:700; color:#ffffff; margin-inline-start:-12px; box-shadow:var(--shadow-sm);
}
.avatars span:first-child { margin-inline-start:0; }
.live-trainees p { margin:0; font-size:14.5px; color:var(--ink-soft); }
.live-trainees b { color:var(--brand-900); }
.pulse { display:inline-block; width:9px; height:9px; border-radius:50%; background:#16a34a; margin-inline-end:6px; animation:pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1; transform:scale(1);} 50%{opacity:.45; transform:scale(.82);} }

.hero-visual { position:relative; }
.hero-visual img { width:100%; border-radius:26px; box-shadow:var(--shadow-lg); }
.hero-badge {
  position:absolute; inset-block-end:-22px; inset-inline-start:-18px; background:#ffffff; border-radius:var(--radius);
  padding:14px 18px; box-shadow:var(--shadow-lg); display:flex; align-items:center; gap:12px; max-width:250px;
}
.hero-badge .tick { width:40px; height:40px; border-radius:12px; background:var(--gold-100); color:var(--gold-600); display:grid; place-items:center; flex:none; }
.hero-badge strong { display:block; font-size:14.5px; color:var(--brand-900); }
.hero-badge small { color:var(--muted); font-size:12.5px; }

/* ── Stats strip ────────────────────────────────────────────────────────── */
.stats { background:var(--brand-900); color:#ffffff; }
.stats .container { display:grid; grid-template-columns:repeat(4,1fr) auto; gap:28px; align-items:center; padding-block:34px; }
.stat b { display:block; font-family:"Thmanyah Display",serif; font-size:34px; font-weight:900; color:var(--gold-200); line-height:1.2; }
.stat span { font-size:14.5px; color:#adccf2; }
.accredit {
  display:flex; align-items:center; gap:12px; padding:12px 18px; border-radius:var(--radius);
  background:rgba(255, 255, 255,.08); border:1px solid rgba(255, 255, 255,.16);
}
.accredit img { width:46px; height:46px; object-fit:contain; background:#ffffff; border-radius:10px; padding:5px; }
.accredit div { font-size:13px; color:#adccf2; line-height:1.5; }
.accredit strong { display:block; color:#ffffff; font-size:14px; }

/* ── Offers — discount badges + countdown ───────────────────────────────── */
.offers { background:var(--paper-soft); }
.countdown { display:flex; align-items:center; gap:8px; }
.countdown .unit {
  min-width:62px; background:var(--brand-900); color:#ffffff; border-radius:var(--radius-sm);
  padding:8px 6px; text-align:center;
}
.countdown .unit b { display:block; font-size:22px; font-family:"Thmanyah Display",serif; line-height:1.2; }
.countdown .unit span { font-size:11.5px; color:var(--brand-200); }

.offer-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
.offer-card {
  position:relative; border-radius:var(--radius); overflow:hidden; min-height:300px;
  box-shadow:var(--shadow-sm); transition:transform .22s ease, box-shadow .22s ease; isolation:isolate;
}
.offer-card:hover { transform:translateY(-6px); box-shadow:var(--shadow-lg); }
.offer-card img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:-2; }
.offer-card::after {
  content:""; position:absolute; inset:0; z-index:-1;
  background:linear-gradient(180deg, rgba(0, 12, 36,.15) 0%, rgba(0, 12, 36,.55) 45%, rgba(0, 12, 36,.92) 100%);
}
.offer-body { position:absolute; inset-block-end:0; padding:20px; color:#ffffff; width:100%; }
.offer-body h3 { font-size:19px; margin:0 0 6px; }
.offer-body p { font-size:13.5px; color:#adccf2; margin:0 0 14px; }
.discount {
  position:absolute; top:16px; inset-inline-start:16px; background:var(--flame); color:#ffffff;
  padding:7px 13px; border-radius:999px; font-size:13.5px; font-weight:700; box-shadow:var(--shadow-md);
}
.price-row { display:flex; align-items:baseline; gap:9px; margin-bottom:14px; }
.price-now { font-size:21px; font-weight:900; font-family:"Thmanyah Display",serif; color:var(--gold-200); }
.price-was { font-size:14px; color:#5f8ed0; text-decoration:line-through; }

/* ── Course cards ───────────────────────────────────────────────────────── */
.card-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.card-grid.four { grid-template-columns:repeat(4,1fr); }
.course {
  background:#ffffff; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden;
  display:flex; flex-direction:column; transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.course:hover { transform:translateY(-6px); box-shadow:var(--shadow-md); border-color:var(--brand-200); }
.course-thumb { position:relative; aspect-ratio:16/10; overflow:hidden; background:var(--brand-100); }
.course-thumb img { width:100%; height:100%; object-fit:cover; transition:transform .4s ease; }
.course:hover .course-thumb img { transform:scale(1.05); }
.tag {
  position:absolute; top:12px; inset-inline-end:12px; background:rgba(255, 255, 255,.94); color:var(--brand-900);
  padding:5px 12px; border-radius:999px; font-size:12.5px; font-weight:700;
}
.course-body { padding:18px 20px 20px; display:flex; flex-direction:column; flex:1; }
.course-body h3 { font-size:17.5px; margin:0 0 8px; color:var(--brand-900); line-height:1.5; }
.course-body p { font-size:14px; color:var(--muted); margin:0 0 16px; flex:1; }
.meta { display:flex; align-items:center; gap:16px; font-size:13px; color:var(--muted); margin-bottom:16px; }
.meta span { display:inline-flex; align-items:center; gap:6px; }
.course-foot { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-top:15px; border-top:1px solid var(--line); }
.trainer { display:flex; align-items:center; gap:9px; }
.trainer .av { width:34px; height:34px; border-radius:50%; display:grid; place-items:center; font-size:13px; font-weight:700; color:#ffffff; }
.trainer small { display:block; font-size:12px; color:var(--muted); line-height:1.4; }
.trainer b { font-size:13.5px; color:var(--ink-soft); }

/* ── Testimonials ───────────────────────────────────────────────────────── */
.stories { background:var(--brand-900); color:#ffffff; }
.stories .section-head h2 { color:#ffffff; }
.stories .section-head p { color:var(--brand-200); }
.placeholder-note {
  display:inline-flex; align-items:center; gap:8px; margin-top:14px; padding:7px 14px; border-radius:999px;
  background:rgba(217, 69, 58,.16); border:1px solid rgba(217, 69, 58,.4); color:#fecaca; font-size:13px;
}
.story-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.story {
  background:rgba(255, 255, 255,.06); border:1px solid rgba(255, 255, 255,.14); border-radius:var(--radius); padding:26px;
}
.stars { color:var(--gold-200); font-size:15px; margin-bottom:12px; letter-spacing:2px; }
.story p { font-size:15px; color:#cfe2fb; margin:0 0 20px; line-height:1.85; }
.story-by { display:flex; align-items:center; gap:11px; }
.story-by .av { width:42px; height:42px; border-radius:50%; display:grid; place-items:center; font-weight:700; color:var(--brand-900); background:var(--gold-200); }
.story-by b { display:block; font-size:14.5px; }
.story-by small { color:var(--brand-200); font-size:13px; }

/* ── Partners ───────────────────────────────────────────────────────────── */
.partner-row { display:flex; align-items:center; justify-content:center; gap:60px; flex-wrap:wrap; }
.partner-row figure { margin:0; text-align:center; }
.partner-row img { height:74px; width:auto; object-fit:contain; filter:grayscale(1); opacity:.62; transition:filter .25s ease, opacity .25s ease; margin-inline:auto; }
.partner-row figure:hover img { filter:grayscale(0); opacity:1; }
.partner-row figcaption { font-size:13px; color:var(--muted); margin-top:12px; max-width:20ch; }

/* ── Join us (two-column CTA) ───────────────────────────────────────────── */
.join-grid { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.join {
  border-radius:24px; padding:38px; color:#ffffff; position:relative; overflow:hidden;
}
.join.trainer-card { background:linear-gradient(135deg, var(--brand-800), var(--brand-600)); }
.join.partner-card { background:linear-gradient(135deg, var(--gold-600), var(--gold-400)); }
.join h3 { font-size:26px; margin:0 0 10px; font-family:"Thmanyah Display",serif; font-weight:900; }
.join > p { color:rgba(255, 255, 255,.86); margin:0 0 20px; font-size:15.5px; }
.join ul { list-style:none; padding:0; margin:0 0 26px; display:grid; gap:11px; }
.join li { display:flex; align-items:flex-start; gap:10px; font-size:15px; color:rgba(255, 255, 255,.94); }
.join li::before { content:"✦"; color:var(--gold-100); flex:none; }
.join.partner-card li::before { color:#ffffff; }

/* ── Why us ─────────────────────────────────────────────────────────────── */
.why { background:var(--paper-soft); }
.feature-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:22px; margin-bottom:44px; }
.feature { background:#ffffff; border:1px solid var(--line); border-radius:var(--radius); padding:28px 24px; transition:transform .2s ease, box-shadow .2s ease; }
.feature:hover { transform:translateY(-5px); box-shadow:var(--shadow-md); }
.feature .ico { width:52px; height:52px; border-radius:15px; background:var(--brand-50); color:var(--brand-600); display:grid; place-items:center; margin-bottom:16px; }
.feature h3 { font-size:17.5px; margin:0 0 8px; color:var(--brand-900); }
.feature p { font-size:14.5px; color:var(--muted); margin:0; }
.mini-stats { display:grid; grid-template-columns:repeat(4,1fr); gap:22px; background:#ffffff; border:1px solid var(--line); border-radius:var(--radius); padding:32px; text-align:center; }
.mini-stats b { display:block; font-family:"Thmanyah Display",serif; font-size:32px; font-weight:900; color:var(--gold-500); }
.mini-stats span { font-size:14px; color:var(--muted); }

/* ── About ──────────────────────────────────────────────────────────────── */
.about .container { display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center; }
.about-media { border-radius:24px; overflow:hidden; box-shadow:var(--shadow-lg); }
.about p { color:var(--ink-soft); font-size:16.5px; }
.about-points { list-style:none; padding:0; margin:24px 0 30px; display:grid; gap:13px; }
.about-points li { display:flex; gap:11px; align-items:flex-start; font-size:15.5px; }
.about-points .tick { width:24px; height:24px; border-radius:50%; background:var(--gold-100); color:var(--gold-600); display:grid; place-items:center; flex:none; font-size:13px; margin-top:4px; }

/* ── Footer ───────────────────────────────────────────────────────────────
   Ported from the production site's components/footer.tsx (Aceternity
   "four grids" adaptation): trust strip → brand block + four columns →
   giant watermark → FMIST bottom bar. Tailwind classes translated to plain
   CSS; the paper/xx opacities become rgba(255,255,255,.xx).
   ────────────────────────────────────────────────────────────────────────── */
.footer {
  position:relative; isolation:isolate; width:100%; overflow:hidden;
  background:var(--brand-900); color:#ffffff; font-size:14.5px;
}
/* Soft brand wash on the inner edges */
.footer::before {
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:
    radial-gradient(50% 60% at 100% 0%, rgba(0, 81, 201,.30), transparent 70%),
    radial-gradient(40% 50% at 0% 0%, rgba(117, 88, 13,.22), transparent 70%),
    radial-gradient(60% 50% at 50% 100%, rgba(0, 32, 99,.55), transparent 70%);
}

/* Trust strip — accreditation logos */
.footer-trust { border-bottom:1px solid rgba(255, 255, 255,.1); padding:32px 24px; }
.footer-trust > p {
  text-align:center; font-size:10px; font-weight:600; color:rgba(255, 255, 255,.55); margin:0;
}
.footer-trust ul {
  list-style:none; margin:20px 0 0; padding:0;
  display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:24px 56px;
}
.footer-trust img {
  height:44px; width:auto; object-fit:contain; user-select:none;
  filter:brightness(0) invert(1); opacity:.7; transition:opacity .3s ease;
}
.footer-trust li:hover img { opacity:1; }

/* Brand block + four link columns */
.footer-main { max-width:var(--container); margin-inline:auto; padding:64px 24px; }
.footer-cols { display:flex; align-items:flex-start; justify-content:space-between; gap:64px; }
.footer-brand { max-width:24rem; }
/* الشعارُ فوق الاسم: أيُّ شكلٍ للشعار (مربّعٌ أو عريض) يأخذ ارتفاعًا ثابتًا وعرضَه الطبيعيّ */
.footer-brand .brand { gap:12px; flex-direction:column; align-items:flex-start; }
.footer-brand .brand img { width:auto; height:56px; max-width:200px; object-fit:contain; filter:drop-shadow(0 4px 18px rgba(0, 0, 0,.35)); }
.footer-brand .brand span.name {
  font-family:"Thmanyah Display", ui-serif, Georgia, serif; font-size:18px; font-weight:700;
  line-height:1.35; color:#ffffff;
}
.footer-tagline { margin:16px 0 0; font-size:14.5px; line-height:1.85; color:rgba(255, 255, 255,.75); }
.footer-address { margin:24px 0 0; font-size:12px; color:rgba(255, 255, 255,.55); }
/* أيقوناتُ الحسابات — تظهر فقط ما أُدخل في «الحسابات والتواصل» */
.footer-social { display:flex; flex-wrap:wrap; gap:10px; margin-top:18px; }
.footer-social a { width:40px; height:40px; border-radius:12px; display:grid; place-items:center; color:rgba(255, 255, 255,.8);
  background:rgba(255, 255, 255,.07); border:1px solid rgba(255, 255, 255,.1); transition:background .18s, color .18s, transform .18s; }
.footer-social a:hover { background:var(--gold-300); color:var(--brand-900); transform:translateY(-2px); }
.fab-wrap[hidden] { display:none; }

.footer-grid { display:grid; grid-template-columns:repeat(4,auto); gap:40px 48px; }
.footer-col > p.col-h {
  font-size:11px; font-weight:700; color:rgba(255, 255, 255,.55); margin:0 0 16px;
}
.footer-col ul { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:12px; font-size:13.5px; }
.footer-col a, .footer-col li { color:rgba(255, 255, 255,.85); }
.footer-col a { transition:color .18s ease; }
.footer-col a:hover { color:var(--gold-200); }
.footer-col .ltr { display:inline-flex; direction:ltr; }
.footer-hours-h { font-size:11px; font-weight:600; color:rgba(255, 255, 255,.45); margin:0; }
.footer-hours-v { font-size:12.5px; color:rgba(255, 255, 255,.65); margin:2px 0 0; }

/* Watermark — institute name baked into the lower band */
.footer-watermark { position:relative; overflow:hidden; }
.footer-watermark p {
  margin:0; padding:8px 16px 24px; text-align:center; white-space:nowrap;
  pointer-events:none; user-select:none;
  font-family:"Thmanyah Display", ui-serif, Georgia, serif; font-weight:900; line-height:1;
  font-size:clamp(3rem, 16vw, 12rem);
  background:linear-gradient(to bottom, rgba(255, 255, 255,.15), rgba(255, 255, 255,0));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}

/* Bottom bar */
.footer-bottom {
  border-top:1px solid rgba(255, 255, 255,.1); background:rgba(0, 24, 79,.8); padding:20px 24px;
}
.footer-bottom .inner {
  max-width:var(--container); margin-inline:auto;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  font-size:12px; color:rgba(255, 255, 255,.6);
}
.footer-bottom p { margin:0; }
.fmist { display:inline-flex; align-items:center; gap:12px; color:rgba(255, 255, 255,.7); transition:color .18s ease; }
.fmist:hover { color:#ffffff; }
.fmist img { height:36px; width:auto; object-fit:contain; filter:invert(1); }

/* ── Floating widgets ─────────────────────────────────────────────────────
   Ported from components/whatsapp-fab.tsx + the FAB trigger in
   components/assistant.tsx. Both are pinned to the PHYSICAL bottom-right and
   deliberately do not flip in RTL. framer-motion's spring entry, idle bob,
   antenna pulse and eye drift are re-expressed as CSS keyframes.
   ────────────────────────────────────────────────────────────────────────── */
/* عمودُ الأزرار العائمة يمينًا، 52px لكلٍّ ومسافةٌ ثابتة، من الأسفل:
   الدعم الفنّي (assets/support) ← المساعد الذكي (assets/assistant) ← واتساب (هنا). */
:root {
  --fab-r:max(env(safe-area-inset-right,0px),16px);
  --fab-b:max(env(safe-area-inset-bottom,0px),16px);
  --fab-step:66px;
}
@media (min-width:768px) { :root { --fab-r:24px; --fab-b:24px; --fab-step:68px; } }
.fab-wrap { position:fixed; z-index:70; pointer-events:none; right:var(--fab-r); }
.fab-wrap.wa { bottom:calc(var(--fab-b) + 2 * var(--fab-step)); }

.fab-group { position:relative; pointer-events:auto; animation:fab-in .5s cubic-bezier(.22,1.2,.36,1) both; }
@keyframes fab-in { from { transform:scale(.4) translateY(20px); opacity:0; } to { transform:none; opacity:1; } }

/* Pulsing halo — Tailwind's animate-ping, durations kept out of sync */
.fab-halo {
  position:absolute; inset:0; z-index:-1; border-radius:50%; pointer-events:none;
  animation:fab-ping 2.6s cubic-bezier(0,0,.2,1) infinite;
}
.wa .fab-halo  { background:rgba(37, 211, 102,.35); animation-duration:2.8s; }
@keyframes fab-ping { 75%,100% { transform:scale(2); opacity:0; } }

/* Soft conic glow */
.fab-glow { position:absolute; inset:-8px; z-index:-1; border-radius:50%; filter:blur(18px); pointer-events:none; }
.wa .fab-glow {
  opacity:.6;
  background:conic-gradient(from 90deg, rgba(37, 211, 102,.55), rgba(18, 140, 126,.45), rgba(255, 255, 255,0), rgba(37, 211, 102,.55));
}

.fab {
  position:relative; display:grid; place-items:center; overflow:hidden; border-radius:50%;
  width:56px; height:56px; color:#ffffff;
  box-shadow:inset 0 0 0 1px rgba(255, 255, 255,.15), 0 12px 30px rgba(0, 14, 48,.28);
  transition:transform .2s ease;
}
@media (min-width:768px) { .fab { width:58px; height:58px; } }
.fab:hover { transform:translateY(-2px); }
.fab:active { transform:scale(.92); }
/* واتساب بحجم زرّ الدعم (52px) — الزرّان متقابلان أسفل الصفحة فيتساويان */
.wa .fab { width:52px; height:52px; }
.wa .fab .glyph { width:23px; height:23px; }
.wa .fab {
  background:linear-gradient(to top right, #128c7e, #25d366, #34d971);
  box-shadow:inset 0 0 0 1px rgba(255, 255, 255,.15), 0 12px 30px rgba(18, 140, 126,.32);
}
.wa .fab:focus-visible  { outline:none; box-shadow:0 0 0 4px rgba(191, 245, 214,.6); }

/* Shimmer sweep on hover */
.fab-shimmer {
  position:absolute; inset:0; pointer-events:none; transform:translateX(-100%);
  background:linear-gradient(to right, transparent, rgba(255, 255, 255,.3), transparent);
  transition:transform .7s ease;
}
.fab:hover .fab-shimmer { transform:translateX(100%); }

.fab .glyph { width:24px; height:24px; filter:drop-shadow(0 2px 8px rgba(0, 0, 0,.25)); }
@keyframes fab-bob { 0%,100%{transform:translateY(0);} 25%{transform:translateY(-1px);} 75%{transform:translateY(1px);} }

/* Robot details (المساعد الذكي — assets/assistant) — antenna bulb pulse, eye drift, blink */
.bulb { fill:var(--gold-300); animation:bulb 1.6s ease-in-out infinite; transform-box:fill-box; transform-origin:center; }
@keyframes bulb { 0%,100%{opacity:.6; transform:scale(.93);} 50%{opacity:1; transform:scale(1.21);} }
.eyes { animation:eyes 5.5s ease-in-out infinite; }
@keyframes eyes { 0%,100%{transform:translateX(0);} 20%{transform:translateX(1.4px);} 50%{transform:translateX(0);} 80%{transform:translateX(-1.4px);} }
.eyes ellipse { fill:var(--gold-200); transform-box:fill-box; transform-origin:center; animation:blink 3.8s ease-in-out infinite; }
@keyframes blink { 0%,86%,100%{transform:scaleY(1);} 93%{transform:scaleY(1);} 95%{transform:scaleY(.1);} }
.visor { fill:currentColor; opacity:.15; }

/* Hover label — always flies out to the left of the button */
.fab-label {
  position:absolute; top:50%; transform:translateY(-50%); right:calc(100% + 12px);
  white-space:nowrap; border-radius:999px; background:var(--brand-900); color:#ffffff;
  padding:6px 12px; font-size:12px; font-weight:600; opacity:0; pointer-events:none;
  box-shadow:var(--shadow-md); transition:opacity .2s ease;
}
.fab-group:hover .fab-label { opacity:1; }

/* ── شريط الإعلان أعلى الصفحة (sections.js ← «إعدادات الشريط» في وضع التعديل) ─────
   رابطٌ قابلٌ للضغط إلى عرضٍ/باقةٍ/برنامجٍ بعينه أو قسم، أو نصٌّ فقط حين لا رابط. */
.announce { display:block; position:relative; overflow:hidden; color:#ffffff; text-align:center; padding:9px 16px;
  background:linear-gradient(90deg,#001c42,#00184f 50%,#001c42); font-size:13.5px; line-height:1.6; }
.announce::after { content:""; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(100deg,transparent 30%,rgba(194, 174, 94,.16) 50%,transparent 70%); transform:translateX(-100%); }
.announce.is-link:hover::after { transform:translateX(100%); transition:transform 1.1s ease; }
.announce-in { display:inline-flex; align-items:center; justify-content:center; gap:10px; flex-wrap:wrap; }
.announce-badge { background:var(--gold-300); color:var(--brand-900); font-weight:800; font-size:12px; padding:2px 10px; border-radius:999px; }
.announce-text { color:rgba(255, 255, 255,.9); }
.announce-cta { display:inline-flex; align-items:center; gap:5px; color:var(--gold-200); font-weight:700; }
.announce.is-link:hover .announce-cta i { transform:translateX(-3px); }
.announce-cta i { font-style:normal; transition:transform .2s ease; }
/* ألوانُ الشريط (sections.js → announceColor) — الشارةُ تتباين مع كلّ خلفيّة */
.announce--gold { background:linear-gradient(90deg,#674d0a,#8d7538 50%,#674d0a); }
.announce--green { background:linear-gradient(90deg,#0f5132,#15803d 50%,#0f5132); }
.announce--red { background:linear-gradient(90deg,#8f1d24,#c0353c 50%,#8f1d24); }
.announce--black { background:#000c24; }
.announce--gold .announce-badge, .announce--green .announce-badge, .announce--red .announce-badge, .announce--custom .announce-badge { background:#ffffff; color:#000c24; }
.announce--gold .announce-cta, .announce--green .announce-cta, .announce--red .announce-cta, .announce--custom .announce-cta { color:#ffffff; text-decoration:underline; text-underline-offset:3px; }
.announce--custom .announce-text { color:#ffffff; }
.announce--custom.is-light .announce-text, .announce--custom.is-light .announce-cta { color:#000c24; }
.announce--custom.is-light .announce-badge { background:#000c24; color:#ffffff; }

/* ── تصميمٌ مميّز للشريط: تدرّجٌ متحرّك، لمعانٌ دوريّ، نقاطٌ مضيئة، شارةٌ متوهّجة وزرٌّ واضح ── */
.announce { padding:11px 16px; font-size:14px; font-weight:600; background-size:220% 100% !important; animation:annFlow 9s ease-in-out infinite alternate;
  box-shadow:inset 0 -1px 0 rgba(255, 255, 255,.14), 0 4px 14px -6px rgba(0, 0, 0,.35); }
.announce--black, .announce--custom { animation:none; }
.announce::before { content:""; position:absolute; inset:0; pointer-events:none; opacity:.5;
  background-image:radial-gradient(rgba(255, 255, 255,.55) 1px,transparent 1.4px),radial-gradient(rgba(255, 255, 255,.3) 1px,transparent 1.4px);
  background-size:46px 46px,29px 29px; background-position:0 0,14px 9px; animation:annDots 14s linear infinite; }
.announce::after { background:linear-gradient(100deg,transparent 35%,rgba(255, 255, 255,.28) 50%,transparent 65%); animation:annShine 4.5s ease-in-out infinite; }
.announce.is-link:hover::after { transition:none; }
.announce-in { position:relative; z-index:1; gap:12px; }
.announce-text { color:#ffffff; text-shadow:0 1px 2px rgba(0, 0, 0,.25); }
.announce-badge { font-size:12.5px; padding:3px 12px; box-shadow:0 0 0 3px rgba(255, 255, 255,.18), 0 4px 12px -2px rgba(0, 0, 0,.35); animation:annPulse 2.4s ease-in-out infinite; }
.announce .announce-cta { color:#000c24; background:#ffffff; text-decoration:none; padding:3px 13px; border-radius:999px; font-size:12.5px; font-weight:800;
  box-shadow:0 4px 12px -3px rgba(0, 0, 0,.35); transition:transform .2s ease, box-shadow .2s ease; }
.announce .announce-cta:empty, .announce .announce-cta > span:empty:only-child { display:none; }
.announce.is-link:hover .announce-cta { transform:translateY(-1px); box-shadow:0 6px 16px -3px rgba(0, 0, 0,.45); }
.announce--custom.is-light .announce-cta { background:#000c24; color:#ffffff; }
.announce--custom.is-light .announce-text { text-shadow:none; }
/* الألوانُ الجديدة */
.announce--fire { background:linear-gradient(90deg,#d05800,#e8123c 35%,#c2187a 65%,#d05800); }
.announce--royal { background:linear-gradient(90deg,#2a1572,#7b2ff7 40%,#3b1d8f 70%,#2a1572); }
.announce--royal .announce-badge:not([class*=" bc-"]) { background:linear-gradient(135deg,#f9d45c,#a9881b); color:#2a1572; }
.announce--sunset { background:linear-gradient(90deg,#ea8400,#fc4a1a 45%,#e8123c 75%,#ea8400); }
.announce--ocean { background:linear-gradient(90deg,#0ea5a4,#0048ea 40%,#7c3aed 70%,#0ea5a4); }
.announce--fire .announce-badge:not([class*=" bc-"]), .announce--sunset .announce-badge:not([class*=" bc-"]), .announce--ocean .announce-badge:not([class*=" bc-"]) { background:#ffffff; color:#b3122f; }
.announce--ocean .announce-badge:not([class*=" bc-"]) { color:#00248d; }
.announce:not([class*="announce--"]) .announce-badge:not([class*=" bc-"]) { background:linear-gradient(135deg,#f9d45c,#a9881b); color:#001c42; }
.announce:not([class*="announce--"]) { background:linear-gradient(90deg,#001c42,#002378 40%,#001c42 70%,#00184f); border-bottom:2px solid #a9881b; }
/* ── ثيماتُ المواسم: لكلٍّ تدرّجُه ونقشُه الخاصّ (::before) وشارتُه ── */
/* اليوم الوطنيّ: أخضرُ العلم ونقشُ نخيلٍ وسيوفٍ مبسّط بالأبيض */
.announce--national { background:linear-gradient(90deg,#00452a,#008a4b 35%,#00a85a 55%,#00452a); border-bottom:2px solid #ffffff; }
.announce--national::before { opacity:.16; background-size:64px 32px; animation:annDots 22s linear infinite;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='64' height='32'><g fill='none' stroke='white' stroke-width='1.4'><path d='M16 28V12M16 12c-5-4-9-3-11 0M16 12c5-4 9-3 11 0M16 12c-3-5-1-8 0-9M16 12c3-5 1-8 0-9'/><path d='M40 26l16-14M56 26L40 12'/></g></svg>"); }
.announce--national .announce-badge:not([class*=" bc-"]) { background:#ffffff; color:#00592f; }
.announce--national .announce-cta { color:#00592f; }
/* يوم التأسيس: بنّيٌّ ورمليٌّ وذهبيّ بنقش السدو (مثلّثاتٌ متقابلة) */
.announce--founding { background:linear-gradient(90deg,#3e2614,#734a23 35%,#9f713a 55%,#3e2614); border-bottom:3px solid transparent;
  border-image:repeating-linear-gradient(90deg,#e7cc96 0 10px,#7a2e1d 10px 20px,#1f5f3b 20px 30px) 3; }
.announce--founding::before { opacity:.22; background-size:36px 20px; animation:annDots 26s linear infinite;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='36' height='20'><path d='M0 20L9 4l9 16M18 0l9 16 9-16' fill='none' stroke='%23f3e2bf' stroke-width='1.3'/></svg>"); }
.announce--founding .announce-badge:not([class*=" bc-"]) { background:linear-gradient(135deg,#f3deb1,#d5ad5b); color:#3e2614; }
.announce--founding .announce-cta { background:#f3deb1; color:#3e2614; }
/* الجمعة البيضاء: أسودُ فاخر مع لمعانٍ أبيضَ وذهبيّ */
.announce--friday { background:linear-gradient(90deg,#050505,#1f1f1f 40%,#050505 70%,#141414); border-bottom:2px solid #f9d45c; }
.announce--friday::before { opacity:.35; background-image:radial-gradient(#f9d45c 1px,transparent 1.5px),radial-gradient(rgba(255, 255, 255,.7) 1px,transparent 1.4px); }
.announce--friday .announce-badge:not([class*=" bc-"]) { background:#ffffff; color:#000000; letter-spacing:.3px; }
.announce--friday .announce-cta { background:linear-gradient(135deg,#f9d45c,#a9881b); color:#000000; }
/* رمضان: بنفسجيٌّ ليليّ بنجومٍ وأهلّةٍ ذهبيّة */
.announce--ramadan { background:linear-gradient(90deg,#140f38,#2f2370 40%,#1b1446 70%,#140f38); border-bottom:2px solid #bc9922; }
.announce--ramadan::before { opacity:.4; background-size:70px 34px; animation:annDots 30s linear infinite;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='70' height='34'><path d='M18 8a8 8 0 1 0 6 13 6.5 6.5 0 1 1-6-13z' fill='%23d4af37'/><circle cx='48' cy='10' r='1.3' fill='%23fff'/><circle cx='60' cy='24' r='1' fill='%23f5d77a'/><circle cx='38' cy='27' r='.9' fill='%23fff'/></svg>"); }
.announce--ramadan .announce-badge:not([class*=" bc-"]) { background:linear-gradient(135deg,#f9d45c,#bc9922); color:#1b1446; }
.announce--ramadan .announce-cta { background:#f9d45c; color:#1b1446; }
/* العيد: احتفاليّ بألوانٍ مبهجة وقصاصاتٍ ملوّنة */
.announce--eid { background:linear-gradient(90deg,#0d9488,#7c3aed 30%,#db2777 60%,#d08501 85%,#0d9488); }
.announce--eid::before { opacity:.55; background-size:58px 30px; animation:annDots 16s linear infinite;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='58' height='30'><rect x='6' y='5' width='5' height='2' rx='1' fill='%23fde68a' transform='rotate(30 8 6)'/><rect x='30' y='20' width='5' height='2' rx='1' fill='%23fff' transform='rotate(-25 32 21)'/><circle cx='46' cy='8' r='1.6' fill='%23a7f3d0'/><circle cx='18' cy='24' r='1.4' fill='%23fbcfe8'/></svg>"); }
.announce--eid .announce-badge:not([class*=" bc-"]) { background:#ffffff; color:#9d174d; }

@keyframes annFlow { from { background-position:0% 50%; } to { background-position:100% 50%; } }
@keyframes annShine { 0%,55% { transform:translateX(-110%); } 100% { transform:translateX(110%); } }
@keyframes annDots { to { background-position:46px 0,-15px 9px; } }
@keyframes annPulse { 0%,100% { box-shadow:0 0 0 3px rgba(255, 255, 255,.18), 0 4px 12px -2px rgba(0, 0, 0,.35); } 50% { box-shadow:0 0 0 6px rgba(255, 255, 255,.06), 0 4px 16px -2px rgba(0, 0, 0,.4); } }
@media (prefers-reduced-motion: reduce) { .announce, .announce::before, .announce::after, .announce-badge { animation:none !important; } }

/* البطاقةُ المستهدفةُ من رابطٍ (#item-…) تومض بإطارٍ ذهبيٍّ لتلفت النظر */
.offer-card:target, .course:target { animation:target-glow 2.2s ease 1; }
@keyframes target-glow { 0%,60% { box-shadow:0 0 0 3px var(--gold-300), var(--shadow-lg); } 100% { box-shadow:var(--shadow-sm); } }

/* البرامجُ المشمولةُ في الباقة */
.pkg-progs { list-style:none; margin:-6px 0 14px; padding:0; display:flex; flex-wrap:wrap; gap:6px; }
.pkg-progs li { font-size:12px; font-weight:700; color:var(--brand-700); background:var(--brand-50); border:1px solid var(--brand-100); padding:3px 10px; border-radius:999px; }

.partners-lead { margin:6px auto 0 !important; max-width:60ch; }
/* العدّاد بالإنجليزيّة: يومٌ ← ساعة ← دقيقة ← ثانية من اليسار لليمين */
.countdown[dir="ltr"] .unit span { direction:rtl; }

/* ── Scroll progress bar ──────────────────────────────────────────────────
   Driven by the document's own scroll timeline — no scroll listener, no
   layout reads, runs on the compositor thread. RTL: grows from the right. */
.scroll-progress {
  position:fixed; inset-block-start:0; inset-inline:0; height:3px; z-index:100;
  transform-origin:100% 50%; transform:scaleX(0); pointer-events:none;
  background:linear-gradient(to left, var(--gold-500), var(--gold-200));
}
@supports (animation-timeline: scroll()) {
  .scroll-progress {
    animation:progress-grow linear both;
    animation-timeline:scroll(root block);
  }
}
@keyframes progress-grow { from { transform:scaleX(0); } to { transform:scaleX(1); } }

/* ── Reveal on scroll ─────────────────────────────────────────────────────
   Two implementations:
     1. CSS scroll-driven animations (`animation-timeline: view()`) — the
        modern path. Progress is tied to the element's own position in the
        scrollport, so it tracks the scroll frame-for-frame instead of
        firing a fixed-duration transition on an IntersectionObserver
        callback. transform/opacity here run off the main thread.
     2. The IntersectionObserver + transition fallback below, for the
        browsers that still lack it. script.js feature-detects and only
        wires the observer when the CSS path is unavailable.
   ────────────────────────────────────────────────────────────────────────── */
.reveal { opacity:0; transform:translateY(22px); transition:opacity .6s ease, transform .6s ease; }
.reveal.in { opacity:1; transform:none; }

@supports (animation-timeline: view()) {
  .reveal {
    transition:none;
    animation:reveal-in linear both;
    animation-timeline:view();
    /* Start as the element crosses into the scrollport, finish well before
       it reaches the middle — so it's settled by the time you read it. */
    animation-range:entry 5% cover 22%;
  }
}
@keyframes reveal-in {
  from { opacity:0; transform:translateY(22px); }
  to   { opacity:1; transform:none; }
}

/* Hero image drifts slower than the page — scroll-linked, not time-linked. */
@supports (animation-timeline: scroll()) {
  .hero-visual img {
    animation:hero-drift linear both;
    animation-timeline:scroll(root block);
    animation-range:0 90vh;
  }
}
@keyframes hero-drift {
  from { transform:translateY(0) scale(1); }
  to   { transform:translateY(-38px) scale(1.03); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity:1; transform:none; transition:none; animation:none; }
  .hero-visual img { animation:none; }
  .scroll-progress { display:none; }
  * { animation-duration:.001ms !important; transition-duration:.001ms !important; }
  html { scroll-behavior:auto; }
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width:1100px) {
  .offer-grid, .feature-grid, .card-grid.four { grid-template-columns:repeat(2,1fr); }
  .card-grid { grid-template-columns:repeat(2,1fr); }
  .stats .container { grid-template-columns:repeat(2,1fr); }
  .accredit { grid-column:1 / -1; }
  .footer-cols { flex-direction:column; gap:40px; }
  .footer-grid { grid-template-columns:repeat(2,1fr); width:100%; }
}
@media (max-width:900px) {
  .topbar-info span.hide-sm { display:none; }
  .nav-links { display:none; }
  .nav-toggle { display:grid; }
  .hero .container, .about .container { grid-template-columns:1fr; }
  .hero-visual { order:-1; }
  .hero-badge { inset-inline-start:12px; inset-block-end:-16px; }
  .join-grid, .story-grid { grid-template-columns:1fr; }
  .mini-stats { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:620px) {
  .section { padding:58px 0; }
  .card-grid, .card-grid.four, .offer-grid, .feature-grid { grid-template-columns:1fr; }
  .hero-search { flex-wrap:wrap; border-radius:22px; }
  .hero-search select { border-inline-end:0; border-bottom:1px solid var(--line); width:100%; }
  .stats .container { grid-template-columns:1fr 1fr; }
  .footer-grid { grid-template-columns:repeat(2,1fr); gap:32px 20px; }
  .footer-main { padding:48px 24px; }
  .footer-trust ul { gap:20px 32px; }
  .footer-trust img { height:34px; }
  .footer-bottom .inner { flex-direction:column-reverse; text-align:center; }
}

/* -- Store: whole card links to its product page (title is the real link) -- */
.cart-dot[hidden] { display:none; }
.course, .offer-card { position:relative; }
.card-link { color:inherit; }
.card-link::after { content:""; position:absolute; inset:0; z-index:1; border-radius:inherit; }
.course .btn, .offer-card .btn { position:relative; z-index:2; }
.course:has(.card-link):hover h3, .offer-card:has(.card-link):hover h3 { color:var(--gold-500); }

/* -- Hero v2: larger image, accreditation in the text column, LMS card straddling the image's bottom edge -- */
/* the text column keeps its width (title stays on two lines); the image grows into the empty side margin */
/* the hero is wider than the rest of the page (1600 vs 1240): the headings sit closer to the right edge and the
   image grows to the left, with equal outer margins on both sides so the banner is balanced */
.hero .container { grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr); gap:48px; }
.hero-visual { margin-inline-end:clamp(-120px, calc((var(--container) - 100vw) / 2 + 32px), -24px); margin-bottom:64px; }
@media (min-width:1440px) {
  .hero .container { max-width:1600px; padding-inline:40px; grid-template-columns:minmax(0,1fr) minmax(0,1.25fr); gap:56px; }
  .hero-visual { margin-inline-end:0; }
}
.hero-visual img { border-radius:30px; }

.hero-accredit { display:inline-flex; align-items:center; gap:14px; margin-top:30px; padding:12px 18px 12px 22px;
  background:#ffffff; border:1px solid var(--line); border-radius:18px; box-shadow:var(--shadow-sm); max-width:100%; }
.hero-accredit .tick { width:44px; height:44px; border-radius:13px; background:var(--gold-100); color:var(--gold-600); display:grid; place-items:center; flex:none; }
.hero-accredit strong { display:block; font-size:15.5px; color:var(--brand-900); }
.hero-accredit small { display:block; color:var(--muted); font-size:13px; line-height:1.6; }

/* LMS card: centred on the image's bottom edge — half over the photo, half below it */
.hero-lms { position:absolute; z-index:3; left:50%; bottom:0; transform:translate(-50%, 50%);
  width:min(600px, calc(100% - 48px)); display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:16px; align-items:center;
  padding:14px 14px 14px 18px; border-radius:24px; color:inherit;
  background:linear-gradient(#ffffff,#ffffff) padding-box, linear-gradient(120deg, rgba(194, 174, 94,.95), rgba(255, 255, 255,.4) 40%, rgba(70, 143, 255,.8)) border-box;
  border:1.5px solid transparent;
  box-shadow:0 1px 0 rgba(255, 255, 255,.8) inset, 0 28px 60px -22px rgba(0, 18, 55,.55), 0 6px 16px -8px rgba(0, 18, 55,.18);
  transition:transform .22s ease, box-shadow .22s ease; }
a.hero-lms:hover { transform:translate(-50%, calc(50% - 4px)); box-shadow:0 1px 0 rgba(255, 255, 255,.8) inset, 0 34px 70px -22px rgba(0, 18, 55,.6), 0 8px 18px -8px rgba(0, 18, 55,.2); }

.hero-lms-ic { position:relative; width:58px; height:58px; border-radius:18px; display:grid; place-items:center; color:#ffffff;
  background:radial-gradient(120% 120% at 30% 0%, var(--brand-500), var(--brand-900) 70%);
  box-shadow:0 12px 24px -10px rgba(0, 24, 79,.75), 0 0 0 5px var(--brand-50); }
.hero-lms-ic::after { content:""; position:absolute; top:-3px; inset-inline-start:-3px; width:14px; height:14px; border-radius:50%;
  background:var(--gold-300); border:2.5px solid #ffffff; }            /* small gold "online" dot */
.hero-lms-ic svg { width:27px; height:27px; }

.hero-lms-txt { display:grid; gap:2px; min-width:0; }
.hero-lms-txt small { font-size:12px; font-weight:800; color:var(--gold-500); letter-spacing:.2px; }
.hero-lms-txt b { font-size:17px; color:var(--brand-900); line-height:1.35; }
.hero-lms-txt em { font-style:normal; font-size:13px; color:var(--muted); line-height:1.6; }

.hero-lms-go { display:grid; justify-items:center; gap:6px; }
.hero-lms-btn { display:inline-flex; align-items:center; gap:8px; padding:12px 20px; border-radius:999px; white-space:nowrap;
  background:var(--brand-900); color:#ffffff; font-size:14.5px; font-weight:800; box-shadow:0 10px 22px -10px rgba(0, 24, 79,.7);
  transition:background .2s ease, gap .2s ease; }
a.hero-lms:hover .hero-lms-btn { background:var(--brand-700); gap:12px; }
.hero-lms-host { display:inline-flex; align-items:center; gap:5px; font-size:11.5px; font-weight:700; color:var(--brand-500); }
.hero-lms-host svg { color:#16a34a; }

@media (max-width:960px) {
  .hero .container { grid-template-columns:minmax(0,1fr); }
  .hero-visual { margin-inline-end:0; margin-bottom:0; display:flex; flex-direction:column; }
  /* still overlapping the image's bottom edge, but in the flow */
  .hero-lms { position:relative; left:auto; bottom:auto; transform:none; width:auto; margin:-44px 16px 0; }
  a.hero-lms:hover { transform:translateY(-3px); }
}

/* -- Hero background image (banner settings): cover photo + a shade that is strongest behind the text (right side) -- */
.hero.has-bg { background:var(--brand-900) var(--hero-bg) center / cover no-repeat; }
.hero.has-bg::before { inset:0; width:auto; height:auto; top:0; inset-inline-end:0; border-radius:0;
  background:
    linear-gradient(to left, rgba(11,20,40,calc(var(--hero-shade) + .1)) 0%, rgba(11,20,40,calc(var(--hero-shade) - .05)) 45%, rgba(11,20,40,calc(var(--hero-shade) - .38)) 100%),
    linear-gradient(to top, rgba(0, 13, 43,.25), transparent 40%); }
.hero.has-bg.tone-light { background-color:#ffffff; }
.hero.has-bg.tone-light::before {
  background:
    linear-gradient(to left, rgba(255,255,255,calc(var(--hero-shade) + .2)) 0%, rgba(255,255,255,calc(var(--hero-shade) + .05)) 50%, rgba(255,255,255,calc(var(--hero-shade) - .25)) 100%),
    linear-gradient(to top, rgba(238, 245, 255,.6), transparent 40%); }

.hero.tone-dark h1 { color:#ffffff; text-shadow:0 2px 26px rgba(0, 0, 0,.35); }
.hero.tone-dark h1 em { color:var(--gold-200); }
.hero.tone-dark .eyebrow { color:var(--gold-200); }
.hero.tone-dark .hero-sub { color:rgba(255, 255, 255,.9); text-shadow:0 1px 14px rgba(0, 0, 0,.35); }
.hero.tone-dark .btn-ghost { background:rgba(255, 255, 255,.1); color:#ffffff; border-color:rgba(255, 255, 255,.4);
  -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); }
.hero.tone-dark .btn-ghost:hover { background:rgba(255, 255, 255,.2); border-color:#ffffff; }
.hero.tone-dark .hero-visual img { box-shadow:0 30px 70px -20px rgba(0, 0, 0,.6); }
.hero.tone-light h1, .hero.tone-light .hero-sub { text-shadow:0 1px 18px rgba(255, 255, 255,.9); }

/* فيديو الخلفيّة: يغطّي البنر تحت التظليل والنصوص؛ الصورةُ (إن وُجدت) تبقى غلافًا وبديلًا */
.hero.has-video { position:relative; }
.hero-video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0; pointer-events:none; }
.hero.has-video::before { z-index:1; }
.hero.has-video .container { z-index:2; }
@media (prefers-reduced-motion: reduce) { .hero-video { display:none; } }
@media (max-width:960px) { .hero.video-desktop .hero-video { display:none; } }

/* phones: text sits above the image, so an even shade over the whole banner */
@media (max-width:960px) {
  .hero.has-bg::before { background:rgba(11,20,40,calc(var(--hero-shade) + .08)); }
  .hero.has-bg.tone-light::before { background:rgba(255,255,255,calc(var(--hero-shade) + .12)); }
}

/* -- Hero: accreditation logos (replace the «اعتماد رسمي 100%» badge) -- */
.hero-logos { margin-top:30px; display:flex; flex-direction:column; align-items:flex-start; gap:12px; }
.hero-logos-label { font-size:13px; font-weight:700; color:var(--muted); display:inline-flex; align-items:center; gap:10px; }
.hero-logos-label::before { content:""; width:26px; height:2px; border-radius:2px; background:var(--gold-300); }
.hero-logos ul { list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:12px; }
.hero-logos li { position:relative; height:74px; min-width:118px; padding:10px 18px; display:grid; place-items:center;
  background:#ffffff; border:1px solid var(--line); border-radius:16px; box-shadow:var(--shadow-sm); transition:transform .18s ease, box-shadow .18s ease; }
.hero-logos li:hover { transform:translateY(-2px); box-shadow:var(--shadow-md); }
.hero-logos li a { display:grid; place-items:center; }
.hero-logos img { height:50px; width:auto; max-width:150px; object-fit:contain; display:block; }
.hero.tone-dark .hero-logos-label { color:rgba(255, 255, 255,.8); }

/* -- Account button in the nav (visitor accounts: customers.js / auth-pages.js) -- */
.nav-acct { display:inline-flex; align-items:center; gap:9px; padding:4px 14px 4px 5px; border-radius:999px; border:1.5px solid var(--line); background:#ffffff;
  font-weight:700; font-size:14px; color:var(--brand-900); transition:border-color .16s, background .16s; }
.nav-acct:hover { border-color:var(--brand-300); background:var(--brand-50); }
.nav-acct-av { width:32px; height:32px; border-radius:50%; display:grid; place-items:center; color:#ffffff; font-size:14px;
  background:linear-gradient(140deg, var(--gold-300), var(--gold-500)); }

@media (max-width:620px) { .nav-acct-nm { display:none; } .nav-acct { padding:3px; } }

/* -- Announce bar: emoji + badge colour (settings of «شريط الإعلان») -- */
.announce-badge { display:inline-flex; align-items:center; gap:5px; }
.announce-emoji { display:inline-block; font-size:15px; line-height:1;
  font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif; }
.announce-emoji.is-anim { animation:annEmo 1.6s ease-in-out infinite; transform-origin:50% 80%; }
@keyframes annEmo { 0%,100% { transform:scale(1) rotate(0); } 25% { transform:scale(1.18) rotate(-8deg); } 50% { transform:scale(1) rotate(0); } 75% { transform:scale(1.12) rotate(6deg); } }
@media (prefers-reduced-motion: reduce) { .announce-emoji.is-anim { animation:none; } }
.announce .announce-badge.bc-white { background:#ffffff; color:#000c24; }
.announce .announce-badge.bc-gold { background:var(--gold-300); color:var(--brand-900); }
.announce .announce-badge.bc-yellow { background:#e3b700; color:#000c24; }
.announce .announce-badge.bc-red { background:#d9453a; color:#ffffff; }
.announce .announce-badge.bc-green { background:#15803d; color:#ffffff; }
.announce .announce-badge.bc-navy { background:#00184f; color:#ffffff; }
.announce .announce-badge.bc-black { background:#000c24; color:#ffffff; }
/* شارةٌ بلون الشريط نفسه تُميَّز بحدٍّ رفيع كي لا تذوب فيه */
.announce .announce-badge.bc-green, .announce .announce-badge.bc-red, .announce .announce-badge.bc-navy, .announce .announce-badge.bc-black { box-shadow:0 0 0 1px rgba(255, 255, 255,.35) inset; }

/* -- Stats band: accreditation logo only (title/text removed) -- */
.accredit--logo { justify-content:center; padding:10px 14px; }
.accredit--logo img { width:auto; height:58px; max-width:210px; padding:7px 12px; border-radius:12px; }

/* LMS card: uploaded icon image instead of the default screen icon */
.hero-lms-ic.has-img { background:#ffffff; border:1px solid var(--line); box-shadow:0 10px 22px -12px rgba(0, 24, 79,.45), 0 0 0 5px var(--brand-50); padding:7px; }
.hero-lms-ic.has-img img { width:100%; height:100%; object-fit:contain; display:block; border-radius:9px; }

/* ─────────────── موقعنا (خريطة قوقل) ─────────────── */
.location .container { display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center; }
.location p { color:var(--ink-soft); font-size:16.5px; }
.loc-card { position:relative; display:block; height:360px; border-radius:24px; overflow:hidden; box-shadow:var(--shadow-lg); background:var(--brand-50); border:1px solid var(--line); }
.loc-card iframe { width:100%; height:100%; border:0; pointer-events:none; display:block; }
.loc-card::after { content:""; position:absolute; inset:0; transition:background .2s; }
.loc-card:hover::after { background:rgba(0, 12, 36,.06); }
.loc-pin { position:absolute; top:14px; right:14px; z-index:1; display:inline-flex; align-items:center; gap:6px; padding:7px 13px; border-radius:999px; background:#ffffff; color:var(--brand-800); font-size:13px; font-weight:700; box-shadow:var(--shadow-sm); }
.loc-pin svg { color:#ea4335; }
.loc-open { position:absolute; bottom:14px; right:14px; left:14px; z-index:1; padding:12px 16px; border-radius:14px; background:rgba(255, 255, 255,.95); color:var(--brand-900); font-weight:700; font-size:14.5px; text-align:center; box-shadow:var(--shadow-md); transition:transform .2s; }
.loc-card:hover .loc-open { transform:translateY(-2px); }
.loc-empty { display:grid; place-items:center; padding:24px; text-align:center; color:var(--muted); font-weight:700; border:2px dashed var(--line); box-shadow:none; }
.loc-address { display:flex; gap:10px; align-items:flex-start; font-weight:700; color:var(--brand-900) !important; }
@media (max-width:900px) { .location .container { grid-template-columns:1fr; gap:28px; } .loc-card { height:280px; } }

/* بطاقة «انضمّ إلينا» بلونٍ فاتح: نصٌّ داكن */
.join.join--light, .join.join--light > p, .join.join--light li { color:#000c24; }
.join.join--light li::before { color:#000c24; }
.join.join--light .btn-light { background:#000c24; color:#ffffff; }
