/* ════════════════════════════════════════════════════════════════════
   EXCELLIUM — CINEMATIC EDITION  v26.04.26
   ─────────────────────────────────────────────────────────────────────
   Aesthetic        : Dark Luxury Editorial · Awwwards-grade
   Palette          : #1C2230 (primary) · #D9B573 (accent) · B / W
   Type             : Cormorant Garamond (display) · Plus Jakarta Sans (body)
   Grid             : Strict 8pt spacing system
   Motion           : Cinematic — staggered, eased, GPU-only
   IMPORTANT        : Every selector required by JS / backend is preserved.
                      Only visual & motion layers reauthored.
   ════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── 0. RESET ──────────────────────────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
*::selection { background: var(--accent); color: var(--ink); }

/* ── 1. DESIGN TOKENS ──────────────────────────────────────────────── */
:root {
  /* — Raw palette — */
  --ink:           #0E121C;          /* deepest near-black */
  --ink-2:         #131825;          /* surface 1 */
  --ink-3:         #1C2230;          /* PRIMARY — surface 2 */
  --ink-4:         #242B3A;          /* surface 3 — elevated */
  --ink-5:         #2E3648;          /* hover surface */
  --paper:         #FAFAF7;          /* warm off-white */
  --paper-2:       #F2F0EB;          /* tinted paper */
  --paper-3:       #E8E5DD;          /* muted paper */
  --bone:          #D8D4CB;          /* border on paper */
  --gold-1:        #D9B573;          /* PRIMARY ACCENT */
  --gold-2:        #C99E55;          /* deep gold */
  --gold-3:        #F0D89B;          /* light gold (highlights) */
  --gold-soft:     rgba(217,181,115,0.14);
  --gold-glow:     rgba(217,181,115,0.32);

  /* — Legacy compatibility (DO NOT REMOVE — referenced by inline JS styles) — */
  --black:         var(--ink-3);
  --black-2:       var(--ink-2);
  --white:         #FFFFFF;
  --off-white:     var(--paper);
  --gold:          var(--gold-1);
  --gold-dark:     var(--gold-2);
  --gold-light:    var(--gold-3);
  --silver:        rgba(255,255,255,0.78);
  --silver-dark:   rgba(255,255,255,0.55);
  --line:          rgba(255,255,255,0.10);
  --danger:        #C44545;
  --success:       #4F8A6A;
  --accent:        var(--gold-1);

  /* — Shadow stack (cinematic depth) — */
  --shadow-xs:     0 1px 2px rgba(0,0,0,0.18);
  --shadow-sm:     0 4px 12px rgba(0,0,0,0.22);
  --shadow-md:     0 12px 32px rgba(0,0,0,0.34);
  --shadow-lg:     0 28px 64px rgba(0,0,0,0.45);
  --shadow-xl:     0 48px 96px rgba(0,0,0,0.55);
  --shadow-glow:   0 0 0 1px var(--gold-soft), 0 8px 32px var(--gold-glow);
  --shadow-inset:  inset 0 1px 0 rgba(255,255,255,0.06);
  --soft-shadow:   var(--shadow-md);
  --soft-shadow-hover: var(--shadow-lg);

  /* — Radius — */
  --radius-xs:     6px;
  --radius-sm:     10px;
  --radius:        16px;
  --radius-lg:     22px;
  --radius-xl:     32px;
  --radius-full:   9999px;

  /* — Spacing (8pt grid) — */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-8: 32px; --s-10:40px; --s-12:48px; --s-16:64px;
  --s-20:80px; --s-24:96px; --s-32:128px; --s-40:160px;

  /* — Typography — */
  --f-display:   'Cormorant Garamond', 'Times New Roman', serif;
  --f-body:      'Plus Jakarta Sans', -apple-system, system-ui, sans-serif;
  --f-mono:      'JetBrains Mono', ui-monospace, monospace;

  --t-xs:        0.72rem;
  --t-sm:        0.84rem;
  --t-base:      1rem;
  --t-md:        1.15rem;
  --t-lg:        1.4rem;
  --t-xl:        1.85rem;
  --t-2xl:       2.45rem;
  --t-3xl:       3.4rem;
  --t-4xl:       4.6rem;
  --t-hero:      clamp(3rem, 7vw + 1rem, 6.4rem);

  /* — Motion (cinematic curves) — */
  --ease-out-cinema:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-cinema:   cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring:      cubic-bezier(0.34, 1.36, 0.64, 1);
  --ease-back:        cubic-bezier(0.68, -0.55, 0.27, 1.55);

  --d-fast:     180ms;
  --d-base:     320ms;
  --d-slow:     600ms;
  --d-cinema:   900ms;
  --d-epic:     1400ms;
  --transition: 0.32s var(--ease-out-cinema);

  /* — Layout — */
  --container:       1280px;
  --container-wide:  1440px;
  --container-narrow: 960px;

  /* — Surfaces — */
  --bg:           var(--ink-3);
  --bg-elev:      var(--ink-4);
  --bg-paper:     var(--paper);
  --fg:           #EFEDE7;
  --fg-muted:     rgba(239,237,231,0.62);
  --fg-faint:     rgba(239,237,231,0.38);
  --border:       rgba(255,255,255,0.09);
  --border-strong: rgba(255,255,255,0.18);
}

/* ── 2. BASE ───────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
html, body { background: var(--ink-3); }

body {
  font-family: var(--f-body);
  color: var(--fg);
  background: var(--ink-3);
  line-height: 1.65;
  font-weight: 400;
  font-feature-settings: "ss01","ss02","cv01","cv02";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.modal-open { overflow: hidden; }

/* — Subtle ambient grid (deep) — */
body::before {
  content:'';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(transparent 31px, rgba(255,255,255,0.018) 32px),
    linear-gradient(90deg, transparent 31px, rgba(255,255,255,0.018) 32px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}
body::after { display:none; } /* neutralise any legacy ::after grid */

/* — Document-wide warm vignette — */
.cinema-veil {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(60% 60% at 18% 0%,  rgba(217,181,115,0.10), transparent 60%),
    radial-gradient(70% 60% at 100% 100%, rgba(30,40,60,0.55), transparent 70%);
  mix-blend-mode: screen;
}

/* — Scroll progress hairline (added by JS) — */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; z-index: 2000;
  background: linear-gradient(90deg, transparent, var(--gold-1), var(--gold-3), var(--gold-1), transparent);
  background-size: 200% 100%;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 80ms linear;
  pointer-events: none;
}

/* — Typography — */
h1, h2, h3, h4, h5 {
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--paper);
  line-height: 1.05;
}
h1 { font-size: var(--t-hero); font-weight: 500; letter-spacing: -0.022em; }
h2 { font-size: clamp(2rem, 3.5vw + 0.5rem, var(--t-2xl)); }
h3 { font-size: var(--t-lg); font-weight: 600; }
h4 { font-size: var(--t-md); font-weight: 600; }
p  { color: var(--fg-muted); }

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; background: none; border: none; color: inherit; }
img, video { max-width: 100%; display: block; }
input, textarea, select, button { font: inherit; color: inherit; }

/* — Container — */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  position: relative;
  z-index: 1;
}

/* ── 3. NAVIGATION ─────────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  padding: var(--s-4) 0;
  background: linear-gradient(180deg, rgba(14,18,28,0.85), rgba(14,18,28,0.55));
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid transparent;
  isolation: isolate;
  transition: padding var(--d-base) var(--ease-out-cinema),
              background var(--d-base) var(--ease-out-cinema),
              border-color var(--d-base) var(--ease-out-cinema);
}
.navbar.navbar-scrolled {
  padding: var(--s-3) 0;
  background: rgba(14,18,28,0.92);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 rgba(217,181,115,0.10), 0 12px 32px rgba(0,0,0,0.35);
}
/* gold hairline at base of navbar — animates in on scroll */
.navbar::after {
  content:''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft) 20%, var(--gold-1) 50%, var(--gold-soft) 80%, transparent);
  transform: scaleX(0); transform-origin: center;
  transition: transform var(--d-cinema) var(--ease-out-cinema);
}
.navbar.navbar-scrolled::after { transform: scaleX(1); }

.navbar .container {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
}

.navbar-brand { display: flex; align-items: center; gap: var(--s-3); text-decoration: none; }
.navbar-logo {
  height: 96px; width: auto; object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(217,181,115,0.45)) drop-shadow(0 0 28px rgba(217,181,115,0.20));
  transition: transform var(--d-base) var(--ease-spring);
}
.navbar-brand:hover .navbar-logo { transform: rotate(-6deg) scale(1.06); }

.navbar-brand-text { display: flex; flex-direction: column; line-height: 1; gap: 4px; }
.navbar-brand-text .brand-main,
.navbar-brand-text #site-name {
  font-family: var(--f-body);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--paper);
  background: linear-gradient(120deg, var(--paper) 0%, var(--gold-3) 50%, var(--paper) 100%);
  background-size: 200% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background-position var(--d-cinema) var(--ease-out-cinema);
}
.navbar-brand:hover .brand-main,
.navbar-brand:hover #site-name { background-position: 100% 50%; }

.navbar-brand-text .brand-sub {
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  color: var(--gold-1);
  text-transform: uppercase;
  font-weight: 500;
}

.nav-links {
  display: flex; list-style: none; align-items: center;
  gap: clamp(var(--s-4), 2vw, var(--s-8));
}
.nav-links a {
  font-family: var(--f-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  position: relative;
  padding: 8px 0;
  transition: color var(--d-base) var(--ease-out-cinema);
}
.nav-links a::before {
  content:''; position: absolute; left: -10px; top: 50%; width: 4px; height: 4px;
  background: var(--gold-1); border-radius: 50%;
  transform: translate(-4px, -50%) scale(0);
  transition: transform var(--d-base) var(--ease-spring);
}
.nav-links a::after {
  content:''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px;
  background: linear-gradient(90deg, var(--gold-1), var(--gold-3));
  transition: width var(--d-slow) var(--ease-out-cinema);
}
.nav-links a:hover, .nav-links a.active { color: var(--paper); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active::before { transform: translate(-4px, -50%) scale(1); }

/* ── Primary-nav dropdown groups (Solutions, Explore) ── */
.nav-links .nav-item-group { position: relative; list-style: none; }
.nav-links .nav-group-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer;
  font-family: var(--f-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  padding: 8px 0;
  transition: color var(--d-base) var(--ease-out-cinema);
}
.nav-links .nav-group-toggle:hover,
.nav-links .nav-item-group.open > .nav-group-toggle,
.nav-links .nav-group-toggle.active { color: var(--paper); }
.nav-links .nav-group-caret {
  transition: transform var(--d-base) var(--ease-out-cinema);
  opacity: 0.7;
}
.nav-links .nav-item-group.open > .nav-group-toggle .nav-group-caret { transform: rotate(180deg); opacity: 1; }

/* Desktop dropdown panel — mirrors .nav-profile-dropdown styling for visual consistency */
.nav-submenu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 280px;
  background: var(--ink-4);
  border: 1px solid rgba(217,181,115,0.2);
  border-radius: var(--radius-lg);
  padding: var(--s-2) 0;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  z-index: 1500;
  animation: dropdownIn 0.15s var(--ease-out-cinema);
}
.nav-links .nav-item-group.open > .nav-submenu { display: block; }
.nav-submenu-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--s-3) var(--s-4);
  text-decoration: none;
  color: rgba(255,255,255,0.78);
  font-family: var(--f-body);
  text-transform: none;
  letter-spacing: 0;
  transition: background 0.15s, color 0.15s;
}
.nav-submenu-item:hover,
.nav-submenu-item:focus-visible {
  background: rgba(255,255,255,0.06);
  color: var(--paper);
  outline: none;
}
.nav-submenu-label {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--paper);
}
.nav-submenu-desc {
  font-size: 0.74rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.4;
}

/* RTL adjustment for the dropdown anchor */
[dir="rtl"] .nav-submenu { left: auto; right: 0; }

/* Reset .nav-links a underline animation inside the submenu (it doesn't apply) */
.nav-submenu .nav-submenu-item::before,
.nav-submenu .nav-submenu-item::after { display: none; }

.nav-actions { display: flex; align-items: center; gap: var(--s-3); }

.btn-lang {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--paper);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: all var(--d-base) var(--ease-out-cinema);
  position: relative;
  overflow: hidden;
}
.btn-lang::before {
  content:''; position: absolute; inset: 0;
  background: radial-gradient(circle at center, var(--gold-1), transparent 70%);
  opacity: 0; transition: opacity var(--d-slow) var(--ease-out-cinema);
}
.btn-lang:hover {
  border-color: var(--gold-1);
  color: var(--ink-3);
  background: var(--gold-1);
  letter-spacing: 0.28em;
}

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: transparent; border: 1px solid var(--border-strong);
  padding: 10px; border-radius: var(--radius-sm);
  transition: border-color var(--d-base) var(--ease-out-cinema);
}
.hamburger:hover { border-color: var(--gold-1); }
.hamburger span {
  display: block; width: 18px; height: 1.5px;
  background: var(--paper); border-radius: 2px;
  transition: all var(--d-base) var(--ease-out-cinema);
}
/* Hamburger → X when nav is open */
#nav-links.open ~ .nav-actions .hamburger span:nth-child(1),
.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
#nav-links.open ~ .nav-actions .hamburger span:nth-child(2),
.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0; transform: scaleX(0);
}
#nav-links.open ~ .nav-actions .hamburger span:nth-child(3),
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ── 4. BUTTONS — cinematic with ripple + glow ────────────────────── */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s-2);
  padding: 14px 32px;
  font-family: var(--f-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--d-base) var(--ease-spring),
              box-shadow var(--d-base) var(--ease-out-cinema),
              background var(--d-base) var(--ease-out-cinema),
              color var(--d-base) var(--ease-out-cinema),
              border-color var(--d-base) var(--ease-out-cinema),
              letter-spacing var(--d-slow) var(--ease-out-cinema);
}
.btn > * { position: relative; z-index: 2; }
.btn::before {                       /* ripple seed */
  content:''; position: absolute; left: var(--rx, 50%); top: var(--ry, 50%);
  width: 0; height: 0; border-radius: 50%;
  background: rgba(255,255,255,0.25);
  transform: translate(-50%, -50%);
  transition: width 0.6s var(--ease-out-cinema), height 0.6s var(--ease-out-cinema), opacity 0.8s var(--ease-out-cinema);
  z-index: 1;
  pointer-events: none;
}
.btn.btn-rippling::before { width: 360px; height: 360px; opacity: 0; }
.btn::after {                        /* sliding sheen */
  content:''; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform var(--d-cinema) var(--ease-out-cinema);
  z-index: 1;
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover  { transform: translateY(-2px); letter-spacing: 0.22em; }
.btn:active { transform: translateY(0); transition-duration: 80ms; }

.btn-primary, .btn-gold {
  background: linear-gradient(120deg, var(--gold-1) 0%, var(--gold-2) 100%);
  color: var(--ink-3);
  box-shadow: 0 8px 24px rgba(217,181,115,0.32), inset 0 1px 0 rgba(255,255,255,0.35);
}
.btn-primary:hover, .btn-gold:hover {
  background: linear-gradient(120deg, var(--gold-3) 0%, var(--gold-1) 100%);
  box-shadow: 0 16px 36px rgba(217,181,115,0.45), inset 0 1px 0 rgba(255,255,255,0.5);
}

.btn-ghost {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-strong);
  color: var(--paper);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: rgba(217,181,115,0.10);
  border-color: var(--gold-1);
  color: var(--gold-3);
  box-shadow: 0 0 0 1px var(--gold-soft), 0 12px 28px rgba(0,0,0,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--border-strong);
}
.btn-outline:hover {
  background: var(--gold-1);
  color: var(--ink-3);
  border-color: var(--gold-1);
  box-shadow: 0 8px 22px rgba(217,181,115,0.32);
}

/* paper-context buttons (cards on paper bg) */
.section-light .btn-outline,
.section-white .btn-outline,
.contact-form-light .btn-outline {
  color: var(--ink-3);
  border-color: var(--ink-3);
}
.section-light .btn-outline:hover,
.section-white .btn-outline:hover {
  background: var(--ink-3); color: var(--paper); border-color: var(--ink-3);
}

.btn-sm     { padding: 10px 22px; font-size: 0.7rem; letter-spacing: 0.2em; }
.btn-lg     { padding: 18px 42px; font-size: 0.85rem; letter-spacing: 0.2em; }
.btn-full   { width: 100%; }
.btn-danger { background: var(--danger); color: var(--paper); }

.page-hero-compact .btn-ghost {
  margin-top: var(--s-2); margin-bottom: var(--s-3);
}

/* ── 5. HERO — cinematic full bleed ───────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  padding: clamp(80px, 12vh, 140px) 0 var(--s-16);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
}
/* layered backgrounds — image with cinematic darkening + gold light ray */
.hero::before {
  content:''; position: absolute; inset: 0; z-index: -2;
  background: url('../../public/images/ex1.jpeg') center 30% / cover no-repeat;
  filter: contrast(1.05) saturate(0.85) brightness(0.55);
  transform: scale(1.05);
  animation: hero-zoom 20s var(--ease-out-cinema) forwards;
}
.hero::after {
  content:''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 18% 30%, rgba(217,181,115,0.18), transparent 60%),
    linear-gradient(180deg, rgba(14,18,28,0.55) 0%, rgba(14,18,28,0.85) 70%, var(--ink-3) 100%),
    linear-gradient(90deg, var(--ink) 0%, rgba(14,18,28,0.4) 50%, transparent 100%);
}

@keyframes hero-zoom {
  from { transform: scale(1.18); filter: contrast(1.05) saturate(0.85) brightness(0.45); }
  to   { transform: scale(1.05); filter: contrast(1.05) saturate(0.85) brightness(0.55); }
}

/* floating gold mote — pure CSS, abstract sparkle */
.hero .container::before {
  content:''; position: absolute; top: 18%; right: 8%;
  width: 280px; height: 280px;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 60%);
  filter: blur(40px);
  z-index: -1;
  animation: float-orb 14s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes float-orb {
  0%   { transform: translate(0,0) scale(1); opacity: 0.7; }
  100% { transform: translate(-40px,30px) scale(1.15); opacity: 1; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--s-16);
  align-items: center;
  min-height: calc(100vh - 200px);
  position: relative; z-index: 1;
}

/* hero copy — staggered entrance */
.hero-copy { position: relative; }
.hero-copy > * { opacity: 0; transform: translateY(40px); }
.hero-copy.hero-animated > *      { animation: cinema-rise var(--d-cinema) var(--ease-out-cinema) both; }
.hero-copy.hero-animated > *:nth-child(1) { animation-delay: 100ms; }
.hero-copy.hero-animated > *:nth-child(2) { animation-delay: 240ms; }
.hero-copy.hero-animated > *:nth-child(3) { animation-delay: 380ms; }
.hero-copy.hero-animated > *:nth-child(4) { animation-delay: 520ms; }
.hero-copy.hero-animated > *:nth-child(5) { animation-delay: 660ms; }

@keyframes cinema-rise {
  0%   { opacity: 0; transform: translateY(40px); filter: blur(8px); }
  60%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-3);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-1);
  margin-bottom: var(--s-6);
  font-weight: 500;
}
.eyebrow::before {
  content:''; width: 32px; height: 1px;
  background: linear-gradient(90deg, var(--gold-1), transparent);
  display: inline-block;
}

.hero h1 {
  color: var(--paper);
  margin-bottom: var(--s-6);
  font-weight: 400;
}
.hero h1 em, .hero h1 i {
  font-style: italic; font-weight: 400;
  color: var(--gold-1);
}

.lead {
  font-size: clamp(1.05rem, 1vw + 0.7rem, 1.35rem);
  font-weight: 300;
  color: rgba(255,255,255,0.78);
  margin-bottom: var(--s-8);
  max-width: 520px;
  line-height: 1.55;
}

.hero-actions {
  display: flex; gap: var(--s-3); flex-wrap: wrap;
  margin-bottom: var(--s-12);
}

.hero-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--s-2);
  padding-top: var(--s-8);
  border-top: 1px solid var(--border);
  position: relative;
}
.hero-metrics::before {
  content:''; position: absolute; top: -1px; left: 0;
  width: 80px; height: 1px; background: var(--gold-1);
  animation: hero-rule-grow 1.4s 1s var(--ease-out-cinema) both;
}
@keyframes hero-rule-grow { from { width: 0; } to { width: 80px; } }

.hero-metrics > div { padding-right: var(--s-4); }
.hero-metrics > div + div { border-left: 1px solid var(--border); padding-left: var(--s-4); }
[dir="rtl"] .hero-metrics > div + div { border-left: none; border-right: 1px solid var(--border); padding-right: var(--s-4); padding-left: 0; }

.hero-metrics > div {
  position: relative;
  transition: transform var(--d-base) var(--ease-out-cinema);
}
.hero-metrics > div:hover { transform: translateY(-3px); }
.hero-metrics > div span {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(2rem, 2.2vw + 1rem, 2.9rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--gold-3) 0%, var(--gold-1) 45%, #F4E4BE 72%, var(--gold-2) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 22px rgba(217,181,115,0.28));
}
.hero-metrics > div small {
  display: inline-block;
  position: relative;
  margin-top: var(--s-2);
  padding-bottom: 4px;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-faint);
  font-family: var(--f-body);
  font-weight: 500;
}
.hero-metrics > div small::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: linear-gradient(90deg, var(--gold-1), transparent);
  transition: width var(--d-cinema) var(--ease-out-cinema);
}
.hero-metrics > div:hover small::after { width: 100%; }
[dir="rtl"] .hero-metrics > div small::after { left: auto; right: 0; background: linear-gradient(270deg, var(--gold-1), transparent); }

/* hero visual stack */
.hero-visual {
  display: flex; flex-direction: column; gap: var(--s-4);
  max-width: 460px; justify-self: end;
  opacity: 0; transform: translateX(60px) scale(0.96);
  transition: opacity 1.2s var(--ease-out-cinema), transform 1.2s var(--ease-out-cinema);
}
.hero-visual.hero-animated { opacity: 1; transform: translateX(0) scale(1); }
[dir="rtl"] .hero-visual { justify-self: start; transform: translateX(-60px) scale(0.96); }
[dir="rtl"] .hero-visual.hero-animated { transform: translateX(0) scale(1); }

.glass-card, .stack-card {
  position: relative;
  padding: var(--s-8);
  background: linear-gradient(140deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: var(--shadow-lg), var(--shadow-inset);
  overflow: hidden;
  transition: transform var(--d-slow) var(--ease-out-cinema), box-shadow var(--d-slow) var(--ease-out-cinema);
}
.glass-card::before, .stack-card::before {
  content:''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-1), transparent);
  opacity: 0.6;
}
.glass-card:hover, .stack-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl), var(--shadow-inset), 0 0 0 1px var(--gold-soft);
}

.card-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--gold-1); color: var(--ink-3);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: var(--s-4);
}
.card-tag::before {
  content:''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-3);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.85); }
}

.glass-card h3 {
  color: var(--paper);
  font-family: var(--f-display);
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: var(--s-2);
}
.glass-card p {
  color: rgba(255,255,255,0.72);
  font-size: 0.95rem;
  line-height: 1.6;
}

.card-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-4); }

.pill {
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--paper);
  font-family: var(--f-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all var(--d-base) var(--ease-out-cinema);
}
.pill:hover {
  background: var(--gold-soft);
  border-color: var(--gold-1);
  color: var(--gold-3);
  transform: translateY(-1px);
}

.stack-card { border-left: 3px solid var(--gold-1); padding-left: var(--s-6); }
[dir="rtl"] .stack-card { border-left: none; border-right: 3px solid var(--gold-1); padding-left: var(--s-8); padding-right: var(--s-6); }
.stack-top {
  display: flex; flex-direction: column; gap: 4px;
  margin-bottom: var(--s-3);
}
.stack-top span {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-1);
}
.stack-top strong {
  font-family: var(--f-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--paper);
}
.stack-bar {
  width: 40px; height: 1px;
  background: linear-gradient(90deg, var(--gold-1), transparent);
  margin: var(--s-2) 0;
}
.stack-card p { color: rgba(255,255,255,0.65); font-size: 0.88rem; }

/* ── 6. PAGE HERO (inner pages) ────────────────────────────────────── */
.page-hero {
  position: relative;
  padding: clamp(120px, 18vh, 220px) 0 clamp(80px, 12vh, 140px);
  background: var(--ink);
  color: var(--paper);
  text-align: left;
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content:''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 60% at 70% 0%, rgba(217,181,115,0.14), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-3) 100%);
}
.page-hero::after {
  content:''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft) 30%, var(--gold-1) 50%, var(--gold-soft) 70%, transparent);
}

.page-hero-compact { padding: clamp(120px, 16vh, 180px) 0 clamp(60px, 9vh, 100px); }

.page-hero h1 {
  font-size: clamp(2.4rem, 5vw + 0.5rem, 4.4rem);
  color: var(--paper);
  margin-bottom: var(--s-4);
  position: relative;
  display: inline-block;
}
.page-hero h1::before {
  content:''; position: absolute; left: 0; bottom: -16px;
  width: 60px; height: 2px;
  background: linear-gradient(90deg, var(--gold-1), transparent);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1s 0.4s var(--ease-out-cinema);
}
.page-hero.page-hero-animated h1::before { transform: scaleX(1); }
[dir="rtl"] .page-hero h1::before { left: auto; right: 0; transform-origin: right; }

.page-hero p {
  font-size: clamp(1rem, 0.8vw + 0.7rem, 1.2rem);
  color: rgba(255,255,255,0.72);
  font-weight: 300;
  margin-top: var(--s-6);
  max-width: 640px;
  line-height: 1.6;
}

/* page-hero entrance */
.page-hero > .container { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out-cinema), transform 1s var(--ease-out-cinema); }
.page-hero.page-hero-animated > .container { opacity: 1; transform: translateY(0); }

/* ── 7. SECTIONS ───────────────────────────────────────────────────── */
section { position: relative; }

.section, .section-white, .section-light, .section-dark {
  padding: clamp(64px, 9vh, 120px) 0;
  position: relative;
  isolation: isolate;
}

.section-white {
  background: var(--paper);
  color: var(--ink-3);
}
.section-light {
  background: var(--paper-2);
  color: var(--ink-3);
}
.section-light-tight { padding: clamp(60px, 9vh, 120px) 0; }
.section-dark {
  background: linear-gradient(180deg, var(--ink-3) 0%, var(--ink-2) 100%);
  color: var(--paper);
}

/* Heading treatment in light sections */
.section-white h1, .section-white h2, .section-white h3,
.section-light h1, .section-light h2, .section-light h3 {
  color: var(--ink-3);
}
.section-white p, .section-light p { color: rgba(28,34,48,0.65); }

.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--paper); }

/* section h2 — eyebrow rule + serif */
.section-white > .container > h2,
.section-light > .container > h2,
.section-dark > .container > h2 {
  text-align: center;
  margin-bottom: var(--s-3);
  position: relative;
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: -0.015em;
}
.section-subtitle {
  text-align: center;
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 640px;
  margin: 0 auto var(--s-10);
  font-weight: 300;
  line-height: 1.6;
}
.section-white .section-subtitle, .section-light .section-subtitle { color: rgba(28,34,48,0.55); }

/* gold ornamental rule that scales in below h2 */
.section-white > .container > h2::after,
.section-light > .container > h2::after,
.section-dark > .container > h2::after {
  content:''; display: block;
  width: 56px; height: 2px;
  background: var(--gold-1);
  margin: var(--s-4) auto 0;
  transform-origin: center;
  transform: scaleX(0);
  transition: transform 0.9s var(--ease-out-cinema);
}
.section-white > .container.visible > h2::after,
.section-light > .container.visible > h2::after,
.section-dark > .container.visible > h2::after,
.section-white > .container > h2.visible::after,
.section-light > .container > h2.visible::after,
.section-dark > .container > h2.visible::after { transform: scaleX(1); }

/* ── 8. CARDS — programs · trainers · features ─────────────────────── */
.programs-grid, .trainers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: var(--s-8);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--s-4);
  margin-top: var(--s-8);
}

/* — Program / Category card — */
.program-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--bone);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
  opacity: 0; transform: translateY(40px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
  transition: transform var(--d-slow) var(--ease-out-cinema),
              box-shadow var(--d-slow) var(--ease-out-cinema),
              border-color var(--d-base) var(--ease-out-cinema);
}
.section-dark .program-card {
  background: var(--ink-4);
  border-color: var(--border);
}
.program-card.animated {
  animation: card-rise 0.9s var(--ease-out-cinema) both;
}
@keyframes card-rise {
  from { opacity: 0; transform: translateY(40px); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}
/* corner glint reveal on hover */
.program-card::before {
  content:''; position: absolute; top: 0; right: 0; width: 60px; height: 60px;
  background: radial-gradient(circle at top right, var(--gold-glow), transparent 70%);
  opacity: 0; transform: scale(0.5);
  transition: opacity var(--d-slow) var(--ease-out-cinema), transform var(--d-slow) var(--ease-out-cinema);
  pointer-events: none; z-index: 1;
}
.program-card::after {
  content:''; position: absolute; inset: 0;
  border-radius: var(--radius);
  pointer-events: none;
  box-shadow: inset 0 0 0 1px transparent;
  transition: box-shadow var(--d-slow) var(--ease-out-cinema);
  z-index: 0;
}
.program-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-1);
}
.program-card:hover::before { opacity: 1; transform: scale(1.4); }
.program-card:hover::after  { box-shadow: inset 0 0 0 1px var(--gold-soft); }

.card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ink-2);
}
.card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease-out-cinema), filter 0.6s var(--ease-out-cinema);
}
.card-image::after {
  content:''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(14,18,28,0.6) 100%);
  opacity: 0;
  transition: opacity var(--d-slow) var(--ease-out-cinema);
}
.program-card:hover .card-image img { transform: scale(1.08); filter: brightness(1.05); }
.program-card:hover .card-image::after { opacity: 1; }

.card-image-placeholder {
  aspect-ratio: 16 / 10;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--ink-3), var(--ink-4));
  color: var(--gold-1);
}

.card-body {
  padding: var(--s-6);
  flex: 1;
  display: flex; flex-direction: column; gap: var(--s-3);
}

.card-meta { display: flex; gap: var(--s-2); flex-wrap: wrap; }

.card-title {
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-3);
  line-height: 1.15;
}
.section-dark .card-title { color: var(--paper); }

.card-text {
  font-size: 0.82rem;
  font-family: var(--f-mono);
  letter-spacing: 0.06em;
  color: var(--gold-2);
  text-transform: uppercase;
}
.section-dark .card-text { color: var(--gold-1); }

.card-desc {
  font-size: 0.92rem;
  color: rgba(28,34,48,0.62);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.section-dark .card-desc { color: rgba(255,255,255,0.6); }

.card-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--s-4) var(--s-6) var(--s-6);
  gap: var(--s-3);
  border-top: 1px solid rgba(28,34,48,0.06);
  margin-top: auto;
}
.section-dark .card-footer { border-top-color: var(--border); }

.program-price {
  font-family: var(--f-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: -0.01em;
}
.section-dark .program-price { color: var(--gold-1); }

/* ════════════════════════════════════════════════════════════════════
   — Category card (editorial, background-image hero variant) —
   Rebuilt with UI/UX Pro Max design intelligence:
     • Visual hierarchy via size + spacing + contrast (not color alone)
     • One primary action per card; whole tile is also clickable
     • Elevation/shadow consistent with global scale; no random shadows
     • Motion conveys cause→effect (image breathes, overlay parts,
       title pulls forward, CTA arrow advances); transform/opacity only
     • Tap targets ≥ 44pt; visible focus ring; press-state scale-feedback
     • Truncation: line-clamp on description with full text in title
     • Background image isolated to ::before so card itself never scales
       (no CLS, no layout-shift on hover)
   The class names + DOM the JS emits are unchanged — pure CSS rebuild.
   ════════════════════════════════════════════════════════════════════ */
.category-card {
  --cat-radius: var(--radius-lg);
  --cat-pad: clamp(var(--s-5), 2.4vw, var(--s-7));
  position: relative;
  min-height: 340px;
  aspect-ratio: 5 / 6;
  background: var(--ink-2);          /* fallback while image paints */
  color: var(--paper);
  border-radius: var(--cat-radius);
  border: 1px solid var(--border);
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  /* JS sets the background-image (gradient + url) inline on this element.
     We keep that as the static base layer, and re-paint the same image
     on ::before for the ken-burns hover scale (no card-level transform
     means no CLS / no text blur). */
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--d-base) var(--ease-out-cinema),
              box-shadow var(--d-slow) var(--ease-out-cinema),
              border-color var(--d-base) var(--ease-out-cinema);
}

/* Background image layer — kept on a dedicated layer so we can apply
   a subtle ken-burns zoom without scaling the whole card (avoids CLS
   and any text-blur on hover). Inline style on the card sets the URL. */
.category-card::before {
  content: '';
  position: absolute; inset: 0;
  z-index: 0;
  background-image: inherit;          /* picks up inline gradient+url */
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  transition: transform 1.4s var(--ease-out-cinema),
              filter var(--d-slow) var(--ease-out-cinema);
  filter: saturate(0.95) contrast(1.02);
}
.category-card.has-bg::before { background-image: inherit; }

/* Tonal overlay — reading scrim + warm gold edge. Sits ABOVE the image
   layer but below content. Two stops give better legibility on busy
   photography while keeping the upper area visible (per UX rule
   "visual-hierarchy" + "color-accessible-pairs"). */
.category-card::after {
  content: '';
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(14,18,28,0.05) 0%,
      rgba(14,18,28,0.25) 35%,
      rgba(14,18,28,0.78) 78%,
      rgba(14,18,28,0.92) 100%),
    radial-gradient(120% 60% at 0% 0%, rgba(217,181,115,0.18), transparent 55%);
  transition: opacity var(--d-slow) var(--ease-out-cinema);
}

/* Hover: image breathes; overlay softens slightly to reveal photo;
   card lifts with deeper shadow (consistent elevation scale). */
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--gold-soft);
  border-color: var(--gold-soft);
}
.category-card:hover::before {
  transform: scale(1.08);
  filter: saturate(1.05) contrast(1.04);
}
.category-card:hover::after { opacity: 0.92; }

/* Press feedback (scale-feedback rule) — subtle, snappy */
.category-card:active { transform: translateY(-2px) scale(0.995); transition-duration: 120ms; }

/* Visible focus ring — meets WCAG focus-visible guidance */
.category-card:focus-visible {
  outline: none;
  box-shadow: var(--shadow-lg), 0 0 0 3px var(--gold-soft), 0 0 0 1px var(--gold-1);
}

/* Top hairline — Awwwards-grade gold rule that animates in with the
   reveal sequence. Sits above overlay so it stays crisp. */
.category-card > .card-body::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-1) 50%, transparent 100%);
  opacity: 0.6;
  transform: scaleX(0.4);
  transform-origin: center;
  transition: transform var(--d-cinema) var(--ease-out-cinema), opacity var(--d-slow);
  z-index: 3;
}
.category-card:hover > .card-body::before,
.category-card.animated > .card-body::before { transform: scaleX(1); opacity: 0.9; }

/* — Body layout: editorial, content anchored to bottom — */
.category-card .card-body {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  height: 100%; min-height: 340px;
  padding: var(--cat-pad);
  gap: var(--s-3);
}

/* — Tag chip (was a duplicated badge of the title). Reframed as a
     small uppercase eyebrow with a leading gold dot, anchored top-left.
     Same text, distinct visual role → no longer redundant.
     The header WRAPPER is sized to content (not stretched), so long
     category names truncate gracefully inside a sensibly capped chip
     instead of spanning the entire card width. — */
.category-card .category-header {
  position: absolute;
  top: var(--cat-pad);
  left: var(--cat-pad);
  right: auto;
  max-width: calc(100% - 2 * var(--cat-pad));
  margin: 0;
  z-index: 3;
  display: inline-flex;
  pointer-events: none;
}
[dir="rtl"] .category-card .category-header {
  left: auto;
  right: var(--cat-pad);
  justify-content: flex-end;
}

.category-card .category-header .badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px 6px 11px;
  background: rgba(14,18,28,0.5);
  color: var(--gold-3);
  border: 1px solid rgba(217,181,115,0.32);
  backdrop-filter: blur(10px) saturate(1.4);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  border-radius: var(--radius-full);
  font-family: var(--f-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  pointer-events: auto;
  /* never let the chip dominate the card — cap it to a sensible width */
  max-width: min(100%, 220px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background var(--d-base) var(--ease-out-cinema),
              border-color var(--d-base) var(--ease-out-cinema),
              color var(--d-base) var(--ease-out-cinema);
}
.category-card .category-header .badge::before {
  content: '';
  flex: 0 0 6px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-1);
  box-shadow: 0 0 0 3px rgba(217,181,115,0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
.category-card:hover .category-header .badge {
  background: rgba(14,18,28,0.55);
  border-color: var(--gold-1);
  color: var(--paper);
}

/* — Title: editorial display type, gold gradient sweep on hover — */
.category-card .card-title {
  position: relative;
  font-family: var(--f-display);
  font-size: clamp(1.45rem, 1.4vw + 0.95rem, 1.85rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.012em;
  color: var(--paper);
  margin: 0;
  /* allow up to 3 lines so multi-word category names aren't truncated
     mid-thought, while still protecting layout against extreme cases */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.category-card .card-title::after {
  content: '';
  display: block;
  width: 36px; height: 2px;
  margin-top: var(--s-3);
  background: linear-gradient(90deg, var(--gold-1), transparent);
  transform: scaleX(0.5);
  transform-origin: left;
  transition: transform var(--d-slow) var(--ease-out-cinema), width var(--d-slow) var(--ease-out-cinema);
}
[dir="rtl"] .category-card .card-title::after {
  background: linear-gradient(270deg, var(--gold-1), transparent);
  transform-origin: right;
}
.category-card:hover .card-title::after { transform: scaleX(1); width: 56px; }

/* — Description: 2 lines, ellipsis, comfortable reading contrast — */
.category-card .card-desc {
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.82);    /* ≥ 4.5:1 on dark scrim */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

/* — Footer / CTA: minimal divider, primary-action is the lone button
     with arrow that slides on hover (motion-meaning) — */
.category-card .card-footer {
  position: relative; z-index: 2;
  margin-top: var(--s-2);
  padding: var(--s-4) 0 0;
  background: transparent;
  border-top: 1px solid rgba(255,255,255,0.16);
  display: flex; align-items: center; justify-content: flex-end;
}

.category-card .card-footer .btn-outline {
  position: relative;
  min-height: 44px;                   /* touch target */
  padding: 10px 22px 10px 22px;
  color: var(--paper);
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  letter-spacing: 0.18em;
  transition: background var(--d-base) var(--ease-out-cinema),
              border-color var(--d-base) var(--ease-out-cinema),
              color var(--d-base) var(--ease-out-cinema),
              padding var(--d-base) var(--ease-out-cinema);
}
.category-card .card-footer .btn-outline::before {
  /* trailing arrow drawn purely in CSS — JS markup untouched */
  content: '\2192';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  opacity: 0;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0;
  color: currentColor;
  transition: transform var(--d-base) var(--ease-out-cinema),
              opacity var(--d-base) var(--ease-out-cinema);
}
[dir="rtl"] .category-card .card-footer .btn-outline::before {
  content: '\2190';
  right: auto; left: 14px;
  transform: translateY(-50%) translateX(6px);
}
.category-card:hover .card-footer .btn-outline,
.category-card .card-footer .btn-outline:hover,
.category-card .card-footer .btn-outline:focus-visible {
  background: var(--gold-1);
  color: var(--ink-3);
  border-color: var(--gold-1);
  padding-right: 38px;
}
[dir="rtl"] .category-card:hover .card-footer .btn-outline,
[dir="rtl"] .category-card .card-footer .btn-outline:hover {
  padding-right: 22px;
  padding-left: 38px;
}
.category-card:hover .card-footer .btn-outline::before,
.category-card .card-footer .btn-outline:hover::before {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Touch devices: drop hover-only flourishes that look stuck after tap */
@media (hover: none) and (pointer: coarse) {
  .category-card:hover { transform: none; box-shadow: var(--shadow-md); }
  .category-card:hover::before { transform: scale(1.02); }
  .category-card:hover .card-footer .btn-outline { padding-right: 22px; }
  .category-card:hover .card-footer .btn-outline::before { opacity: 0; }
}

/* Reduced motion: no breathing image, no sliding arrow */
@media (prefers-reduced-motion: reduce) {
  .category-card,
  .category-card::before,
  .category-card::after,
  .category-card .card-title::after,
  .category-card .card-footer .btn-outline,
  .category-card .card-footer .btn-outline::before { transition: none !important; animation: none !important; }
  .category-card:hover { transform: none; }
  .category-card:hover::before { transform: scale(1.02); }
}

/* Responsive refinements specific to the rebuilt category card */
@media (max-width: 768px) {
  .category-card { min-height: 320px; aspect-ratio: 4 / 5; }
  .category-card .card-body { min-height: 320px; }
}
@media (max-width: 480px) {
  .category-card {
    min-height: 280px;
    aspect-ratio: auto;
    --cat-pad: var(--s-5);
  }
  .category-card .card-body { min-height: 280px; }
  .category-card .card-title { font-size: clamp(1.3rem, 4.6vw + 0.6rem, 1.65rem); }
  .category-card .card-desc  { font-size: 0.88rem; }
  .category-card .category-header .badge { font-size: 0.56rem; padding: 5px 11px 5px 9px; max-width: min(100%, 200px); }
  .category-card .card-footer .btn-outline { padding: 9px 18px; }
}
@media (max-width: 380px) {
  .category-card { min-height: 260px; --cat-pad: var(--s-4); }
  .category-card .card-body { min-height: 260px; gap: var(--s-2); }
}

/* — Trainer card — */
.trainer-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--bone);
  border-radius: var(--radius);
  padding: var(--s-6);
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  display: flex; flex-direction: column; align-items: center;
  opacity: 0; transform: translateY(40px);
  transition: transform var(--d-slow) var(--ease-out-cinema),
              box-shadow var(--d-slow) var(--ease-out-cinema),
              border-color var(--d-base) var(--ease-out-cinema);
}
.section-dark .trainer-card {
  background: var(--ink-4);
  border-color: var(--border);
}
.trainer-card.animated { animation: card-rise 0.9s var(--ease-out-cinema) both; }

.trainer-card::before {
  content:''; position: absolute; top: 0; left: 50%;
  width: 0; height: 1px; background: var(--gold-1);
  transform: translateX(-50%);
  transition: width var(--d-slow) var(--ease-out-cinema);
}
.trainer-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold-1);
  box-shadow: var(--shadow-lg);
}
.trainer-card:hover::before { width: 80%; }

.trainer-image {
  width: 140px; height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: var(--s-4);
  position: relative;
  border: 2px solid transparent;
  background: linear-gradient(var(--paper), var(--paper)) padding-box,
              linear-gradient(135deg, var(--gold-1), var(--gold-3)) border-box;
  transition: transform var(--d-slow) var(--ease-spring);
}
.section-dark .trainer-image {
  background: linear-gradient(var(--ink-4), var(--ink-4)) padding-box,
              linear-gradient(135deg, var(--gold-1), var(--gold-3)) border-box;
}
.trainer-card:hover .trainer-image { transform: scale(1.05) rotate(-2deg); }
.trainer-image img { width: 100%; height: 100%; object-fit: cover; }

.trainer-image-placeholder {
  width: 140px; height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ink-3), var(--ink-4));
  color: var(--gold-1);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  margin-bottom: var(--s-4);
  border: 2px solid var(--gold-soft);
}

.trainer-card h3 {
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--ink-3);
  margin-bottom: var(--s-1);
  letter-spacing: -0.01em;
}
.section-dark .trainer-card h3 { color: var(--paper); }

.trainer-card .position {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--gold-2);
  text-transform: uppercase;
  margin-bottom: var(--s-4);
}
.section-dark .trainer-card .position { color: var(--gold-1); }

.trainer-card .card-footer {
  width: 100%;
  background: transparent;
  border-top: none;
  padding: 0;
  margin-top: var(--s-2);
  justify-content: center;
}

/* — Feature card — */
.feature-card {
  position: relative;
  padding: var(--s-8);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  isolation: isolate;
  overflow: hidden;
  opacity: 0; transform: translateY(40px);
  transition: transform var(--d-slow) var(--ease-out-cinema),
              border-color var(--d-base) var(--ease-out-cinema),
              background var(--d-base) var(--ease-out-cinema);
}
.section-light .feature-card,
.section-white .feature-card {
  background: var(--paper);
  border-color: var(--bone);
}
.feature-card.animated { animation: card-rise 0.9s var(--ease-out-cinema) both; }
.feature-card::before {
  content:''; position: absolute; left: 0; top: 0; width: 2px; height: 0;
  background: linear-gradient(180deg, var(--gold-1), transparent);
  transition: height var(--d-slow) var(--ease-out-cinema);
}
.feature-card::after {
  content: counter(feat, decimal-leading-zero);
  counter-increment: feat;
  position: absolute; top: var(--s-4); right: var(--s-4);
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--gold-1);
  opacity: 0.5;
}
.features-grid { counter-reset: feat; }
.feature-card:hover {
  border-color: var(--gold-1);
  background: rgba(217,181,115,0.04);
}
.feature-card:hover::before { height: 100%; }

.feature-card h3 {
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--paper);
  margin-bottom: var(--s-3);
}
.section-light .feature-card h3, .section-white .feature-card h3 { color: var(--ink-3); }
.feature-card p { font-size: 0.92rem; line-height: 1.6; }

/* ── 9. BADGES ─────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-family: var(--f-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.badge-primary {
  background: rgba(217,181,115,0.12);
  color: var(--gold-2);
  border: 1px solid var(--gold-soft);
}
.section-dark .badge-primary { color: var(--gold-1); border-color: var(--gold-soft); }
.badge-en { background: rgba(28,34,48,0.06); color: var(--ink-3); }
.badge-ar { background: rgba(28,34,48,0.06); color: var(--ink-3); }
.section-dark .badge-en, .section-dark .badge-ar { background: rgba(255,255,255,0.08); color: var(--paper); }

/* ── 10. SEARCH + FILTER ──────────────────────────────────────────── */
.search-bar {
  margin-bottom: var(--s-6);
  position: relative;
  max-width: 640px;
}
.search-input {
  width: 100%;
  padding: 18px 24px 18px 52px;
  background: var(--paper);
  border: 1px solid var(--bone);
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  color: var(--ink-3);
  font-family: var(--f-body);
  transition: all var(--d-base) var(--ease-out-cinema);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}
[dir="rtl"] .search-input { padding: 18px 52px 18px 24px; }
.search-input::placeholder { color: rgba(28,34,48,0.4); letter-spacing: 0.02em; }
.search-input:focus {
  outline: none;
  border-color: var(--gold-1);
  box-shadow: 0 0 0 3px var(--gold-soft), 0 12px 32px rgba(0,0,0,0.08);
}
.search-bar::before {
  content:''; position: absolute; left: 22px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px;
  border: 1.5px solid var(--gold-2);
  border-radius: 50%;
  pointer-events: none;
}
.search-bar::after {
  content:''; position: absolute; left: 32px; top: calc(50% + 4px);
  width: 8px; height: 1.5px;
  background: var(--gold-2);
  transform: rotate(45deg);
  transform-origin: left;
  pointer-events: none;
}
[dir="rtl"] .search-bar::before { left: auto; right: 22px; }
[dir="rtl"] .search-bar::after  { left: auto; right: 32px; transform: rotate(135deg); transform-origin: right; }

.search-controls {
  position: relative;
  z-index: 12;
  isolation: isolate;
  display: flex;
  align-items: flex-start;
  gap: var(--s-4);
  margin-bottom: var(--s-10);
}
.search-controls .search-bar {
  flex: 1 1 auto;
  max-width: none;
  margin-bottom: 0;
}

.filters-dropdown {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  min-width: 220px;
}
.filters-dropdown.is-open {
  z-index: 30;
}
.filters-toggle {
  width: 100%;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(248,244,236,0.98) 100%);
  border: 1px solid rgba(28,34,48,0.09);
  border-radius: var(--radius-full);
  box-shadow: 0 12px 30px rgba(14,18,28,0.07);
  color: var(--ink-3);
  cursor: pointer;
  transition: transform var(--d-base) var(--ease-out-cinema),
              border-color var(--d-base) var(--ease-out-cinema),
              box-shadow var(--d-base) var(--ease-out-cinema),
              background var(--d-base) var(--ease-out-cinema);
}
.filters-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(217,181,115,0.36);
  box-shadow: 0 16px 34px rgba(14,18,28,0.10);
}
.filters-toggle:focus-visible {
  outline: none;
  border-color: var(--gold-1);
  box-shadow: 0 0 0 3px rgba(217,181,115,0.18), 0 18px 40px rgba(14,18,28,0.12);
}
.filters-toggle::after {
  content: '';
  width: 9px;
  height: 9px;
  margin-left: auto;
  border-right: 1.5px solid rgba(28,34,48,0.55);
  border-bottom: 1.5px solid rgba(28,34,48,0.55);
  transform: rotate(45deg) translateY(-1px);
  transition: transform var(--d-base) var(--ease-out-cinema),
              border-color var(--d-base) var(--ease-out-cinema);
}
[dir="rtl"] .filters-toggle::after { margin-left: 0; margin-right: auto; }
.filters-dropdown.is-open .filters-toggle::after {
  transform: rotate(-135deg) translateX(-1px);
}
.filters-dropdown.is-open .filters-toggle {
  border-color: rgba(217,181,115,0.36);
  box-shadow: 0 0 0 3px rgba(217,181,115,0.14), 0 16px 38px rgba(14,18,28,0.12);
}
.filters-dropdown.has-active-filter .filters-toggle {
  background:
    linear-gradient(180deg, rgba(255,252,244,0.98) 0%, rgba(251,245,232,0.96) 100%);
  border-color: rgba(217,181,115,0.30);
}

.filters-toggle-icon {
  width: 18px;
  height: 14px;
  flex: 0 0 auto;
  border-radius: 999px;
  background:
    linear-gradient(var(--gold-2), var(--gold-2)) left top / 100% 1.5px no-repeat,
    linear-gradient(var(--gold-2), var(--gold-2)) left center / 72% 1.5px no-repeat,
    linear-gradient(var(--gold-2), var(--gold-2)) left bottom / 46% 1.5px no-repeat;
}
.filters-toggle-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
}
[dir="rtl"] .filters-toggle-copy { align-items: flex-end; }
.filters-toggle-label,
.filters-panel-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(28,34,48,0.44);
}
.filters-toggle-value,
.filters-panel-current {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-3);
  white-space: nowrap;
}
.filters-toggle-value {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filters-panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: min(600px, calc(100vw - var(--s-10)));
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,253,0.98) 0%, rgba(248,244,237,0.99) 100%);
  border: 1px solid rgba(217,181,115,0.20);
  border-radius: 24px;
  box-shadow: 0 24px 54px rgba(14,18,28,0.12);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px) scale(0.985);
  transition: opacity var(--d-base) var(--ease-out-cinema),
              transform var(--d-base) var(--ease-out-cinema),
              visibility var(--d-base) var(--ease-out-cinema);
  z-index: 40;
}
.filters-panel::before {
  content: '';
  position: absolute;
  top: -7px;
  right: 26px;
  width: 14px;
  height: 14px;
  background: rgba(255,252,246,0.98);
  border-top: 1px solid rgba(217,181,115,0.20);
  border-left: 1px solid rgba(217,181,115,0.20);
  transform: rotate(45deg);
}
[dir="rtl"] .filters-panel {
  right: auto;
  left: 0;
}
[dir="rtl"] .filters-panel::before {
  right: auto;
  left: 26px;
}
.filters-dropdown.is-open .filters-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.filters-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(28,34,48,0.06);
}
.filters-panel-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(28,34,48,0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.filters-panel .filter-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
  gap: 12px;
}
.filters-panel .filter-tab {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(28,34,48,0.06);
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(14,18,28,0.04);
  text-align: center;
  line-height: 1.35;
  letter-spacing: 0.03em;
  white-space: normal;
}
.filters-panel .filter-tab:hover {
  border-color: rgba(217,181,115,0.26);
  background: rgba(255,255,255,0.96);
  box-shadow: 0 12px 24px rgba(14,18,28,0.06);
}
.filters-panel .filter-tab.active {
  background: linear-gradient(135deg, var(--ink-3) 0%, #273247 100%);
  border-color: transparent;
  color: var(--gold-1);
  box-shadow: 0 14px 28px rgba(14,18,28,0.16);
}

.filter-bar {
  display: flex; flex-wrap: wrap; gap: var(--s-2);
  margin-bottom: var(--s-12);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid rgba(28,34,48,0.08);
}
.section-dark .filter-bar { border-bottom-color: var(--border); }

.programs-grid {
  position: relative;
  z-index: 1;
}

.filter-tab {
  padding: 10px 22px;
  background: transparent;
  border: 1px solid var(--bone);
  border-radius: var(--radius-full);
  font-family: var(--f-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  cursor: pointer;
  transition: all var(--d-base) var(--ease-out-cinema);
  position: relative;
}
.section-dark .filter-tab { color: var(--paper); border-color: var(--border-strong); }
.filter-tab:hover {
  border-color: var(--gold-2);
  color: var(--gold-2);
  transform: translateY(-1px);
}
.filter-tab.active {
  background: var(--ink-3);
  border-color: var(--ink-3);
  color: var(--gold-1);
  box-shadow: 0 8px 22px rgba(14,18,28,0.25);
}

/* ── 11. FORMS ─────────────────────────────────────────────────────── */
.form-group { margin-bottom: var(--s-5); }

.form-group label, .form-label {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: var(--s-2);
}
.section-dark .form-group label, .section-dark .form-label { color: var(--gold-1); }

.form-control {
  width: 100%;
  padding: 16px 20px;
  background: var(--paper);
  color: var(--ink-3);
  border: 1px solid var(--bone);
  border-radius: var(--radius-sm);
  font-family: var(--f-body);
  font-size: 0.95rem;
  transition: all var(--d-base) var(--ease-out-cinema);
}
.section-dark .form-control { background: rgba(255,255,255,0.04); color: var(--paper); border-color: var(--border-strong); }
.form-control::placeholder { color: rgba(28,34,48,0.35); }
.section-dark .form-control::placeholder { color: rgba(255,255,255,0.4); }
.form-control:focus {
  outline: none;
  border-color: var(--gold-1);
  box-shadow: 0 0 0 3px var(--gold-soft);
  background: var(--paper);
}
.section-dark .form-control:focus { background: rgba(255,255,255,0.06); }
.form-control.invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(196,69,69,0.18); }

textarea.form-control { min-height: 140px; resize: vertical; line-height: 1.6; }

.form-message {
  margin-top: var(--s-4);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: none;
}
.form-message:not(:empty) { display: block; }
.form-message.success {
  background: rgba(79,138,106,0.12);
  color: #7BBF96;
  border: 1px solid rgba(79,138,106,0.25);
}
.form-message.error {
  background: rgba(196,69,69,0.12);
  color: #E48484;
  border: 1px solid rgba(196,69,69,0.25);
}

/* ── 12. CONTACT PAGE ─────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--s-12);
  margin: clamp(60px, 8vh, 100px) 0;
  align-items: stretch;
}

.contact-info-card {
  position: relative;
  padding: var(--s-12);
  background: linear-gradient(160deg, var(--ink-3) 0%, var(--ink-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow-lg);
}
.contact-info-card::before {
  content:''; position: absolute; top: 0; right: 0;
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--gold-glow), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.contact-info-card::after {
  content:''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-1), transparent);
}
.contact-info-card h3 {
  font-family: var(--f-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--paper);
  margin-bottom: var(--s-8);
  position: relative;
}
.contact-info-card h3::after {
  content:''; display: block;
  width: 36px; height: 2px;
  background: var(--gold-1);
  margin-top: var(--s-3);
}
.contact-info-item {
  display: flex; flex-direction: column;
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--border);
  gap: var(--s-2);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-label {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-1);
}
.contact-info-item span:not(.contact-info-label),
.contact-info-item a {
  font-size: 1rem; color: var(--paper);
  transition: color var(--d-base) var(--ease-out-cinema);
}
.contact-info-item a:hover { color: var(--gold-1); }

.contact-form, .contact-form-light {
  position: relative;
  padding: var(--s-12);
  background: var(--paper);
  border: 1px solid var(--bone);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.contact-form-light .form-control { background: var(--paper-2); }
.contact-form-light .form-control:focus { background: var(--paper); }
.contact-form-light .form-group label, .contact-form-light .form-label { color: var(--gold-2); }

/* ── 13. ABOUT PAGE ───────────────────────────────────────────────── */
.about-intro {
  max-width: 820px;
  margin: 0 auto var(--s-16);
  text-align: center;
  font-family: var(--f-display);
  font-size: clamp(1.2rem, 1.6vw + 0.6rem, 1.7rem);
  line-height: 1.5;
  color: var(--ink-3);
  font-style: italic;
  font-weight: 400;
  position: relative;
  padding: 0 var(--s-8);
}
.about-intro::before, .about-intro::after {
  content:'\201C';
  position: absolute;
  font-size: 4rem;
  color: var(--gold-1);
  font-family: var(--f-display);
  line-height: 1;
  opacity: 0.4;
}
.about-intro::before { top: -20px; left: 0; }
.about-intro::after  { content:'\201D'; bottom: -40px; right: 0; }
[dir="rtl"] .about-intro::before { left: auto; right: 0; }
[dir="rtl"] .about-intro::after  { right: auto; left: 0; }

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-6);
}
.about-card {
  position: relative;
  padding: var(--s-10);
  background: var(--paper);
  border: 1px solid var(--bone);
  border-radius: var(--radius);
  isolation: isolate;
  overflow: hidden;
  transition: transform var(--d-slow) var(--ease-out-cinema), border-color var(--d-base) var(--ease-out-cinema), box-shadow var(--d-slow) var(--ease-out-cinema);
}
.about-card::before {
  content:''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-1), var(--gold-3));
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--d-slow) var(--ease-out-cinema);
}
.about-card:hover { transform: translateY(-6px); border-color: var(--gold-1); box-shadow: var(--shadow-lg); }
.about-card:hover::before { transform: scaleX(1); }
.about-card h3 {
  font-family: var(--f-display);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--ink-3);
  margin-bottom: var(--s-4);
  position: relative;
}
.about-card p { color: rgba(28,34,48,0.7); line-height: 1.7; }

.values-list { list-style: none; padding: 0; }
.values-list li {
  padding: var(--s-3) 0 var(--s-3) var(--s-6);
  position: relative;
  border-bottom: 1px solid rgba(28,34,48,0.06);
  font-weight: 500;
  color: var(--ink-3);
  font-size: 1rem;
  transition: padding var(--d-base) var(--ease-out-cinema), color var(--d-base) var(--ease-out-cinema);
}
.values-list li::before {
  content:''; position: absolute; left: 0; top: 50%;
  width: 12px; height: 1px;
  background: var(--gold-1);
  transform: translateY(-50%);
  transition: width var(--d-base) var(--ease-out-cinema);
}
.values-list li:hover { padding-left: var(--s-8); color: var(--gold-2); }
.values-list li:hover::before { width: 22px; }
.values-list li:last-child { border-bottom: none; }
[dir="rtl"] .values-list li { padding: var(--s-3) var(--s-6) var(--s-3) 0; }
[dir="rtl"] .values-list li::before { left: auto; right: 0; }
[dir="rtl"] .values-list li:hover { padding-right: var(--s-8); padding-left: 0; }

/* ── 14. PROGRAM-DETAIL · WIZARD ──────────────────────────────────── */
.detail-grid { display: block; }

.wizard-container {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.wizard-stepper {
  display: flex; align-items: center; justify-content: center;
  gap: var(--s-3);
  margin-bottom: var(--s-12);
  flex-wrap: wrap;
}
.wizard-step {
  display: flex; align-items: center; gap: var(--s-3);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-faint);
  transition: color var(--d-base) var(--ease-out-cinema);
}
.wizard-step-dot {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink-4);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg-faint);
  transition: all var(--d-base) var(--ease-spring);
  position: relative;
}
.wizard-step.active .wizard-step-dot {
  background: var(--gold-1);
  border-color: var(--gold-1);
  color: var(--ink-3);
  box-shadow: 0 0 0 4px var(--gold-soft), 0 8px 22px var(--gold-glow);
  transform: scale(1.08);
}
.wizard-step.completed .wizard-step-dot {
  background: var(--gold-2);
  border-color: var(--gold-2);
  color: var(--ink-3);
}
.wizard-step.active, .wizard-step.completed { color: var(--paper); }

.wizard-step-line {
  width: 40px; height: 1px;
  background: var(--border-strong);
  position: relative;
}

.wizard-card {
  background: linear-gradient(160deg, var(--ink-4) 0%, var(--ink-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, var(--s-12));
  color: var(--paper);
  box-shadow: var(--shadow-lg), var(--shadow-inset);
  position: relative;
  overflow: hidden;
}
.wizard-card::before {
  content:''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-1), transparent);
}

.wizard-course-image {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: var(--s-6);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

.wizard-step-title {
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 2vw + 0.6rem, 2.2rem);
  color: var(--paper);
  margin-bottom: var(--s-4);
  position: relative;
  display: inline-block;
}
.wizard-step-title::after {
  content:''; display: block;
  width: 36px; height: 2px;
  background: var(--gold-1);
  margin-top: var(--s-3);
}

.wizard-overview {
  color: rgba(255,255,255,0.78);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: var(--s-5);
}

.wizard-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* ── Promotional animated price badge (program overview) ───────────── */
.pd-offer-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-family: var(--f-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #2a2008;
  background: linear-gradient(120deg, var(--gold-3) 0%, var(--gold-1) 42%, #FBEFC9 55%, var(--gold-1) 70%, var(--gold-2) 100%);
  background-size: 220% 100%;
  box-shadow: 0 6px 20px var(--gold-glow), inset 0 0 0 1px rgba(255,255,255,0.35);
  overflow: hidden;
  white-space: nowrap;
  animation: pd-offer-glow 2.6s ease-in-out infinite, pd-offer-shift 6s linear infinite;
}
/* Moving light sweep */
.pd-offer-badge::after {
  content: '';
  position: absolute;
  top: 0; left: -65%;
  width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.65), transparent);
  transform: skewX(-20deg);
  animation: pd-offer-sweep 2.8s ease-in-out infinite;
  pointer-events: none;
}
.pd-offer-badge .pd-offer-tag {
  position: relative; z-index: 1;
  text-transform: uppercase;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(0,0,0,0.18);
  color: #fff7e2;
}
.pd-offer-badge .pd-offer-price { position: relative; z-index: 1; }
.pd-offer-badge .pd-offer-spark {
  position: relative; z-index: 1;
  display: inline-block;
  font-size: 0.9rem;
  line-height: 1;
  animation: pd-offer-spark 1.8s ease-in-out infinite;
}

@keyframes pd-offer-glow {
  0%, 100% { box-shadow: 0 5px 16px var(--gold-glow), inset 0 0 0 1px rgba(255,255,255,0.35); transform: translateY(0); }
  50%      { box-shadow: 0 10px 30px var(--gold-glow), inset 0 0 0 1px rgba(255,255,255,0.55); transform: translateY(-2px); }
}
@keyframes pd-offer-shift {
  0%   { background-position: 0% 0; }
  100% { background-position: 220% 0; }
}
@keyframes pd-offer-sweep {
  0%        { left: -65%; }
  55%, 100% { left: 130%; }
}
@keyframes pd-offer-spark {
  0%, 100% { transform: scale(1) rotate(0deg);     opacity: 0.85; }
  50%      { transform: scale(1.25) rotate(20deg);  opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .pd-offer-badge,
  .pd-offer-badge::after,
  .pd-offer-badge .pd-offer-spark { animation: none; }
}

/* ── Info trigger (opens the group-discount popup) ────────────────── */
.pd-info-btn {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
  width: 22px; height: 22px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--gold-1);
  background: var(--gold-soft);
  color: var(--gold-1);
  font-family: var(--f-mono);
  font-weight: 800;
  font-size: 0.82rem;
  line-height: 1;
  cursor: pointer;
  animation: pd-info-pulse 2.2s ease-in-out infinite;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.pd-info-btn:hover { background: var(--gold-1); color: #1a1407; transform: scale(1.12); }
.pd-info-btn-sm { width: 18px; height: 18px; font-size: 0.7rem; }
@keyframes pd-info-pulse {
  0%   { box-shadow: 0 0 0 0 var(--gold-glow); }
  70%  { box-shadow: 0 0 0 7px rgba(217,181,115,0); }
  100% { box-shadow: 0 0 0 0 rgba(217,181,115,0); }
}

/* ── Group-discount popup (reuses .auth-modal-* visual language) ──── */
#discount-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  align-items: center;
  justify-content: center;
}
#discount-modal.open { display: flex; }
.discount-tier-list { margin-top: 0.25rem; }
.discount-tier-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.discount-tier-row:last-child { border-bottom: none; }
.discount-tier-count { color: var(--paper); font-weight: 600; font-size: 0.9rem; }
.discount-tier-rate {
  color: var(--gold-1);
  font-weight: 800;
  font-family: var(--f-mono);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}
.discount-tier-rate.zero { color: rgba(255,255,255,0.4); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .pd-info-btn { animation: none; }
}

.wizard-seats-full {
  margin-top: var(--s-4);
  padding: var(--s-4);
  background: rgba(196,69,69,0.12);
  border: 1px solid rgba(196,69,69,0.3);
  border-radius: var(--radius-sm);
  color: #E48484;
  font-size: 0.92rem;
  text-align: center;
}

.wizard-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: var(--s-8);
  padding-top: var(--s-6);
  border-top: 1px solid var(--border);
  gap: var(--s-3);
}

.wizard-summary-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--border);
  gap: var(--s-4);
}
.wizard-summary-label {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-1);
  flex-shrink: 0;
}
.wizard-summary-value {
  text-align: right;
  font-weight: 500;
  color: var(--paper);
}
[dir="rtl"] .wizard-summary-value { text-align: left; }

.wizard-price-box {
  margin-top: var(--s-6);
  padding: var(--s-6);
  background: rgba(217,181,115,0.08);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  text-align: center;
}
.wizard-price-total {
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 3vw + 1rem, 3.4rem);
  font-weight: 600;
  color: var(--gold-1);
  letter-spacing: -0.02em;
  line-height: 1;
}
.wizard-price-breakdown {
  margin-top: var(--s-2);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  font-family: var(--f-mono);
  letter-spacing: 0.04em;
}

.wizard-success { text-align: center; padding: var(--s-8) 0; }
.wizard-success-icon {
  width: 72px; height: 72px;
  margin: 0 auto var(--s-5);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-3));
  color: var(--ink-3);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  box-shadow: 0 0 0 4px var(--gold-soft), 0 16px 40px var(--gold-glow);
  animation: success-pop 0.7s var(--ease-spring) both;
}
@keyframes success-pop {
  0%   { transform: scale(0); opacity: 0; }
  70%  { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); }
}
.wizard-success h3 {
  font-family: var(--f-display);
  font-size: 2rem;
  color: var(--paper);
  margin-bottom: var(--s-3);
}

.pd-badge {
  display: inline-flex; align-items: center;
  padding: 5px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.78);
}
.pd-badge-cat {
  background: var(--gold-soft);
  border-color: var(--gold-1);
  color: var(--gold-3);
}
.pd-section-title {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-1);
}
.pd-sidebar-label {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-1);
}
.pd-select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--paper);
  font-family: var(--f-body);
  cursor: pointer;
  transition: border-color var(--d-base) var(--ease-out-cinema);
}
.pd-select:focus { outline: none; border-color: var(--gold-1); box-shadow: 0 0 0 3px var(--gold-soft); }

/* Hotel-tier dropdowns (Step 3) — solid dark + gold accent */
.pd-hotel-tier-select {
  background: #0b1220;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--gold-1) 50%),
    linear-gradient(135deg, var(--gold-1) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 50%,
    calc(100% - 14px) 50%;
  background-size: 7px 7px, 7px 7px;
  background-repeat: no-repeat;
  border-color: rgba(212, 175, 55, 0.35);
  color: var(--paper);
  padding-right: 36px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  color-scheme: dark;
}
.pd-hotel-tier-select:hover { border-color: var(--gold-1); }
.pd-hotel-tier-select:focus {
  border-color: var(--gold-1);
  box-shadow: 0 0 0 3px var(--gold-soft);
  background-color: #0d1628;
}
.pd-hotel-tier-select option {
  background: #0b1220;
  color: var(--paper);
}
.pd-hotel-tier-select option:checked,
.pd-hotel-tier-select option:hover {
  background: linear-gradient(0deg, var(--gold-soft), var(--gold-soft));
  color: var(--gold-1);
}
[dir="rtl"] .pd-hotel-tier-select {
  background-position:
    22px 50%,
    14px 50%;
  padding-right: 16px;
  padding-left: 36px;
}

.pd-hotels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--s-3);
}
.pd-hotel-card {
  padding: var(--s-4);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--d-base) var(--ease-out-cinema);
  position: relative;
  overflow: hidden;
}
.pd-hotel-card:hover { border-color: var(--gold-soft); background: rgba(255,255,255,0.06); transform: translateY(-2px); }
.pd-hotel-card.selected {
  border-color: var(--gold-1);
  background: rgba(217,181,115,0.10);
  box-shadow: 0 0 0 1px var(--gold-1), 0 12px 28px var(--gold-glow);
}
.pd-hotel-card.selected::after {
  content:'\2713';
  position: absolute; top: 8px; right: 8px;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-1); color: var(--ink-3);
  border-radius: 50%;
  font-size: 0.7rem; font-weight: 700;
}
.pd-hotel-name {
  font-weight: 600;
  color: var(--paper);
  margin-bottom: var(--s-1);
}
.pd-hotel-meta {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  font-family: var(--f-mono);
  margin-bottom: var(--s-2);
}
.pd-hotel-price {
  font-family: var(--f-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold-1);
}

/* ════════════════════════════════════════════════════════════════════
   Enrollment wizard — LIGHT theme (white card on the dark page).
   Mirrors the corporate-request page principle: dark hero + page,
   clean white card as the dominant content surface. Scoped to
   .wizard-card so nothing outside the wizard is affected.
   ════════════════════════════════════════════════════════════════════ */
.wizard-card {
  background: #fff;
  color: var(--ink-3);
  border: 1px solid #E6E2D8;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
}
.wizard-card .wizard-step-title { color: var(--ink-3); }
.wizard-card .wizard-overview { color: rgba(28,34,48,0.66); }

/* Summary rows / values */
.wizard-card .wizard-summary-row { border-bottom-color: #ECE8DE; }
.wizard-card .wizard-summary-value { color: var(--ink-3); }
.wizard-card .wizard-footer { border-top-color: #ECE8DE; }
.wizard-card .wizard-price-breakdown { color: rgba(28,34,48,0.55); }

/* Form fields revert to the light style even inside .section-dark */
.wizard-card .form-control {
  background: #FAFAF7;
  color: var(--ink-3);
  border-color: #DDD9CC;
}
.wizard-card .form-control::placeholder { color: rgba(28,34,48,0.4); }
.wizard-card .form-control:focus {
  background: #fff;
  border-color: var(--gold-2);
  box-shadow: 0 0 0 3px rgba(201,165,90,0.18);
}
/* Readonly fields (e.g. prefilled email for logged-in users) must stay
   readable on the white card — the global rule paints them white-on-white. */
.wizard-card .form-control[readonly] {
  background: #F2F0EB;
  color: var(--ink-3);
  opacity: 1;
}
.wizard-card .form-group label,
.wizard-card .form-label { color: #6b6657; }

/* Selects + sidebar bits */
.wizard-card .pd-select {
  background: #FAFAF7;
  color: var(--ink-3);
  border-color: #DDD9CC;
}
.wizard-card .pd-select:focus { border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(201,165,90,0.18); }
.wizard-card .pd-hotel-tier-select {
  background-color: #FAFAF7;
  color: var(--ink-3);
  border-color: #DDD9CC;
  color-scheme: light;
}
.wizard-card .pd-hotel-tier-select option { background: #fff; color: var(--ink-3); }
.wizard-card .pd-hotel-info-btn { display: none; }

.wizard-card .pd-hotel-inclusions {
  margin-top: 0.65rem;
  padding: 0.85rem 0.95rem;
  background: #fff;
  border: 1px solid #E6E2D8;
  border-radius: 8px;
}
.wizard-card .pd-hotel-inclusions-title {
  margin-bottom: 0.45rem;
  color: var(--gold-2);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.wizard-card .pd-hotel-inclusions ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.wizard-card .pd-hotel-inclusions li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.15rem;
  color: rgba(28,34,48,0.72);
  font-size: 0.86rem;
  line-height: 1.45;
  border-top: 1px solid #F0ECE2;
}
.wizard-card .pd-hotel-inclusions li:first-child { border-top: 0; }
.wizard-card .pd-hotel-inclusions li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold-2);
  font-weight: 800;
}

/* Hotel cards */
.wizard-card .pd-hotel-card {
  background: #FAFAF7;
  border-color: #E6E2D8;
}
.wizard-card .pd-hotel-card:hover { background: #fff; border-color: var(--gold-soft); }
.wizard-card .pd-hotel-card.selected {
  background: rgba(217,181,115,0.10);
  border-color: var(--gold-2);
}
.wizard-card .pd-hotel-name { color: var(--ink-3); }
.wizard-card .pd-hotel-meta { color: rgba(28,34,48,0.55); }

/* Badges that may sit inside the card */
.wizard-card .pd-badge { background: rgba(28,34,48,0.05); border-color: #E6E2D8; color: rgba(28,34,48,0.7); }

/* Buttons: Back (ghost) and View Profile (outline) must read on white */
.wizard-card .btn-ghost {
  background: transparent;
  border-color: #DDD9CC;
  color: var(--ink-3);
  backdrop-filter: none;
}
.wizard-card .btn-ghost:hover {
  background: rgba(201,165,90,0.1);
  border-color: var(--gold-2);
  color: var(--ink-3);
  box-shadow: none;
}
.wizard-card .btn-outline {
  border-color: #DDD9CC;
  color: var(--ink-3);
}
.wizard-card .btn-outline:hover { background: var(--ink-3); color: #fff; border-color: var(--ink-3); }

/* Success state */
.wizard-card .wizard-success h3 { color: var(--ink-3); }

/* program-detail page hero header */
#program-header h1, #trainer-header h1 {
  color: var(--gold-1) !important;
  font-family: var(--f-display);
  font-size: clamp(2rem, 4vw + 0.5rem, 3.4rem) !important;
  font-weight: 500;
  margin-top: var(--s-3) !important;
}
#program-header { margin-top: var(--s-4); }
#trainer-header { margin-top: var(--s-4); }
#trainer-header p { color: rgba(255,255,255,0.72) !important; font-size: 1rem; margin-top: var(--s-3) !important; }

/* ── 15. TRAINER-DETAIL ───────────────────────────────────────────── */
.trainer-detail-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: var(--s-12);
  margin: clamp(60px, 8vh, 100px) 0;
  align-items: start;
}

.trainer-profile-card {
  position: relative;
  background: linear-gradient(160deg, var(--ink-4) 0%, var(--ink-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s-10);
  text-align: center;
  color: var(--paper);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: sticky;
  top: 120px;
}
.trainer-profile-card::before {
  content:''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-1), transparent);
}
.trainer-profile-card .photo,
.trainer-profile-card .photo-placeholder {
  width: 180px; height: 180px;
  margin: 0 auto var(--s-5);
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid transparent;
  background: linear-gradient(var(--ink-3), var(--ink-3)) padding-box,
              linear-gradient(135deg, var(--gold-1), var(--gold-3)) border-box;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
  color: var(--gold-1);
}
.trainer-profile-card h3 {
  font-family: var(--f-display);
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--paper);
  margin-bottom: var(--s-2);
}
.trainer-profile-card .spec {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-1);
  margin-bottom: var(--s-5);
}
.trainer-profile-card .email-link {
  display: inline-block;
  padding: 8px 18px;
  background: rgba(217,181,115,0.12);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius-full);
  color: var(--gold-1);
  font-size: 0.85rem;
  margin-bottom: var(--s-5);
  transition: all var(--d-base) var(--ease-out-cinema);
}
.trainer-profile-card .email-link:hover { background: var(--gold-1); color: var(--ink-3); }

.social-links { display: flex; gap: var(--s-3); justify-content: center; }
.social-link {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--paper);
  font-size: 0.95rem;
  transition: all var(--d-base) var(--ease-spring);
}
.social-link:hover {
  background: var(--gold-1); color: var(--ink-3);
  border-color: var(--gold-1);
  transform: translateY(-3px) rotate(8deg);
}

.trainer-detail-grid > div:nth-child(2) { padding-top: var(--s-3); }
.trainer-detail-grid h2 {
  font-family: var(--f-display);
  font-size: 1.85rem;
  font-weight: 500;
  color: var(--paper);
  margin-bottom: var(--s-4) !important;
  position: relative;
  display: inline-block;
}
.trainer-detail-grid h2::after {
  content:''; display: block;
  width: 36px; height: 2px; background: var(--gold-1);
  margin-top: var(--s-3);
}
.trainer-detail-grid p { color: rgba(255,255,255,0.75) !important; line-height: 1.8; font-size: 1rem; }

/* ════════════════════════════════════════════════════════════════════
   Trainer profile — LIGHT theme (white-dominant, same principle as the
   program-detail / corporate-request pages). Scoped to .section-light so
   only the trainer-detail page is affected.
   ════════════════════════════════════════════════════════════════════ */
.section-light .trainer-profile-card {
  background: #fff;
  border: 1px solid #E6E2D8;
  box-shadow: 0 20px 60px rgba(0,0,0,0.10);
}
.section-light .trainer-profile-card .photo,
.section-light .trainer-profile-card .photo-placeholder {
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, var(--gold-1), var(--gold-3)) border-box;
}
.section-light .trainer-profile-card h3 { color: var(--ink-3); }
.section-light .trainer-profile-card .email-link {
  color: rgba(28,34,48,0.65);
  border-color: #E6E2D8;
}
.section-light .trainer-profile-card .email-link:hover { background: var(--gold-1); color: var(--ink-3); }
.section-light .social-link {
  background: #FAFAF7;
  border-color: #E6E2D8;
  color: rgba(28,34,48,0.65);
}
.section-light .social-link:hover { background: var(--gold-1); color: var(--ink-3); }
.section-light .trainer-detail-grid h2 { color: var(--ink-3); }
.section-light .trainer-detail-grid p { color: rgba(28,34,48,0.7) !important; }
.section-light .program-link-card {
  background: #FAFAF7;
  border-color: #E6E2D8;
  color: var(--ink-3);
}
.section-light .program-link-card:hover {
  border-color: var(--gold-soft);
  background: rgba(217,181,115,0.10);
}
.section-light .trainer-detail-grid .text-muted,
.section-light .program-link-card .text-muted { color: rgba(28,34,48,0.5); }

.program-link-card {
  display: flex; align-items: center;
  padding: var(--s-4) var(--s-5);
  margin-bottom: var(--s-2);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--paper);
  font-weight: 500;
  position: relative;
  transition: all var(--d-base) var(--ease-out-cinema);
}
.program-link-card::after {
  content:'\2192'; position: absolute; right: var(--s-5);
  color: var(--gold-1);
  transition: transform var(--d-base) var(--ease-out-cinema);
}
[dir="rtl"] .program-link-card::after { content:'\2190'; right: auto; left: var(--s-5); }
.program-link-card:hover {
  background: rgba(217,181,115,0.08);
  border-color: var(--gold-1);
  transform: translateX(4px);
}
[dir="rtl"] .program-link-card:hover { transform: translateX(-4px); }
.program-link-card:hover::after { transform: translateX(4px); }

.text-muted { color: var(--fg-muted); font-style: italic; }

/* ── 16. FOOTER ───────────────────────────────────────────────────── */
.footer {
  position: relative;
  background: linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 100%);
  color: var(--fg-muted);
  padding: var(--s-16) 0 var(--s-6);
  margin-top: var(--s-12);
  border-top: 1px solid var(--border);
}
.footer::before {
  content:''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft) 30%, var(--gold-1) 50%, var(--gold-soft) 70%, transparent);
}
.footer::after {
  content:''; position: absolute; top: 10%; right: 5%; width: 320px; height: 320px;
  background: radial-gradient(circle, var(--gold-glow), transparent 70%);
  filter: blur(60px); pointer-events: none; opacity: 0.5;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--s-12);
  margin-bottom: var(--s-12);
}

.footer-brand { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-4); }
.footer-logo { height: 68px; width: auto; object-fit: contain; }
.footer-brand-text {
  font-family: var(--f-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--paper);
  letter-spacing: 0.04em;
}

.footer h4 {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-1);
  margin-bottom: var(--s-5);
  font-weight: 500;
}

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: var(--s-3); }
.footer-links a {
  font-size: 0.92rem;
  color: var(--fg-muted);
  position: relative;
  padding-left: 0;
  transition: all var(--d-base) var(--ease-out-cinema);
  display: inline-flex; align-items: center; gap: var(--s-2);
}
.footer-links a::before {
  content:''; width: 0; height: 1px;
  background: var(--gold-1);
  transition: width var(--d-base) var(--ease-out-cinema);
}
.footer-links a:hover { color: var(--paper); }
.footer-links a:hover::before { width: 18px; }

.footer-social { display: flex; gap: var(--s-3); margin-top: var(--s-5); }
.footer-social a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--paper);
  font-size: 0.85rem;
  transition: all var(--d-base) var(--ease-spring);
}
.footer-social a:hover {
  background: var(--gold-1); color: var(--ink-3);
  border-color: var(--gold-1);
  transform: translateY(-3px) rotate(-6deg);
}

#footer-email, #footer-phone, #footer-address { color: var(--fg-muted); font-size: 0.92rem; line-height: 1.7; }

.footer-bottom {
  padding-top: var(--s-6);
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.82rem;
  color: var(--fg-faint);
  font-family: var(--f-mono);
  letter-spacing: 0.06em;
}

.footer.footer-compact {
  padding: var(--s-6) 0 var(--s-4);
  margin-top: auto;
}

.footer.footer-compact::after {
  width: 220px;
  height: 220px;
  top: auto;
  bottom: -80px;
  opacity: 0.22;
}

.footer.footer-compact .footer-bottom {
  padding-top: 0;
  border-top: none;
}

/* ── 17. UTILITIES — loading · empty · misc ───────────────────────── */
.loading-spinner {
  display: flex; align-items: center; justify-content: center; gap: var(--s-3);
  padding: var(--s-16) var(--s-6);
  color: var(--fg-muted);
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  grid-column: 1 / -1;
}
.spinner {
  width: 32px; height: 32px;
  border: 1.5px solid var(--border-strong);
  border-top-color: var(--gold-1);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty-state {
  text-align: center;
  padding: var(--s-16) var(--s-6);
  color: var(--fg-muted);
  grid-column: 1 / -1;
}
.empty-icon {
  font-size: 3.5rem;
  margin-bottom: var(--s-4);
  opacity: 0.4;
  animation: float-empty 4s ease-in-out infinite;
}
@keyframes float-empty {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-8px); }
}

/* ── 18. REVEAL ENGINE — universal scroll-in ──────────────────────── */
.reveal, .reveal-fade, .reveal-left, .reveal-right, .reveal-scale {
  opacity: 0;
  transition: opacity var(--d-cinema) var(--ease-out-cinema),
              transform var(--d-cinema) var(--ease-out-cinema),
              filter var(--d-cinema) var(--ease-out-cinema);
  will-change: opacity, transform;
}
.reveal       { transform: translateY(36px); }
.reveal-fade  { /* opacity-only */ }
.reveal-left  { transform: translateX(-48px); }
.reveal-right { transform: translateX(48px); }
.reveal-scale { transform: scale(0.94); filter: blur(4px); }

.reveal.visible, .reveal-fade.visible,
.reveal-left.visible, .reveal-right.visible, .reveal-scale.visible {
  opacity: 1; transform: none; filter: none;
}

/* delay helpers */
.delay-1 { transition-delay: 120ms; }
.delay-2 { transition-delay: 240ms; }
.delay-3 { transition-delay: 360ms; }
.delay-4 { transition-delay: 480ms; }

/* ── 19. RTL SUPPORT ──────────────────────────────────────────────── */
[dir="rtl"] body { font-family: 'Tajawal', var(--f-body); }
[dir="rtl"] .navbar-brand-text .brand-main { letter-spacing: 0.08em; }
[dir="rtl"] .nav-links a::after { left: auto; right: 0; }
[dir="rtl"] .reveal-left  { transform: translateX(48px); }
[dir="rtl"] .reveal-right { transform: translateX(-48px); }

/* ── 20. RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s-12); }
  .hero-visual { justify-self: stretch; max-width: 100%; }
  [dir="rtl"] .hero-visual { justify-self: stretch; }
  .contact-grid { grid-template-columns: 1fr; gap: var(--s-8); }
  .trainer-detail-grid { grid-template-columns: 1fr; gap: var(--s-8); }
  .trainer-profile-card { position: static; max-width: 420px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed; inset: 64px 0 0;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(12,16,26,0.995) 0%, rgba(14,18,28,0.99) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: var(--s-12) var(--s-8);
    gap: var(--s-6);
    align-items: flex-start;
    transform: translateX(100%);
    transition: transform var(--d-slow) var(--ease-out-cinema);
    min-height: calc(100dvh - 64px);
    overflow-y: auto;
    border-top: 1px solid rgba(217,181,115,0.12);
    box-shadow: 0 28px 60px rgba(0,0,0,0.42);
    z-index: 1200;
  }
  [dir="rtl"] .nav-links { transform: translateX(-100%); }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1rem; }
  .hamburger { display: inline-flex; }

  /* Avatar dropdown on mobile: align to right edge */
  .nav-profile-dropdown { right: 0; left: auto; min-width: 180px; }

  /* Mobile drawer: dropdown groups become inline accordions */
  .nav-links .nav-item-group { width: 100%; }
  .nav-links .nav-group-toggle {
    width: 100%;
    justify-content: space-between;
    font-size: 1rem;
    padding: 10px 0;
  }
  .nav-submenu {
    position: static;
    display: none;
    width: 100%;
    min-width: 0;
    background: rgba(255,255,255,0.03);
    border: none;
    border-left: 2px solid rgba(217,181,115,0.25);
    border-radius: 0;
    margin: 4px 0 var(--s-2);
    padding: var(--s-2) 0 var(--s-2) var(--s-4);
    box-shadow: none;
    animation: none;
  }
  .nav-links .nav-item-group.open > .nav-submenu { display: block; }
  .nav-submenu-item { padding: var(--s-3) var(--s-2); }
  .nav-submenu-label { font-size: 0.95rem; }
  .nav-submenu-desc { font-size: 0.78rem; }

  .hero { min-height: auto; padding-top: 100px; }
  .hero h1 { font-size: clamp(2.4rem, 8vw, 3.6rem); }
  .hero-metrics { grid-template-columns: 1fr; gap: var(--s-3); }
  .hero-metrics > div + div { border-left: none; padding-left: 0; padding-top: var(--s-3); border-top: 1px solid var(--border); }
  [dir="rtl"] .hero-metrics > div + div { border-right: none; padding-right: 0; }

  .footer-grid { grid-template-columns: 1fr; gap: var(--s-8); }
  .container { padding: 0 var(--s-5); }

  .wizard-stepper { gap: var(--s-2); }
  .wizard-step span { display: none; }
  .wizard-step-line { width: 20px; }

  .pd-hotels-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .btn { padding: 12px 24px; font-size: 0.72rem; }
  .btn-lg { padding: 16px 32px; font-size: 0.78rem; }
  h1 { font-size: clamp(2rem, 9vw, 3rem); }
}

/* ── 21. ACCESSIBILITY ────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--gold-1);
  outline-offset: 4px;
  border-radius: var(--radius-xs);
}
:focus:not(:focus-visible) { outline: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero::before, .hero .container::before { animation: none !important; }
  .reveal, .reveal-fade, .reveal-left, .reveal-right, .reveal-scale,
  .program-card, .trainer-card, .feature-card { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* ── 22. PRINT ─────────────────────────────────────────────────────── */
@media print {
  body { background: white; color: black; }
  .navbar, .footer, .btn, .hero::before, .hero::after, .video-bg { display: none !important; }
}

/* ════════════════════════════════════════════════════════════════════
   23 · VIDEO BACKGROUNDS — cinematic motion layer
   ─────────────────────────────────────────────────────────────────────
   Strategy:
   • Each .video-bg is an absolutely-positioned layer behind content.
   • Videos lazy-load via video-bg.js — `data-src` only becomes `src`
     when the section enters the viewport, then `play()` starts.
   • Two tonal overlays available:
       - .video-bg--ink  → deep navy mask (for hero/CTA over dark UI)
       - .video-bg--soft → light wash (for paper sections)
   • Mobile narrow + reduced-motion: video hidden, poster image only.
   • Performance: only `transform`/`opacity` animated; videos use
     `playsinline muted loop preload="metadata"`.
   ════════════════════════════════════════════════════════════════════ */
.video-bg {
  position: absolute; inset: 0;
  overflow: hidden;
  z-index: -1;                 /* sits behind content but above page bg */
  pointer-events: none;
  background: var(--ink);      /* fallback colour while video loads */
  isolation: isolate;
}
.video-bg__media {
  position: absolute;
  top: 50%; left: 50%;
  width: 100%; height: 100%;
  min-width: 100%; min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  /* fade in once the video element fires `playing` (toggled by JS) */
  opacity: 0;
  transition: opacity 1.2s var(--ease-out-cinema);
  will-change: opacity, transform;
}
.video-bg.is-playing .video-bg__media { opacity: 1; }

/* — Tonal overlays for readability — */
.video-bg__overlay {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 1;
}
.video-bg--ink .video-bg__overlay {
  background:
    radial-gradient(60% 70% at 18% 30%, rgba(217,181,115,0.18), transparent 60%),
    linear-gradient(180deg, rgba(14,18,28,0.46) 0%, rgba(14,18,28,0.70) 60%, var(--ink-3) 100%),
    linear-gradient(90deg, rgba(14,18,28,0.48) 0%, rgba(14,18,28,0.14) 50%, rgba(14,18,28,0.0) 100%);
}
.video-bg--ink .video-bg__media {
  filter: brightness(0.74) saturate(1.08) contrast(1.06);
  /* very slow ken-burns drift — pure transform, GPU only */
  animation: video-drift 24s ease-in-out infinite alternate;
}
.video-bg--soft .video-bg__overlay {
  background:
    linear-gradient(180deg, rgba(250,250,247,0.86) 0%, rgba(250,250,247,0.94) 100%),
    radial-gradient(60% 70% at 80% 20%, rgba(217,181,115,0.10), transparent 60%);
}
.video-bg--soft .video-bg__media {
  filter: brightness(1.1) contrast(0.95) saturate(0.92);
}

/* — Compact accent video (for inner page heros — very subtle) — */
.video-bg--accent .video-bg__overlay {
  background:
    linear-gradient(180deg, rgba(14,18,28,0.54) 0%, rgba(14,18,28,0.78) 60%, var(--ink-3) 100%);
}
.video-bg--accent .video-bg__media {
  filter: brightness(0.63) saturate(1.22) contrast(1.04) hue-rotate(-8deg);
  mix-blend-mode: screen;
  opacity: 0;
}
.video-bg--accent.is-playing .video-bg__media { opacity: 0.56; }

/* — Section-bound video (decorative motion layer behind a regular section) — */
.video-bg--section { z-index: 0; opacity: 0.42; }
.video-bg--section .video-bg__overlay { background: linear-gradient(180deg, var(--paper) 0%, transparent 30%, transparent 70%, var(--paper) 100%); }

/* — Ken-burns ultra-slow drift (cinematic only — no zoom artefact) — */
@keyframes video-drift {
  0%   { transform: translate(-50%, -50%) scale(1.06) translate3d(0, 0, 0); }
  100% { transform: translate(-50%, -50%) scale(1.10) translate3d(-1.5%, 1%, 0); }
}

/* — Hero needs its content above the video layer — */
.hero > .container { position: relative; z-index: 2; }
.page-hero > .container { position: relative; z-index: 2; }
.section-dark > .container { position: relative; z-index: 2; }

/* — Defeat the legacy hero ::before image when a video-bg is present — */
.hero:has(.video-bg)::before { opacity: 0; animation: none; }
.page-hero:has(.video-bg)::before { opacity: 0.35; }
.section-dark:has(.video-bg.is-playing) { background: var(--ink); }

/* — Performance / reduced motion / mobile fallback — */
@media (prefers-reduced-motion: reduce) {
  .video-bg__media { animation: none !important; }
  .video-bg.is-playing .video-bg__media { opacity: 1; }       /* show first frame, no drift */
}
@media (max-width: 640px) {
  /* Keep motion on phones, but make it lighter and cheaper than desktop. */
  .video-bg__media {
    display: block;
    animation: none;
  }
  .video-bg--ink .video-bg__overlay {
    background:
      radial-gradient(68% 72% at 18% 26%, rgba(217,181,115,0.16), transparent 62%),
      linear-gradient(180deg, rgba(14,18,28,0.52) 0%, rgba(14,18,28,0.74) 62%, var(--ink-3) 100%);
  }
  .video-bg--ink .video-bg__media {
    filter: brightness(0.68) contrast(1.03) saturate(0.9);
  }
  .video-bg--ink.is-playing .video-bg__media { opacity: 0.88; }
  .video-bg--accent .video-bg__overlay {
    background:
      linear-gradient(180deg, rgba(14,18,28,0.58) 0%, rgba(14,18,28,0.80) 60%, var(--ink-3) 100%);
  }
  .video-bg--accent .video-bg__media {
    filter: brightness(0.58) saturate(1.12) contrast(1.03) hue-rotate(-8deg);
  }
  .video-bg--accent.is-playing .video-bg__media {
    opacity: 0.42;
  }
}

/* ══════════════════════════════════════════════════════════
   AUTH MODAL — Login / Register
   ══════════════════════════════════════════════════════════ */

/* Nav auth area */
.nav-user-area {
  display: flex;
  align-items: center;
}

/* ── Profile avatar button ── */
.nav-avatar-wrap {
  position: relative;
}
.nav-avatar-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-3));
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 0.8rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px rgba(217,181,115,0.35);
  transition: box-shadow 0.2s, transform 0.2s;
  letter-spacing: 0.03em;
}
.nav-avatar-btn:hover {
  box-shadow: 0 0 0 3px rgba(217,181,115,0.6);
  transform: scale(1.06);
}

/* ── Dropdown ── */
.nav-profile-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 200px;
  background: var(--ink-4);
  border: 1px solid rgba(217,181,115,0.2);
  border-radius: var(--radius-lg);
  padding: var(--s-3) 0;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  z-index: 2000;
  animation: dropdownIn 0.15s var(--ease-out-cinema);
}
.nav-profile-dropdown.open { display: block; }
@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-dropdown-name {
  padding: var(--s-2) var(--s-4) 0.1rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--paper);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-dropdown-role {
  padding: 0 var(--s-4) var(--s-2);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gold);
  font-weight: 600;
}
.nav-dropdown-divider {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin: var(--s-2) 0;
}
.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: var(--s-3) var(--s-4);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: var(--f-body);
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown-item:hover {
  background: rgba(255,255,255,0.06);
  color: var(--paper);
}
.nav-dropdown-logout { color: rgba(255,100,100,0.75); }
.nav-dropdown-logout:hover { background: rgba(255,80,80,0.08); color: #ff7070; }

.btn-nav-login {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--f-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.38rem 0.9rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn-nav-login:hover {
  background: var(--gold);
  color: var(--ink);
}
.nav-user-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.nav-user-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.03em;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.btn-nav-logout {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.6);
  font-family: var(--f-body);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn-nav-logout:hover {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

/* Modal backdrop + container */
#auth-modal,
#profile-otp-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  align-items: center;
  justify-content: center;
}
#auth-modal.open,
#profile-otp-modal.open {
  display: flex;
}
.auth-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.auth-modal-box {
  position: relative;
  z-index: 1;
  background: var(--ink-4);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: min(440px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: 2rem 2rem 1.75rem;
  animation: authModalIn 0.22s cubic-bezier(0.22,1,0.36,1);
}
@keyframes authModalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* Close button */
.auth-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255,255,255,0.06);
  border: none;
  color: rgba(255,255,255,0.55);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.auth-modal-close:hover {
  background: rgba(255,255,255,0.14);
  color: #fff;
}

/* Tabs */
.auth-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 1.5rem;
}
.auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: rgba(255,255,255,0.45);
  font-family: var(--f-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0 0 0.65rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  margin-bottom: -1px;
}
.auth-tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* Form */
.auth-form { }
.auth-modal-title {
  font-family: var(--f-display);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--paper);
  margin-bottom: 0.2rem;
}
.auth-modal-subtitle {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.4rem;
}
.auth-field {
  margin-bottom: 1rem;
}
.auth-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.4rem;
}
.auth-field input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: var(--paper);
  font-family: var(--f-body);
  font-size: 0.9rem;
  padding: 0.65rem 0.9rem;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.auth-field input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(217,181,115,0.14);
}
.auth-field input::placeholder { color: rgba(255,255,255,0.25); }

/* Enrollment form — readonly (pre-filled from user profile) */
.form-control[readonly] {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.5);
  cursor: not-allowed;
}
.form-control[readonly]:focus {
  box-shadow: none;
  border-color: rgba(255,255,255,0.06);
}
.auth-error {
  min-height: 1.1em;
  font-size: 0.82rem;
  color: #ff7070;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}
.auth-submit {
  width: 100%;
  margin-top: 0.25rem;
  margin-bottom: 1rem;
  padding: 0.7rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.auth-switch {
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}
.auth-switch a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}
.auth-switch a:hover { text-decoration: underline; }

/* OTP step */
.otp-email-hint {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.4rem;
  line-height: 1.5;
}
.otp-email-hint strong { color: var(--gold); }
.otp-input-row {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.otp-digit {
  width: 2.8rem;
  height: 3.2rem;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: #fff;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.otp-digit:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(217,181,115,0.14);
}
.otp-resend {
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  margin-top: 0.5rem;
}
.otp-resend button {
  background: none;
  border: none;
  color: var(--gold);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.82rem;
  padding: 0;
}
.otp-resend button:hover { text-decoration: underline; }
.otp-resend button:disabled { color: rgba(255,255,255,0.3); cursor: default; text-decoration: none; }

@media (max-width: 480px) {
  .auth-modal-box { padding: 1.5rem 1.25rem 1.25rem; }
  .nav-user-name  { max-width: 80px; }
}

/* ══════════════════════════════════════════════════════════
   PROFILE PAGE
   ══════════════════════════════════════════════════════════ */

.profile-wrapper {
  max-width: 860px;
  margin: 0 auto;
  padding: var(--s-8) 0 var(--s-16);
}

.profile-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--s-8);
  align-items: start;
}

/* ── Avatar card ── */
.profile-card {
  background: var(--ink-4);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  padding: var(--s-8) var(--s-6);
  text-align: center;
  position: sticky;
  top: 96px;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-3));
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--s-4);
  box-shadow: 0 0 0 3px rgba(217,181,115,0.25);
}

.profile-username {
  font-family: var(--f-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--paper);
  margin-bottom: var(--s-2);
}

.profile-role-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gold);
  background: rgba(217,181,115,0.1);
  border: 1px solid rgba(217,181,115,0.2);
  border-radius: var(--radius-full);
  padding: 0.2rem 0.7rem;
}

/* ── Form column ── */
.profile-form-col { display: flex; flex-direction: column; gap: var(--s-6); }

.profile-section {
  background: var(--ink-4);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  padding: var(--s-8);
}

.profile-section-title {
  font-family: var(--f-body);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
  margin-bottom: var(--s-6);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.profile-field {
  margin-bottom: var(--s-5);
}

.profile-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--s-2);
}

.profile-field input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: var(--paper);
  font-family: var(--f-body);
  font-size: 0.9rem;
  padding: 0.65rem 0.9rem;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.profile-field input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(217,181,115,0.14);
}

.profile-field input::placeholder { color: rgba(255,255,255,0.22); }

.profile-msg {
  min-height: 1.2em;
  font-size: 0.83rem;
  margin-bottom: var(--s-3);
  line-height: 1.4;
}
.profile-msg.error   { color: #ff7070; }
.profile-msg.success { color: #4ade80; }

.profile-form-footer { display: flex; justify-content: flex-end; }

.profile-save-btn {
  min-width: 140px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* nav username as link */
.nav-user-name {
  color: var(--gold);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.nav-user-name:hover { opacity: 0.75; }

@media (max-width: 768px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .profile-card { position: static; }
}

/* ─────────────────────────────────────────────────────────────────
   MY COURSES PAGE
───────────────────────────────────────────────────────────────── */

/* Layout */
.my-courses-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--s-8);
  align-items: start;
}
.my-courses-sidebar { position: sticky; top: 96px; }
.my-courses-main    { min-width: 0; }

/* Profile subnav inside sidebar */
.profile-subnav {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(255,255,255,0.07);
}
.profile-subnav-link {
  display: block;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.profile-subnav-link:hover { background: rgba(255,255,255,0.05); color: var(--paper); }
.profile-subnav-link.active {
  background: rgba(217,181,115,0.1);
  color: var(--gold);
  font-weight: 600;
}

/* Stats row */
.mc-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
  margin-bottom: var(--s-7);
}
.mc-stat {
  background: var(--ink-4);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: var(--s-5) var(--s-4);
  text-align: center;
  transition: border-color 0.2s;
}
.mc-stat:hover { border-color: rgba(217,181,115,0.25); }
.mc-stat-num {
  display: block;
  font-family: var(--f-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--paper);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.mc-stat-confirmed { color: #6fcf97; }
.mc-stat-pending   { color: #f2c94c; }
.mc-stat-cancelled { color: #ff7070; }
.mc-stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.4);
  font-weight: 600;
}

/* Course cards list */
.mc-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.mc-card {
  display: flex;
  gap: var(--s-5);
  background: var(--ink-4);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  padding: var(--s-5);
  transition: border-color 0.2s, transform 0.2s;
}
.mc-card:hover {
  border-color: rgba(217,181,115,0.25);
  transform: translateY(-2px);
}
.mc-card-img {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mc-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mc-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.mc-card-top {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.mc-status {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
}
.mc-status-confirmed {
  background: rgba(111,207,151,0.12);
  color: #6fcf97;
  border: 1px solid rgba(111,207,151,0.3);
}
.mc-status-pending {
  background: rgba(242,201,76,0.1);
  color: #f2c94c;
  border: 1px solid rgba(242,201,76,0.25);
}
.mc-status-cancelled {
  background: rgba(255,112,112,0.1);
  color: #ff7070;
  border: 1px solid rgba(255,112,112,0.25);
}
.mc-enrolled-date {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}
.mc-card-title {
  font-family: var(--f-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--paper);
  margin: 0;
  line-height: 1.3;
}
.mc-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}
.mc-card-title a:hover { color: var(--gold); }
.mc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.2rem;
}
.mc-meta-item {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-full);
  padding: 0.2rem 0.6rem;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .my-courses-layout {
    grid-template-columns: 1fr;
  }
  .my-courses-sidebar { position: static; }
  .mc-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .mc-card { flex-direction: column; }
  .mc-card-img { width: 100%; height: 160px; }
  .mc-stats { grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }
  .mc-stat-num { font-size: 1.6rem; }
}

/* ── Pagination ──────────────────────────────────────────────────── */
.pagination-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  padding: 2rem 0 1rem;
  flex-wrap: wrap;
}
.page-btn {
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.75rem;
  border: 1px solid rgba(217,181,115,0.3);
  background: transparent;
  color: var(--text-muted);
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.page-btn:hover:not(:disabled):not(.active) {
  background: rgba(217,181,115,0.1);
  color: var(--gold);
  border-color: var(--gold);
}
.page-btn.active {
  background: var(--gold);
  color: #1C2230;
  border-color: var(--gold);
  font-weight: 700;
  cursor: default;
}
.page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.page-ellipsis {
  color: var(--text-muted);
  padding: 0 0.25rem;
  line-height: 2.4rem;
}
.page-prev, .page-next {
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* ════════════════════════════════════════════════════════════════════
   24 · RESPONSIVE REFINEMENTS — full coverage down to iPhone SE
   ─────────────────────────────────────────────────────────────────────
   Purely additive responsive layer. No structural / behavioural rules.
   Desktop and existing tablet styles remain untouched — these blocks
   only refine sizing, spacing, and layout for narrow viewports so the
   UI works on every phone (down to 320px) without overflow or break.
   ════════════════════════════════════════════════════════════════════ */

/* Global safety: prevent any accidental horizontal scroll */
html, body { max-width: 100%; }
img, video, iframe, canvas, svg { max-width: 100%; height: auto; }
canvas { height: auto; }

/* ── ≤ 1024px — large tablets / small laptops ─────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { gap: var(--s-8); }
  .about-grid  { gap: var(--s-5); }
  .programs-grid, .trainers-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: var(--s-6);
  }
}

/* ── ≤ 900px — tablet portrait ────────────────────────────────────── */
@media (max-width: 900px) {
  .contact-form, .contact-form-light,
  .contact-info-card { padding: var(--s-8); }
  .about-card { padding: var(--s-8); }
  .trainer-profile-card { padding: var(--s-8); }
  .trainer-profile-card .photo,
  .trainer-profile-card .photo-placeholder {
    width: 150px; height: 150px;
  }
  .wizard-card { padding: var(--s-6); }

  .search-controls {
    flex-direction: column;
    gap: var(--s-3);
  }
  .filters-dropdown,
  .filters-toggle {
    width: 100%;
  }
  .filters-panel {
    width: 100%;
    right: auto;
    left: 0;
  }
  [dir="rtl"] .filters-panel {
    left: auto;
    right: 0;
  }
}

/* ── ≤ 768px — phones / small tablets (extend existing block) ─────── */
@media (max-width: 768px) {
  /* Tighter container gutter */
  .container { padding: 0 var(--s-4); }

  /* Sections — reduce vertical rhythm */
  .section, .section-white, .section-light, .section-dark {
    padding: clamp(56px, 9vh, 96px) 0;
  }
  .section-light-tight { padding: clamp(48px, 7vh, 80px) 0; }

  /* Page hero compact tweaks */
  .page-hero { padding: clamp(96px, 14vh, 140px) 0 clamp(56px, 9vh, 90px); }
  .page-hero-compact { padding: clamp(96px, 13vh, 130px) 0 clamp(48px, 8vh, 80px); }

  /* Navbar — keep brand readable, give hamburger room */
  .navbar { padding: var(--s-3) 0; }
  .navbar-logo { height: 78px; width: auto; }
  .navbar-brand-text .brand-main,
  .navbar-brand-text #site-name { font-size: 0.95rem; letter-spacing: 0.14em; }
  .navbar-brand-text .brand-sub { font-size: 0.58rem; letter-spacing: 0.26em; }
  .nav-actions { gap: var(--s-2); }

  /* Hero glass cards / metrics — better stacking */
  .hero-actions { gap: var(--s-2); }
  .hero-actions .btn { flex: 1 1 auto; }
  .glass-card, .stack-card { padding: var(--s-6); }
  .glass-card h3 { font-size: 1.4rem; }

  /* About page typography */
  .about-intro { font-size: clamp(1.05rem, 1.2vw + 0.6rem, 1.4rem); padding: 0 var(--s-4); }
  .about-grid { grid-template-columns: 1fr; gap: var(--s-5); }
  .about-card { padding: var(--s-6); }

  /* Contact */
  .contact-form, .contact-form-light,
  .contact-info-card { padding: var(--s-6); }
  .contact-info-card h3 { font-size: 1.6rem; margin-bottom: var(--s-5); }

  /* Programs list / filter bar — let it scroll horizontally if needed */
  .filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-left: calc(-1 * var(--s-4));
    margin-right: calc(-1 * var(--s-4));
    padding-left: var(--s-4);
    padding-right: var(--s-4);
    scrollbar-width: none;
  }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-tab { flex: 0 0 auto; }
  .filters-panel .filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
  .filters-panel .filter-tab {
    min-height: 48px;
    padding: 11px 14px;
  }

  /* Search */
  .search-input { padding: 14px 20px 14px 46px; font-size: 0.9rem; }
  [dir="rtl"] .search-input { padding: 14px 46px 14px 20px; }
  .search-bar::before { left: 18px; }
  .search-bar::after  { left: 28px; }
  [dir="rtl"] .search-bar::before { right: 18px; left: auto; }
  [dir="rtl"] .search-bar::after  { right: 28px; left: auto; }
  .filters-toggle { min-height: 54px; padding: 11px 16px; }
  .filters-panel {
    padding: var(--s-4);
    border-radius: 22px;
  }

  /* Trainer card */
  .trainer-image,
  .trainer-image-placeholder { width: 120px; height: 120px; }
  .trainer-card h3 { font-size: 1.2rem; }

  /* Programs — single column on tight screens */
  .programs-grid {
    grid-template-columns: 1fr;
    gap: var(--s-5);
  }
  /* Trainers — keep two cards side by side on small screens */
  .trainers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-4);
  }
  .features-grid { grid-template-columns: 1fr; gap: var(--s-3); }

  /* Trainer detail page */
  .trainer-profile-card { padding: var(--s-6); max-width: 100%; }
  .trainer-profile-card .photo,
  .trainer-profile-card .photo-placeholder { width: 130px; height: 130px; }
  .trainer-detail-grid h2 { font-size: 1.5rem; }

  /* Wizard / program detail */
  .wizard-card { padding: var(--s-5); border-radius: var(--radius); }
  .wizard-stepper { gap: var(--s-1); margin-bottom: var(--s-8); }
  .wizard-step-dot { width: 30px; height: 30px; font-size: 0.85rem; }
  .wizard-step-line { width: 14px; }
  .wizard-step-title { font-size: clamp(1.3rem, 4vw + 0.5rem, 1.8rem); }
  .wizard-footer {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: var(--s-2);
  }
  .wizard-footer .btn { width: 100%; }
  .wizard-summary-row {
    flex-direction: column;
    gap: var(--s-1);
  }
  .wizard-summary-value { text-align: left; }
  [dir="rtl"] .wizard-summary-value { text-align: right; }
  .wizard-price-total { font-size: clamp(2rem, 7vw + 1rem, 3rem); }

  /* Footer text spacing */
  .footer { padding: var(--s-10) 0 var(--s-5); margin-top: var(--s-10); }
  .footer-grid { gap: var(--s-6); margin-bottom: var(--s-8); }
  .footer h4 { margin-bottom: var(--s-3); }
  .footer.footer-compact { padding: var(--s-5) 0 var(--s-4); margin-top: auto; }

  /* Profile */
  .profile-section { padding: var(--s-6); }

  /* Forms */
  .form-control { padding: 14px 16px; font-size: 0.9rem; }
  textarea.form-control { min-height: 120px; }

  /* Eyebrow + headings for inner pages */
  .eyebrow { margin-bottom: var(--s-4); font-size: 0.66rem; letter-spacing: 0.26em; }
  .lead { font-size: clamp(0.98rem, 1vw + 0.7rem, 1.15rem); }
}

/* ── ≤ 640px — small tablets / large phones ───────────────────────── */
@media (max-width: 640px) {
  .hero { padding-top: 90px; min-height: auto; }
  .hero-grid { gap: var(--s-8); min-height: auto; }
  .hero .container::before { width: 200px; height: 200px; }
  .hero-visual { max-width: 100%; gap: var(--s-3); }

  /* Drop the heavy side-rail accent in stack-card on tight screens */
  .stack-card { padding-left: var(--s-5); }
  [dir="rtl"] .stack-card { padding-right: var(--s-5); padding-left: var(--s-5); }

  /* Buttons — keep tap area, allow wrap */
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Tables / wide content */
  .pd-hotels-grid { grid-template-columns: 1fr; }

  /* Trainer detail headings */
  .trainer-detail-grid h2 { font-size: 1.35rem; }
}

/* ── ≤ 480px — phones (extend existing block) ─────────────────────── */
@media (max-width: 480px) {
  :root {
    --s-12: 36px;
    --s-16: 48px;
    --s-20: 60px;
  }

  .container { padding: 0 var(--s-3); }

  /* Smaller navbar brand on very small screens */
  .navbar { padding: 10px 0; }
  .navbar-logo { height: 66px; width: auto; }
  .navbar-brand { gap: var(--s-2); }
  .navbar-brand-text .brand-main,
  .navbar-brand-text #site-name { font-size: 0.85rem; letter-spacing: 0.1em; }
  .navbar-brand-text .brand-sub { font-size: 0.52rem; letter-spacing: 0.22em; }
  .btn-lang { padding: 6px 12px; font-size: 0.62rem; letter-spacing: 0.18em; }

  /* Hero text */
  .hero { padding-top: 80px; padding-bottom: var(--s-12); }
  .hero h1 { font-size: clamp(1.85rem, 9vw, 2.6rem); }
  .lead { font-size: 0.98rem; line-height: 1.5; margin-bottom: var(--s-6); }
  .hero-actions { gap: var(--s-2); margin-bottom: var(--s-8); }

  /* Glass cards a little tighter */
  .glass-card, .stack-card { padding: var(--s-5); border-radius: var(--radius); }
  .glass-card h3 { font-size: 1.25rem; }
  .glass-card p, .stack-card p { font-size: 0.88rem; }

  /* Page hero */
  .page-hero h1 { font-size: clamp(1.85rem, 8vw, 2.8rem); }
  .page-hero p { font-size: 0.95rem; }
  #program-header h1, #trainer-header h1 { font-size: clamp(1.6rem, 7vw, 2.4rem) !important; }

  /* Section title rule */
  .section-white > .container > h2,
  .section-light > .container > h2,
  .section-dark > .container > h2 { font-size: clamp(1.6rem, 6vw, 2.1rem); }
  .section-subtitle { font-size: 0.95rem; margin-bottom: var(--s-8); }

  /* Cards */
  .card-body { padding: var(--s-5); gap: var(--s-2); }
  .card-footer { padding: var(--s-3) var(--s-5) var(--s-5); flex-wrap: wrap; gap: var(--s-2); }
  .card-title { font-size: 1.25rem; }
  .program-price { font-size: 1.2rem; }
  .category-card { min-height: 260px; }
  .category-card .card-body { padding: var(--s-5); min-height: 260px; }
  .category-card .card-title { font-size: 1.45rem; }

  /* Trainer card */
  .trainer-card { padding: var(--s-5); }
  .trainer-image,
  .trainer-image-placeholder { width: 110px; height: 110px; }

  /* Feature card */
  .feature-card { padding: var(--s-6); }
  .feature-card h3 { font-size: 1.2rem; }

  /* About */
  .about-intro {
    font-size: clamp(1rem, 1vw + 0.6rem, 1.25rem);
    padding: 0 var(--s-3);
    margin-bottom: var(--s-10);
  }
  .about-intro::before, .about-intro::after { font-size: 2.6rem; }
  .about-intro::after { bottom: -28px; }
  .about-card { padding: var(--s-5); }
  .about-card h3 { font-size: 1.35rem; }

  /* Contact */
  .contact-form, .contact-form-light,
  .contact-info-card { padding: var(--s-5); border-radius: var(--radius); }
  .contact-info-card h3 { font-size: 1.4rem; margin-bottom: var(--s-4); }
  .contact-info-item { padding: var(--s-3) 0; }
  .contact-info-item span:not(.contact-info-label),
  .contact-info-item a { font-size: 0.92rem; word-break: break-word; }

  /* Forms */
  .form-control { padding: 12px 14px; font-size: 0.9rem; border-radius: var(--radius-xs); }
  textarea.form-control { min-height: 110px; }
  .form-group { margin-bottom: var(--s-4); }
  .form-group label, .form-label { font-size: 0.66rem; letter-spacing: 0.16em; }

  /* Search */
  .search-input { padding: 12px 18px 12px 42px; font-size: 0.88rem; }
  [dir="rtl"] .search-input { padding: 12px 42px 12px 18px; }
  .search-bar::before { left: 16px; width: 14px; height: 14px; }
  .search-bar::after  { left: 25px; }
  [dir="rtl"] .search-bar::before { right: 16px; left: auto; }
  [dir="rtl"] .search-bar::after  { right: 25px; left: auto; }
  .filters-toggle-label,
  .filters-panel-label { font-size: 0.64rem; }
  .filters-toggle-value,
  .filters-panel-current { font-size: 0.86rem; }

  /* Filter tabs slightly smaller */
  .filter-tab { padding: 8px 16px; font-size: 0.72rem; }

  /* Trainer detail */
  .trainer-profile-card { padding: var(--s-5); border-radius: var(--radius); }
  .trainer-profile-card h3 { font-size: 1.45rem; }
  .trainer-profile-card .photo,
  .trainer-profile-card .photo-placeholder { width: 110px; height: 110px; font-size: 2.6rem; }
  .program-link-card { padding: var(--s-3) var(--s-4); font-size: 0.9rem; }

  /* Wizard */
  .wizard-card { padding: var(--s-4); }
  .wizard-stepper { gap: 4px; margin-bottom: var(--s-6); flex-wrap: wrap; }
  .wizard-step-dot { width: 28px; height: 28px; font-size: 0.78rem; }
  .wizard-step-line { width: 10px; }
  .wizard-step-title { font-size: 1.25rem; }
  .wizard-overview { font-size: 0.92rem; }
  .wizard-summary-label { font-size: 0.62rem; letter-spacing: 0.14em; }
  .wizard-price-box { padding: var(--s-4); }
  .wizard-price-total { font-size: clamp(1.8rem, 8vw + 0.5rem, 2.6rem); }
  .wizard-success-icon { width: 60px; height: 60px; font-size: 1.6rem; }
  .wizard-success h3 { font-size: 1.5rem; }

  /* Hero metrics — already stacked at 768; tighten further */
  .hero-metrics { gap: var(--s-2); padding-top: var(--s-5); }
  .hero-metrics > div span { font-size: 1.6rem; }
  .hero-metrics > div small { font-size: 0.6rem; letter-spacing: 0.18em; }

  /* Footer */
  .footer { padding: var(--s-8) 0 var(--s-4); margin-top: var(--s-8); }
  .footer-grid { gap: var(--s-5); margin-bottom: var(--s-6); }
  .footer-brand-text { font-size: 1.1rem; }
  .footer h4 { font-size: 0.66rem; }
  .footer-links a { font-size: 0.88rem; }
  .footer-bottom { font-size: 0.72rem; padding-top: var(--s-4); }
  .footer.footer-compact { padding: 14px 0 12px; margin-top: auto; }
  .footer.footer-compact .footer-bottom { font-size: 0.7rem; }

  /* Profile */
  .profile-wrapper { padding: var(--s-5) 0 var(--s-10); }
  .profile-section { padding: var(--s-5); }
  .profile-card { padding: var(--s-5) var(--s-4); }

  /* Auth modal */
  .auth-modal-box {
    padding: 1.25rem 1rem 1rem;
    border-radius: var(--radius);
    width: calc(100vw - 1.5rem);
    max-height: calc(100vh - 1.5rem);
  }
  .auth-modal-title { font-size: 1.35rem; }
  .auth-tab { font-size: 0.78rem; }
  .nav-user-name { max-width: 70px; font-size: 0.76rem; }
  .btn-nav-login { font-size: 0.74rem; padding: 0.32rem 0.7rem; }

  /* Pagination */
  .pagination-bar { gap: 0.3rem; padding: 1.25rem 0 0.75rem; }
  .page-btn { min-width: 2.1rem; height: 2.1rem; padding: 0 0.55rem; font-size: 0.82rem; }
}

/* ── ≤ 380px — iPhone SE / very small phones ──────────────────────── */
@media (max-width: 380px) {
  :root {
    --s-8: 24px;
    --s-10: 32px;
    --s-12: 32px;
  }

  .container { padding: 0 14px; }

  /* Brand: hide subtitle, keep just main mark */
  .navbar-brand-text .brand-sub { display: none; }
  .navbar-brand-text .brand-main,
  .navbar-brand-text #site-name { font-size: 0.78rem; letter-spacing: 0.08em; }
  .navbar-logo { height: 58px; width: auto; }
  .btn-lang { padding: 5px 10px; font-size: 0.58rem; letter-spacing: 0.14em; }
  .hamburger { padding: 8px; }

  /* Hero */
  .hero { padding-top: 70px; }
  .hero h1 { font-size: clamp(1.7rem, 9.5vw, 2.2rem); }
  .lead { font-size: 0.92rem; }
  .eyebrow { font-size: 0.6rem; letter-spacing: 0.22em; }

  /* Buttons sizing */
  .btn { padding: 11px 20px; font-size: 0.7rem; letter-spacing: 0.14em; }
  .btn-lg { padding: 13px 24px; font-size: 0.74rem; letter-spacing: 0.16em; }
  .btn-sm { padding: 8px 16px; font-size: 0.66rem; }

  /* Section titles */
  .section-white > .container > h2,
  .section-light > .container > h2,
  .section-dark > .container > h2 { font-size: clamp(1.4rem, 7vw, 1.9rem); }
  .section-subtitle { font-size: 0.88rem; }

  /* Page hero */
  .page-hero h1 { font-size: clamp(1.6rem, 8vw, 2.3rem); }
  .page-hero p { font-size: 0.88rem; }

  /* Cards */
  .glass-card, .stack-card { padding: var(--s-4); }
  .glass-card h3 { font-size: 1.15rem; }
  .card-body { padding: var(--s-4); }
  .card-footer { padding: var(--s-3) var(--s-4) var(--s-4); }
  .card-title { font-size: 1.15rem; }
  .card-desc { font-size: 0.85rem; }
  .program-price { font-size: 1.05rem; }

  /* Trainer card */
  .trainer-card { padding: var(--s-4); }
  .trainer-image,
  .trainer-image-placeholder { width: 96px; height: 96px; }
  .trainer-card h3 { font-size: 1.1rem; }

  /* Feature card */
  .feature-card { padding: var(--s-5); }
  .feature-card::after { font-size: 0.62rem; }

  /* About */
  .about-intro { font-size: 0.95rem; padding: 0 var(--s-2); }
  .about-intro::before, .about-intro::after { font-size: 2rem; }
  .about-card { padding: var(--s-4); }
  .about-card h3 { font-size: 1.2rem; }

  /* Contact */
  .contact-form, .contact-form-light,
  .contact-info-card { padding: var(--s-4); }
  .contact-info-card h3 { font-size: 1.25rem; }

  /* Hero metrics: stack remains, slightly smaller */
  .hero-metrics > div span { font-size: 1.4rem; }
  .hero-metrics > div small { font-size: 0.55rem; letter-spacing: 0.16em; }

  /* Trainer detail */
  .trainer-profile-card { padding: var(--s-4); }
  .trainer-profile-card h3 { font-size: 1.3rem; }
  .trainer-profile-card .photo,
  .trainer-profile-card .photo-placeholder { width: 100px; height: 100px; font-size: 2.2rem; }
  .trainer-detail-grid h2 { font-size: 1.2rem; }
  .trainer-profile-card .email-link { font-size: 0.8rem; padding: 7px 14px; word-break: break-word; }
  .social-link { width: 34px; height: 34px; font-size: 0.85rem; }

  /* Wizard */
  .wizard-step-dot { width: 26px; height: 26px; font-size: 0.72rem; }
  .wizard-step-line { width: 8px; }
  .wizard-step-title { font-size: 1.1rem; }
  .wizard-summary-label { font-size: 0.58rem; }
  .pd-badge { font-size: 0.62rem; padding: 4px 9px; }

  /* Forms */
  .form-control { padding: 11px 12px; font-size: 0.88rem; }

  /* Search & filters */
  .search-input { padding: 11px 16px 11px 38px; font-size: 0.85rem; }
  [dir="rtl"] .search-input { padding: 11px 38px 11px 16px; }
  .search-bar::before { left: 14px; width: 12px; height: 12px; }
  .search-bar::after  { left: 22px; width: 7px; }
  [dir="rtl"] .search-bar::before { right: 14px; left: auto; }
  [dir="rtl"] .search-bar::after  { right: 22px; left: auto; }
  .filters-toggle {
    min-height: 50px;
    gap: 12px;
    padding: 10px 14px;
  }
  .filters-panel { padding: var(--s-4); }
  .filter-tab { padding: 7px 14px; font-size: 0.68rem; letter-spacing: 0.08em; }

  /* Auth modal */
  .auth-modal-box { padding: 1.1rem 0.9rem 0.9rem; }
  .auth-modal-title { font-size: 1.2rem; }
  .auth-modal-subtitle { font-size: 0.78rem; }
  .auth-field input { font-size: 0.85rem; padding: 0.55rem 0.75rem; }
  .nav-user-name { max-width: 56px; font-size: 0.7rem; }
  .btn-nav-login { font-size: 0.68rem; padding: 0.28rem 0.55rem; }
  .btn-nav-logout { font-size: 0.66rem; padding: 0.25rem 0.55rem; }

  /* Footer */
  .footer-brand-text { font-size: 1rem; }
  .footer-links a { font-size: 0.84rem; }
  .footer-social a { width: 32px; height: 32px; font-size: 0.78rem; }

  /* Profile */
  .profile-section { padding: var(--s-4); }
  .profile-avatar { width: 70px; height: 70px; font-size: 1.5rem; }
  .profile-username { font-size: 0.88rem; }

  /* Pagination */
  .page-btn { min-width: 1.9rem; height: 1.9rem; padding: 0 0.45rem; font-size: 0.78rem; }
}

/* ── ≤ 320px — micro phones (older devices) ───────────────────────── */
@media (max-width: 320px) {
  .container { padding: 0 12px; }
  .navbar-brand-text { display: none; }
  .navbar-brand .navbar-logo { height: 54px; width: auto; }
  .hero h1 { font-size: 1.6rem; }
  .page-hero h1 { font-size: 1.5rem; }
  .btn { padding: 10px 18px; font-size: 0.66rem; }
  .btn-lg { padding: 12px 22px; font-size: 0.7rem; }
  .glass-card h3 { font-size: 1.05rem; }
  .card-title { font-size: 1.05rem; }
  .auth-modal-box { padding: 0.95rem 0.75rem 0.75rem; }
}

/* ── Touch-device tweaks: disable hover lifts that look broken on tap */
/* ── Home categories showcase: wider, more refined, and 2-up on phones */
.categories-showcase > .container {
  max-width: 1380px;
}

.categories-showcase .section-subtitle {
  max-width: 720px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

#featured-programs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(24px, 2vw, 34px);
  row-gap: clamp(26px, 2.2vw, 38px);
  align-items: stretch;
}

#featured-programs .category-card {
  --cat-pad: clamp(20px, 1.8vw, 28px);
  width: 100%;
  margin: 0;
  justify-self: stretch;
  min-height: clamp(360px, 31vw, 430px);
  aspect-ratio: 0.9;
  border-radius: 28px;
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 18px 44px rgba(14,18,28,0.16);
}

#featured-programs .category-card::before {
  transform: scale(1.01);
  filter: saturate(0.9) contrast(1.03) brightness(0.96);
}

#featured-programs .category-card::after {
  background:
    linear-gradient(180deg, rgba(8,12,20,0.08) 0%, rgba(8,12,20,0.26) 34%, rgba(8,12,20,0.72) 72%, rgba(8,12,20,0.94) 100%),
    radial-gradient(85% 55% at 12% 10%, rgba(217,181,115,0.24), transparent 62%);
}

#featured-programs .category-card:hover {
  transform: translateY(-8px);
  border-color: rgba(240,216,155,0.22);
  box-shadow: 0 24px 54px rgba(14,18,28,0.22);
}

#featured-programs .category-card .card-body {
  min-height: 100%;
  justify-content: flex-end;
  gap: 14px;
}

#featured-programs .category-card .category-header .badge {
  padding: 7px 14px 7px 13px;
  background: rgba(250,248,243,0.10);
  border-color: rgba(240,216,155,0.24);
  color: var(--gold-3);
  font-size: 0.56rem;
  letter-spacing: 0.22em;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#featured-programs .category-card .category-header .badge::before {
  width: 5px;
  height: 5px;
  box-shadow: 0 0 0 2px rgba(217,181,115,0.12);
}

#featured-programs .category-card .card-title {
  max-width: 16ch;
  font-size: clamp(1.4rem, 0.9vw + 1.02rem, 1.92rem);
  line-height: 1.02;
  letter-spacing: -0.018em;
  -webkit-line-clamp: 3;
  text-shadow: 0 10px 24px rgba(0,0,0,0.28);
}

#featured-programs .category-card .card-title::after {
  width: 46px;
  margin-top: 12px;
  opacity: 0.9;
}

#featured-programs .category-card .card-desc {
  display: none;
}

#featured-programs .category-card .card-footer {
  padding-top: 14px;
  border-top-color: rgba(255,255,255,0.09);
}

#featured-programs .category-card .card-footer .btn-outline {
  width: auto;
  min-width: 150px;
  min-height: 44px;
  justify-content: center;
  padding: 10px 18px;
  background: rgba(255,255,255,0.08);
  color: var(--paper);
  border-color: rgba(255,255,255,0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07);
}

#featured-programs .category-card .card-footer .btn-outline::before {
  display: none;
}

#featured-programs .category-card:hover .card-footer .btn-outline,
#featured-programs .category-card .card-footer .btn-outline:hover,
#featured-programs .category-card .card-footer .btn-outline:focus-visible {
  padding: 10px 18px;
  background: rgba(250,248,243,0.96);
  color: var(--ink-3);
  border-color: rgba(250,248,243,0.96);
  box-shadow: 0 10px 22px rgba(14,18,28,0.16);
}

@media (max-width: 1024px) {
  #featured-programs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 20px;
    row-gap: 24px;
  }

  #featured-programs .category-card {
    min-height: 340px;
  }
}

@media (max-width: 900px) {
  #featured-programs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 18px;
  }
}

@media (max-width: 768px) {
  .categories-showcase > .container {
    max-width: none;
  }

  #featured-programs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 14px;
    row-gap: 16px;
  }

  #featured-programs .category-card {
    min-height: 250px;
    aspect-ratio: auto;
    border-radius: 22px;
  }

  #featured-programs .category-card .card-body {
    padding: 16px;
    gap: 10px;
  }

  #featured-programs .category-card .category-header {
    top: 16px;
    left: 16px;
  }

  [dir="rtl"] #featured-programs .category-card .category-header {
    left: auto;
    right: 16px;
  }

  #featured-programs .category-card .category-header .badge {
    max-width: 100%;
    padding: 6px 10px;
    font-size: 0.5rem;
    letter-spacing: 0.16em;
  }

  #featured-programs .category-card .card-title {
    max-width: none;
    font-size: 1.08rem;
    line-height: 1.08;
  }

  #featured-programs .category-card .card-title::after {
    width: 34px;
    margin-top: 10px;
  }

  #featured-programs .category-card .card-footer {
    padding-top: 12px;
  }

  #featured-programs .category-card .card-footer .btn-outline {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 9px 12px;
    font-size: 0.6rem;
    letter-spacing: 0.14em;
  }
}

@media (max-width: 480px) {
  #featured-programs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 10px;
    row-gap: 12px;
  }

  #featured-programs .category-card {
    min-height: 220px;
    border-radius: 18px;
  }

  #featured-programs .category-card .card-body {
    padding: 14px;
    gap: 8px;
  }

  #featured-programs .category-card .card-title {
    font-size: 1rem;
  }

  #featured-programs .category-card .card-footer .btn-outline {
    min-height: 34px;
    font-size: 0.56rem;
    letter-spacing: 0.12em;
  }
}

#programs-grid .card-title {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#programs-grid .card-meta {
  flex-wrap: nowrap;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

#programs-grid .card-meta .badge-primary {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding: 6px 12px;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: none;
  background: rgba(217,181,115,0.10);
}

#programs-grid .card-meta .badge-en,
#programs-grid .card-meta .badge-ar {
  flex: 0 0 auto;
}

#programs-grid .card-desc {
  -webkit-line-clamp: 2;
  min-height: 3.2em;
}

#programs-grid .card-footer .btn {
  white-space: nowrap;
}

@media (max-width: 768px) {
  #programs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  #programs-grid .program-card {
    min-width: 0;
  }

  #programs-grid .card-body {
    padding: 14px;
    gap: 8px;
  }

  #programs-grid .card-title {
    font-size: 1.02rem;
    line-height: 1.08;
  }

  #programs-grid .card-text,
  #programs-grid .card-desc {
    font-size: 0.72rem;
    line-height: 1.4;
  }

  #programs-grid .card-desc {
    -webkit-line-clamp: 2;
  }

  #programs-grid .card-footer {
    padding: 10px 14px 14px;
    gap: 8px;
    align-items: stretch;
  }

  #programs-grid .program-price {
    font-size: 0.98rem;
  }

  #programs-grid .card-footer .btn {
    width: 100%;
    justify-content: center;
    padding: 8px 10px;
    font-size: 0.56rem;
    letter-spacing: 0.12em;
  }
}

@media (max-width: 480px) {
  #programs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  #programs-grid .card-body {
    padding: 12px;
    gap: 7px;
  }

  #programs-grid .card-title {
    font-size: 0.94rem;
  }

  #programs-grid .card-text,
  #programs-grid .card-desc {
    font-size: 0.68rem;
  }

  #programs-grid .card-footer {
    padding: 8px 12px 12px;
  }

  #programs-grid .program-price {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  #trainers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  #trainers-grid .trainer-card {
    min-width: 0;
    padding: 16px 14px;
  }

  #trainers-grid .trainer-image,
  #trainers-grid .trainer-image-placeholder {
    width: 88px;
    height: 88px;
  }

  #trainers-grid .trainer-card h3 {
    font-size: 1rem;
    line-height: 1.15;
  }

  #trainers-grid .trainer-card .position {
    font-size: 0.72rem;
    line-height: 1.35;
  }

  #trainers-grid .trainer-card .card-footer {
    padding-top: 12px;
  }

  #trainers-grid .trainer-card .btn {
    width: 100%;
    justify-content: center;
    padding: 8px 10px;
    font-size: 0.56rem;
    letter-spacing: 0.12em;
  }
}

@media (max-width: 480px) {
  #trainers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  #trainers-grid .trainer-card {
    padding: 14px 12px;
  }

  #trainers-grid .trainer-image,
  #trainers-grid .trainer-image-placeholder {
    width: 76px;
    height: 76px;
  }

  #trainers-grid .trainer-card h3 {
    font-size: 0.92rem;
  }

  #trainers-grid .trainer-card .position {
    font-size: 0.68rem;
  }
}

@media (hover: none) and (pointer: coarse) {
  .program-card:hover,
  .trainer-card:hover,
  .feature-card:hover,
  .about-card:hover,
  .glass-card:hover,
  .stack-card:hover { transform: none; }
}



/* ════════════════════════════════════════════════════════════════════
   Corporate wizard — program dropdown caret + glassy trainer-picker modal
   ════════════════════════════════════════════════════════════════════ */
.prog-wrap { position: relative; }
.prog-wrap .prog-input { padding-right: 44px; }
.prog-wrap::after {
  content: '';
  position: absolute; right: 18px; top: 28px;
  width: 9px; height: 9px;
  border-right: 2px solid #8a8470;
  border-bottom: 2px solid #8a8470;
  transform: translateY(-50%) rotate(45deg);
  transition: transform var(--d-base) var(--ease-out-cinema);
  pointer-events: none;
}
.prog-wrap.is-open::after { transform: translateY(-30%) rotate(-135deg); }
[dir="rtl"] .prog-wrap .prog-input { padding-right: 20px; padding-left: 44px; }
[dir="rtl"] .prog-wrap::after { right: auto; left: 18px; }

.cr-modal {
  position: fixed; inset: 0; z-index: 4000;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  background: rgba(10,14,22,0.55);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  opacity: 0; pointer-events: none;
  transition: opacity var(--d-base) var(--ease-out-cinema);
}
.cr-modal.open { opacity: 1; pointer-events: auto; }
.cr-modal-box {
  width: min(640px, 100%);
  max-height: 86vh; overflow-y: auto;
  background: linear-gradient(160deg, rgba(255,255,255,0.96), rgba(248,246,240,0.94));
  border: 1px solid rgba(217,181,115,0.35);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 90px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.6);
  padding: clamp(20px, 3vw, 32px);
  transform: translateY(16px) scale(0.98);
  transition: transform var(--d-base) var(--ease-spring);
}
.cr-modal.open .cr-modal-box { transform: translateY(0) scale(1); }
.cr-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 0.4rem; }
.cr-modal-title { font-family: var(--f-display); font-size: 1.5rem; color: var(--ink-3); margin: 0; }
.cr-modal-sub { color: rgba(28,34,48,0.6); font-size: 0.9rem; margin: 0 0 1.25rem; }
.cr-modal-close {
  background: transparent; border: 1px solid #DDD9CC; color: var(--ink-3);
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer; flex-shrink: 0;
  font-size: 1.1rem; line-height: 1; transition: all var(--d-base) var(--ease-out-cinema);
}
.cr-modal-close:hover { border-color: var(--gold-2); background: rgba(201,165,90,0.1); }
.cr-trainer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.85rem; }
.cr-trainer-card {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.9rem 1rem;
  background: #fff; border: 1.5px solid #E6E2D8; border-radius: var(--radius);
  cursor: pointer; text-align: left;
  transition: border-color var(--d-base) var(--ease-out-cinema), transform var(--d-base) var(--ease-out-cinema), box-shadow var(--d-base) var(--ease-out-cinema);
}
.cr-trainer-card:hover { border-color: var(--gold-2); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(201,165,90,0.18); }
.cr-trainer-card.selected { border-color: var(--gold-1); box-shadow: 0 0 0 1px var(--gold-1), 0 12px 28px rgba(201,165,90,0.22); }
.cr-trainer-photo {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  border: 2px solid var(--gold-soft); background: #F2F0EB;
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.cr-trainer-name { font-weight: 700; font-size: 0.95rem; color: var(--ink-3); }
.cr-trainer-spec { font-size: 0.8rem; color: rgba(28,34,48,0.55); }
[dir="rtl"] .cr-trainer-card { text-align: right; }
