﻿/* =========================================================
   WAY TO KNOWLEDGE HUB — Marketing Page
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,500&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap');

:root {
  --brand-green: #0F4F3D;
  --brand-green-dark: #0A3A2C;
  --brand-green-darker: #082821;
  --brand-green-light: #2E6A55;

  --brand-gold: #C49A45;
  --brand-gold-dark: #A9803A;

  --surface-page: #F8F6F0;
  --surface-card: #FFFFFF;
  --surface-muted: #F1EEE5;

  --text-primary: #18312B;
  --text-secondary: #64716C;
  --text-on-dark: #FFFFFF;
  --text-on-dark-muted: #C6D2CC;

  --border-subtle: #E2E1D9;
  --border-on-dark: rgba(255, 255, 255, 0.14);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  --shadow-soft: 0 8px 30px rgba(24, 49, 43, 0.08);
  --shadow-card: 0 4px 20px rgba(24, 49, 43, 0.06);
  --shadow-lift: 0 20px 45px rgba(8, 30, 24, 0.28);

  --container-max: 1240px;
  --page-padding: 40px;

  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-section-sm: 72px;
  --space-section-md: 96px;
  --space-section-lg: 128px;

  --font-heading: 'Lora', 'IBM Plex Sans Arabic', serif;
  --font-body: 'IBM Plex Sans', 'IBM Plex Sans Arabic', sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 1023px) {
  :root { --page-padding: 28px; }
}

@media (max-width: 639px) {
  :root { --page-padding: 18px; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

html[lang="ar"] body,
[dir="rtl"] body {
  font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', sans-serif;
}
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4,
[dir="rtl"] .eyebrow, [dir="rtl"] .logo-word {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  margin: 0;
  font-weight: 600;
  line-height: 1.2;
}

:focus-visible {
  outline: 2px solid var(--brand-gold);
  outline-offset: 3px;
}

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--page-padding);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

section { position: relative; }

/* ---------- Section heading / eyebrow ---------- */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-section-sm);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-gold-dark);
  margin-bottom: 14px;
}
.eyebrow::before, .eyebrow::after {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--brand-gold);
}
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  margin-bottom: 12px;
}
.section-head p {
  color: var(--text-secondary);
  font-size: 16.5px;
  margin: 0;
}
.section-head.on-dark h2 { color: #fff; }
.section-head.on-dark p { color: var(--text-on-dark-muted); }

.section-pad { padding-block: var(--space-section-md); }
.section-pad-lg { padding-block: var(--space-section-lg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--brand-gold);
  color: #24240F;
  box-shadow: 0 10px 24px rgba(196, 154, 69, 0.28);
}
.btn-primary:hover { background: var(--brand-gold-dark); }

.btn-dark {
  background: var(--brand-green);
  color: #fff;
}
.btn-dark:hover { background: var(--brand-green-dark); }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: inherit;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }

.btn-outline-dark {
  background: #fff;
  border-color: var(--border-subtle);
  color: var(--text-primary);
}
.btn-outline-dark:hover { border-color: var(--brand-green); }

.btn-sm { min-height: 40px; padding: 0 18px; font-size: 13.5px; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--brand-green);
  font-size: 14.5px;
}
[dir="rtl"] .link-arrow svg { transform: scaleX(-1); }
.link-arrow svg { width: 15px; height: 15px; transition: transform 0.2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }
[dir="rtl"] .link-arrow:hover svg { transform: scaleX(-1) translateX(3px); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(6,20,16,0.65) 0%, rgba(6,20,16,0.1) 75%, rgba(6,20,16,0) 100%);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: linear-gradient(180deg, #0C2620 0%, #0A2019 100%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-icon { height: 46px; width: auto; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-ar { font-family: 'IBM Plex Sans Arabic', sans-serif; font-size: 16px; font-weight: 600; color: #fff; }
.brand-en { font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-gold); margin-top: 3px; }
@media (max-width: 639px) {
  .brand-icon { height: 38px; }
  .brand-ar { font-size: 14px; }
  .brand-en { font-size: 8.5px; letter-spacing: 0.08em; }
  .site-header .lang-toggle svg { display: none; }
  .site-header .lang-toggle { gap: 4px; }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.main-nav a {
  font-size: 14.5px;
  white-space: nowrap;
  font-weight: 500;
  color: var(--text-on-dark-muted);
  padding-block: 6px;
  position: relative;
  transition: color 0.2s var(--ease);
}
.main-nav a:hover { color: #fff; }
.main-nav a.active { color: #fff; }
.main-nav a.active::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: var(--brand-gold);
}
.nav-dropdown { position: relative; display: flex; align-items: center; gap: 4px; }
.nav-dropdown svg { width: 13px; height: 13px; }
.dropdown-panel {
  position: absolute;
  top: calc(100% + 18px);
  inset-inline-start: -14px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift);
  padding: 8px;
  min-width: 190px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.18s var(--ease);
}
.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-panel a {
  display: block;
  color: var(--text-primary);
  font-size: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
}
.dropdown-panel a:hover { background: var(--surface-muted); color: var(--brand-green); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--text-on-dark-muted);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.lang-toggle svg { width: 17px; height: 17px; }
.lang-toggle:hover { color: #fff; }
.lang-code { padding: 2px 5px; border-radius: 4px; }
.lang-code.is-active { color: #fff; background: rgba(255,255,255,0.1); }
.lang-sep { opacity: 0.4; }

.menu-trigger {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
}
.menu-trigger svg { width: 24px; height: 24px; }

.mobile-panel {
  position: fixed;
  inset: 84px 0 0 0;
  background: var(--brand-green-darker);
  z-index: 99;
  padding: 28px var(--page-padding) 40px;
  display: none;
  flex-direction: column;
  gap: 26px;
  overflow-y: auto;
}
.mobile-panel.is-open { display: flex; }
.mobile-panel a {
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  padding-block: 4px;
}
.mobile-panel .btn { margin-top: 8px; }

@media (max-width: 1023px) {
  .main-nav { display: none; }
  .header-actions .btn { display: none; }
  .menu-trigger { display: inline-flex; flex-shrink: 0; margin-inline-end: -10px; }
  .site-header .container { gap: 12px; }
  .header-actions { gap: 10px; }
  .brand { min-width: 0; flex-shrink: 1; }
  .brand-text { min-width: 0; }
  .brand-ar, .brand-en { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (min-width: 1024px) { .mobile-panel { display: none !important; } }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 700px;
  background: linear-gradient(160deg, #0B241D 0%, #0F3428 55%, #133B2E 100%);
  color: #fff;
  overflow: clip;
}

/* Full-bleed background image spanning the entire hero (desktop) */
.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  z-index: 1;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(1.08) contrast(1.03);
}
/* readable-side scrim so headline/CTAs stay legible over the photo */
.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(7,24,19,0.92) 0%, rgba(7,24,19,0.82) 26%, rgba(7,24,19,0.48) 46%, rgba(7,24,19,0.12) 64%, rgba(7,24,19,0.02) 80%);
  z-index: 1;
}
[dir="rtl"] .hero-media::before {
  background: linear-gradient(260deg, rgba(7,24,19,0.92) 0%, rgba(7,24,19,0.82) 26%, rgba(7,24,19,0.48) 46%, rgba(7,24,19,0.12) 64%, rgba(7,24,19,0.02) 80%);
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,20,16,0.55) 0%, rgba(6,20,16,0) 20%, rgba(6,20,16,0) 66%, rgba(6,20,16,0.4) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 158px 64px;
  max-width: 1320px;
}
.hero-content { max-width: 620px; }

.hero-content .eyebrow {
  color: var(--brand-gold);
  background: rgba(196,154,69,0.12);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
}
.hero-content .eyebrow::before, .hero-content .eyebrow::after { display: none; }
.hero-title {
  font-size: clamp(42px, 5.4vw, 72px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 24px 0 26px;
  color: #fff;
}
.hero-title .accent { color: var(--brand-gold); display: block; font-style: italic; margin-top: 0.08em; }
.hero-desc {
  color: var(--text-on-dark-muted);
  font-size: 19px;
  line-height: 1.65;
  max-width: 480px;
  margin: 0 0 38px;
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 52px;
}
.hero-cta-row .btn {
  min-height: 54px;
  padding-inline: 32px;
  font-size: 16px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--border-on-dark);
  padding-top: 30px;
  max-width: 1000px;
}
.trust-item { display: flex; align-items: flex-start; gap: 12px; }
.trust-item .icon {
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--border-on-dark);
  display: flex; align-items: center; justify-content: center;
}
.trust-item svg { width: 17px; height: 17px; color: var(--brand-gold); }
.trust-item strong { display: block; font-size: 14.5px; font-weight: 600; color: #fff; margin-bottom: 2px; }
.trust-item span { font-size: 13px; color: var(--text-on-dark-muted); }

.hero-float-card {
  position: absolute;
  z-index: 3;
  inset-inline-end: 48px;
  bottom: 44px;
  width: 280px;
  background: linear-gradient(155deg, #0F4F3D, #0A3428);
  border: 1px solid rgba(196,154,69,0.35);
  border-radius: var(--radius-lg);
  padding: 26px 26px 24px;
  box-shadow: var(--shadow-lift);
}
.hero-float-card .rule { width: 32px; height: 2px; background: var(--brand-gold); margin-bottom: 14px; }
.hero-float-card p.title { font-family: var(--font-heading); font-size: 18px; line-height: 1.35; margin: 0 0 10px; color: #fff; }
.hero-float-card p.desc { font-size: 13px; color: var(--text-on-dark-muted); margin: 0 0 16px; line-height: 1.55; }
.progress-track { height: 4px; border-radius: var(--radius-pill); background: rgba(255,255,255,0.15); overflow: hidden; }
.progress-fill { height: 100%; width: 22%; background: var(--brand-gold); border-radius: var(--radius-pill); }

@media (max-width: 1279px) {
  .hero-title { font-size: clamp(38px, 5.6vw, 60px); }
}

@media (max-width: 1023px) {
  .hero {
    min-height: 0;
    background-image:
      linear-gradient(180deg, rgba(7,24,19,0.90) 0%, rgba(7,24,19,0.94) 55%, rgba(6,20,16,0.97) 100%),
      url('../assets/images/hero-640.png');
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
  }
  /* the full-bleed photo and floating card are a desktop-only flourish;
     on mobile they just add scroll length without helping conversion —
     the photo now lives as a subtle textured backdrop instead */
  .hero-media { display: none; }
  .hero-inner {
    padding-block: 118px 64px;
    display: block;
  }
  .hero-content { max-width: none; }
  .hero-desc { max-width: none; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); row-gap: 22px; column-gap: 16px; max-width: none; }
}
@media (max-width: 400px) {
  .trust-item strong { font-size: 13.5px; }
  .trust-item span { font-size: 12px; }
}
@media (max-width: 639px) {
  .hero-inner { padding-block: 104px 56px; }
  .hero-cta-row .btn { width: 100%; }
  .hero-title { font-size: clamp(34px, 10vw, 46px); }
  .hero-desc { font-size: 17px; }
}

/* =========================================================
   PROGRAMS
   ========================================================= */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 44px;
}
.programs-grid { counter-reset: program; }
.program-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--brand-green);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) 26px;
  position: relative;
  counter-increment: program;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.program-card:has(.program-icon.gold) { border-top-color: var(--brand-gold); }
.program-card::after {
  content: "0" counter(program);
  position: absolute;
  top: 24px;
  inset-inline-end: 26px;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 14px;
  font-weight: 600;
  color: var(--border-subtle);
}
.program-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: transparent;
  border-top-color: var(--brand-green);
}
.program-card:has(.program-icon.gold):hover { border-top-color: var(--brand-gold); }
.program-icon {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-green);
  box-shadow: 0 0 0 6px rgba(15,79,61,0.08);
  margin-bottom: 22px;
}
.program-icon.gold { background: var(--brand-gold); box-shadow: 0 0 0 6px rgba(196,154,69,0.14); }
.program-icon svg { width: 24px; height: 24px; color: #fff; }
.program-card h3 { font-size: 19px; margin-bottom: 10px; }
.program-card p { color: var(--text-secondary); font-size: 14.5px; margin: 0 0 22px; min-height: 66px; }
.programs-more { text-align: center; }

@media (max-width: 1023px) {
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 639px) {
  .programs-grid { grid-template-columns: 1fr; }
  .program-card p { min-height: 0; }
}

/* =========================================================
   WHY FAMILIES
   ========================================================= */
.why-section, .section-alt { background: var(--surface-card); }
.why-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.why-content .eyebrow { justify-content: flex-start; }
.why-content h2 { font-size: clamp(26px, 3vw, 34px); margin: 14px 0 16px; }
.why-content > p { color: var(--text-secondary); margin-bottom: 26px; max-width: 460px; }
.check-list { display: flex; flex-direction: column; gap: 16px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; }
.check-bullet {
  width: 22px; height: 22px; flex-shrink: 0;
  border-radius: 50%;
  background: rgba(196,154,69,0.14);
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.check-bullet svg { width: 12px; height: 12px; color: var(--brand-gold-dark); }

.why-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.why-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--surface-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.why-feature:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.why-feature-icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--brand-green);
  display: flex; align-items: center; justify-content: center;
}
.why-feature-icon.gold { background: var(--brand-gold); }
.why-feature-icon svg { width: 17px; height: 17px; color: #fff; flex-shrink: 0; }
.why-feature-icon.gold svg { color: #24240F; }
.why-feature-text { font-size: 13.5px; font-weight: 500; color: var(--text-primary); line-height: 1.4; padding-top: 6px; }

.why-visual { position: relative; }
.why-image-wrap { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 5/4; }
.why-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.quote-card {
  position: absolute;
  inset-inline-end: -8%;
  bottom: -14%;
  width: 62%;
  background: var(--surface-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  padding: 24px 26px;
}
.quote-mark { font-family: var(--font-heading); font-size: 34px; color: var(--brand-gold); line-height: 1; margin-bottom: 4px; }
.quote-card p.quote-text { font-size: 14px; color: var(--text-primary); margin: 0 0 14px; line-height: 1.55; }
.quote-person { display: flex; align-items: center; gap: 10px; }
.quote-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--border-subtle);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--text-secondary);
}
.quote-person strong { display: block; font-size: 13.5px; }
.quote-person span { font-size: 12px; color: var(--text-secondary); }
.stars { color: var(--brand-gold); font-size: 12px; margin-top: 2px; }

@media (max-width: 1023px) {
  .why-grid { grid-template-columns: 1fr; gap: 48px; }
  .why-visual { order: 1; margin-bottom: 12px; }
  .why-content { order: 2; }
  .quote-card { position: static; width: auto; margin-top: -30px; margin-inline: 16px; }
}
@media (max-width: 639px) {
  .quote-card { margin-inline: 0; }
  .why-features { grid-template-columns: 1fr; }
}

/* =========================================================
   SCHOLARLY SUPERVISION / CREDENTIALS
   ========================================================= */
.info-panel {
  max-width: 1100px;
  margin: 44px auto 0;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px 40px;
  position: relative;
  overflow: hidden;
}
.info-panel::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--brand-gold), var(--brand-green));
  opacity: 0.7;
}
.info-panel-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 32px;
  list-style: none;
}
.info-panel-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
}
.info-panel-list li:nth-last-child(-n+1):nth-child(odd) { border-bottom: none; }
.info-panel-list li svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  color: var(--brand-gold-dark);
}

@media (max-width: 639px) {
  .info-panel { padding: 24px 22px 24px 30px; }
  .info-panel-list { grid-template-columns: 1fr; }
  .info-panel-list li:nth-last-child(-n+1):nth-child(odd) { border-bottom: 1px solid var(--border-subtle); }
  .info-panel-list li:last-child { border-bottom: none; }
}

.scholar-usps {
  max-width: 1100px;
  margin: 44px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.scholar-usp {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 6px 20px;
  border-inline-start: 1px solid var(--border-subtle);
}
.scholar-usp:first-child { border-inline-start: none; }
.scholar-usp-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(196, 154, 69, 0.12);
  color: var(--brand-green);
}
.scholar-usp-icon svg { width: 20px; height: 20px; }
.scholar-usp-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.scholar-usp-text strong { font-size: 14px; font-weight: 600; color: var(--text-primary); line-height: 1.35; }
.scholar-usp-text span { font-size: 12.5px; color: var(--text-secondary); line-height: 1.45; }

@media (max-width: 1023px) {
  .scholar-usps { grid-template-columns: 1fr 1fr; gap: 18px 0; }
  .scholar-usp:nth-child(odd) { border-inline-start: none; }
}
@media (max-width: 479px) {
  .scholar-usps { grid-template-columns: 1fr; gap: 14px; }
  .scholar-usp { border-inline-start: none; padding: 0; }
}

.supervision-ijazahs {
  max-width: 1100px;
  margin: 0 auto 32px;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  position: relative;
  overflow: hidden;
}
.supervision-ijazahs::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--brand-gold), var(--brand-green));
}
.supervision-ijazahs-label {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 20px;
  text-align: center;
}
.supervision-ijazahs-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 32px;
  list-style: none;
}
.supervision-ijazahs-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.4;
}
.supervision-ijazahs-list li:nth-last-child(-n+1):nth-child(odd) { border-bottom: none; }
.supervision-ijazahs-list li::before {
  content: "";
  width: 5px; height: 5px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--brand-gold);
  margin-top: 8px;
}

@media (max-width: 639px) {
  .supervision-ijazahs { padding: 26px 22px 26px 30px; }
  .supervision-ijazahs-list { grid-template-columns: 1fr; }
  .supervision-ijazahs-list li:nth-last-child(-n+1):nth-child(odd) { border-bottom: 1px solid var(--border-subtle); }
  .supervision-ijazahs-list li:last-child { border-bottom: none; }
}

.credentials-grid {
  display: flex;
  gap: 20px;
  max-width: 1100px;
  margin-inline: auto;
  margin-top: 48px;
  overflow-x: auto;
  /* overflow-y hidden: the track must never scroll vertically, or touch
     gestures latch onto it and block page scrolling. No scroll-snap or CSS
     smooth scrolling either — both fight touch gestures (stutter); dot
     navigation is animated in JS instead. */
  overflow-y: hidden;
  touch-action: pan-x pan-y;
  padding-bottom: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.credentials-grid::-webkit-scrollbar { display: none; }
.credential-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1 1 240px;
  min-width: 240px;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

@media (min-width: 768px) {
  .credentials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
    overflow: visible;
  }
  .credential-card { min-width: 0; }
}
@media (min-width: 1024px) {
  .credentials-grid {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1100px;
  }
}
.credential-card:hover { box-shadow: var(--shadow-soft); transform: translateY(-3px); }
.credential-img-wrap {
  display: block;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-muted);
  aspect-ratio: 3 / 4;
}
.credential-img-wrap img { width: 100%; height: 100%; object-fit: contain; -webkit-user-drag: none; user-select: none; }
.credential-img-wrap::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(24,49,43,0) 70%, rgba(24,49,43,0.35) 100%);
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}
.credential-card:hover .credential-img-wrap::after { opacity: 1; }
.credential-text { font-size: 14px; color: var(--text-secondary); line-height: 1.65; margin: 0; }
.credential-attr { margin: 0; font-size: 13px; display: flex; flex-direction: column; gap: 2px; }
.credential-attr strong { color: var(--text-primary); font-weight: 600; }
.credential-attr span { color: var(--brand-gold-dark); }

.credentials-dots {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.credentials-dots.is-active-carousel { display: flex; }
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--border-subtle);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.carousel-dot.is-active { background: var(--brand-gold); transform: scale(1.25); }

@media (max-width: 767px) {
  .credentials-grid {
    gap: 16px;
    margin-top: 36px;
    margin-inline: calc(-1 * var(--page-padding));
    padding-inline: var(--page-padding);
  }
  .credential-card {
    flex: 0 0 88%;
    min-width: 0;
  }
}

/* =========================================================
   HOW IT WORKS
   ========================================================= */
.how-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.how-steps::before {
  content: "";
  position: absolute;
  top: 27px;
  inset-inline-start: 12.5%;
  inset-inline-end: 12.5%;
  height: 1px;
  background: repeating-linear-gradient(to right, var(--border-subtle) 0 8px, transparent 8px 14px);
}
[dir="rtl"] .how-steps::before {
  background: repeating-linear-gradient(to left, var(--border-subtle) 0 8px, transparent 8px 14px);
}
.how-step { text-align: center; position: relative; z-index: 1; }
.how-step .num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--brand-green);
  position: relative;
}
.how-step .num svg { width: 22px; height: 22px; color: var(--brand-green); }
.how-step .badge {
  position: absolute;
  top: -6px; inset-inline-end: -6px;
  width: 20px; height: 20px;
  background: var(--brand-gold);
  color: #24240F;
  border-radius: 50%;
  font-size: 10.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.how-step h3 { font-size: 16.5px; margin-bottom: 8px; }
.how-step p { font-size: 13.5px; color: var(--text-secondary); margin: 0 auto; max-width: 220px; }

@media (max-width: 1023px) {
  .how-steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .how-steps::before { display: none; }
}
@media (max-width: 639px) {
  .how-steps { grid-template-columns: 1fr; row-gap: 30px; }
  .how-steps::before {
    display: block;
    top: 28px;
    bottom: 28px;
    inset-inline-start: 27px;
    inset-inline-end: auto;
    width: 1px;
    height: auto;
    background: repeating-linear-gradient(to bottom, var(--border-subtle) 0 8px, transparent 8px 14px);
  }
  .how-step { display: flex; align-items: flex-start; gap: 18px; text-align: start; }
  .how-step .num { margin: 0; flex-shrink: 0; }
  .how-step-text { padding-top: 6px; }
  .how-step h3 { margin-bottom: 6px; }
  .how-step p { margin-inline: 0; max-width: none; }
}

/* =========================================================
   STATS BAND
   ========================================================= */
.stats-band {
  background: linear-gradient(135deg, #0A3A2C, #0F4F3D);
  padding-block: 44px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  display: flex; align-items: center; gap: 14px;
  padding-inline: 20px;
  border-inline-start: 1px solid var(--border-on-dark);
}
.stat-item:first-child { border-inline-start: none; }
.stat-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}
.stat-icon svg { width: 19px; height: 19px; color: var(--brand-gold); }
.stat-item strong { display: block; font-size: 22px; font-family: var(--font-heading); color: #fff; line-height: 1.1; }
.stat-item span { font-size: 12px; color: var(--text-on-dark-muted); }

@media (max-width: 1023px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .stat-item:nth-child(3) { border-inline-start: none; }
}
@media (max-width: 639px) {
  .stats-band { padding-block: 32px; }
  .stats-grid { row-gap: 16px; column-gap: 16px; }
  .stat-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12) !important;
    border-radius: var(--radius-md);
    padding: 20px 18px;
  }
  .stat-icon { width: 44px; height: 44px; background: rgba(255,255,255,0.12); }
  .stat-icon svg { width: 20px; height: 20px; }
  .stat-item strong { font-size: 25px; }
  .stat-item span { font-size: 12.5px; }
}

/* =========================================================
   INSTRUCTORS
   ========================================================= */
.instructors-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.instructors-visual .img-wrap { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 6/4.4; }
.instructors-visual img { width: 100%; height: 100%; object-fit: cover; }
.instructors-content h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 16px; }
.instructors-content > p { color: var(--text-secondary); margin-bottom: 24px; max-width: 440px; }
.instructors-content .check-list { margin-bottom: 30px; }

@media (max-width: 1023px) {
  .instructors-grid { grid-template-columns: 1fr; gap: 36px; }
  .instructors-visual { order: 1; }
  .instructors-content { order: 2; }
}

/* =========================================================
   VIDEO TESTIMONIALS
   ========================================================= */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 40px;
}
.video-grid { counter-reset: videocard; }
.video-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--brand-green-darker);
  border-top: 3px solid var(--brand-gold);
  box-shadow: var(--shadow-card);
  counter-increment: videocard;
}
.video-card::before {
  content: "0" counter(videocard);
  position: absolute;
  z-index: 2;
  top: 14px;
  inset-inline-start: 16px;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
}
.video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  background: var(--brand-green-darker);
  display: block;
}
.video-more { text-align: center; }
@media (max-width: 767px) {
  .video-grid { grid-template-columns: 1fr; max-width: 320px; margin-inline: auto; }
}

/* =========================================================
   FINAL CTA
   ========================================================= */
.final-cta {
  background: #0A2E24;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 380px;
}
.final-cta-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.final-cta::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6,20,16,0.92) 0%, rgba(6,20,16,0.72) 40%, rgba(6,20,16,0.15) 70%);
  z-index: 1;
}
[dir="rtl"] .final-cta::before { background: linear-gradient(270deg, rgba(6,20,16,0.92) 0%, rgba(6,20,16,0.72) 40%, rgba(6,20,16,0.15) 70%); }
.final-cta-content { padding: 56px; position: relative; z-index: 2; max-width: 560px; }
.final-cta-content h2 { color: #fff; font-size: clamp(26px, 3vw, 34px); margin-bottom: 14px; }
.final-cta-content p { color: var(--text-on-dark-muted); margin-bottom: 28px; max-width: 420px; }

@media (max-width: 767px) {
  .final-cta { min-height: 420px; align-items: flex-end; }
  .final-cta-bg { object-position: 78% center; }
  .final-cta::before { background: linear-gradient(180deg, rgba(6,20,16,0.1) 0%, rgba(6,20,16,0.75) 55%, rgba(6,20,16,0.96) 100%); }
  [dir="rtl"] .final-cta::before { background: linear-gradient(180deg, rgba(6,20,16,0.1) 0%, rgba(6,20,16,0.75) 55%, rgba(6,20,16,0.96) 100%); }
  .final-cta-content { padding: 32px 24px 40px; text-align: center; max-width: none; }
  .final-cta-content p { margin-inline: auto; }
}

/* =========================================================
   PRICING
   ========================================================= */
.pricing-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--surface-muted);
  border-radius: var(--radius-pill);
  padding: 5px;
  margin: 0 auto 40px;
}
.pricing-toggle-wrap { display: flex; justify-content: center; }
.toggle-btn {
  border: none;
  background: transparent;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s var(--ease);
}
.toggle-btn.is-active { background: var(--brand-green); color: #fff; }
.toggle-save { font-size: 11px; opacity: 0.85; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
  counter-reset: pricecard;
}
.price-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--brand-green);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  counter-increment: pricecard;
}
.price-card::after {
  content: "0" counter(pricecard);
  position: absolute;
  top: 24px;
  inset-inline-end: 26px;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 14px;
  font-weight: 600;
  color: var(--border-subtle);
}
.price-card.featured {
  border-color: var(--brand-gold);
  border-top-color: var(--brand-gold);
  box-shadow: 0 14px 34px rgba(196,154,69,0.18);
}
.price-card.featured::after { inset-inline-end: 26px; top: 46px; }
.price-badge {
  position: absolute;
  top: -13px; inset-inline-start: 26px;
  background: var(--brand-gold);
  color: #24240F;
  font-size: 11px; font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.03em;
}
.price-card h3 { font-size: 16.5px; margin-bottom: 12px; }
.price-amount { font-family: var(--font-heading); font-size: 32px; font-weight: 600; margin-bottom: 2px; }
.price-amount span { font-size: 14px; font-weight: 500; color: var(--text-secondary); font-family: var(--font-body); }
.price-billing { font-size: 12.5px; color: var(--text-secondary); margin-bottom: 22px; }
.price-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; flex: 1; }
.price-features li { display: flex; gap: 9px; font-size: 13.5px; align-items: flex-start; }
.price-features svg { width: 15px; height: 15px; color: var(--brand-green); flex-shrink: 0; margin-top: 2px; }
.price-card.dark { background: var(--brand-green-darker); border-color: var(--brand-green-darker); border-top-color: var(--brand-gold); color: #fff; }
.price-card.dark::after { color: rgba(255,255,255,0.25); }
.price-card.dark h3, .price-card.dark .price-amount { color: #fff; }
.price-card.dark .price-billing { color: var(--text-on-dark-muted); }
.price-card.dark .price-features li { color: var(--text-on-dark-muted); }
.price-card.dark .price-features svg { color: var(--brand-gold); }
.price-card.dark .btn-outline { border-color: rgba(255,255,255,0.55); color: #fff; }
.price-card.dark .btn-outline:hover { background: rgba(255,255,255,0.12); }
.gift-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--surface-muted); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.gift-icon svg { width: 20px; height: 20px; color: var(--brand-green); }

@media (max-width: 1023px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 639px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   FAQ
   ========================================================= */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 18px 24px;
  margin-bottom: 40px;
  position: relative;
}
.faq-item {
  background: var(--surface-page);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--brand-green);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.faq-item:hover { border-color: rgba(196,154,69,0.4); border-top-color: var(--brand-gold); box-shadow: var(--shadow-card); }
.faq-item.is-open {
  background: var(--surface-card);
  border-color: var(--brand-gold);
  box-shadow: var(--shadow-soft);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 15.5px;
  font-weight: 500;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-num {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-gold-dark);
  background: rgba(196,154,69,0.12);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.faq-item.is-open .faq-num { background: var(--brand-gold); color: #24240F; }
.faq-q-text { flex: 1; transition: color 0.2s var(--ease); }
.faq-item.is-open .faq-q-text { color: var(--brand-green); }
.chevron-wrap {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.faq-item.is-open .chevron-wrap { transform: rotate(180deg); background: var(--brand-green); border-color: var(--brand-green); }
.faq-item summary .chevron {
  width: 14px; height: 14px;
  flex-shrink: 0;
  color: var(--brand-green);
  transition: color 0.25s var(--ease);
}
.faq-item.is-open summary .chevron { color: #fff; }
.faq-answer-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}
.faq-item.is-open .faq-answer-wrap { grid-template-rows: 1fr; }
.faq-answer-inner { overflow: hidden; }
.faq-answer { margin: 0; padding: 0 24px 22px 70px; color: var(--text-secondary); font-size: 14px; line-height: 1.65; }
[dir="rtl"] .faq-answer { padding: 0 70px 22px 24px; }
.faq-more { text-align: center; }

@media (max-width: 767px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-answer { padding-inline-start: 24px; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: linear-gradient(160deg, #0A2E24, #071F19);
  color: var(--text-on-dark-muted);
  padding-top: var(--space-section-md);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr 1.1fr;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-on-dark);
}
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-logo-icon { height: 58px; width: auto; flex-shrink: 0; }
.footer-logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.footer-logo-ar { font-family: 'IBM Plex Sans Arabic', sans-serif; font-size: 19px; font-weight: 600; color: #fff; }
.footer-logo-en { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-gold); margin-top: 3px; }
.footer-brand p { font-size: 13.5px; line-height: 1.7; max-width: 240px; margin: 0 0 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-on-dark);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.footer-social svg { width: 15px; height: 15px; color: #fff; }
.footer-social a:hover { background: var(--brand-gold); border-color: var(--brand-gold); }
.footer-col h4 { color: #fff; font-size: 14.5px; margin-bottom: 18px; font-family: var(--font-body); font-weight: 600; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 13.5px; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; margin-bottom: 14px; }
.footer-contact svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; color: var(--brand-gold); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 22px;
  font-size: 12.5px;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom-links { display: flex; gap: 20px; }

@media (max-width: 1023px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 639px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* =========================================================
   BOOK A CONSULTATION
   ========================================================= */
.booking-section {
  background: linear-gradient(135deg, var(--brand-green-dark) 0%, var(--brand-green) 58%, #0C4534 100%);
  position: relative;
  overflow: hidden;
}
.booking-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/images/pattern-texture.png") repeat;
  opacity: 0.05;
  pointer-events: none;
}
.booking-section .container { position: relative; }

.booking-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 64px;
  align-items: center;
}

.booking-content .eyebrow {
  justify-content: flex-start;
  color: #D9B86A;
}
.booking-content .eyebrow::before,
.booking-content .eyebrow::after { background: #D9B86A; }
.booking-content h2 {
  color: var(--text-on-dark);
  font-size: clamp(26px, 3vw, 34px);
  margin: 14px 0 16px;
}
.booking-desc {
  color: var(--text-on-dark-muted);
  margin: 0 0 32px;
  max-width: 460px;
}

.booking-steps {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}
.booking-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.booking-step-num {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(196, 154, 69, 0.16);
  border: 1px solid rgba(196, 154, 69, 0.45);
  color: #D9B86A;
  font-weight: 700;
  font-size: 16px;
}
.booking-step-text h3 {
  color: var(--text-on-dark);
  font-size: 16.5px;
  font-weight: 600;
  margin-bottom: 4px;
}
.booking-step-text p {
  color: var(--text-on-dark-muted);
  font-size: 14px;
  margin: 0;
  line-height: 1.55;
}

.booking-secure {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-on-dark);
  border-inline-start: 3px solid var(--brand-gold);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  color: var(--text-on-dark-muted);
  font-size: 13.5px;
  max-width: 460px;
}
.booking-secure svg {
  width: 20px; height: 20px; flex-shrink: 0;
  color: var(--brand-gold);
  margin-top: 1px;
}

.booking-widget-card {
  background: var(--surface-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lift);
  padding: 14px 14px 6px;
}
.booking-widget-embed {
  min-height: 520px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(15, 79, 61, 0.05), transparent 60%),
    var(--surface-page);
}
.booking-widget-embed .tidycal-embed { min-height: 520px; }
.booking-widget-embed iframe { display: block; border: 0; width: 100%; }
.booking-widget-note {
  text-align: center;
  color: var(--text-secondary);
  font-size: 12.5px;
  margin: 10px 0;
}

.booking-placeholder {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 32px;
}
.booking-placeholder-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(196, 154, 69, 0.14);
  border: 1px solid rgba(196, 154, 69, 0.35);
  color: var(--brand-green);
  margin-bottom: 22px;
}
.booking-placeholder-icon svg { width: 32px; height: 32px; }
.booking-placeholder-title {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 10px;
}
[dir="rtl"] .booking-placeholder-title { font-family: 'IBM Plex Sans Arabic', sans-serif; }
.booking-placeholder-desc {
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.65;
  max-width: 340px;
  margin: 0 0 26px;
}
@media (max-width: 639px) {
  .booking-placeholder { min-height: 480px; padding: 32px 20px; }
}

@media (max-width: 1023px) {
  .booking-grid { grid-template-columns: 1fr; gap: 44px; }
  .booking-desc, .booking-secure { max-width: none; }
}
@media (max-width: 639px) {
  .booking-widget-card { padding: 8px 8px 4px; }
  .booking-widget-embed, .booking-widget-embed .tidycal-embed { min-height: 480px; }
}

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--reveal-delay, 0s); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* =========================================================
   PRELOADER
   ========================================================= */
.preloader {
  position: fixed; inset: 0; z-index: 999;
  background: linear-gradient(160deg, #0B241D 0%, #0F3428 60%, #0A2019 100%);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
  animation: preloader-failsafe 0.6s var(--ease) 3.4s forwards;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
@keyframes preloader-failsafe { to { opacity: 0; visibility: hidden; } }
.preloader-inner {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  animation: preloader-in 0.9s var(--ease) both;
}
@keyframes preloader-in {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
.preloader-logo { width: 92px; height: 92px; margin-bottom: 18px; filter: drop-shadow(0 10px 30px rgba(0,0,0,0.35)); }
.preloader-ar { font-family: 'IBM Plex Sans Arabic', sans-serif; color: #fff; font-size: 22px; font-weight: 600; }
.preloader-en { color: var(--brand-gold); font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; margin-top: 6px; }
.preloader-bar {
  width: 150px; height: 2px; border-radius: 999px;
  background: rgba(255,255,255,0.12);
  margin-top: 26px; overflow: hidden; position: relative;
}
.preloader-bar-fill {
  position: absolute; top: 0; bottom: 0; left: -40%; width: 40%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--brand-gold), transparent);
  animation: preloader-sweep 1.1s ease-in-out infinite;
}
@keyframes preloader-sweep { to { left: 100%; } }

/* ---------- Elegant hover polish ---------- */
.price-card { transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.price-card.featured:hover { box-shadow: 0 18px 40px rgba(196,154,69,0.24); }
