/* ============================================================
   LMS REDESIGN · Premium Medical Editorial · 2026
   Loads last → overrides style.css + enhancements.css
   ============================================================ */

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

/* ─── REFINED TOKENS ─────────────────────────────────────── */
:root {
  /* ─ Brand ramp ─ 400 and 500 are sampled pixel-for-pixel from the
     Naya Med Company mark. Neither is dark enough to carry small text
     (3.94:1 and 2.88:1 on white), so 600 is the interactive step and
     900 is the text/ground colour. See naya-med-company-palette.md */
  --brand-50:       #F0F9FE;
  --brand-100:      #DCF1FC;
  --brand-200:      #B4E2F7;
  --brand-300:      #6FC8EE;
  --brand-400:      #0CA2E2;   /* tooth outline, N-curve, sparkle */
  --brand-500:      #0386D2;   /* wordmark, rule                  */
  --brand-600:      #0272B4;   /* interactive — 5.19:1 on white   */
  --brand-700:      #025C92;
  --brand-800:      #0A4468;
  --brand-900:      #0B2D42;   /* text, footer — 14.3:1 on white  */
  --brand-950:      #071F2C;

  --primary:        #0272B4;
  --primary-dark:   #0B2D42;
  --primary-light:  #0CA2E2;
  --primary-xlt:    #EAF6FD;
  --secondary:      #0386D2;
  --accent:         #C9A227;
  --accent-dark:    #97760C;
  --accent-light:   #FAF3DF;
  --accent-on-dark: #E9D8A6;   /* gold that holds up over dark hero photography */
  --ink:            #0B2D42;
  --ink-soft:       #274B60;
  --muted:          #55707F;   /* 5.27:1 on white — clears WCAG AA for body text */
  --muted-soft:     #8AA3B0;   /* decorative / large text only — below AA for body */
  --line:           #DCEAF3;
  --line-strong:    #B9D4E6;
  --bg:             #FBFDFE;
  --bg-card:        #FFFFFF;
  --bg-soft:        #F4F9FC;
  --bg-deep:        #0B2D42;
  --bg-deeper:      #071F2C;

  --shadow-xs:      0 1px 2px rgba(11,45,66,.06);
  --shadow-sm:      0 2px 8px rgba(11,45,66,.06), 0 1px 2px rgba(11,45,66,.04);
  --shadow-md:      0 8px 28px rgba(11,45,66,.10), 0 2px 6px rgba(11,45,66,.05);
  --shadow-lg:      0 24px 60px rgba(11,45,66,.16), 0 4px 12px rgba(11,45,66,.06);

  --r-xs: 6px;  --r-sm: 10px;  --r: 14px;  --r-lg: 22px;  --r-xl: 32px;

  --font-ar: 'Cairo', system-ui, -apple-system, sans-serif;
  --font-en: 'Cairo', system-ui, -apple-system, sans-serif;
  --font-display: 'Cairo', system-ui, -apple-system, sans-serif;
  --font: 'Cairo', system-ui, -apple-system, sans-serif;

  /* Type scale — single family, hierarchy from size + weight contrast.
     Ratio between steps is >= 1.25 so the levels never read as flat. */
  --t-display: clamp(34px, 5.2vw, 62px);   /* hero / page titles      w900 */
  --t-h2:      clamp(27px, 3.6vw, 44px);   /* section titles          w800 */
  --t-h3:      clamp(19px, 1.9vw, 24px);   /* card + block titles     w700 */
  --t-lead:    clamp(16px, 1.25vw, 19px);  /* section descriptions    w400 */
  --t-body:    15.5px;                     /* body copy               w400 */
  --t-meta:    13px;                       /* labels, meta            w600 */

  --container: 1240px;
  --section-py: clamp(64px, 9vw, 120px);
}

[data-theme="dark"] {
  --bg:             #071720;
  --bg-card:        #0F2531;
  --bg-soft:        #0B1D27;
  --bg-deep:        #05131B;
  --bg-deeper:      #030C12;
  --line:           #1E3542;
  --line-strong:    #2C4A5A;
  --ink:            #EAF3F8;
  --ink-soft:       #C3D8E3;
  --muted:          #92AEBD;      /* 7.9:1 on the dark ground */
  --muted-soft:     #6C8A9B;
  /* On navy, #0272B4 sinks into the ground — interactive steps lighter,
     and gold swaps to its wash so it reads as gold rather than mud. */
  --primary:        #3FB6EC;
  --primary-light:  #6FC8EE;
  --primary-xlt:    rgba(12,162,226,.14);
  --secondary:      #0CA2E2;
  --accent:         #E9D8A6;
  --accent-dark:    #C9A227;
  --accent-light:   rgba(201,162,39,.14);

  --shadow-xs:      0 1px 2px rgba(0,0,0,.30);
  --shadow-sm:      0 2px 8px rgba(0,0,0,.32), 0 1px 2px rgba(0,0,0,.24);
  --shadow-md:      0 8px 28px rgba(0,0,0,.42), 0 2px 6px rgba(0,0,0,.28);
  --shadow-lg:      0 24px 60px rgba(0,0,0,.55), 0 4px 12px rgba(0,0,0,.32);
}

html, body { font-family: 'Cairo', system-ui, -apple-system, sans-serif !important; color: var(--ink); background: var(--bg); }
html[lang="en"] body, body:lang(en), body.lang-en { font-family: 'Cairo', system-ui, -apple-system, sans-serif !important; }

*, *::before, *::after { font-family: inherit; }
h1, h2, h3, h4, h5, h6, p, span, a, button, input, select, textarea, label, li, div { font-family: 'Cairo', system-ui, -apple-system, sans-serif !important; }
/* One family across the site. Hierarchy comes from weight + size, never
   from a second face — an Arabic-first surface has no use for a Latin serif. */

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

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

/* ─── TYPOGRAPHY SCALE ───────────────────────────────────── */
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--t-h2);
  line-height: 1.24;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 18px;
}
.section-desc {
  font-size: var(--t-lead);
  font-weight: 400;
  line-height: 1.75;
  color: var(--muted);
  max-width: 62ch;
  margin: 0 auto;
}
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--primary-xlt);
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(2,114,180,.12);
  margin-bottom: 18px;
}
.section-badge::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.section-header { margin-bottom: 56px; }

/* ─── ACCREDITATION STRIP — REMOVED ─────────────────────── */
.accreditation-strip { display: none !important; }

/* ─── TOP BAR (SLIM, DESKTOP-ONLY) ───────────────────────── */
#topbar {
  background: var(--bg-deep);
  color: rgba(255,255,255,.78);
  padding: 8px 0;
  font-size: 12.5px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
#topbar .container { max-width: var(--container); }
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.topbar-info {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.topbar-info svg { width: 13px; height: 13px; color: var(--accent); }
.topbar-socials { display: inline-flex; gap: 6px; }
.topbar-socials a {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.06);
  transition: all .2s;
}
.topbar-socials a:hover {
  background: var(--accent);
  color: #211B08;
  transform: translateY(-1px);
}
.theme-lang-controls { display: inline-flex; gap: 6px; }
.theme-toggle-btn, .lang-toggle-btn {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.85);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  font-family: var(--font);
}
.theme-toggle-btn { padding: 4px 8px; }
.lang-toggle-btn:hover, .theme-toggle-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #211B08;
}
@media (max-width: 880px) { #topbar { display: none; } }

/* ─── NAVBAR (PREMIUM FLOATING PILL) ──────────────────── */
#navbar-header,
header#navbar-header,
#navbar-header.scrolled,
header#navbar-header.scrolled {
  position: sticky !important;
  top: 24px !important;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(20px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(160%) !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  height: 70px;
  width: calc(100% - 48px) !important;
  max-width: var(--container) !important;
  margin: 0 auto !important;
  border-radius: 100px !important;
  box-shadow: 0 10px 40px rgba(11,45,66, 0.08), 0 2px 10px rgba(11,45,66, 0.04) !important;
  transition: all 0.3s ease;
  left: auto !important;
  right: auto !important;
  transform: none !important;
}

#navbar-header.scrolled,
header#navbar-header.scrolled {
  top: 12px !important;
  width: calc(100% - 32px) !important;
  max-width: calc(var(--container) - 100px) !important; /* Slightly smaller but wide enough */
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 12px 50px rgba(11,45,66, 0.12) !important;
  height: 66px;
}

[data-theme="dark"] #navbar-header,
[data-theme="dark"] header#navbar-header.scrolled { 
  background: rgba(15,41,40, 0.85) !important; 
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3) !important;
}

.nav-container {
  max-width: 100%;
  margin: 0;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-brand { display: inline-flex; align-items: center; flex-shrink: 0; gap: 12px; text-decoration: none; }
.nav-logo-img { height: 42px; width: auto; display: block; transition: transform 0.3s ease; }
.nav-brand:hover .nav-logo-img { transform: scale(1.03); }

.nav-menu {
  display: flex;
  list-style: none;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.nav-item { list-style: none; }
.nav-menu a {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 8px 16px;
  border-radius: 100px;
  transition: all 0.2s ease;
  position: relative;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.nav-menu a:hover {
  color: var(--primary) !important;
  background: rgba(11,45,66, 0.08);
}

.nav-menu a.active {
  color: #fff !important;
  background: var(--primary);
  box-shadow: 0 4px 12px rgba(11,45,66, 0.25);
}

[data-theme="dark"] .nav-menu a { color: var(--ink); }
[data-theme="dark"] .nav-menu a:hover { background: rgba(255, 255, 255, 0.05); color: #fff !important; }
[data-theme="dark"] .nav-menu a.active { background: var(--primary); color: #fff !important; box-shadow: 0 4px 12px rgba(0,0,0,0.4); }

/* Mobile adaptations */
@media (max-width: 992px) {
  #navbar-header, header#navbar-header.scrolled {
    top: 12px !important;
    width: calc(100% - 24px);
    border-radius: 20px !important;
    padding: 0;
  }
}

.nav-actions { display: inline-flex; align-items: center; gap: 10px; }
.nav-actions .btn { white-space: nowrap !important; flex-shrink: 0; }

/* ─── MOBILE HAMBURGER ───────────────────────────────────── */
.mobile-nav-trigger {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--primary-xlt);
  border: 1px solid var(--line);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 0;
}
.mobile-nav-trigger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform .25s;
}
@media (max-width: 1024px) {
  .nav-menu, nav[aria-label="Main Navigation"] { display: none; }
  .mobile-nav-trigger { display: inline-flex; }
  .nav-actions .btn { display: none; }
}

/* ─── MOBILE DRAWER ──────────────────────────────────────── */
.drawer-overlay {
  position: fixed; inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.drawer-backdrop {
  position: absolute; inset: 0;
  background: rgba(5,19,27,.6);
  backdrop-filter: blur(4px);
}
.drawer-content {
  position: absolute;
  top: 0; bottom: 0;
  right: 0;
  width: min(320px, 86vw);
  background: var(--bg-card);
  box-shadow: -20px 0 50px rgba(0,0,0,.18);
  padding: 22px 22px 30px;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}
body:dir(rtl) .drawer-content, html[lang="ar"] .drawer-content {
  right: auto; left: 0;
  transform: translateX(-100%);
  box-shadow: 20px 0 50px rgba(0,0,0,.18);
}
.drawer-overlay.open .drawer-content { transform: translateX(0); }
.drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.drawer-close-btn {
  background: var(--primary-xlt);
  border: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  font-size: 20px;
  color: var(--primary);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font);
}
.drawer-menu { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.drawer-item a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  transition: all .2s;
}
.drawer-item a:hover, .drawer-item a.active {
  background: var(--primary-xlt);
  color: var(--primary);
}
.drawer-item a.active { font-weight: 800; }

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  padding: 12px 24px;
  border-radius: 999px;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  border: 1.5px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-lg { padding: 16px 32px; font-size: 15px; }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(2,114,180,.25);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(2,114,180,.32);
}
.btn-secondary {
  background: var(--accent);
  color: #211B08;
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(201,175,94,.3);
}
.btn-secondary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--line-strong);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ─── HERO (EDITORIAL) ───────────────────────────────────── */
.hero-section {
  position: relative;
  height: clamp(560px, 78vh, 760px);
  overflow: hidden;
  background: var(--bg-deeper);
}
.hero-carousel { position: relative; width: 100%; height: 100%; overflow: hidden; }
.hero-track { width: 100%; height: 100%; display: flex; transition: transform .8s cubic-bezier(.4,0,.2,1); }
.hero-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
}
.hero-bg-overlay {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: none !important;
  z-index: 0;
  transition: transform 8s ease;
}
.hero-slide.active .hero-bg-overlay { transform: scale(1.06); }
.hero-content {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .9s ease .25s, transform .9s ease .25s;
}
.hero-slide.active .hero-content { opacity: 1; transform: none; }
.hero-bg-overlay::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7,31,44,.9) 0%, rgba(11,45,66,.6) 50%, rgba(7,31,44,.15) 100%),
    linear-gradient(180deg, rgba(7,31,44,.1) 0%, rgba(7,31,44,.55) 100%);
}
body[dir="rtl"] .hero-bg-overlay::after,
html[lang="ar"] .hero-bg-overlay::after {
  background:
    linear-gradient(-90deg, rgba(7,31,44,.9) 0%, rgba(11,45,66,.6) 50%, rgba(7,31,44,.15) 100%),
    linear-gradient(180deg, rgba(7,31,44,.1) 0%, rgba(7,31,44,.55) 100%);
}
.hero-section .container { position: relative; z-index: 3; width: 100%; }
.hero-content { max-width: 640px; color: #fff; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 26px;
}
.hero-badge svg { color: var(--accent); width: 14px; height: 14px; }
.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  /* trimmed from 76px to buy back the height the looser Arabic leading needs */
  font-size: var(--t-display);
  line-height: 1.24;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
html[lang="ar"] .hero-title, body:dir(rtl) .hero-title {
  font-family: var(--font-ar);
  font-weight: 800;
}
.hero-title em {
  font-style: normal;
  background: none;
  color: var(--accent-on-dark);
  -webkit-text-fill-color: var(--accent-on-dark);
}
.hero-desc {
  font-size: 18px;
  line-height: 1.75;
  color: rgba(255,255,255,.85);
  margin-bottom: 26px;
  max-width: 560px;
  font-weight: 400;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 4;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all .25s;
}
.hero-arrow:hover { background: rgba(255,255,255,.22); transform: translateY(-50%) scale(1.08); }
.hero-arrow-prev { left: 24px; }
.hero-arrow-next { right: 24px; }
.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex; gap: 10px;
}
.hero-dots span, .hero-dots .dot {
  width: 26px; height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,.35);
  cursor: pointer;
  transition: all .3s;
}
.hero-dots .active, .hero-dots span.active {
  background: var(--accent);
  width: 42px;
}

/* ─── QUICK FINDER (FLOATING CARD) ───────────────────────── */
.finder-wrapper {
  margin-top: -52px;
  position: relative;
  z-index: 10;
  margin-bottom: 30px;
}
.finder-bar {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr auto;
  gap: 14px;
  align-items: end;
}
.finder-field { display: flex; flex-direction: column; gap: 6px; }
.finder-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.finder-input, .finder-select {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 13px 16px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  width: 100%;
  font-family: inherit;
  transition: all .2s;
}
.finder-input:focus, .finder-select:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 4px var(--primary-xlt);
}
.finder-btn-search {
  height: 49px;
  padding: 0 28px;
  white-space: nowrap;
}
@media (max-width: 880px) {
  .finder-bar { grid-template-columns: 1fr; }
  .finder-wrapper { margin-top: -30px; }
}

/* ─── TRUST BADGES (ICONOGRAPHY) ─────────────────────────── */
.trust-badges-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  margin-top: 30px;
}
.trust-badges-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 28px;
  align-items: center;
}
.trust-badge {
  display: flex; align-items: center; gap: 13px;
  padding: 4px 18px;
  /* reset the boxed border inherited from enhancements.css — these are
     dividers in a single row, not five separate cards */
  border: 0;
  border-inline-start: 1px solid var(--line);
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.trust-badge:first-child { border-inline-start: 0; }
.trust-badge:hover { transform: none; box-shadow: none; }
/* One idiom for all five: same stroked SVG set used in the footer and
   course cards, same tint. Five different icon languages in one row read
   as five different vendors. */
.trust-badge-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--primary-xlt);
  color: var(--primary);
  display: grid; place-items: center;
  border: 1px solid rgba(11,45,66,.08);
}
.trust-badge-icon svg { width: 19px; height: 19px; }
.trust-badge:hover .trust-badge-icon { background: var(--primary); color: #fff; border-color: transparent; }
.trust-badge-text strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 2px;
}
.trust-badge-text small {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.4;
}

/* ─── STATS V2 (PREMIUM) ─────────────────────────────────── */
.stats-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.stat-card-v2 {
  padding: 40px 30px;
  text-align: center;
  position: relative;
  border-right: 1px solid var(--line);
  background: var(--bg-card);
  transition: background .25s;
}
body:dir(rtl) .stat-card-v2, html[lang="ar"] .stat-card-v2 {
  border-right: none;
  border-left: 1px solid var(--line);
}
.stat-card-v2:last-child { border: none; }
.stat-card-v2:hover { background: var(--bg-soft); }
.stat-icon-v2 {
  font-size: 32px;
  margin-bottom: 14px;
  display: inline-block;
  filter: saturate(0.9);
}
.stat-number-v2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 700;
  line-height: 1;
  color: var(--primary);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.stat-suffix { color: var(--accent); margin-left: 2px; }
.stat-label-v2 {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-transform: none;
}

/* ─── COURSE CARDS ───────────────────────────────────────── */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.course-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
}
.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-xlt);
}
.course-card-image {
  height: 200px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}
.course-card-image > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.course-card:hover .course-card-image > img { transform: scale(1.06); }
.course-card-image::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.45) 100%);
  pointer-events: none;
  z-index: 1;
}
.course-card-tag, .course-card-cme { z-index: 2; }

/* ─── COURSES.HTML SIDEBAR LAYOUT ────────────────────────── */
.courses-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}
.filters-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 100px;
}
.filter-group {
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 20px;
}
.filter-group:last-child { border: none; margin-bottom: 0; padding-bottom: 0; }
.filter-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.filter-checkbox-label {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 6px 8px;
  margin: 0 -8px;
  border-radius: 8px;
  transition: background .2s;
}
.filter-checkbox-label:hover { background: var(--primary-xlt); color: var(--primary); }
.filter-checkbox-label input { accent-color: var(--primary); width: 15px; height: 15px; }
.courses-main .courses-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
@media (max-width: 880px) {
  .courses-container { grid-template-columns: 1fr; }
  .filters-sidebar { position: static; }
}
.course-card-tag, .course-card-cme {
  position: absolute;
  z-index: 2;
  top: 14px;
  bottom: auto;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  height: auto;
  line-height: 1.2;
}
.course-card-tag {
  left: 14px;
  right: auto;
  background: rgba(255,255,255,.95);
  color: var(--primary);
}
.course-card-cme {
  right: 14px;
  left: auto;
  background: var(--accent);
  color: #211B08;
}
body:dir(rtl) .course-card-tag, html[lang="ar"] .course-card-tag { left: auto !important; right: 14px !important; }
body:dir(rtl) .course-card-cme, html[lang="ar"] .course-card-cme { right: auto !important; left: 14px !important; }
.course-card-body { padding: 24px 22px; flex: 1; display: flex; flex-direction: column; }
.course-card-specialty {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.course-card-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 16px;
  min-height: 50px;
}
.course-card-meta {
  display: flex; gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  margin-top: auto;
  font-size: 13px;
  color: var(--muted);
}
.course-card-meta-item { display: flex; align-items: center; gap: 6px; }
.course-card-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.course-card-price {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}

/* ─── STEPS SECTION ──────────────────────────────────────── */
.steps-section {
  background: linear-gradient(135deg, var(--bg-deep) 0%, var(--primary-dark) 100%);
  position: relative;
  padding: var(--section-py) 0;
  overflow: hidden;
}
.steps-section::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(201,175,94,.08), transparent 40%),
                    radial-gradient(circle at 80% 70%, rgba(12,162,226,.08), transparent 40%);
  pointer-events: none;
}
.steps-section .container { position: relative; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.step-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-lg);
  padding: 36px 28px;
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all .3s;
}
.step-card:hover {
  background: rgba(255,255,255,.07);
  border-color: var(--accent);
  transform: translateY(-4px);
}
.step-number {
  width: 56px; height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(201,175,94,.4);
}
.step-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}
.step-desc {
  font-size: 14px;
  color: rgba(255,255,255,.7);
  line-height: 1.65;
}

/* ─── TESTIMONIALS ───────────────────────────────────────── */
.testimonial-v2 {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  position: relative;
  transition: all .3s;
}
.testimonial-v2::before {
  content: "\201C";
  position: absolute;
  top: 14px; right: 22px;
  font-family: var(--font-display);
  font-size: 80px;
  line-height: 1;
  color: var(--primary-xlt);
  font-weight: 700;
}
body:dir(rtl) .testimonial-v2::before, html[lang="ar"] .testimonial-v2::before {
  right: auto; left: 22px;
}
.testimonial-v2:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-xlt);
}
.testimonial-stars {
  color: var(--accent);
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.testimonial-body-v2 {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 24px;
  font-style: italic;
  position: relative;
  z-index: 1;
}
.testimonial-author-v2 {
  display: flex; align-items: center; gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.testimonial-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
}
.testimonial-avatar svg { width: 20px; height: 20px; opacity: 0.92; }
.testimonial-meta strong {
  display: block;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ink);
}
.testimonial-meta span {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}
.testimonial-badge {
  display: inline-block !important;
  margin-top: 6px !important;
  padding: 3px 10px;
  background: rgba(5,150,105,.10);
  color: #047857;
  border-radius: 999px;
  font-size: 11px !important;
  font-weight: 700;
}

/* ─── ACCREDITED PARTNERS & LICENCES (ACX) ───────────────── */
.acx {
  position: relative;
  isolation: isolate;
  padding: clamp(56px, 7vw, 88px) 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: clip;
}
.acx-glow {
  position: absolute; inset-inline: 0; top: -160px; height: 420px;
  z-index: -1; pointer-events: none;
  background:
    radial-gradient(620px 260px at 50% 0%, rgba(12,162,226,.10), transparent 68%),
    radial-gradient(420px 220px at 12% 18%, rgba(201,162,39,.09), transparent 70%);
}

.acx-head { text-align: center; max-width: 720px; margin: 0 auto clamp(34px, 4vw, 52px); }
.acx-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg-card);
  font-size: 12.5px; font-weight: 700; letter-spacing: .01em;
  color: var(--primary);
  box-shadow: var(--shadow-xs);
}
.acx-eyebrow svg { width: 15px; height: 15px; color: var(--accent-dark); flex: none; }
.acx-title {
  margin: 16px 0 0;
  font-size: clamp(1.55rem, 3.1vw, 2.35rem);
  font-weight: 800; line-height: 1.32; color: var(--ink);
}
.acx-sub {
  margin: 12px auto 0; max-width: 620px;
  font-size: 15px; line-height: 1.85; color: var(--muted);
}

.acx-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.acx-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 24px 22px 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  transition: transform .5s cubic-bezier(.16,1,.3,1), box-shadow .5s cubic-bezier(.16,1,.3,1), border-color .35s;
}
.acx-card::before {
  content: "";
  position: absolute; inset-inline: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  transform: scaleX(0); transform-origin: inline-end;
  transition: transform .55s cubic-bezier(.16,1,.3,1);
}
.acx-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lg);
}
.acx-card:hover::before { transform: scaleX(1); }

.acx-plate {
  display: grid; place-items: center;
  height: 104px; padding: 12px;
  border-radius: var(--r);
  background: #fff;
  border: 1px solid var(--line);
}
.acx-plate img {
  max-width: 100%; max-height: 78px;
  width: auto; height: auto;
  object-fit: contain; display: block;
}

.acx-body { flex: 1; padding: 18px 2px 16px; }
.acx-body h3 {
  margin: 0;
  font-size: 15.5px; font-weight: 800; line-height: 1.5;
  color: var(--ink);
}
.acx-role {
  margin: 6px 0 0;
  font-size: 13px; font-weight: 600; color: var(--muted);
}

.acx-num {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin: 0 -22px; padding: 14px 22px;
  border-top: 1px dashed var(--line-strong);
  background: var(--primary-xlt);
}
.acx-num span { font-size: 12px; font-weight: 700; color: var(--muted); }
.acx-num b {
  font-size: 15px; font-weight: 800; letter-spacing: .03em;
  color: var(--primary);
}

[data-theme="dark"] .acx-num { background: rgba(12,162,226,.10); }
[data-theme="dark"] .acx-num b { color: var(--primary-light); }
[data-theme="dark"] .acx-eyebrow { color: var(--ink-soft); }

@media (max-width: 1080px) {
  .acx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .acx-grid { grid-template-columns: 1fr; gap: 16px; }
  .acx-plate { height: 92px; }
  .acx-plate img { max-height: 66px; }
}

@media (prefers-reduced-motion: reduce) {
  .acx-card, .acx-card::before { transition: none; }
  .acx-card:hover { transform: none; }
}

/* ─── NEWSLETTER ─────────────────────────────────────────── */
.newsletter-section-v2 {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: var(--section-py) 0;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.newsletter-section-v2::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 30% 50%, rgba(201,175,94,.15), transparent 50%);
  pointer-events: none;
}
.newsletter-section-v2 .container { position: relative; max-width: 680px; }
.newsletter-section-v2 .section-badge {
  background: rgba(255,255,255,.12);
  color: var(--accent-light);
  border-color: rgba(255,255,255,.2);
}
.newsletter-section-v2 .section-title { color: #fff; }
.newsletter-section-v2 .section-desc { color: rgba(255,255,255,.8); }
.newsletter-form-v2 {
  display: flex;
  gap: 10px;
  margin-top: 32px;
  background: rgba(255,255,255,.08);
  padding: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  max-width: 520px;
  margin-inline: auto;
}
.newsletter-form-v2 input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 12px 20px;
  color: #fff;
  font-size: 14.5px;
  font-family: inherit;
}
.newsletter-form-v2 input::placeholder { color: rgba(255,255,255,.55); }

/* ─── EVENT CARDS ────────────────────────────────────────── */
.event-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all .3s;
}
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.event-card .event-img-wrapper {
  border-radius: 0 !important;
  height: 240px !important;
}
.event-card > div:last-child {
  padding: 22px !important;
}
.event-card h3 {
  font-family: var(--font-display);
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
  line-height: 1.3 !important;
  margin-bottom: 10px !important;
}
html[lang="ar"] .event-card h3, body:dir(rtl) .event-card h3 {
  font-family: var(--font-ar);
  font-weight: 800 !important;
}
.event-card p {
  font-size: 14px !important;
  color: var(--muted) !important;
  line-height: 1.7 !important;
}

/* ─── FOOTER OLD (REMOVED) ─────────────────────────────── */

/* ─── FLOATING WHATSAPP / SCROLL ─────────────────────────── */
.whatsapp-float {
  width: 58px; height: 58px;
  background: #25D366;
  box-shadow: 0 10px 30px rgba(37,211,102,.45);
}
.whatsapp-float:hover { transform: scale(1.08); }
.scroll-top-btn {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-md);
}

/* ─── SECTION PADDING ────────────────────────────────────── */
.section-py { padding: var(--section-py) 0; }

/* ─── BUSINESS / SUCCESS GRID ────────────────────────────── */
.section-py img[alt="Scientific Event Organization"] {
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  height: 420px !important;
}

/* ─── MOBILE COMPACT ─────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --section-py: clamp(48px, 7vw, 80px); }
  .section-header { margin-bottom: 36px; }
  .hero-section { height: clamp(480px, 80vh, 620px); }
  .hero-content { max-width: 100%; }
  .hero-arrow { display: none; }
  .hero-title { font-size: clamp(28px, 7vw, 44px) !important; line-height: 1.1 !important; }
  .hero-desc { font-size: 15px !important; line-height: 1.6 !important; }
  .hero-badge { padding: 6px 12px; font-size: 11px; margin-bottom: 18px; }
  .hero-actions .btn { padding: 12px 22px; font-size: 13.5px; }
}
@media (max-width: 880px) {
  .section-title { font-size: clamp(24px, 6.5vw, 36px) !important; }
  .section-desc { font-size: 14.5px; }
  .finder-bar { padding: 14px; gap: 10px; }
  .finder-wrapper { margin-top: -22px; margin-bottom: 22px; }
  .finder-input, .finder-select { padding: 11px 14px; font-size: 13.5px; }
  .finder-btn-search { height: 44px; padding: 0 22px; font-size: 13.5px; }
  .stats-grid-v2 { grid-template-columns: repeat(2, 1fr); }
  .stat-card-v2 { padding: 26px 16px; border: none !important; border-bottom: 1px solid var(--line) !important; }
  .stat-card-v2:nth-last-child(-n+2) { border-bottom: none !important; }
  .stat-card-v2:nth-child(odd) { border-right: 1px solid var(--line) !important; }
  body:dir(rtl) .stat-card-v2:nth-child(odd), html[lang="ar"] .stat-card-v2:nth-child(odd) {
    border-right: none !important; border-left: 1px solid var(--line) !important;
  }
  .stat-number-v2 { font-size: clamp(32px, 7vw, 40px); }
  .stat-label-v2 { font-size: 12.5px; }
  .trust-badges-bar { padding: 22px 0; }
  .trust-badges-inner { gap: 14px; grid-template-columns: repeat(2, 1fr); }
  .trust-badge { border: none !important; padding: 8px 4px; }
  .trust-badge-icon { width: 38px; height: 38px; }
  .trust-badge-text strong { font-size: 13px; }
  .trust-badge-text small { font-size: 10.5px; }
  .courses-grid { grid-template-columns: 1fr !important; gap: 18px; }
  .course-card-image { height: 180px; }
  .course-card-title { font-size: 16.5px; min-height: 0; margin-bottom: 12px; }
  .course-card-body { padding: 20px 18px; }
  .course-card-meta { gap: 14px; font-size: 12.5px; padding: 12px 0; }
  .course-card-footer { flex-wrap: wrap; gap: 12px; }
  .course-card-price { font-size: 20px; }
  .course-card-footer .btn { font-size: 12px; padding: 8px 14px; }
  .testimonial-v2 { padding: 24px 20px; }
  .testimonial-body-v2 { font-size: 14.5px; }
  .step-card { padding: 26px 20px; }
  .step-title { font-size: 16.5px; }
  .step-desc { font-size: 13.5px; }
  .section-py img[alt="Scientific Event Organization"] { height: 240px !important; }
  .section-py [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  .event-card .event-img-wrapper { height: 200px !important; }
  .event-card h3 { font-size: 17px !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; padding-bottom: 40px; }
  .footer-bottom-inner { flex-direction: column; gap: 12px; text-align: center; }
  .newsletter-form-v2 { flex-direction: column; padding: 12px; border-radius: 22px; }
  .newsletter-form-v2 input { text-align: center; padding: 10px; }
  .newsletter-form-v2 .btn { width: 100%; }
  .whatsapp-float { width: 50px; height: 50px; bottom: 14px; right: 14px; }
  body:dir(rtl) .whatsapp-float, html[lang="ar"] .whatsapp-float { left: 14px; right: auto; }
  .scroll-top-btn { width: 40px; height: 40px; bottom: 76px; right: 14px; }
  body:dir(rtl) .scroll-top-btn, html[lang="ar"] .scroll-top-btn { left: 14px; right: auto; }
}
@media (max-width: 560px) {
  .hero-section { height: clamp(440px, 78vh, 560px); }
  .hero-title { font-size: 28px !important; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero-actions .btn { width: auto; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ─── REVEAL ANIMATIONS ──────────────────────────────────── */
.sr { opacity: 0; transform: translateY(20px); transition: all .8s cubic-bezier(.4,0,.2,1); }
.sr.sr-visible, .sr.in, .sr.revealed { opacity: 1; transform: none; }

/* ─── MODAL (LOGIN / SIGNUP / DETAILS / REGISTRATION) ────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5,19,27, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; animation: modalFade .25s ease forwards; }
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }

.modal-content,
.modal-box {
  background: var(--bg-card);
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0,0,0,.35), 0 12px 30px rgba(2,114,180,.18);
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 40px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modalRise .35s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes modalRise { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }

.modal-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 22px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.modal-title {
  font-family: 'Cairo', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin: 0;
  letter-spacing: -0.01em;
}
.modal-close {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
}
.modal-close:hover { background: rgba(255,255,255,.30); transform: rotate(90deg); }

.modal-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.modal-tab {
  padding: 14px 10px;
  text-align: center;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  background: transparent;
  border: none;
  position: relative;
  transition: all .2s;
}
.modal-tab:hover { color: var(--primary); background: var(--primary-xlt); }
.modal-tab.active {
  color: var(--primary);
  background: var(--bg-card);
  font-weight: 800;
}
.modal-tab.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px 3px 0 0;
}

.modal-body {
  padding: 28px;
  overflow-y: auto;
  background: var(--bg-card);
}

.auth-form { display: none; }
.auth-form.active { display: block; animation: formFadeIn .3s ease; }
@keyframes formFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.form-field { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 7px;
  letter-spacing: .02em;
}
.form-input {
  width: 100%;
  background: var(--bg-soft);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-family: 'Cairo', sans-serif;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  transition: all .2s;
}
.form-input::placeholder { color: var(--muted); opacity: .8; }
.form-input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 4px var(--primary-xlt);
}
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.modal-body .btn { width: 100%; justify-content: center; padding: 13px 20px; font-size: 14.5px; }
.w-full { width: 100%; }

@media (max-width: 560px) {
  .modal-content, .modal-box { max-width: 100%; border-radius: var(--r-lg); }
  .modal-header { padding: 18px 20px; }
  .modal-body { padding: 22px 20px; }
  .form-grid-2 { grid-template-columns: 1fr; }
}

/* ══ V2 COURSES REDESIGN (PREMIUM) ══ */

.courses-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  padding: 16px 24px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  border: 1px solid var(--line);
  margin-bottom: 40px;
  position: sticky;
  top: 90px;
  z-index: 90;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

[data-theme="dark"] .courses-toolbar {
  background: rgba(30, 30, 36, 0.7);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.courses-search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-soft);
  padding: 12px 18px;
  border-radius: 100px;
  flex: 1;
  min-width: 250px;
  max-width: 400px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.courses-search-box:focus-within {
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 4px var(--primary-xlt);
}

.courses-search-box svg {
  color: var(--muted);
}

.courses-search-box input {
  border: none;
  background: transparent;
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  outline: none;
}

.courses-pill-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 10px 20px;
  border-radius: 100px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-pill:hover {
  background: var(--bg-soft);
  color: var(--primary);
}

.filter-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(11,45,66, 0.3);
}

[data-theme="dark"] .filter-pill.active {
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

/* ── GRID V2 ── */
.courses-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
  width: 100%;
}

/* ── CARD V2 ── */
.course-card-v2 {
  background: var(--bg-card);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.06);
  border: 1px solid var(--line);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
}

.course-card-v2:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 50px rgba(11,45,66, 0.15);
  border-color: rgba(11,45,66, 0.3);
}

[data-theme="dark"] .course-card-v2:hover {
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  border-color: rgba(255, 255, 255, 0.1);
}

.card-v2-image {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--bg-soft);
}

.card-v2-image img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Branded fallback shown when a programme photo has not been supplied yet.
   The real <img> sits above it and covers it once it loads. */
.card-v2-ph {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center;
  background: linear-gradient(150deg, rgba(11,45,66,.10), rgba(223,201,129,.10));
}
.card-v2-ph::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: repeating-linear-gradient(45deg, rgba(11,45,66,.05) 0 12px, transparent 12px 24px);
}
.card-v2-ph-ic {
  position: relative;
  width: 54px; height: 54px; border-radius: 16px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  box-shadow: 0 10px 22px rgba(11,45,66,.28);
}
.card-v2-ph-ic svg { width: 26px; height: 26px; }
.card-v2-ph > span:last-child {
  position: relative;
  font-size: 12.5px; font-weight: 700; color: var(--primary);
}
[data-theme="dark"] .card-v2-ph > span:last-child { color: var(--ink-soft); }

.course-card-v2:hover .card-v2-image img {
  transform: scale(1.08);
}

.card-v2-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
  pointer-events: none;
}

.card-v2-badges {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.badge-format {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-dark);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.badge-cme {
  background: linear-gradient(135deg, var(--accent), #D4AE35);
  color: #000;
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.card-v2-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-v2-specialty {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.card-v2-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.card-v2-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--line);
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.meta-item svg {
  color: var(--primary);
}

.card-v2-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.card-v2-price {
  display: flex;
  flex-direction: column;
}

.price-val {
  font-size: 22px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.price-val small {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-inline-start: 4px;
}

.card-v2-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 100px;
  background: var(--bg-soft);
  color: var(--ink-soft);
  border: 1px solid var(--line);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  background: var(--primary-xlt);
  color: var(--primary);
  border-color: var(--primary);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .courses-toolbar {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }
  .courses-search-box {
    max-width: 100%;
  }
  .courses-pill-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    /* a flex child defaults to min-width:auto, so it refuses to shrink and
       the row escapes the viewport instead of scrolling inside itself */
    min-width: 0;
    max-width: 100%;
    scrollbar-width: none;
  }
  .courses-pill-filters::-webkit-scrollbar { display: none; }
  .filter-pill {
    flex-shrink: 0;
  }
  .courses-grid-v2 {
    grid-template-columns: 1fr;
  }
}

/* ─── FOOTER V2 ─────────────────────────────────────────────── */
.footer-v2 {
  position: relative;
  background: linear-gradient(135deg, var(--plum) 0%, #0B2D42 100%);
  color: rgba(255, 255, 255, 0.8);
  padding: 80px 0 0;
  overflow: hidden;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  margin-top: 60px;
  box-shadow: 0 -10px 40px rgba(11,45,66, 0.15);
}
.footer-v2::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='rgba(255,255,255,0.03)' fill-rule='evenodd'/%3E%3C/svg%3E");
}
.footer-v2-glow {
  position: absolute;
  top: -150px;
  right: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(227,202,125, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.footer-v2-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 60px;
  position: relative;
  z-index: 1;
}
.footer-v2-logo {
  height: 60px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}
.footer-v2-desc {
  line-height: 1.8;
  font-size: 15px;
  max-width: 350px;
}
.footer-v2-title {
  color: #fff;
  font-size: 18px;
  margin-bottom: 24px;
  font-weight: 700;
  position: relative;
  display: inline-block;
}
.footer-v2-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  right: 0;
  width: 30px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}
html[lang="en"] .footer-v2-title::after {
  right: auto;
  left: 0;
}
.footer-v2-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-v2-links a, .footer-v2-links li {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-v2-links a:hover {
  color: var(--gold);
  transform: translateX(-5px);
}
html[lang="en"] .footer-v2-links a:hover {
  transform: translateX(5px);
}
.footer-v2-bottom {
  background: rgba(0, 0, 0, 0.2);
  padding: 24px 0;
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-v2-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}
.footer-v2-dev a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-v2-dev a:hover {
  color: #fff;
}
.footer-v2-dev img {
  height: 20px;
  opacity: 0.8;
}

@media (max-width: 992px) {
  .footer-v2-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}
@media (max-width: 768px) {
  .footer-v2-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-v2-bottom-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}


/* ============================================================
   LMF · NAYA MEDICAL FOOTER · Grand animated brand footer 2026
   Deep-plum drenched surface, gold accent, drifting aurora,
   accreditation marquee, oversized wordmark. RTL-first.
   ============================================================ */
.lmf {
  --lmf-plum:      #0B2D42;
  --lmf-plum-deep: #071F2C;
  --lmf-plum-lo:   #0A4468;
  --lmf-gold:      #DFC981;
  --lmf-gold-hi:   #EBE0BC;
  --lmf-rose:      #3FB6EC;
  --lmf-ink:       rgba(255,255,255,.66);
  --lmf-ink-hi:    rgba(255,255,255,.92);
  --lmf-line:      rgba(223,201,129,.16);
  position: relative;
  margin-top: 0;
  color: var(--lmf-ink);
  background:
    radial-gradient(1200px 520px at 82% -8%, rgba(223,201,129,.14), transparent 60%),
    radial-gradient(900px 480px at 8% 4%, rgba(63,182,236,.12), transparent 62%),
    linear-gradient(160deg, var(--lmf-plum) 0%, #0B2D42 46%, var(--lmf-plum-deep) 100%);
  overflow: clip;
  isolation: isolate;
  font-family: 'Cairo', system-ui, sans-serif;
}

/* Sculpted top edge */
.lmf::before {
  content: "";
  position: absolute; inset-inline: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--lmf-gold) 22%, var(--lmf-gold-hi) 50%, var(--lmf-gold) 78%, transparent);
  opacity: .8;
  z-index: 4;
}

/* ── Drifting aurora field ── */
.lmf-aurora {
  position: absolute; inset: -20% -10% auto -10%; height: 130%;
  z-index: 0; pointer-events: none; filter: blur(8px);
}
.lmf-aurora span {
  position: absolute; border-radius: 50%; opacity: .5;
  mix-blend-mode: screen; will-change: transform;
}
.lmf-aurora span:nth-child(1){ width: 520px; height: 520px; top: -140px; inset-inline-end: -60px;
  background: radial-gradient(circle, rgba(223,201,129,.42), transparent 68%); animation: lmf-drift1 26s ease-in-out infinite; }
.lmf-aurora span:nth-child(2){ width: 460px; height: 460px; top: 40px; inset-inline-start: -120px;
  background: radial-gradient(circle, rgba(63,182,236,.34), transparent 66%); animation: lmf-drift2 32s ease-in-out infinite; }
.lmf-aurora span:nth-child(3){ width: 360px; height: 360px; bottom: -120px; inset-inline-start: 40%;
  background: radial-gradient(circle, rgba(12,162,226,.4), transparent 70%); animation: lmf-drift3 38s ease-in-out infinite; }
@keyframes lmf-drift1 { 0%,100%{ transform: translate3d(0,0,0) scale(1); } 50%{ transform: translate3d(-40px,46px,0) scale(1.12); } }
@keyframes lmf-drift2 { 0%,100%{ transform: translate3d(0,0,0) scale(1); } 50%{ transform: translate3d(60px,-30px,0) scale(1.08); } }
@keyframes lmf-drift3 { 0%,100%{ transform: translate3d(0,0,0) scale(1); } 50%{ transform: translate3d(-30px,-40px,0) scale(1.15); } }

/* Fine grain + dotted weave */
.lmf-tex {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 82%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 30%, #000 82%, transparent);
}

.lmf .container { position: relative; z-index: 3; }

/* ── CTA crown ── */
.lmf-cta {
  position: relative; z-index: 3;
  margin-top: -48px; margin-bottom: 64px;
}
.lmf-cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: 38px 44px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(10,68,104,.92), rgba(7,31,44,.92));
  border: 1px solid var(--lmf-line);
  box-shadow: 0 30px 70px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.06);
  overflow: hidden;
}
.lmf-cta-inner::after {
  content: ""; position: absolute; top: -60%; inset-inline-end: -10%;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(223,201,129,.22), transparent 70%);
  pointer-events: none;
}
.lmf-cta-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .04em;
  color: var(--lmf-gold); margin-bottom: 12px;
}
.lmf-cta-eyebrow::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--lmf-gold), transparent);
}
.lmf-cta h2 {
  font-family: 'Cairo', sans-serif; color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.15rem); font-weight: 800; line-height: 1.32; margin: 0;
  max-width: 22ch;
}
.lmf-cta h2 em { font-style: normal; color: var(--lmf-gold); }
.lmf-cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.lmf-btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px;
  font-family: 'Cairo', sans-serif; font-size: 15px; font-weight: 800; text-decoration: none;
  transition: transform .5s cubic-bezier(.16,1,.3,1), box-shadow .5s cubic-bezier(.16,1,.3,1);
}
.lmf-btn svg { width: 18px; height: 18px; }
.lmf-btn-gold {
  color: #0B2D42;
  background: linear-gradient(135deg, var(--lmf-gold-hi), var(--lmf-gold));
  box-shadow: 0 12px 30px rgba(223,201,129,.32);
}
.lmf-btn-gold::before {
  content: ""; position: absolute; top: 0; inset-inline-start: -120%;
  width: 60%; height: 100%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  transition: inset-inline-start .7s ease;
}
.lmf-btn-gold:hover { transform: translateY(-3px); box-shadow: 0 18px 42px rgba(223,201,129,.42); }
.lmf-btn-gold:hover::before { inset-inline-start: 130%; }
.lmf-btn-ghost {
  color: var(--lmf-ink-hi);
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.04);
}
.lmf-btn-ghost:hover { transform: translateY(-3px); border-color: var(--lmf-gold); color: #fff; background: rgba(223,201,129,.1); }

/* ── Main grid ── */
.lmf-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.35fr;
  gap: 48px 40px;
  padding-bottom: 52px;
}
.lmf-brand-logo {
  height: 58px; width: auto; object-fit: contain;
  filter: brightness(0) invert(1);
  margin-bottom: 20px;
}
.lmf-brand-desc {
  font-size: 15px; line-height: 1.95; max-width: 40ch; margin: 0 0 24px;
  color: var(--lmf-ink);
}
.lmf-socials { display: flex; gap: 12px; }
.lmf-soc {
  position: relative;
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  color: var(--lmf-ink-hi);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  transition: transform .45s cubic-bezier(.16,1,.3,1), color .3s, border-color .3s, background .3s;
}
.lmf-soc svg { width: 19px; height: 19px; }
.lmf-soc:hover {
  transform: translateY(-5px);
  color: #0B2D42;
  background: linear-gradient(135deg, var(--lmf-gold-hi), var(--lmf-gold));
  border-color: transparent;
  box-shadow: 0 12px 26px rgba(223,201,129,.36);
}

/* Column headings */
.lmf-col-title {
  color: #fff; font-size: 15.5px; font-weight: 800; letter-spacing: .01em;
  margin: 6px 0 22px; position: relative; display: inline-block;
}
.lmf-col-title::after {
  content: ""; position: absolute; inset-inline-start: 0; bottom: -9px;
  width: 26px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--lmf-gold), var(--lmf-rose));
}
.lmf-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.lmf-list a {
  --d: 0;
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--lmf-ink); text-decoration: none; font-size: 14.5px; line-height: 1.5;
  transition: color .3s ease, gap .35s cubic-bezier(.16,1,.3,1);
  width: fit-content;
}
.lmf-list a::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--lmf-gold); opacity: .35;
  transform: scale(.7); transition: opacity .3s, transform .35s cubic-bezier(.16,1,.3,1);
}
.lmf-list a:hover { color: var(--lmf-gold-hi); gap: 14px; }
.lmf-list a:hover::before { opacity: 1; transform: scale(1.15); box-shadow: 0 0 10px rgba(223,201,129,.7); }

/* Contact column */
.lmf-contact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.lmf-contact li { display: flex; align-items: flex-start; gap: 13px; font-size: 14px; line-height: 1.65; color: var(--lmf-ink); }
.lmf-ic {
  flex: none; width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center; color: var(--lmf-gold);
  background: rgba(223,201,129,.1);
  border: 1px solid var(--lmf-line);
  transition: transform .4s cubic-bezier(.16,1,.3,1), background .3s, color .3s;
}
.lmf-ic svg { width: 17px; height: 17px; }
.lmf-contact li:hover .lmf-ic { transform: translateY(-3px) rotate(-4deg); background: rgba(223,201,129,.2); color: var(--lmf-gold-hi); }
.lmf-contact a { color: inherit; text-decoration: none; transition: color .3s; }
.lmf-contact a:hover { color: var(--lmf-gold-hi); }
.lmf-contact strong { display: block; color: var(--lmf-ink-hi); font-weight: 700; font-size: 12px; margin-bottom: 3px; letter-spacing: .02em; }

/* ── Accreditation marquee ── */
.lmf-marquee {
  position: relative; z-index: 3;
  margin: 8px 0 40px;
  padding: 20px 0;
  border-block: 1px solid var(--lmf-line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  overflow: hidden;
}
.lmf-track {
  display: flex; gap: 56px; width: max-content;
  animation: lmf-marq 34s linear infinite;
}
.lmf-marquee:hover .lmf-track { animation-play-state: paused; }
html[dir="rtl"] .lmf-track { animation-direction: reverse; }
@keyframes lmf-marq { to { transform: translateX(-50%); } }
.lmf-chip {
  display: inline-flex; align-items: center; gap: 11px; white-space: nowrap;
  font-size: 14.5px; font-weight: 700; color: rgba(255,255,255,.72);
}
.lmf-chip svg { width: 20px; height: 20px; color: var(--lmf-gold); flex: none; }
.lmf-chip span small { display: block; font-size: 11px; font-weight: 500; color: rgba(255,255,255,.42); }

/* ── Official licences & accreditation badges ── */
.lmf-accred {
  position: relative; z-index: 3;
  padding: 46px 0 6px;
}
.lmf-accred-head { text-align: center; margin-bottom: 26px; }
.lmf-accred-title {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 800; letter-spacing: .02em;
  color: var(--lmf-gold-hi);
}
.lmf-accred-title svg { width: 18px; height: 18px; color: var(--lmf-gold); flex: none; }
.lmf-accred-sub { margin: 8px 0 0; font-size: 13px; color: rgba(255,255,255,.5); }

.lmf-badges {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
}
.lmf-badge {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--lmf-line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  transition: transform .45s cubic-bezier(.16,1,.3,1), border-color .3s, background .3s, box-shadow .45s;
}
.lmf-badge:hover {
  transform: translateY(-4px);
  border-color: rgba(223,201,129,.42);
  background: linear-gradient(180deg, rgba(223,201,129,.12), rgba(255,255,255,.03));
  box-shadow: 0 16px 36px rgba(0,0,0,.28);
}
.lmf-badge-plate {
  flex: none;
  width: 112px; height: 78px; padding: 7px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.22);
}
.lmf-badge-plate img {
  max-width: 100%; max-height: 62px;
  width: auto; height: auto;
  object-fit: contain;
  display: block;
}
.lmf-badge-txt { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.lmf-badge-txt strong {
  font-size: 13.5px; font-weight: 700; line-height: 1.45;
  color: var(--lmf-ink-hi);
}
.lmf-badge-num {
  font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.55);
}
.lmf-badge-num b {
  font-weight: 800; letter-spacing: .04em;
  color: var(--lmf-gold);
}

@media (max-width: 620px) {
  .lmf-accred { padding: 34px 0 4px; }
  .lmf-badges { grid-template-columns: 1fr; }
  .lmf-badge { padding: 12px 13px; gap: 12px; }
  .lmf-badge-plate { width: 94px; height: 68px; }
  .lmf-badge-plate img { max-height: 54px; }
}

/* ── Oversized wordmark ── */
.lmf-wordmark {
  position: relative; z-index: 1;
  text-align: center; margin-top: 8px;
  font-family: 'Cairo', system-ui, sans-serif; font-weight: 700;
  font-size: clamp(4rem, 17vw, 15rem); line-height: .8; letter-spacing: .02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(223,201,129,.2);
  user-select: none; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 92%);
          mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 92%);
  transform: translateY(14%);
}

/* ── Bottom bar ── */
.lmf-bottom {
  position: relative; z-index: 3;
  border-top: 1px solid var(--lmf-line);
  background: rgba(0,0,0,.24);
  backdrop-filter: blur(2px);
}
.lmf-bottom-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: 22px 0; font-size: 13.5px; color: rgba(255,255,255,.56);
}
.lmf-dev { display: flex; align-items: center; gap: 9px; }
.lmf-dev a { display: inline-flex; align-items: center; gap: 9px; color: rgba(255,255,255,.6); text-decoration: none; transition: color .3s; }
.lmf-dev a:hover { color: #fff; }
.lmf-dev img { height: 19px; opacity: .82; transition: opacity .3s; }
.lmf-dev a:hover img { opacity: 1; }
.lmf-top {
  width: 42px; height: 42px; flex: none; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  color: var(--lmf-gold); border: 1px solid var(--lmf-line);
  background: rgba(223,201,129,.08);
  transition: transform .45s cubic-bezier(.16,1,.3,1), background .3s;
}
.lmf-top:hover { transform: translateY(-4px); background: rgba(223,201,129,.2); }
.lmf-top svg { width: 18px; height: 18px; }

/* ── Reveal on scroll (works with existing IntersectionObserver .sr, plus safe default) ── */
.lmf-rise { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.lmf.is-in .lmf-rise { opacity: 1; transform: none; }
.lmf.is-in .lmf-rise:nth-child(2){ transition-delay: .08s; }
.lmf.is-in .lmf-rise:nth-child(3){ transition-delay: .16s; }
.lmf.is-in .lmf-rise:nth-child(4){ transition-delay: .24s; }

/* ── Responsive ── */
@media (max-width: 992px) {
  .lmf-grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .lmf-brand { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .lmf { margin-top: 0; }
  .lmf-grid { grid-template-columns: 1fr; gap: 34px; }
  .lmf-cta-inner { padding: 28px 22px; }
  .lmf-cta-actions { width: 100%; }
  .lmf-btn { flex: 1; justify-content: center; }
  .lmf-bottom-inner { flex-direction: column; text-align: center; gap: 16px; }
}

/* ── Motion & fallback safety ── */
@media (prefers-reduced-motion: reduce) {
  .lmf-aurora span, .lmf-track { animation: none !important; }
  .lmf-rise { opacity: 1; transform: none; }
}
@supports not (overflow: clip) { .lmf { overflow: hidden; } }


/* ============================================================
   NAV · COMMAND-BAR REDESIGN 2026
   Full-width glass bar · magnetic sliding glider · scroll
   progress underline · shine login · morphing hamburger.
   Overrides the earlier floating-pill navbar (later = wins).
   ============================================================ */
header#navbar-header,
#navbar-header,
header#navbar-header.scrolled,
#navbar-header.scrolled {
  position: sticky !important;
  top: 0 !important;
  left: 0 !important; right: 0 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  border-radius: 0 !important;
  border: 0 !important;
  height: 74px;
  transform: none !important;
  background: rgba(251,253,254, 0.72) !important;
  -webkit-backdrop-filter: blur(18px) saturate(150%) !important;
          backdrop-filter: blur(18px) saturate(150%) !important;
  border-bottom: 1px solid rgba(11,45,66, 0.08) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.5) inset !important;
  transition: height .4s cubic-bezier(.16,1,.3,1), background .4s ease, box-shadow .4s ease !important;
  overflow: visible;
}
header#navbar-header.scrolled,
#navbar-header.scrolled {
  height: 64px;
  background: rgba(251,253,254, 0.92) !important;
  box-shadow: 0 10px 34px rgba(11,45,66, 0.12) !important;
  border-bottom-color: rgba(11,45,66, 0.1) !important;
}
[data-theme="dark"] #navbar-header,
[data-theme="dark"] header#navbar-header,
[data-theme="dark"] header#navbar-header.scrolled {
  background: rgba(7,23,32, 0.72) !important;
  border-bottom: 1px solid rgba(255,255,255,.06) !important;
}
[data-theme="dark"] header#navbar-header.scrolled {
  background: rgba(7,23,32, 0.92) !important;
  box-shadow: 0 10px 34px rgba(0,0,0,.4) !important;
}

.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

/* ── Brand with animated caduceus dot ── */
.nav-brand { position: relative; gap: 12px !important; }
.nav-logo-img { height: 44px !important; transition: transform .5s cubic-bezier(.16,1,.3,1) !important; }
#navbar-header.scrolled .nav-logo-img { height: 40px !important; }
.nav-brand:hover .nav-logo-img { transform: scale(1.05) rotate(-2deg) !important; }
.nav-brand > span {
  position: relative;
  transition: color .3s;
}
.nav-brand > span::after {
  content: ""; position: absolute; inset-inline-start: 0; bottom: -3px;
  width: 100%; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0); transform-origin: inline-end;
  transition: transform .45s cubic-bezier(.16,1,.3,1);
}
.nav-brand:hover > span::after { transform: scaleX(1); transform-origin: inline-start; }

/* ── Menu track + magnetic glider ── */
nav[aria-label="Main Navigation"] { display: flex; }
.nav-menu {
  position: relative;
  display: flex; gap: 2px;
  padding: 5px;
  margin: 0; list-style: none;
  background: rgba(11,45,66, 0.055);
  border: 1px solid rgba(11,45,66, 0.06);
  border-radius: 100px;
}
[data-theme="dark"] .nav-menu { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.06); }
.nav-glider {
  position: absolute;
  top: 5px; bottom: 5px; left: 0;
  width: 0; border-radius: 100px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  box-shadow: 0 8px 20px rgba(11,45,66, .34);
  z-index: 0; opacity: 0; pointer-events: none;
  transition: transform .48s cubic-bezier(.16,1,.3,1), width .48s cubic-bezier(.16,1,.3,1), opacity .3s ease;
  will-change: transform, width;
}
.nav-glider.ready { opacity: 1; }
.nav-menu a,
.nav-menu a.active {
  position: relative; z-index: 1;
  font-family: var(--font); font-size: 14.5px; font-weight: 600;
  color: var(--ink-soft) !important;
  padding: 9px 17px !important; border-radius: 100px;
  background: transparent !important; box-shadow: none !important;
  white-space: nowrap; text-decoration: none;
  transition: color .32s ease;
}
.nav-menu a:hover, .nav-menu a.active,
[data-theme="dark"] .nav-menu a:hover, [data-theme="dark"] .nav-menu a.active {
  color: #fff !important; background: transparent !important;
}
/* Kill the legacy underline pseudo from style.css — the glider replaces it */
.nav-menu a::after, .nav-menu a.active::after { content: none !important; display: none !important; }
/* Fallback highlight when JS/glider unavailable */
.nav-menu:not(:has(.nav-glider)) a.active { background: var(--primary) !important; }

/* ── Actions: shine login button ── */
.nav-actions { gap: 12px !important; }
.nav-actions .btn-primary {
  position: relative; overflow: hidden;
  padding: 11px 22px !important;
  box-shadow: 0 8px 22px rgba(11,45,66, .28) !important;
}
.nav-actions .btn-primary::before {
  content: ""; position: absolute; top: 0; inset-inline-start: -130%;
  width: 55%; height: 100%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.42), transparent);
  transition: inset-inline-start .75s ease;
}
.nav-actions .btn-primary:hover::before { inset-inline-start: 140%; }

/* ── Scroll progress underline ── */
.nav-progress {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2.5px; overflow: hidden; pointer-events: none; z-index: 2;
}
.nav-progress i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary-light));
  box-shadow: 0 0 10px rgba(223,201,129, .6);
  transition: width .12s linear;
}

/* ── Morphing hamburger ── */
.mobile-nav-trigger {
  width: 44px !important; height: 44px !important; border-radius: 13px !important;
  background: rgba(11,45,66, 0.08) !important;
  border: 1px solid rgba(11,45,66, 0.12) !important;
  transition: background .3s, transform .4s cubic-bezier(.16,1,.3,1) !important;
}
.mobile-nav-trigger:hover { transform: translateY(-2px); background: rgba(11,45,66, 0.14) !important; }
.mobile-nav-trigger span {
  width: 20px !important; height: 2px !important; background: var(--primary) !important;
  transition: transform .34s cubic-bezier(.16,1,.3,1), opacity .2s ease !important;
}
.mobile-nav-trigger.active span:nth-child(1) { transform: translateY(6px) rotate(45deg) !important; }
.mobile-nav-trigger.active span:nth-child(2) { opacity: 0 !important; transform: scaleX(0) !important; }
.mobile-nav-trigger.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg) !important; }
[data-theme="dark"] .mobile-nav-trigger { background: rgba(255,255,255,.06) !important; border-color: rgba(255,255,255,.1) !important; }
[data-theme="dark"] .mobile-nav-trigger span { background: var(--accent) !important; }

/* ── Mobile drawer, reskinned to match ── */
.drawer-content {
  background: linear-gradient(165deg, #0B2D42 0%, #071F2C 100%) !important;
  box-shadow: 20px 0 60px rgba(0,0,0,.4) !important;
  padding: 26px 22px 34px !important;
}
.drawer-header { border-bottom: 1px solid rgba(223,201,129,.16) !important; margin-bottom: 22px !important; }
.drawer-header::before {
  content: "القائمة"; color: #fff; font-weight: 800; font-size: 17px; font-family: var(--font);
}
.drawer-close-btn {
  background: rgba(223,201,129,.14) !important; color: var(--accent) !important;
  border: 1px solid rgba(223,201,129,.2) !important;
  transition: transform .4s cubic-bezier(.16,1,.3,1), background .3s !important;
}
.drawer-close-btn:hover { transform: rotate(90deg); background: rgba(223,201,129,.26) !important; }
.drawer-menu { gap: 4px !important; }
.drawer-item a {
  color: rgba(255,255,255,.82) !important; font-size: 15.5px !important;
  padding: 14px 16px !important; border-radius: 13px !important;
  display: flex !important; align-items: center; gap: 10px;
  transition: background .3s, color .3s, padding .35s cubic-bezier(.16,1,.3,1) !important;
}
.drawer-item a::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); opacity: .35; transform: scale(.7);
  transition: opacity .3s, transform .35s cubic-bezier(.16,1,.3,1);
}
.drawer-item a:hover, .drawer-item a.active {
  background: rgba(223,201,129,.12) !important; color: #fff !important; padding-inline-start: 22px !important;
}
.drawer-item a:hover::before, .drawer-item a.active::before { opacity: 1; transform: scale(1.15); box-shadow: 0 0 10px rgba(223,201,129,.7); }
.drawer-overlay.open .drawer-item {
  opacity: 0; animation: navDrawerIn .5s cubic-bezier(.16,1,.3,1) forwards;
}
.drawer-overlay.open .drawer-item:nth-child(1){ animation-delay: .06s; }
.drawer-overlay.open .drawer-item:nth-child(2){ animation-delay: .12s; }
.drawer-overlay.open .drawer-item:nth-child(3){ animation-delay: .18s; }
.drawer-overlay.open .drawer-item:nth-child(4){ animation-delay: .24s; }
.drawer-overlay.open .drawer-item:nth-child(5){ animation-delay: .30s; }
.drawer-overlay.open .drawer-item:nth-child(6){ animation-delay: .36s; }
.drawer-overlay.open .drawer-item:nth-child(7){ animation-delay: .42s; }
@keyframes navDrawerIn {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: none; }
}
html[lang="ar"] .drawer-overlay.open .drawer-item { animation-name: navDrawerInRTL; }
@keyframes navDrawerInRTL {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: none; }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .nav-menu, nav[aria-label="Main Navigation"] { display: none; }
  .nav-container { padding: 0 18px; }
}
@media (max-width: 620px) {
  header#navbar-header, #navbar-header { height: 64px; }
  .nav-logo-img { height: 38px !important; }
  .nav-brand > span { font-size: 1rem !important; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-glider, .nav-logo-img, .btn-primary::before,
  .drawer-overlay.open .drawer-item, .drawer-close-btn { transition: none !important; animation: none !important; }
  .drawer-overlay.open .drawer-item { opacity: 1 !important; }
}


/* ============================================================
   COURSES REDESIGN 2026 · "Aurora Editorial"
   Shared course card (home + catalog) + courses-page hero +
   glass filter toolbar. Later rules override the v2 defaults.
   ============================================================ */

/* ── Courses page hero band ── */
.courses-hero {
  position: relative;
  margin: 0 0 8px;
  padding: clamp(56px, 8vw, 92px) 0 clamp(64px, 9vw, 104px);
  background:
    radial-gradient(900px 460px at 84% -10%, rgba(223,201,129,.16), transparent 60%),
    radial-gradient(760px 420px at 6% 6%, rgba(63,182,236,.14), transparent 62%),
    linear-gradient(160deg, #0B2D42 0%, #0B2D42 48%, #071F2C 100%);
  overflow: clip;
  isolation: isolate;
  color: rgba(255,255,255,.72);
}
.courses-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 80%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 30%, #000 80%, transparent);
}
.courses-hero-orb {
  position: absolute; border-radius: 50%; filter: blur(6px);
  z-index: 0; pointer-events: none; mix-blend-mode: screen; will-change: transform;
}
.courses-hero-orb.a { width: 440px; height: 440px; top: -160px; inset-inline-end: -80px;
  background: radial-gradient(circle, rgba(223,201,129,.4), transparent 68%); animation: chDrift 24s ease-in-out infinite; }
.courses-hero-orb.b { width: 380px; height: 380px; bottom: -180px; inset-inline-start: -60px;
  background: radial-gradient(circle, rgba(63,182,236,.34), transparent 66%); animation: chDrift 30s ease-in-out infinite reverse; }
@keyframes chDrift { 0%,100%{ transform: translate3d(0,0,0) scale(1);} 50%{ transform: translate3d(-30px,40px,0) scale(1.12);} }

.courses-hero .container { position: relative; z-index: 2; }
.courses-hero-inner { max-width: 760px; }
.courses-hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(223,201,129,.12); border: 1px solid rgba(223,201,129,.28);
  color: #E6D7A8; font-size: 12.5px; font-weight: 800; letter-spacing: .02em;
  margin-bottom: 22px;
}
.courses-hero-badge svg { width: 15px; height: 15px; }
.courses-hero h1 {
  font-family: 'Cairo', sans-serif; color: #fff; font-weight: 800;
  font-size: clamp(2rem, 4.6vw, 3.35rem); line-height: 1.32; margin: 0 0 18px; letter-spacing: -.01em;
}
.courses-hero h1 em { font-style: normal; color: var(--accent); }
.courses-hero-desc {
  font-size: clamp(15px, 1.7vw, 17.5px); line-height: 1.9; max-width: 60ch;
  color: rgba(255,255,255,.72); margin: 0 0 30px;
}
.courses-hero-stats { display: flex; flex-wrap: wrap; gap: 14px; }
.chero-stat {
  display: flex; align-items: center; gap: 13px;
  padding: 14px 20px 14px 16px; border-radius: 16px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .5s cubic-bezier(.16,1,.3,1), border-color .3s, background .3s;
}
.chero-stat:hover { transform: translateY(-4px); border-color: rgba(223,201,129,.4); background: rgba(223,201,129,.08); }
.chero-stat-ic {
  flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  color: var(--accent); background: rgba(223,201,129,.14); border: 1px solid rgba(223,201,129,.2);
}
.chero-stat-ic svg { width: 20px; height: 20px; }
.chero-stat b { display: block; color: #fff; font-size: 19px; font-weight: 800; line-height: 1.1; }
.chero-stat span { font-size: 12.5px; color: rgba(255,255,255,.6); }

/* Courses page: no big top gap, hero handles it */
body:has(.courses-hero) #main-content { margin-top: 0 !important; }

/* ── Glass filter toolbar (override) ── */
.courses-toolbar {
  border-radius: 22px !important;
  border: 1px solid var(--line) !important;
  box-shadow: 0 12px 40px rgba(11,45,66,.08) !important;
  top: 84px !important;
  padding: 14px 18px !important;
}
.filter-pill {
  border-radius: 999px !important; font-weight: 700 !important;
  transition: transform .35s cubic-bezier(.16,1,.3,1), background .3s, color .3s, box-shadow .3s !important;
}
.filter-pill:hover { transform: translateY(-2px); }
.filter-pill.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-light)) !important;
  box-shadow: 0 8px 20px rgba(11,45,66,.32) !important;
}

/* ── Grid rhythm ── */
.courses-grid-v2 { gap: 34px !important; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)) !important; }

/* ── CARD · Aurora Editorial (overrides .course-card-v2) ── */
.course-card-v2 {
  border-radius: 26px !important;
  border: 1px solid var(--line) !important;
  background: var(--bg-card) !important;
  box-shadow: 0 14px 40px rgba(11,45,66,.07) !important;
  transition: transform .55s cubic-bezier(.16,1,.3,1), box-shadow .55s cubic-bezier(.16,1,.3,1), border-color .4s ease !important;
  isolation: isolate;
}
.course-card-v2::before {
  content: ""; position: absolute; top: 0; inset-inline: 0; height: 4px; z-index: 4;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary-light));
  transform: scaleX(0); transform-origin: inline-end;
  transition: transform .55s cubic-bezier(.16,1,.3,1);
}
.course-card-v2:hover {
  transform: translateY(-10px) !important;
  box-shadow: 0 30px 60px rgba(11,45,66,.2) !important;
  border-color: rgba(223,201,129,.5) !important;
}
.course-card-v2:hover::before { transform: scaleX(1); transform-origin: inline-start; }

.card-v2-image { height: 210px !important; }
.card-v2-image::after {
  background: linear-gradient(to top, rgba(7,31,44,.82) 0%, rgba(7,31,44,.15) 46%, transparent 72%) !important;
}
/* diagonal shine sweep on hover */
.card-v2-image::before {
  content: ""; position: absolute; top: 0; inset-inline-start: -160%; width: 70%; height: 100%;
  transform: skewX(-18deg); z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  transition: inset-inline-start .85s ease;
}
.course-card-v2:hover .card-v2-image::before { inset-inline-start: 160%; }
.course-card-v2:hover .card-v2-image img { transform: scale(1.09) !important; }

.card-v2-badges { bottom: 14px !important; inset-inline: 14px !important; }
.badge-format {
  background: rgba(255,255,255,.16) !important; color: #fff !important;
  border: 1px solid rgba(255,255,255,.28) !important;
  backdrop-filter: blur(8px) !important; -webkit-backdrop-filter: blur(8px) !important;
  letter-spacing: .02em !important; box-shadow: 0 4px 14px rgba(0,0,0,.2) !important;
}
.badge-cme {
  background: linear-gradient(135deg, #E6D7A8, var(--accent)) !important;
  color: #4E3F0E !important; border: 0 !important;
  box-shadow: 0 6px 18px rgba(223,201,129,.5) !important;
}

.card-v2-body { padding: 22px 22px 24px !important; }
.card-v2-specialty {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent-dark) !important; letter-spacing: .08em !important; font-size: 11.5px !important;
}
.card-v2-specialty::before {
  content: ""; width: 16px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
[data-theme="dark"] .card-v2-specialty { color: var(--accent) !important; }
.card-v2-title {
  font-size: 18.5px !important; line-height: 1.5 !important; letter-spacing: -.005em;
  transition: color .3s ease;
}
.course-card-v2:hover .card-v2-title { color: var(--primary) !important; }
[data-theme="dark"] .course-card-v2:hover .card-v2-title { color: var(--accent) !important; }

.card-v2-meta {
  gap: 10px !important; padding-bottom: 18px !important;
  border-bottom: 1px solid var(--line) !important;
}
.meta-item {
  gap: 8px !important; font-size: 12.5px !important;
  padding: 7px 12px; border-radius: 10px;
  background: var(--bg-soft); border: 1px solid var(--line);
}
.meta-item svg { color: var(--primary) !important; opacity: .9; }
[data-theme="dark"] .meta-item svg { color: var(--accent) !important; }

.card-v2-footer { margin-top: 20px !important; gap: 12px; }
.price-val { font-size: 24px !important; color: var(--primary) !important; }
[data-theme="dark"] .price-val { color: var(--accent) !important; }
.card-v2-price::before {
  content: attr(data-label);
}
.card-v2-actions .btn-icon {
  width: 42px !important; height: 42px !important;
  transition: transform .4s cubic-bezier(.16,1,.3,1), background .3s, color .3s, border-color .3s !important;
}
.card-v2-actions .btn-icon:hover { transform: translateY(-2px) rotate(-6deg); }
.card-v2-actions .btn-primary {
  position: relative; overflow: hidden;
  border-radius: 999px !important;
  box-shadow: 0 8px 20px rgba(11,45,66,.26) !important;
}
.card-v2-actions .btn-primary::after {
  content: ""; position: absolute; top: 0; inset-inline-start: -130%;
  width: 55%; height: 100%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  transition: inset-inline-start .7s ease;
}
.card-v2-actions .btn-primary:hover::after { inset-inline-start: 150%; }

/* ── Entrance stagger for cards (uses existing .sr reveal too) ── */
.courses-grid-v2 .course-card-v2 { will-change: transform; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .courses-hero-stats { gap: 10px; }
  .chero-stat { flex: 1 1 46%; }
  .courses-toolbar { top: 74px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .courses-hero-orb, .course-card-v2, .course-card-v2::before,
  .card-v2-image::before, .card-v2-actions .btn-primary::after,
  .card-v2-image img { transition: none !important; animation: none !important; }
}


/* ============================================================
   EVX · EVENTS & CONFERENCES · merged animated sector 2026
   Value proposition + portfolio in one section, photo slots.
   ============================================================ */
.evx {
  --p:#0272B4; --pd:#0B2D42; --pl:#0CA2E2; --gold:#DFC981; --goldD:#E3B31C; --goldHi:#E6D7A8;
  --plum-ink:#0B2D42; --plum-deep:#071F2C;
  position: relative; isolation: isolate; overflow: clip;
  padding: clamp(64px, 9vw, 116px) 0;
  background: var(--bg-soft);
}
.evx::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .6;
  background-image: radial-gradient(rgba(11,45,66,.05) 1px, transparent 1.4px); background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
}
.evx-orb { position: absolute; border-radius: 50%; filter: blur(10px); z-index: 0; pointer-events: none; will-change: transform; }
.evx-orb.o1 { width: 480px; height: 480px; top: -180px; inset-inline-end: -120px; background: radial-gradient(circle, rgba(223,201,129,.22), transparent 68%); animation: evxDrift 28s ease-in-out infinite; }
.evx-orb.o2 { width: 420px; height: 420px; bottom: -180px; inset-inline-start: -120px; background: radial-gradient(circle, rgba(12,162,226,.18), transparent 66%); animation: evxDrift 34s ease-in-out infinite reverse; }
@keyframes evxDrift { 0%,100%{ transform: translate3d(0,0,0) scale(1);} 50%{ transform: translate3d(-30px,40px,0) scale(1.12);} }
.evx .container { position: relative; z-index: 2; }

/* reveal */
.evx [data-rise] { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.evx [data-rise].is-vis { opacity: 1; transform: none; }
.evx [data-rise][data-d="1"]{ transition-delay:.08s; } .evx [data-rise][data-d="2"]{ transition-delay:.16s; }
.evx [data-rise][data-d="3"]{ transition-delay:.24s; } .evx [data-rise][data-d="4"]{ transition-delay:.32s; }

.evx-head { max-width: 720px; margin: 0 auto clamp(38px,5vw,56px); text-align: center; }
.evx-badge { display:inline-flex; align-items:center; gap:8px; padding:7px 15px; border-radius:999px; margin-bottom:16px;
  font-size:12px; font-weight:800; letter-spacing:.04em; color:var(--p); background:rgba(11,45,66,.08); border:1px solid rgba(11,45,66,.14); }
.evx-badge::before{ content:""; width:6px; height:6px; border-radius:50%; background:var(--gold); }
[data-theme="dark"] .evx-badge{ color:var(--gold); background:rgba(223,201,129,.1); border-color:rgba(223,201,129,.2); }
.evx-h2 { font-weight:800; color:var(--ink); font-size:clamp(1.7rem,3.6vw,2.7rem); line-height:1.32; letter-spacing:-.01em; margin:0 0 14px; }
.evx-h2 em{ font-style:normal; color:var(--p); } [data-theme="dark"] .evx-h2 em{ color:var(--gold); }
.evx-sub { font-size:clamp(14.5px,1.5vw,16.5px); line-height:1.9; color:var(--muted); margin:0 auto; max-width:60ch; }

/* ── TOP: intro panel + hero photo ── */
.evx-top { display:grid; grid-template-columns:1.02fr .98fr; gap:30px; align-items:stretch; margin-bottom: clamp(48px,6vw,74px); }
.evx-intro {
  position:relative; overflow:hidden; border-radius:26px; padding:clamp(30px,3.4vw,44px); color:rgba(255,255,255,.82);
  background:radial-gradient(520px 300px at 88% -10%, rgba(223,201,129,.2), transparent 60%), linear-gradient(155deg,#0B2D42,var(--plum-deep));
}
.evx-intro::after{ content:""; position:absolute; inset:0; opacity:.5; pointer-events:none;
  background-image:radial-gradient(rgba(255,255,255,.05) 1px, transparent 1.4px); background-size:22px 22px;
  -webkit-mask-image:radial-gradient(70% 70% at 80% 0%, #000, transparent); }
.evx-intro > *{ position:relative; z-index:1; }
.evx-eyebrow{ display:inline-flex; align-items:center; gap:8px; font-size:12px; font-weight:800; letter-spacing:.03em; color:var(--goldHi); margin-bottom:14px; }
.evx-eyebrow::before{ content:""; width:20px; height:2px; border-radius:2px; background:linear-gradient(90deg,var(--gold),transparent); }
.evx-intro h3{ color:#fff; font-size:clamp(1.35rem,2.5vw,1.9rem); font-weight:800; line-height:1.3; margin:0 0 14px; }
.evx-intro p{ font-size:14.5px; line-height:1.9; color:rgba(255,255,255,.74); margin:0 0 22px; max-width:44ch; }
.evx-feats{ list-style:none; margin:0 0 26px; padding:0; display:flex; flex-direction:column; gap:12px; }
.evx-feat{ display:flex; align-items:center; gap:13px; font-size:14px; font-weight:600; color:#fff;
  padding:11px 14px; border-radius:14px; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.1);
  transition:transform .45s cubic-bezier(.16,1,.3,1), background .3s, border-color .3s; }
.evx-feat:hover{ transform:translateX(-5px); background:rgba(223,201,129,.1); border-color:rgba(223,201,129,.34); }
html[lang="en"] .evx-feat:hover{ transform:translateX(5px); }
.evx-feat-ic{ flex:none; width:38px; height:38px; border-radius:11px; display:grid; place-items:center; color:var(--goldHi);
  background:rgba(223,201,129,.14); border:1px solid rgba(223,201,129,.22); }
.evx-feat-ic svg{ width:19px; height:19px; }
.evx-actions{ display:flex; flex-wrap:wrap; gap:12px; }
.evx-btn{ position:relative; overflow:hidden; display:inline-flex; align-items:center; gap:9px; padding:14px 26px; border-radius:999px;
  font-weight:800; font-size:14.5px; text-decoration:none; transition:transform .5s cubic-bezier(.16,1,.3,1), box-shadow .5s; }
.evx-btn svg{ width:18px; height:18px; }
.evx-btn-gold{ color:#4E3F0E; background:linear-gradient(135deg,var(--goldHi),var(--gold)); box-shadow:0 12px 28px rgba(223,201,129,.32); }
.evx-btn-gold::before{ content:""; position:absolute; top:0; inset-inline-start:-120%; width:60%; height:100%; transform:skewX(-20deg);
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.55),transparent); transition:inset-inline-start .7s ease; }
.evx-btn-gold:hover{ transform:translateY(-3px); box-shadow:0 18px 40px rgba(223,201,129,.42); }
.evx-btn-gold:hover::before{ inset-inline-start:130%; }
.evx-btn-ghost{ color:#fff; border:1px solid rgba(255,255,255,.3); background:rgba(255,255,255,.05); }
.evx-btn-ghost:hover{ transform:translateY(-3px); border-color:var(--gold); background:rgba(223,201,129,.12); }

/* ── PHOTO SLOTS ── */
.evx-photo{ position:relative; overflow:hidden; border-radius:22px; border:1px solid var(--line);
  background:linear-gradient(150deg, rgba(11,45,66,.1), rgba(223,201,129,.08)); box-shadow:0 16px 44px rgba(11,45,66,.1); }
.evx-hero-photo{ min-height:100%; aspect-ratio:4/3.4; }
.evx-ph{ position:absolute; inset:0; z-index:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; text-align:center; }
.evx-ph::before{ content:""; position:absolute; inset:0; opacity:.5;
  background-image:repeating-linear-gradient(45deg, rgba(11,45,66,.05) 0 12px, transparent 12px 24px); }
.evx-ph-ic{ position:relative; width:64px; height:64px; border-radius:18px; display:grid; place-items:center; color:#fff;
  background:linear-gradient(135deg,var(--p),var(--pl)); box-shadow:0 12px 26px rgba(11,45,66,.3); }
.evx-ph-ic::after{ content:""; position:absolute; inset:-6px; border-radius:22px; border:1.5px dashed rgba(11,45,66,.3); animation:evxSpinSlow 18s linear infinite; }
@keyframes evxSpinSlow{ to{ transform:rotate(360deg);} }
.evx-ph-ic svg{ width:30px; height:30px; }
.evx-ph span{ position:relative; font-size:13px; font-weight:700; color:var(--p); }
.evx-ph small{ position:relative; font-size:11px; color:var(--muted); }
[data-theme="dark"] .evx-ph span{ color:var(--goldHi); }
/* when a real photo is dropped in with class evx-img it covers the placeholder */
.evx-img{ position:absolute; inset:0; z-index:2; width:100%; height:100%; object-fit:cover; }

/* floating stat badge on hero photo */
.evx-float{ position:absolute; z-index:3; inset-inline-start:20px; bottom:20px; display:flex; align-items:center; gap:12px;
  padding:12px 16px; border-radius:16px; background:rgba(7,31,44,.86); backdrop-filter:blur(8px);
  border:1px solid rgba(223,201,129,.28); box-shadow:0 14px 30px rgba(0,0,0,.3); animation:evxFloat 5s ease-in-out infinite; }
@keyframes evxFloat{ 0%,100%{ transform:translateY(0);} 50%{ transform:translateY(-7px);} }
.evx-float-n{ font-size:22px; font-weight:800; color:#fff; line-height:1; }
.evx-float-n i{ font-style:normal; color:var(--gold); }
.evx-float span{ font-size:11.5px; color:rgba(255,255,255,.66); }

/* ── PORTFOLIO ── */
.evx-pf-head{ text-align:center; margin-bottom:30px; }
.evx-pf-head .k{ display:inline-flex; align-items:center; gap:9px; font-size:12.5px; font-weight:800; color:var(--goldD); letter-spacing:.03em; }
.evx-pf-head .k::before, .evx-pf-head .k::after{ content:""; width:26px; height:2px; border-radius:2px; background:linear-gradient(90deg, transparent, var(--gold)); }
.evx-pf-head .k::after{ background:linear-gradient(90deg, var(--gold), transparent); }
.evx-pf-head h3{ font-size:clamp(1.3rem,2.4vw,1.8rem); font-weight:800; color:var(--ink); margin:10px 0 0; }
.evx-cards{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.evx-card{ border-radius:22px; overflow:hidden; background:var(--bg-card); border:1px solid var(--line);
  box-shadow:0 12px 34px rgba(11,45,66,.07); transition:transform .55s cubic-bezier(.16,1,.3,1), box-shadow .55s, border-color .4s; }
.evx-card:hover{ transform:translateY(-10px); box-shadow:0 28px 56px rgba(11,45,66,.18); border-color:rgba(223,201,129,.5); }
.evx-card-photo{ position:relative; height:210px; border-radius:0; border:0; }
.evx-card-photo .evx-ph-ic{ width:52px; height:52px; border-radius:15px; }
.evx-card-photo .evx-ph-ic svg{ width:24px; height:24px; }
.evx-card-scrim{ position:absolute; inset:0; z-index:2; pointer-events:none;
  background:linear-gradient(to top, rgba(7,31,44,.5), transparent 55%); opacity:0; transition:opacity .5s; }
.evx-card:hover .evx-card-scrim{ opacity:1; }
.evx-year{ position:absolute; z-index:4; top:14px; inset-inline-start:14px; font-size:12px; font-weight:800; color:#4E3F0E;
  background:linear-gradient(135deg,var(--goldHi),var(--gold)); padding:5px 13px; border-radius:100px; box-shadow:0 6px 16px rgba(223,201,129,.4); }
.evx-card-body{ padding:20px 20px 24px; }
.evx-tag{ display:inline-flex; align-items:center; gap:6px; font-size:11px; font-weight:800; letter-spacing:.04em; color:var(--goldD);
  background:rgba(223,201,129,.12); padding:5px 11px; border-radius:100px; margin-bottom:12px; }
[data-theme="dark"] .evx-tag{ color:var(--gold); }
.evx-card-body h4{ font-size:17px; font-weight:800; color:var(--ink); line-height:1.4; margin:0 0 9px; transition:color .3s; }
.evx-card:hover .evx-card-body h4{ color:var(--p); }
[data-theme="dark"] .evx-card:hover .evx-card-body h4{ color:var(--gold); }
.evx-card-body p{ font-size:13.3px; line-height:1.75; color:var(--muted); margin:0; }

/* ── Responsive ── */
@media (max-width: 900px){
  .evx-top{ grid-template-columns:1fr; }
  .evx-hero-photo{ aspect-ratio:16/10; }
  .evx-cards{ grid-template-columns:1fr 1fr; }
}
@media (max-width: 600px){ .evx-cards{ grid-template-columns:1fr; } .evx-actions .evx-btn{ flex:1; justify-content:center; } }
@media (prefers-reduced-motion: reduce){
  .evx-orb,.evx-ph-ic::after,.evx-float,.evx-btn-gold::before{ animation:none !important; }
  .evx [data-rise]{ opacity:1 !important; transform:none !important; }
}


/* ============================================================
   TVX · TESTIMONIALS CAROUSEL 2026 · "قصص نجاح"
   Single-stage slider · arrows · dots · autoplay · monograms.
   ============================================================ */
.tvx {
  --p:#0272B4; --pd:#0B2D42; --pl:#0CA2E2; --gold:#DFC981; --goldD:#E3B31C; --goldHi:#E6D7A8;
  --plum-ink:#0B2D42; --plum-deep:#071F2C;
  position: relative; isolation: isolate; overflow: clip;
  padding: clamp(64px, 9vw, 116px) 0;
  background:
    radial-gradient(760px 420px at 84% -8%, rgba(223,201,129,.16), transparent 60%),
    radial-gradient(680px 400px at 6% 104%, rgba(12,162,226,.14), transparent 62%),
    linear-gradient(160deg, #0B2D42 0%, #0B2D42 52%, var(--plum-deep) 100%);
  color: rgba(255,255,255,.8);
}
.tvx::before {
  content:""; position:absolute; inset:0; z-index:0; opacity:.5; pointer-events:none;
  background-image:radial-gradient(rgba(255,255,255,.05) 1px, transparent 1.4px); background-size:24px 24px;
  -webkit-mask-image:linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
          mask-image:linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
}
.tvx-orb { position:absolute; border-radius:50%; filter:blur(10px); z-index:0; pointer-events:none; mix-blend-mode:screen; will-change:transform; }
.tvx-orb.o1{ width:460px; height:460px; top:-160px; inset-inline-end:-100px; background:radial-gradient(circle, rgba(223,201,129,.4), transparent 68%); animation:tvxDrift 27s ease-in-out infinite; }
.tvx-orb.o2{ width:400px; height:400px; bottom:-160px; inset-inline-start:-90px; background:radial-gradient(circle, rgba(63,182,236,.34), transparent 66%); animation:tvxDrift 33s ease-in-out infinite reverse; }
@keyframes tvxDrift { 0%,100%{ transform:translate3d(0,0,0) scale(1);} 50%{ transform:translate3d(-28px,38px,0) scale(1.12);} }
.tvx .container { position:relative; z-index:2; max-width:1000px; }

.tvx [data-rise]{ opacity:0; transform:translateY(24px); transition:opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.tvx [data-rise].is-vis{ opacity:1; transform:none; }

.tvx-head{ text-align:center; max-width:680px; margin:0 auto clamp(34px,4vw,50px); }
.tvx-badge{ display:inline-flex; align-items:center; gap:8px; padding:7px 15px; border-radius:999px; margin-bottom:16px;
  font-size:12px; font-weight:800; letter-spacing:.04em; color:var(--goldHi); background:rgba(223,201,129,.12); border:1px solid rgba(223,201,129,.28); }
.tvx-badge::before{ content:""; width:6px; height:6px; border-radius:50%; background:var(--gold); }
.tvx-head h2{ color:#fff; font-weight:800; font-size:clamp(1.7rem,3.6vw,2.6rem); line-height:1.32; letter-spacing:-.01em; margin:0 0 12px; }
.tvx-head h2 em{ font-style:normal; color:var(--gold); }
.tvx-head p{ font-size:clamp(14.5px,1.5vw,16.5px); line-height:1.9; color:rgba(255,255,255,.68); margin:0; }

/* Carousel shell */
.tvx-carousel{ position:relative; }
.tvx-viewport{ overflow:hidden; border-radius:26px; }
.tvx-track{ display:flex; will-change:transform; transition:transform .7s cubic-bezier(.16,1,.3,1); }
.tvx-slide{ flex:0 0 100%; min-width:100%; padding:2px; }

.tvx-card{
  position:relative; overflow:hidden; height:100%;
  padding:clamp(30px,4vw,52px);
  border-radius:24px; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.12);
  backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
}
.tvx-card::before{ content:""; position:absolute; top:0; inset-inline:0; height:3px; background:linear-gradient(90deg,var(--gold),var(--pl)); }
.tvx-quote{ font-family:'Cairo', system-ui, sans-serif; font-size:clamp(4rem,8vw,6.5rem); line-height:.5; color:var(--gold); opacity:.5; height:.5em; display:block; margin-bottom:14px; }
.tvx-stars{ color:var(--gold); letter-spacing:3px; font-size:15px; margin-bottom:16px; }
.tvx-body{ font-family:'Cairo', system-ui, sans-serif; font-weight:600; color:#fff;
  font-size:clamp(1.15rem,2.4vw,1.75rem); line-height:1.7; margin:0 0 26px; letter-spacing:-.003em; }
.tvx-author{ display:flex; align-items:center; gap:15px; }
.tvx-mono{ flex:none; width:56px; height:56px; border-radius:16px; display:grid; place-items:center;
  font-family:'Cairo', system-ui, sans-serif; font-weight:700; font-size:1.4rem; color:#fff;
  background:linear-gradient(135deg,var(--p),var(--pd)); box-shadow:0 10px 22px rgba(0,0,0,.3); }
.tvx-mono.gold{ background:linear-gradient(135deg,var(--goldHi),var(--goldD)); color:#4E3F0E; }
.tvx-mono.teal{ background:linear-gradient(135deg,var(--pl),var(--p)); }
.tvx-who strong{ display:block; font-size:15.5px; font-weight:800; color:#fff; }
.tvx-who span{ display:block; font-size:12.5px; color:rgba(255,255,255,.6); margin-top:2px; }
.tvx-who .vf{ display:inline-flex; align-items:center; gap:5px; margin-top:7px; font-size:11px; font-weight:700; color:var(--goldHi);
  background:rgba(223,201,129,.12); border:1px solid rgba(223,201,129,.24); padding:3px 10px; border-radius:100px; }
.tvx-who .vf svg{ width:12px; height:12px; }

/* Controls */
.tvx-controls{ display:flex; align-items:center; justify-content:center; gap:18px; margin-top:26px; }
.tvx-arrow{ width:48px; height:48px; flex:none; border-radius:50%; display:grid; place-items:center; cursor:pointer;
  color:#fff; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.16);
  transition:transform .45s cubic-bezier(.16,1,.3,1), background .3s, border-color .3s; }
.tvx-arrow:hover{ transform:translateY(-3px); color:#4E3F0E; background:linear-gradient(135deg,var(--goldHi),var(--gold)); border-color:transparent; box-shadow:0 12px 24px rgba(223,201,129,.32); }
.tvx-arrow svg{ width:20px; height:20px; }
.tvx-dots{ display:flex; align-items:center; gap:9px; }
.tvx-dot{ width:9px; height:9px; border-radius:50%; cursor:pointer; border:0; padding:0;
  background:rgba(255,255,255,.24); transition:width .4s cubic-bezier(.16,1,.3,1), background .3s; }
.tvx-dot.active{ width:30px; border-radius:100px; background:linear-gradient(90deg,var(--goldHi),var(--gold)); }

/* Autoplay progress line */
.tvx-progress{ position:absolute; bottom:0; inset-inline-start:0; height:3px; width:100%; overflow:hidden; border-radius:0 0 24px 24px; z-index:3; }
.tvx-progress i{ display:block; height:100%; width:100%; transform-origin:right; transform:scaleX(0);
  background:linear-gradient(90deg,var(--gold),var(--goldHi)); }
html[dir="ltr"] .tvx-progress i{ transform-origin:left; }
.tvx-carousel.playing .tvx-progress i{ animation:tvxFill 6s linear forwards; }
@keyframes tvxFill{ from{ transform:scaleX(0);} to{ transform:scaleX(1);} }

@media (max-width:600px){ .tvx-arrow{ width:42px; height:42px; } }
@media (prefers-reduced-motion: reduce){
  .tvx-orb{ animation:none !important; }
  .tvx-track{ transition:none !important; }
  .tvx-carousel.playing .tvx-progress i{ animation:none !important; }
  .tvx [data-rise]{ opacity:1 !important; transform:none !important; }
}

/* ============================================================
   ARABIC TRACKING RESET
   Arabic is a connected script — positive letter-spacing pulls the
   joins apart and the word stops reading as one shape. Every label,
   chip and eyebrow below was tracked for Latin. Neutralise them while
   the interface is Arabic; the English build keeps its tracking.
   ============================================================ */
html[lang="ar"] :is(
  .section-badge, .hero-badge, .finder-label, .stat-label-v2, .filter-title,
  .course-card-tag, .course-card-cme, .course-card-specialty, .badge-format,
  .card-v2-specialty, .about-hero-tag, .founder-eyebrow, .guide-hero-tag,
  .guide-toc-title, .vision-ribbon, .verify-input, .btn
) {
  letter-spacing: normal;
}

/* ============================================================
   FIGURES BAND (FGS)
   Replaces the four stat cards. No card, no icon tile, no gradient
   numeral. An asymmetric band: a lead sentence set against the row
   of figures, hairline-separated. The numerals carry it.
   ============================================================ */
.fgs {
  padding: clamp(52px, 6vw, 84px) 0;
  background: var(--bg);
  border-block: 1px solid var(--line);
}
.fgs-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 2fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.fgs-lead {
  margin: 0;
  font-size: var(--t-lead);
  line-height: 1.75;
  color: var(--muted);
  max-width: 30ch;
}
.fgs-lead strong { display: block; color: var(--ink); font-weight: 800; }

.fgs-list {
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.fgs-item {
  padding-inline: clamp(14px, 2vw, 28px);
  border-inline-start: 1px solid var(--line);
}
.fgs-item:first-child { border-inline-start: 0; padding-inline-start: 0; }

.fgs-item dt {
  /* digits + suffix are one LTR numeric expression ("3500+"), even in RTL */
  direction: ltr;
  display: flex; align-items: baseline; gap: 2px;
  justify-content: flex-start;
  font-size: clamp(38px, 4.4vw, 58px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.fgs-item dt i {
  font-style: normal;
  font-size: .46em;
  font-weight: 800;
  color: var(--accent-dark);
}
.fgs-item dd {
  margin: 12px 0 0;
  font-size: var(--t-meta);
  font-weight: 600;
  line-height: 1.6;
  color: var(--muted);
}

@media (max-width: 900px) {
  .fgs-inner { grid-template-columns: 1fr; gap: 30px; }
  .fgs-lead { max-width: 46ch; }
  /* two-up rather than a single column — the figures stay comparable */
  .fgs-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .fgs-item:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
}

/* ============================================================
   STEPS RAIL (STX)
   Replaces the four identical step cards. Header sits beside the rail
   instead of centred above it; the steps become a connected sequence
   so the numbers read as an order, not as four equal boxes.
   ============================================================ */
.stx-inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.9fr);
  gap: clamp(34px, 5vw, 76px);
  align-items: start;
}
.stx-head { padding-top: 6px; }
.stx-eyebrow {
  display: inline-block;
  font-size: var(--t-meta);
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 14px;
}
.stx-head h2 {
  margin: 0;
  font-size: var(--t-h2);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: #fff;
}
.stx-head p {
  margin: 14px 0 0;
  font-size: var(--t-lead);
  line-height: 1.75;
  color: rgba(255,255,255,.66);
  max-width: 34ch;
}
.stx-cta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 26px;
  font-size: 14.5px; font-weight: 700;
  color: var(--accent-on-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(226,202,133,.35);
  padding-bottom: 4px;
  transition: gap .4s cubic-bezier(.16,1,.3,1), border-color .3s;
}
.stx-cta svg { width: 15px; height: 15px; }
.stx-cta:hover { gap: 14px; border-bottom-color: var(--accent-on-dark); }

.stx-rail {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 0;
}
.stx-step {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 20px;
  padding: 22px 0 26px;
  border-top: 1px solid rgba(255,255,255,.10);
}
.stx-step:first-child { border-top: 0; padding-top: 0; }
.stx-n {
  grid-row: span 2;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 16px; font-weight: 800;
  color: var(--accent-on-dark);
  border: 1px solid rgba(226,202,133,.32);
  background: rgba(226,202,133,.07);
  font-variant-numeric: tabular-nums;
}
.stx-step h3 {
  margin: 10px 0 0;
  font-size: var(--t-h3);
  font-weight: 800;
  line-height: 1.4;
  color: #fff;
}
.stx-step p {
  grid-column: 2;
  margin: 7px 0 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: rgba(255,255,255,.62);
}

@media (max-width: 900px) {
  .stx-inner { grid-template-columns: 1fr; gap: 34px; }
  .stx-head p { max-width: 52ch; }
}
@media (max-width: 560px) {
  .stx-step { grid-template-columns: 40px minmax(0, 1fr); gap: 15px; }
  .stx-n { width: 40px; height: 40px; font-size: 15px; }
}

/* Split section header — heading held to the start edge, supporting copy
   set against it. Breaks the centred-stack cadence without a redesign. */
.section-header-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 64px);
  align-items: end;
  text-align: start;
}
.section-header-split .section-title { margin-bottom: 0; }
.section-header-split .section-desc { margin: 0; max-width: 50ch; }
@media (max-width: 860px) {
  .section-header-split { grid-template-columns: 1fr; gap: 16px; align-items: start; }
}

/* ============================================================
   MOBILE DENSITY · 2-UP WHERE THE CONTENT ALLOWS
   Collapsing every grid to a single column pushes the page to an
   unreadable length and makes comparable items (credentials, figures,
   values) impossible to scan side by side. Anything whose card is
   compact enough goes two-up instead. Course cards, forms, hero splits
   and layout shells stay single-column — two-up genuinely breaks them.
   ============================================================ */
@media (max-width: 620px) {

  /* Accreditation cards — plate stacks over a short label */
  .acx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .acx-card { padding: 16px 14px 0; }
  .acx-plate { height: 74px; padding: 8px; }
  .acx-plate img { max-height: 52px; }
  .acx-body { padding: 14px 0 12px; }
  .acx-body h3 { font-size: 13.5px; line-height: 1.45; }
  .acx-role { font-size: 11.5px; }
  .acx-num {
    margin: 0 -14px; padding: 10px 14px;
    flex-direction: column; align-items: flex-start; gap: 3px;
  }
  .acx-num span { font-size: 10.5px; }
  .acx-num b { font-size: 13px; }

  /* Footer credential badges — restack vertically so two fit per row */
  .lmf-badges { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .lmf-badge { flex-direction: column; align-items: flex-start; gap: 11px; padding: 14px 13px; }
  .lmf-badge-plate { width: 100%; height: 62px; }
  .lmf-badge-plate img { max-height: 46px; }
  .lmf-badge-txt strong { font-size: 12.5px; }
  .lmf-badge-num { font-size: 11.5px; }

  /* Footer link columns — the brand block keeps the full width */
  .lmf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 22px; }
  .lmf-brand { grid-column: 1 / -1; }

  /* Events, guides, values, policies: compact cards, all fine two-up */
  .evx-cards,
  .guide-cards-grid,
  .guide-toc-list,
  .about-values,
  .about-features-grid,
  .policies-list,
  .abx-ethos, .abx-pillars, .abx-accred {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
}

@media (max-width: 400px) {
  /* Below this the two-up cards genuinely stop fitting */
  .acx-grid,
  .lmf-badges,
  .evx-cards,
  .guide-cards-grid,
  .about-values,
  .about-features-grid,
  .policies-list,
  .abx-ethos, .abx-pillars, .abx-accred {
    grid-template-columns: 1fr !important;
  }
  .lmf-badge { flex-direction: row; align-items: center; }
  .lmf-badge-plate { width: 94px; height: 68px; }
}

/* Hero scrim on small screens.
   The desktop scrim is a side gradient — dark under the text column, clear
   over the subject. On mobile the text spans the full width, so it lands on
   the bright part of the photo. Swap to a full-frame scrim below 760px. */
@media (max-width: 760px) {
  .hero-bg-overlay::after,
  body[dir="rtl"] .hero-bg-overlay::after,
  html[lang="ar"] .hero-bg-overlay::after {
    background:
      linear-gradient(180deg, rgba(7,31,44,.42) 0%, rgba(7,31,44,.30) 38%, rgba(7,31,44,.80) 100%),
      linear-gradient(-90deg, rgba(7,31,44,.55) 0%, rgba(7,31,44,.34) 100%);
  }
}
