/* ==========================================================================
   LMI GCC — Leadership Management International (GCC / Middle East)
   "Academy" reskin — design language inspired by ia.edu.sa
   Dark-first theme with a light variant via [data-theme="light"].
   Brand: Royal/Navy Blue + warm Gold. Modern, premium, education-forward.
   ========================================================================== */

:root {
  /* ---- Brand accents (constant across themes) ---- */
  --navy:        #112B54;
  --navy-700:    #163766;
  --blue:        #2E86C9;   /* primary interactive blue (brighter for dark UI) */
  --blue-600:    #2168bf;
  --blue-bright: #4BA3DC;   /* globe / accent */
  --sky:         #6FC0EE;
  --gold:        #E0A93B;   /* warm accent — used generously, ia.edu.sa style */
  --gold-dark:   #c8902a;
  --gold-soft:   rgba(224,169,59,.14);

  /* ---- Dark theme surfaces (DEFAULT) ---- */
  --bg:          #081B38;   /* deep navy canvas */
  --bg-soft:     #0B2347;   /* alternating band */
  --bg-soft-2:   #122F58;   /* tinted chip / media wells */
  --card:        #0F2A50;   /* card surface */
  --card-2:      #143263;
  --nav-bg:      rgba(8,27,56,.82);
  --footer-bg:   #061429;

  --ink:         #F4F8FE;   /* headings */
  --body:        #C2D2E8;   /* body text */
  --muted:       #8DA1C0;   /* secondary text */
  --line:        rgba(255,255,255,.10);
  --line-strong: rgba(255,255,255,.16);

  --on-brand:    #FFFFFF;

  /* ---- Effects ---- */
  --shadow-sm:   0 2px 10px rgba(0,0,0,.30);
  --shadow:      0 14px 34px rgba(0,0,0,.40);
  --shadow-lg:   0 30px 70px rgba(0,0,0,.55);
  --glow:        0 0 0 1px rgba(75,163,220,.30), 0 20px 50px rgba(46,134,201,.20);
  --radius:      18px;
  --radius-sm:   12px;
  --radius-lg:   26px;
  --ease:        cubic-bezier(.22, 1, .36, .08);
  --t:           .45s cubic-bezier(.22, 1, .36, .08);

  --grad-brand:  linear-gradient(135deg, var(--blue-600) 0%, var(--blue) 55%, var(--blue-bright) 100%);
  --grad-gold:   linear-gradient(135deg, #F0C054 0%, var(--gold) 55%, var(--gold-dark) 100%);
  --grad-deep:   linear-gradient(160deg, #06182F 0%, #0E2A52 100%);
}

/* ---- Light theme overrides ---- */
[data-theme="light"] {
  --blue:        #1E5BA8;
  --blue-bright: #2E86C9;
  --bg:          #FFFFFF;
  --bg-soft:     #F2F6FB;
  --bg-soft-2:   #EAF1FA;
  --card:        #FFFFFF;
  --card-2:      #F6F9FD;
  --nav-bg:      rgba(255,255,255,.94);
  --footer-bg:   #0B1E3C;

  --ink:         #16202E;
  --body:        #4A5666;
  --muted:       #7C8798;
  --line:        #E4EAF2;
  --line-strong: #D4DEEC;

  --shadow-sm:   0 2px 10px rgba(17, 43, 84, .06);
  --shadow:      0 12px 30px rgba(17, 43, 84, .10);
  --shadow-lg:   0 26px 60px rgba(17, 43, 84, .16);
  --glow:        0 18px 44px rgba(30,91,168,.16);
}

/* ----------------------------------------------------------- Base */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.7;
  font-size: 1.02rem;
  overflow-x: hidden;
  transition: background .4s ease, color .4s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', 'Inter', sans-serif;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.01em;
}

a { color: var(--blue-bright); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--sky); }
[data-theme="light"] a:hover { color: var(--navy); }

img { max-width: 100%; height: auto; }
section { position: relative; }

.section-pad { padding: 6.5rem 0; }
@media (max-width: 767px) { .section-pad { padding: 4rem 0; } }

.text-gradient {
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* Accessibility skip link (RTL safe) */
.skip-link {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; white-space: nowrap; clip: rect(0 0 0 0); clip-path: inset(50%);
  background: var(--gold); color: var(--navy); z-index: 2000;
}
.skip-link:focus {
  width: auto; height: auto; margin: 0; padding: .7rem 1.2rem; overflow: visible;
  clip: auto; clip-path: none; white-space: normal;
  inset-inline-start: 0; top: 0; border-radius: 0 0 10px 0;
}
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ----------------------------------------------------------- Buttons */
.btn { font-weight: 600; border-radius: 999px; padding: .8rem 1.7rem; transition: var(--t); letter-spacing: .01em; }
.btn-lg { padding: .95rem 2.1rem; font-size: 1.02rem; }

.btn-brand { background: var(--grad-brand); color: #fff; border: none; box-shadow: 0 12px 26px rgba(46,134,201,.40); }
.btn-brand:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 18px 38px rgba(46,134,201,.52); }

.btn-gold { background: var(--grad-gold); color: var(--navy); border: none; font-weight: 700; box-shadow: 0 12px 26px rgba(224,169,59,.34); }
.btn-gold:hover { color: var(--navy); transform: translateY(-3px); box-shadow: 0 18px 40px rgba(224,169,59,.5); }

.btn-outline-brand { border: 2px solid rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn-outline-brand:hover { background: #fff; color: var(--navy); border-color: #fff; transform: translateY(-3px); }

.btn-ghost { border: 1.5px solid var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }

.btn-icon { display: inline-flex; align-items: center; gap: .55rem; }

/* ----------------------------------------------------------- Top utility bar */
.topbar {
  background: var(--footer-bg); color: rgba(255,255,255,.78);
  font-size: .86rem; padding: .45rem 0;
}
.topbar a { color: rgba(255,255,255,.82); }
.topbar a:hover { color: var(--gold); }
.topbar .sep { opacity: .35; margin: 0 .35rem; }

/* ----------------------------------------------------------- Navbar */
.navbar {
  background: var(--nav-bg);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  transition: box-shadow .3s ease, padding .3s ease, background .3s ease;
  padding: .85rem 0; border-bottom: 1px solid var(--line);
}
.navbar.scrolled { box-shadow: 0 8px 28px rgba(0,0,0,.35); padding: .5rem 0; }
.navbar-brand img { height: 46px; width: auto; transition: height .3s ease; border-radius: 8px; }
.navbar.scrolled .navbar-brand img { height: 40px; }
/* keep the logo readable on the dark glass bar */
:root .navbar-brand img { background: #fff; padding: 4px 7px; }
[data-theme="light"] .navbar-brand img { background: transparent; padding: 0; }

.navbar .nav-link {
  color: var(--ink); font-weight: 600; font-size: .96rem;
  padding: .5rem 1rem !important; position: relative; border-radius: 8px;
}
.navbar .nav-link::after {
  content: ''; position: absolute; left: 1rem; right: 1rem; bottom: .3rem; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.navbar .nav-link:hover::after, .navbar .nav-link.active::after { transform: scaleX(1); }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--gold); }

.dropdown-menu {
  border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 14px; padding: .6rem;
  margin-top: .6rem !important; background: var(--card);
}
.dropdown-item { border-radius: 9px; padding: .55rem .9rem; font-weight: 500; color: var(--body); }
.dropdown-item:hover { background: var(--bg-soft-2); color: var(--gold); }

.lang-switch, .theme-toggle {
  display: inline-flex; align-items: center; gap: .35rem;
  border: 1.5px solid var(--line-strong); border-radius: 999px; padding: .35rem .85rem;
  font-weight: 600; font-size: .88rem; color: var(--ink); background: transparent; cursor: pointer;
}
.lang-switch:hover, .theme-toggle:hover { border-color: var(--gold); color: var(--gold); }
.theme-toggle { width: 40px; height: 40px; padding: 0; justify-content: center; font-size: 1.05rem; }
.theme-toggle .bi-sun-fill { display: none; }
[data-theme="light"] .theme-toggle .bi-sun-fill { display: inline; }
[data-theme="light"] .theme-toggle .bi-moon-stars-fill { display: none; }

/* ----------------------------------------------------------- Decorative SVG / geometric accents (ia.edu.sa signature) */
.deco { position: absolute; pointer-events: none; z-index: 0; opacity: .9; }
.deco-ring {
  width: 320px; height: 320px; border-radius: 50%;
  border: 1.5px dashed rgba(75,163,220,.35);
}
.deco-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 6px var(--gold-soft); }
.deco-blob {
  width: 420px; height: 420px; border-radius: 46% 54% 60% 40% / 50% 44% 56% 50%;
  background: radial-gradient(circle at 30% 30%, rgba(75,163,220,.28), transparent 65%);
  filter: blur(10px);
}

/* ----------------------------------------------------------- Hero */
.hero {
  position: relative; overflow: hidden;
  background: var(--grad-deep);
  color: #fff; padding: 9.5rem 0 7rem;
}
[data-theme="light"] .hero { background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 55%, var(--blue-bright) 120%); }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(900px 520px at 82% -8%, rgba(75,163,220,.40), transparent 60%),
    radial-gradient(680px 520px at -5% 115%, rgba(224,169,59,.18), transparent 55%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 3.8rem); }
.hero p.lead { color: rgba(255,255,255,.9); font-size: 1.18rem; max-width: 40rem; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(224,169,59,.14); border: 1px solid rgba(224,169,59,.35);
  padding: .4rem 1rem; border-radius: 999px; font-weight: 600; font-size: .82rem;
  letter-spacing: .07em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.4rem;
}
.hero-card {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-lg); padding: 1.2rem; backdrop-filter: blur(6px);
  box-shadow: var(--shadow-lg);
}
.hero-card img { border-radius: 18px; display: block; }
.hero-stat-pill {
  position: absolute; background: var(--card); color: var(--ink);
  border-radius: 14px; padding: .8rem 1.1rem; box-shadow: var(--shadow);
  font-weight: 700; display: flex; align-items: center; gap: .6rem; border: 1px solid var(--line);
}
.hero-stat-pill .num { color: var(--gold); font-family: 'Poppins'; font-size: 1.4rem; line-height: 1; }
.hero-stat-pill small { color: var(--muted); font-weight: 600; }
.hero .hero-figures { gap: 2.2rem; }
.hero .hero-figures .num { font-family: 'Poppins'; font-weight: 800; font-size: 1.7rem; color: var(--gold); }
.hero .hero-figures small { color: rgba(255,255,255,.75); }

@media (max-width: 575.98px) {
  .hero { padding: 6.5rem 0 4.5rem; }
  .hero-card { max-width: 100% !important; }
  .hero-stat-pill { display: none; }
}

/* wave divider */
.wave-divider { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; z-index: 1; }
.wave-divider svg { width: 100%; height: 70px; display: block; }
.wave-divider path { fill: var(--bg); }

/* ----------------------------------------------------------- Trust / awards strip */
.trust-strip { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.trust-item { display: flex; align-items: center; gap: .9rem; padding: 1.4rem .5rem; }
.trust-item img { height: 64px; width: auto; border-radius: 10px; background: #fff; padding: 4px; }
.trust-item .t-text strong { display: block; color: var(--ink); font-family: 'Poppins'; font-weight: 700; line-height: 1.2; }
.trust-item .t-text span { font-size: .85rem; color: var(--muted); }

/* ----------------------------------------------------------- Section heading */
.eyebrow-line {
  display: inline-flex; align-items: center; gap: .6rem; color: var(--gold);
  font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; margin-bottom: .9rem;
}
.eyebrow-line::before { content: ''; width: 28px; height: 2px; background: var(--gold); display: inline-block; }
.section-title { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 1rem; }
.section-sub { color: var(--body); font-size: 1.08rem; max-width: 46rem; }

/* ----------------------------------------------------------- Stats band */
.stat-band { background: var(--grad-brand); color: #fff; overflow: hidden; }
.stat-band::before { content:''; position:absolute; inset:0; background: radial-gradient(600px 300px at 85% -20%, rgba(224,169,59,.28), transparent 60%); }
.stat-band .container { position: relative; z-index: 2; }
.stat-band .stat .num { font-family: 'Poppins'; font-weight: 800; font-size: clamp(2.2rem, 4vw, 3.1rem); color: #fff; line-height: 1; }
.stat-band .stat .num .suffix { color: var(--gold); }
.stat-band .stat .label { color: rgba(255,255,255,.85); font-weight: 500; margin-top: .4rem; }
.stat-band .stat { padding: .5rem; border-right: 1px solid rgba(255,255,255,.16); }
.stat-band .stat:last-child { border-right: none; }
@media (max-width: 767px){ .stat-band .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,.16); padding: 1.3rem 0; } }

/* ----------------------------------------------------------- Cards */
.feature-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.7rem; height: 100%; transition: var(--t); position: relative; overflow: hidden;
}
.feature-card::after {
  content: ''; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: var(--grad-gold); transform: scaleX(0); transform-origin: left; transition: transform .4s ease;
}
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--glow); border-color: var(--line-strong); }
.feature-card:hover::after { transform: scaleX(1); }
.feature-ico {
  width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center;
  background: var(--bg-soft-2); color: var(--gold); font-size: 1.5rem; margin-bottom: 1.1rem; transition: var(--t);
}
.feature-card:hover .feature-ico { background: var(--grad-gold); color: var(--navy); transform: rotate(-6deg); }
.feature-card h4 { font-size: 1.2rem; margin-bottom: .6rem; }
.feature-card p { color: var(--body); font-size: .97rem; margin: 0; }

/* program / course card */
.prog-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; height: 100%; transition: var(--t);
}
.prog-card:hover { transform: translateY(-6px); box-shadow: var(--glow); border-color: var(--line-strong); }
.prog-card .prog-media { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-soft-2); position: relative; }
.prog-card .prog-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.prog-card:hover .prog-media img { transform: scale(1.07); }
.prog-card .prog-body { padding: 1.4rem 1.5rem 1.6rem; }
.prog-card .badge-cat {
  background: var(--gold-soft); color: var(--gold); font-weight: 700; font-size: .72rem;
  letter-spacing: .05em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px;
}
.prog-card h5 { font-size: 1.12rem; margin: .7rem 0 .5rem; }
.prog-card p { font-size: .94rem; color: var(--body); margin-bottom: 1rem; }
.prog-card .arrow-link { font-weight: 700; color: var(--gold); display: inline-flex; align-items: center; gap: .4rem; }
.prog-card .arrow-link i { transition: transform .3s ease; }
.prog-card:hover .arrow-link i { transform: translateX(5px); }

/* tab pills */
.cat-tabs { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: 2.8rem; }
.cat-tab {
  border: 1.5px solid var(--line-strong); background: transparent; color: var(--ink);
  border-radius: 999px; padding: .55rem 1.3rem; font-weight: 600; font-size: .92rem; cursor: pointer; transition: var(--t);
}
.cat-tab:hover { border-color: var(--gold); color: var(--gold); }
.cat-tab.active { background: var(--grad-gold); color: var(--navy); border-color: transparent; box-shadow: 0 8px 20px rgba(224,169,59,.32); }

/* ----------------------------------------------------------- Total Leader feature */
.feature-split { background: var(--bg-soft); }
.tl-img-wrap { position: relative; }
.tl-img-wrap img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.tl-badge {
  position: absolute; bottom: -22px; right: -10px; background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1rem 1.3rem; display: flex; align-items: center; gap: .8rem; border: 1px solid var(--line);
}
.tl-badge .tl-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--grad-gold); color: var(--navy); display: grid; place-items: center; font-size: 1.3rem; }
.check-list { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .8rem; color: var(--ink); font-weight: 500; }
.check-list li i { color: var(--gold); font-size: 1.25rem; margin-top: .1rem; flex: none; }

/* ----------------------------------------------------------- Recognition timeline (Hall of Awards, ia.edu.sa style) */
.timeline { position: relative; max-width: 56rem; margin: 0 auto; padding: 1rem 0; }
.timeline::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px;
  background: linear-gradient(180deg, transparent, var(--line-strong) 8%, var(--line-strong) 92%, transparent);
  transform: translateX(-50%);
}
.tl-item { position: relative; width: 50%; padding: 1.1rem 2.4rem; }
.tl-item:nth-child(odd) { left: 0; text-align: right; }
.tl-item:nth-child(even) { left: 50%; }
.tl-item .tl-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.4rem; transition: var(--t); position: relative;
}
.tl-item .tl-card:hover { transform: translateY(-4px); box-shadow: var(--glow); border-color: var(--line-strong); }
.tl-item .tl-year { font-family: 'Poppins'; font-weight: 800; color: var(--gold); font-size: 1.15rem; }
.tl-item h5 { font-size: 1.05rem; margin: .25rem 0 .35rem; }
.tl-item p { font-size: .92rem; color: var(--body); margin: 0; }
.tl-item::after {
  content: ''; position: absolute; top: 1.7rem; width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 5px var(--gold-soft); z-index: 2;
}
.tl-item:nth-child(odd)::after  { right: -8px; }
.tl-item:nth-child(even)::after { left: -8px; }
@media (max-width: 767px) {
  .timeline::before { left: 9px; }
  .tl-item { width: 100%; left: 0 !important; text-align: left !important; padding: .9rem 0 .9rem 2.4rem; }
  .tl-item::after { left: 1px !important; right: auto !important; top: 1.5rem; }
}
/* RTL flips the alternating timeline */
[dir="rtl"] .tl-item:nth-child(odd)  { left: 50%; text-align: left; }
[dir="rtl"] .tl-item:nth-child(even) { left: 0; text-align: right; }
[dir="rtl"] .tl-item:nth-child(odd)::after  { right: auto; left: -8px; }
[dir="rtl"] .tl-item:nth-child(even)::after { left: auto; right: -8px; }
@media (max-width: 767px) {
  [dir="rtl"] .timeline::before { left: auto; right: 9px; }
  [dir="rtl"] .tl-item { left: 0 !important; text-align: right !important; padding: .9rem 2.4rem .9rem 0; }
  [dir="rtl"] .tl-item::after { right: 1px !important; left: auto !important; }
}

/* ----------------------------------------------------------- Partners logo wall (demo logos — swap before launch) */
.partner-wall { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
@media (max-width: 991px) { .partner-wall { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575px) { .partner-wall { grid-template-columns: repeat(2, 1fr); } }
.partner-cell {
  display: grid; place-items: center; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 1.3rem 1rem; min-height: 96px; transition: var(--t);
}
.partner-cell:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: var(--gold); }
.partner-cell svg { width: 100%; height: 40px; opacity: .65; transition: opacity .3s ease; }
.partner-cell:hover svg { opacity: 1; }
.partner-cell .lp-text { fill: var(--muted); transition: fill .3s ease; }
.partner-cell:hover .lp-text { fill: var(--gold); }
.partner-cell .lp-mark { fill: var(--blue-bright); }

/* ----------------------------------------------------------- Vision 2030 strip */
.vision-strip {
  background:
    linear-gradient(120deg, rgba(8,27,56,.92), rgba(11,35,71,.85)),
    var(--grad-brand);
  color: #fff; border-radius: var(--radius-lg); padding: 2.4rem 2.2rem; overflow: hidden; position: relative;
}
.vision-strip .v-ico { width: 64px; height: 64px; border-radius: 16px; background: rgba(255,255,255,.12); display: grid; place-items: center; font-size: 1.9rem; color: var(--gold); flex: none; }
.vision-strip h3 { color: #fff; margin: 0 0 .3rem; }
.vision-strip p { color: rgba(255,255,255,.85); margin: 0; }

/* ----------------------------------------------------------- Coaches */
.coach-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: var(--t); height: 100%; }
.coach-card:hover { transform: translateY(-6px); box-shadow: var(--glow); border-color: var(--line-strong); }
.coach-media { aspect-ratio: 1/1; overflow: hidden; background: var(--bg-soft-2); }
.coach-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.coach-card:hover .coach-media img { transform: scale(1.06); }
.coach-body { padding: 1.2rem 1.3rem; }
.coach-body h5 { margin: 0 0 .15rem; font-size: 1.1rem; }
.coach-body span { color: var(--muted); font-size: .9rem; }

/* ----------------------------------------------------------- Testimonials */
.testi-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.8rem; height: 100%; transition: var(--t); position: relative;
}
.testi-card:hover { box-shadow: var(--glow); transform: translateY(-5px); border-color: var(--line-strong); }
.testi-card .quote-mark { font-family: 'Poppins'; font-size: 3rem; color: var(--bg-soft-2); line-height: .6; }
.testi-card p { color: var(--ink); font-size: 1rem; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: .8rem; margin-top: 1.2rem; }
.testi-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--grad-brand); color: #fff; display: grid; place-items: center; font-weight: 700; overflow: hidden; flex: none; }
.testi-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.testi-author strong { display: block; color: var(--ink); font-size: .95rem; }
.testi-author span { color: var(--muted); font-size: .84rem; }
.stars i { color: var(--gold); }

/* ----------------------------------------------------------- CTA band */
.cta-band { background: var(--grad-brand); color: #fff; position: relative; overflow: hidden; }
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(700px 400px at 90% 0%, rgba(224,169,59,.30), transparent 60%); pointer-events: none;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.92); }

/* ----------------------------------------------------------- Contact */
.contact-info-card {
  background: var(--grad-brand); color: #fff; border-radius: var(--radius-lg);
  padding: 2.4rem 2rem; height: 100%; position: relative; overflow: hidden;
}
.contact-info-card::before { content:''; position:absolute; right:-40px; bottom:-40px; width:180px; height:180px; border-radius:50%; background:rgba(255,255,255,.08); }
.contact-info-card h3 { color: #fff; }
.contact-line { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.3rem; position: relative; z-index: 2; }
.contact-line .ci-ico { width: 44px; height: 44px; flex: none; border-radius: 12px; background: rgba(255,255,255,.15); display: grid; place-items: center; font-size: 1.2rem; color: var(--gold); }
.contact-line .ci-text small { display: block; color: rgba(255,255,255,.72); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.contact-line .ci-text a, .contact-line .ci-text span { color: #fff; font-weight: 600; }
.contact-social { display: flex; gap: .6rem; margin-top: 1.4rem; position: relative; z-index: 2; }
.contact-social a { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; font-size: 1.1rem; transition: var(--t); }
.contact-social a:hover { background: var(--gold); color: var(--navy); transform: translateY(-3px); }

.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2.4rem 2rem; box-shadow: var(--shadow-sm); }
.form-label { font-weight: 600; color: var(--ink); font-size: .92rem; margin-bottom: .35rem; }
.form-control, .form-select {
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); padding: .8rem 1rem; font-size: .98rem;
  transition: border-color .2s, box-shadow .2s; background: var(--bg-soft); color: var(--ink);
}
.form-control::placeholder { color: var(--muted); }
.form-control:focus, .form-select:focus { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); background: var(--bg-soft); color: var(--ink); }
.form-select option { color: #16202E; }
.hp-field { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; overflow: hidden; }
.form-note { font-size: .82rem; color: var(--muted); }
.form-alert { display: none; border-radius: var(--radius-sm); padding: .9rem 1.1rem; font-weight: 600; margin-bottom: 1rem; }
.form-alert.ok { display: block; background: rgba(27,122,61,.18); color: #6BE59A; border: 1px solid rgba(27,122,61,.4); }
.form-alert.err { display: block; background: rgba(180,35,24,.18); color: #FF9C94; border: 1px solid rgba(180,35,24,.4); }
[data-theme="light"] .form-alert.ok { background: #E7F6EC; color: #1B7A3D; border-color: #B7E3C6; }
[data-theme="light"] .form-alert.err { background: #FDECEC; color: #B42318; border-color: #F5C2C0; }

/* ----------------------------------------------------------- Footer */
.footer { background: var(--footer-bg); color: rgba(255,255,255,.72); padding-top: 4.5rem; }
.footer h6 { color: #fff; font-family: 'Poppins'; font-weight: 600; letter-spacing: .02em; margin-bottom: 1.1rem; font-size: 1rem; }
.footer a { color: rgba(255,255,255,.72); }
.footer a:hover { color: var(--gold); }
.footer-logo { background: #fff; border-radius: 14px; padding: .7rem .9rem; display: inline-block; }
.footer-logo img { height: 48px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: .6rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 3rem; padding: 1.4rem 0; font-size: .86rem; }
.footer-badge { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: .35rem .9rem; font-size: .8rem; color: rgba(255,255,255,.85); }

/* ----------------------------------------------------------- Back to top */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 900;
  width: 48px; height: 48px; border-radius: 50%; border: none;
  background: var(--grad-gold); color: var(--navy); font-size: 1.2rem;
  box-shadow: var(--shadow); cursor: pointer; opacity: 0; visibility: hidden;
  transform: translateY(12px); transition: var(--t);
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translateY(-3px); }

/* ----------------------------------------------------------- Scroll reveal */
.reveal-on [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s var(--ease); will-change: opacity, transform; }
.reveal-on [data-reveal].in { opacity: 1; transform: none; }
.reveal-on [data-reveal][data-reveal="left"] { transform: translateX(-32px); }
.reveal-on [data-reveal][data-reveal="right"] { transform: translateX(32px); }
.reveal-on [data-reveal].in[data-reveal="left"], .reveal-on [data-reveal].in[data-reveal="right"] { transform: none; }
.reveal-on .hero [data-reveal] { opacity: 1 !important; transform: none !important; }
.reveal-on [data-delay="1"]{ transition-delay: .1s; } .reveal-on [data-delay="2"]{ transition-delay: .2s; }
.reveal-on [data-delay="3"]{ transition-delay: .3s; } .reveal-on [data-delay="4"]{ transition-delay: .4s; }
.reveal-on [data-delay="5"]{ transition-delay: .5s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-on [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  * { animation: none !important; }
}

/* ----------------------------------------------------------- Utilities */
.bg-soft { background: var(--bg-soft); }
.rounded-xl { border-radius: var(--radius-lg) !important; }
.shadow-soft { box-shadow: var(--shadow) !important; }
.divider-fade { height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }
.text-navy { color: var(--ink) !important; }
.text-blue { color: var(--gold) !important; }
.text-gold { color: var(--gold) !important; }

/* ----------------------------------------------------------- Photo treatment */
.photo { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--bg-soft-2); }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo.tint::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(150deg, rgba(8,27,56,.50) 0%, rgba(30,91,168,.20) 45%, rgba(75,163,220,.05) 100%);
  mix-blend-mode: multiply;
}
.photo.tint img { filter: saturate(1.05) contrast(1.02); }
.photo.frame { box-shadow: var(--shadow-lg); border: 6px solid var(--card); }

.photo-tag {
  position: absolute; background: var(--card); color: var(--ink); z-index: 3;
  border-radius: 14px; padding: .7rem 1rem; box-shadow: var(--shadow); border: 1px solid var(--line);
  display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: .9rem;
}
.photo-tag i { color: var(--gold); font-size: 1.25rem; }
.photo-tag small { display: block; color: var(--muted); font-weight: 600; font-size: .76rem; }

.hero-photo { aspect-ratio: 4/5; border-radius: 20px; }
.hero-card .photo-tag { position: absolute; }

/* ---- Pillars marquee ------------------------------------------------- */
.pillars { background: var(--footer-bg); color: #fff; padding: 1.1rem 0; overflow: hidden; position: relative; border-block: 1px solid var(--line); }
.pillars::before, .pillars::after { content: ''; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none; }
.pillars::before { left: 0;  background: linear-gradient(90deg, var(--footer-bg), transparent); }
.pillars::after  { right: 0; background: linear-gradient(270deg, var(--footer-bg), transparent); }
.marquee { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover { animation-play-state: paused; }
.marquee .pill-item {
  display: inline-flex; align-items: center; gap: .7rem; padding: 0 2.4rem;
  font-family: 'Poppins'; font-weight: 600; font-size: 1.02rem; white-space: nowrap; color: rgba(255,255,255,.92);
}
.marquee .pill-item i { color: var(--gold); font-size: 1.1rem; }
.marquee .pill-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
[dir="rtl"] .marquee { animation-direction: reverse; }

/* ---- The Journey: sticky scroll-telling ------------------------------ */
.journey-wrap { position: relative; }
.journey { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.journey-media { position: sticky; top: 96px; height: 74vh; min-height: 420px; align-self: start; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.journey-frame { position: absolute; inset: 0; }
.journey-frame .shot { position: absolute; inset: 0; opacity: 0; transform: scale(1.06); transition: opacity .8s ease, transform 1.2s ease; }
.journey-frame .shot.is-active { opacity: 1; transform: scale(1); }
.journey-frame .shot::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,27,56,.20) 0%, rgba(6,20,41,.62) 100%); }
.journey-frame img { width: 100%; height: 100%; object-fit: cover; }
.journey-cap { position: absolute; left: 1.6rem; right: 1.6rem; bottom: 1.5rem; z-index: 3; color: #fff; }
.journey-cap .jc-step { font-family: 'Poppins'; font-weight: 800; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.journey-cap h4 { color: #fff; font-size: 1.5rem; margin: .2rem 0 0; }
.journey-rail { position: absolute; top: 1.4rem; right: 1.4rem; z-index: 3; display: flex; flex-direction: column; gap: .5rem; }
.journey-rail span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.4); transition: var(--t); }
.journey-rail span.on { background: var(--gold); transform: scale(1.35); }
[dir="rtl"] .journey-rail { right: auto; left: 1.4rem; }

.journey-steps { display: flex; flex-direction: column; }
.journey-step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; padding: 1rem 0; }
.journey-step:first-child { min-height: 60vh; padding-top: 0; }
.journey-step:last-child { min-height: 60vh; }
.js-num { font-family: 'Poppins'; font-weight: 800; font-size: 1rem; color: var(--gold); display: inline-flex; align-items: center; gap: .7rem; letter-spacing: .04em; margin-bottom: .6rem; }
.js-num::before { content: ''; width: 34px; height: 2px; background: var(--gold); }
.journey-step h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: .7rem; transition: color .4s ease; }
.journey-step p { font-size: 1.06rem; color: var(--body); max-width: 32rem; }
.journey-step .js-img { display: none; }
.journey-step.is-active h3 { color: var(--gold); }

@media (max-width: 991.98px) {
  .journey { grid-template-columns: 1fr; gap: 0; }
  .journey-media { display: none; }
  .journey-step { min-height: 0 !important; padding: 0 0 3rem; }
  .journey-step .js-img { display: block; margin-bottom: 1.3rem; aspect-ratio: 16/10; }
}

.img-feature { aspect-ratio: 4/3; }
.tl-photo { aspect-ratio: 5/6; }

.story-band { position: relative; overflow: hidden; color: #fff; }
.story-band .sb-bg { position: absolute; inset: 0; z-index: 0; }
.story-band .sb-bg img { width: 100%; height: 100%; object-fit: cover; }
.story-band .sb-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(6,20,41,.94) 0%, rgba(8,27,56,.82) 50%, rgba(30,91,168,.6) 100%); }
.story-band .container { position: relative; z-index: 2; }
.story-band h2 { color: #fff; }
.story-band .sb-quote { font-family: 'Poppins'; font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.4; color: #fff; }
.story-band .sb-quote .mk { color: var(--gold); }

[data-parallax] { will-change: transform; }
@media (prefers-reduced-motion: reduce) {
  .marquee { animation: none !important; }
  .journey-frame .shot { transition: none !important; }
  [data-parallax] { transform: none !important; }
}

.prog-more { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }

/* ---- Program detail modal ------------------------------------------- */
.prog-modal .modal-content { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--card); }
.prog-modal-media { position: relative; aspect-ratio: 16/8; overflow: hidden; background: var(--bg-soft-2); }
.prog-modal-media > img { width: 100%; height: 100%; object-fit: cover; }
.prog-modal-media .pm-overlay { position: absolute; inset: auto 0 0 0; padding: 1.5rem 1.7rem 1.3rem; color: #fff; background: linear-gradient(180deg, rgba(6,20,41,0) 0%, rgba(6,20,41,.55) 50%, rgba(6,20,41,.92) 100%); }
.prog-modal-media .pm-overlay .badge-cat { background: rgba(255,255,255,.2); color: #fff; }
.prog-modal-media .modal-title { color: #fff; font-size: clamp(1.4rem, 3vw, 1.8rem); margin: .5rem 0 0; }
.btn-close-float { position: absolute; top: 14px; right: 14px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(255,255,255,.92); color: var(--navy); display: grid; place-items: center; cursor: pointer; transition: var(--t); box-shadow: var(--shadow-sm); }
.btn-close-float:hover { background: #fff; transform: rotate(90deg); }
[dir="rtl"] .btn-close-float { right: auto; left: 14px; }
.prog-modal .modal-body { padding: 1.6rem 1.8rem .4rem; }
.prog-modal .pm-desc { color: var(--body); font-size: 1.05rem; margin-bottom: .3rem; }
.prog-modal .pm-h { color: var(--gold); font-family: 'Poppins'; font-weight: 700; font-size: 1rem; margin: 1.2rem 0 .5rem; }
.prog-modal .check-list { margin-top: 0; }
.prog-modal .modal-footer { border-top: 1px solid var(--line); padding: 1.1rem 1.8rem 1.4rem; gap: .6rem; justify-content: flex-start; }
@media (max-width: 575.98px) { .prog-modal .modal-footer .btn { width: 100%; } }

/* ---- FAQ accordion --------------------------------------------------- */
.faq-accordion .accordion-item { border: 1px solid var(--line); border-radius: var(--radius) !important; margin-bottom: .8rem; overflow: hidden; background: var(--card); box-shadow: var(--shadow-sm); }
.faq-accordion .accordion-button { font-family: 'Poppins', sans-serif; font-weight: 600; color: var(--ink); font-size: 1.06rem; padding: 1.15rem 1.35rem; background: var(--card); }
.faq-accordion .accordion-button:not(.collapsed) { background: var(--bg-soft-2); color: var(--gold); box-shadow: none; }
.faq-accordion .accordion-button:focus { box-shadow: 0 0 0 4px var(--gold-soft); border-color: transparent; }
.faq-accordion .accordion-button::after {
  /* recolor the bootstrap chevron to be visible on dark */
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23E0A93B'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.faq-accordion .accordion-body { color: var(--body); padding: .2rem 1.35rem 1.3rem; font-size: 1.02rem; background: var(--card); }
[dir="rtl"] .faq-accordion .accordion-button { text-align: right; }

/* ----------------------------------------------------------- RTL adjustments */
[dir="rtl"] body { font-family: 'Cairo', 'Tajawal', 'Inter', sans-serif; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6 { font-family: 'Cairo', sans-serif; letter-spacing: 0; }
[dir="rtl"] .navbar .nav-link::after { transform-origin: right; }
[dir="rtl"] .feature-card::after { transform-origin: right; }
[dir="rtl"] .stat-band .stat { border-right: none; border-left: 1px solid rgba(255,255,255,.16); }
[dir="rtl"] .stat-band .stat:last-child { border-left: none; }
[dir="rtl"] .prog-card:hover .arrow-link i { transform: translateX(-5px); }
[dir="rtl"] .prog-card .arrow-link i { transform: scaleX(-1); }
[dir="rtl"] .tl-badge { right: auto; left: -10px; }
[dir="rtl"] .to-top { right: auto; left: 22px; }
[dir="rtl"] .check-list li { text-align: right; }
[dir="rtl"] .scroll-progress { left: auto; right: 0; }

/* ---- Scroll progress bar -------------------------------------------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-bright) 55%, var(--gold) 100%);
  z-index: 2000; transition: width .08s linear; box-shadow: 0 0 10px rgba(224,169,59,.5);
}
