/* ============================================================
   Hamza Fatil Coaching — Main Stylesheet
   Edit colors in :root, contact info is in HTML files
   ============================================================ */

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

/* ── CSS Custom Properties ────────────────────────────────── */
:root {
  --navy:    #0B1320;
  --orange:  #F97316;
  --mint:    #2DD4BF;
  --cream:   #F7F3EA;
  --white:   #FFFFFF;
  --charcoal:#1F2937;
  --grey-light: #E5E7EB;
  --grey-mid:   #6B7280;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow:    0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.14);
  --radius:    12px;
  --radius-lg: 20px;
  --transition: .25s cubic-bezier(.4,0,.2,1);
  --font-title: 'Sora', 'Montserrat', sans-serif;
  --font-body:  'Inter', 'Open Sans', sans-serif;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
}

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p { font-size: 1rem; color: var(--charcoal); line-height: 1.75; }
.lead { font-size: 1.125rem; color: var(--grey-mid); line-height: 1.8; }

/* ── Utilities ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.text-center { text-align: center; }
.text-orange { color: var(--orange); }
.text-mint   { color: var(--mint); }
.text-white  { color: var(--white); }
.text-navy   { color: var(--navy); }
.bg-navy     { background: var(--navy); }
.bg-cream    { background: var(--cream); }
.bg-white    { background: var(--white); }

.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-lg { padding: 7rem 0; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

.section-header { margin-bottom: 3.5rem; }
.section-header p { max-width: 640px; margin-top: .75rem; }
.section-header.centered { text-align: center; }
.section-header.centered p { margin: .75rem auto 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: 50px;
  font-family: var(--font-title);
  font-size: .9rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover {
  background: #ea6c0a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249,115,22,.35);
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.4);
}
.btn-secondary:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--orange);
  border: 2px solid var(--orange);
}
.btn-outline:hover {
  background: var(--orange);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-dark {
  background: var(--navy);
  color: var(--white);
}
.btn-dark:hover {
  background: #162035;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-lg { padding: 1.1rem 2.5rem; font-size: 1rem; }
.btn-sm { padding: .6rem 1.25rem; font-size: .8rem; }
.btn-whatsapp {
  background: #25D366;
  color: var(--white);
}
.btn-whatsapp:hover {
  background: #1ebe5b;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,.35);
}

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(0,0,0,.2);
  transition: var(--transition);
}
.site-header.scrolled {
  padding: 0;
  box-shadow: 0 4px 30px rgba(0,0,0,.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 2rem;
}
@media (max-width: 768px) {
  .header-inner {
    height: 72px;
  }
}
.logo {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.02em;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  text-decoration: none;
  padding: .25rem 0;
}
.logo span { color: var(--orange); }

/* Image logo (HF emblem) — user-specified spec, larger for visibility */
.site-logo {
  height: 58px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  .site-logo {
    height: 46px;
    max-width: 110px;
  }
}

/* Spacing around the logo so it doesn't touch the menu items */
.header-inner .logo {
  margin-right: .75rem;
}
[dir="rtl"] .header-inner .logo {
  margin-right: 0;
  margin-left: .75rem;
}

.main-nav { display: flex; align-items: center; gap: .25rem; }
.main-nav a {
  padding: .5rem .9rem;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  transition: var(--transition);
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
  background: rgba(255,255,255,.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: .15rem;
  background: rgba(255,255,255,.08);
  border-radius: 8px;
  padding: .25rem .4rem;
}
.lang-switcher a {
  font-size: .75rem;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  padding: .25rem .4rem;
  border-radius: 6px;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.lang-switcher a:hover,
.lang-switcher a.active {
  color: var(--white);
  background: rgba(255,255,255,.12);
}
.lang-switcher a.active { color: var(--orange); }
.lang-divider {
  color: rgba(255,255,255,.25);
  font-size: .7rem;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: .5rem;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  transition: var(--transition);
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.menu-toggle:hover { background: rgba(255,255,255,.15); }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  background: #0e1929;
  border-top: 1px solid rgba(255,255,255,.08);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: .9rem 1.5rem;
  font-size: .95rem;
  color: rgba(255,255,255,.8);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: var(--transition);
}
.mobile-nav a:hover { color: var(--white); background: rgba(255,255,255,.05); padding-left: 2rem; }
.mobile-nav .btn { margin: 1rem 1.5rem; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0b1320 0%, #162035 50%, #0f1e35 100%);
}
.hero-accent {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249,115,22,.12) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
}
.hero-accent-2 {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45,212,191,.08) 0%, transparent 70%);
  bottom: -50px;
  left: 10%;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 5rem 0;
}
.hero-content { max-width: 580px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(249,115,22,.12);
  color: var(--orange);
  border: 1px solid rgba(249,115,22,.2);
  padding: .4rem 1rem;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1.5rem;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}
.hero h1 span { color: var(--orange); }
.hero .lead {
  color: rgba(255,255,255,.75);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}
.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero-stat {
  text-align: center;
}
.hero-stat .stat-number {
  font-family: var(--font-title);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.hero-stat .stat-number span { color: var(--orange); }
.hero-stat .stat-label {
  font-size: .75rem;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: .25rem;
}
.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
}
.hero-image-wrapper img {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 6;
  max-height: 620px;
  min-height: 360px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0,0,0,.4);
}
.hero-image-badge {
  position: absolute;
  background: var(--white);
  border-radius: 12px;
  padding: .75rem 1.25rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: .75rem;
}
.hero-image-badge.badge-1 { top: 2rem; left: -2rem; }
.hero-image-badge.badge-2 { bottom: 2rem; right: -1.5rem; }
.hero-image-badge .badge-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(249,115,22,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  font-size: 1.25rem;
  flex-shrink: 0;
}
.hero-image-badge .badge-text strong {
  display: block;
  font-family: var(--font-title);
  font-size: .95rem;
  font-weight: 700;
  color: var(--navy);
}
.hero-image-badge .badge-text span {
  font-size: .75rem;
  color: var(--grey-mid);
}

/* Inner page hero (smaller) */
.page-hero {
  background: var(--navy);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(249,115,22,.08) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
}
.page-hero h1 { color: var(--white); margin-bottom: .75rem; }
.page-hero .lead { color: rgba(255,255,255,.7); }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.25rem;
  font-size: .85rem;
  color: rgba(255,255,255,.5);
}
.breadcrumb a { color: rgba(255,255,255,.6); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb span { color: rgba(255,255,255,.3); }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform .5s ease;
}
.card:hover .card-img { transform: scale(1.04); }
.card-body { padding: 1.5rem; }
.card-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--orange);
  margin-bottom: .75rem;
}
.card-title {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .6rem;
  line-height: 1.35;
}
.card-text {
  font-size: .9rem;
  color: var(--grey-mid);
  line-height: 1.7;
}

/* Program cards */
.program-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--grey-light);
}
.program-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(11,19,32,.12);
  border-color: var(--orange);
}
.program-card-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform .5s ease;
}
.program-card:hover .program-card-img { transform: scale(1.05); }
.program-card-body { padding: 1.75rem; }
.program-card-tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--orange);
  margin-bottom: .75rem;
  padding: .3rem .75rem;
  background: rgba(249,115,22,.08);
  border-radius: 50px;
}
.program-card h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.program-card p { font-size: .9rem; color: var(--grey-mid); margin-bottom: 1.25rem; }
.program-benefits { margin-bottom: 1.5rem; }
.program-benefits li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .875rem;
  color: var(--charcoal);
  padding: .3rem 0;
}
.program-benefits li::before {
  content: '✓';
  color: var(--mint);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: .05rem;
}

/* Why-choose cards */
.why-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  border: 1px solid var(--grey-light);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}
.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--orange);
  transition: height var(--transition);
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(249,115,22,.2); }
.why-card:hover::before { height: 100%; }
.why-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(249,115,22,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  transition: background var(--transition);
}
.why-card:hover .why-icon { background: rgba(249,115,22,.15); }
.why-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.why-card p { font-size: .875rem; color: var(--grey-mid); line-height: 1.7; }

/* Testimonial cards */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--grey-light);
  transition: transform var(--transition);
}
.testimonial-card:hover { transform: translateY(-4px); }
.testimonial-stars {
  display: flex;
  gap: .2rem;
  margin-bottom: 1rem;
  color: #F59E0B;
  font-size: 1rem;
}
.testimonial-text {
  font-size: .95rem;
  color: var(--charcoal);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 1.5rem;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.testimonial-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.testimonial-author strong {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  color: var(--navy);
}
.testimonial-author span {
  font-size: .8rem;
  color: var(--grey-mid);
}
.testimonial-placeholder {
  font-size: .85rem;
  color: var(--grey-mid);
  font-style: italic;
  text-align: center;
  padding: 1rem;
  border: 1px dashed var(--grey-light);
  border-radius: 8px;
  margin-top: 1rem;
}

/* Blog cards */
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-light);
  transition: transform var(--transition), box-shadow var(--transition);
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform .4s ease;
}
.blog-card:hover .blog-card-img { transform: scale(1.04); }
.blog-card-body { padding: 1.5rem; }
.blog-card-date { font-size: .8rem; color: var(--grey-mid); margin-bottom: .5rem; }
.blog-card-title {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: .75rem;
  transition: color var(--transition);
}
.blog-card:hover .blog-card-title { color: var(--orange); }
.blog-card-excerpt { font-size: .85rem; color: var(--grey-mid); margin-bottom: 1rem; }
.read-more {
  font-size: .85rem;
  font-weight: 600;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: gap var(--transition);
}
.read-more:hover { gap: .6rem; }

/* ── Stats / Counters ─────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.stat-item {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  transition: var(--transition);
}
.stat-item:hover { background: rgba(255,255,255,.08); }
.stat-item .number {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: .35rem;
}
.stat-item .number span { color: var(--orange); }
.stat-item .label {
  font-size: .8rem;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ── Method Steps ─────────────────────────────────────────── */
.method-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; position: relative; }
.method-steps::before {
  content: '';
  position: absolute;
  top: 2.5rem;
  left: 6%;
  right: 6%;
  height: 2px;
  background: linear-gradient(to right, var(--orange), var(--mint));
  z-index: 0;
}
.method-step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.5rem 1rem;
}
.method-step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 16px rgba(249,115,22,.3);
}
.method-step h3 { font-size: 1rem; margin-bottom: .5rem; }
.method-step p { font-size: .875rem; color: var(--grey-mid); }

/* ── Certifications ───────────────────────────────────────── */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.cert-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--grey-light);
  transition: var(--transition);
}
.cert-item:hover { box-shadow: var(--shadow); border-color: rgba(249,115,22,.2); }
.cert-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(45,212,191,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.cert-item strong { display: block; font-size: .9rem; font-weight: 600; color: var(--navy); margin-bottom: .25rem; }
.cert-item span { font-size: .8rem; color: var(--grey-mid); }

/* ── About section ────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 5rem;
}
.about-img-wrapper {
  position: relative;
}
.about-img-wrapper img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  max-height: 620px;
  min-height: 320px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.about-badge {
  position: absolute;
  bottom: 2rem;
  left: -1.5rem;
  background: var(--orange);
  color: var(--white);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.about-badge .badge-num {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}
.about-badge .badge-label { font-size: .75rem; opacity: .85; margin-top: .2rem; }
.about-content h2 { margin-bottom: 1rem; }
.about-content p { margin-bottom: 1rem; color: var(--grey-mid); }
.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin: 2rem 0;
}
.highlight-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--charcoal);
}
.highlight-item::before {
  content: '✦';
  color: var(--orange);
  font-size: .7rem;
  flex-shrink: 0;
}

/* ── Contact ──────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}
.contact-info-cards { display: flex; flex-direction: column; gap: 1rem; }
.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--grey-light);
  transition: var(--transition);
}
.contact-info-card:hover { box-shadow: var(--shadow); }
.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(249,115,22,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  color: var(--orange);
}
.contact-info-card strong { display: block; font-size: .85rem; font-weight: 600; color: var(--navy); margin-bottom: .2rem; }
.contact-info-card a, .contact-info-card p { font-size: .875rem; color: var(--grey-mid); }
.contact-info-card a:hover { color: var(--orange); }

/* ── Form ─────────────────────────────────────────────────── */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--grey-light);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .45rem;
}
.form-group label .required { color: var(--orange); margin-left: .2rem; }
.form-control {
  width: 100%;
  padding: .8rem 1rem;
  border: 1.5px solid var(--grey-light);
  border-radius: 8px;
  font-size: .9rem;
  color: var(--charcoal);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249,115,22,.12);
}
.form-control::placeholder { color: #9CA3AF; }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { appearance: none; cursor: pointer; }
.form-error {
  display: none;
  font-size: .78rem;
  color: #EF4444;
  margin-top: .35rem;
}
.form-group.error .form-control { border-color: #EF4444; }
.form-group.error .form-error { display: block; }
.form-success {
  display: none;
  background: rgba(45,212,191,.1);
  border: 1px solid rgba(45,212,191,.3);
  color: #059669;
  padding: 1.25rem;
  border-radius: var(--radius);
  font-size: .9rem;
  line-height: 1.6;
  margin-top: 1rem;
}
.form-success.visible { display: block; }
/* honeypot */
.hp-field { display: none !important; }

/* ── CTA Banner ───────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #162035 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(249,115,22,.1) 0%, transparent 60%);
  pointer-events: none;
}
.cta-banner-inner { position: relative; z-index: 1; text-align: center; max-width: 700px; margin: 0 auto; }
.cta-banner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,.7); margin-bottom: 2.5rem; font-size: 1.05rem; }
.cta-banner .ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: #070c16;
  color: rgba(255,255,255,.7);
  padding: 5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 2rem;
}
.footer-brand .logo { font-size: 1.25rem; margin-bottom: 1rem; }
.footer-brand p { font-size: .875rem; line-height: 1.8; color: rgba(255,255,255,.5); max-width: 280px; }
.footer-social { display: flex; gap: .75rem; margin-top: 1.5rem; }
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  color: rgba(255,255,255,.6);
  transition: var(--transition);
}
.footer-social a:hover { background: var(--orange); color: var(--white); }
.footer-col h4 {
  font-family: var(--font-title);
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.footer-links { display: flex; flex-direction: column; gap: .6rem; }
.footer-links a {
  font-size: .875rem;
  color: rgba(255,255,255,.5);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: .4rem;
}
.footer-links a::before { content: '→'; font-size: .7rem; color: var(--orange); opacity: 0; transition: var(--transition); }
.footer-links a:hover { color: rgba(255,255,255,.9); padding-left: .4rem; }
.footer-links a:hover::before { opacity: 1; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .8rem;
  color: rgba(255,255,255,.3);
}
.footer-bottom a { color: rgba(255,255,255,.4); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--orange); }

/* ── WhatsApp Float ───────────────────────────────────────── */
/* Replace +212600000000 with the real WhatsApp number */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .75rem;
}
.whatsapp-btn {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: #25D366;
  color: var(--white);
  padding: .8rem 1.4rem;
  border-radius: 50px;
  font-size: .875rem;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(37,211,102,.35);
  transition: var(--transition);
  animation: waPulse 2.5s ease-in-out infinite;
}
.whatsapp-btn:hover {
  background: #1ebe5b;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(37,211,102,.45);
  animation: none;
  color: var(--white);
}
.whatsapp-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  fill: currentColor;
}
@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,.35); }
  50% { box-shadow: 0 4px 28px rgba(37,211,102,.55), 0 0 0 8px rgba(37,211,102,.08); }
}

/* ── Scroll Reveal Animations ─────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="scale"] { transform: scale(.92); }
[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

/* Staggered delays */
[data-delay="1"] { transition-delay: .1s; }
[data-delay="2"] { transition-delay: .2s; }
[data-delay="3"] { transition-delay: .3s; }
[data-delay="4"] { transition-delay: .4s; }
[data-delay="5"] { transition-delay: .5s; }
[data-delay="6"] { transition-delay: .6s; }

/* ── Alert / Notice ───────────────────────────────────────── */
.notice {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  font-size: .875rem;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}
.notice-info { background: rgba(45,212,191,.1); border: 1px solid rgba(45,212,191,.25); color: #0d9488; }
.notice-warn { background: rgba(249,115,22,.08); border: 1px solid rgba(249,115,22,.2); color: #c2410c; }
.notice span { flex-shrink: 0; }

/* ── Blog article ─────────────────────────────────────────── */
.article-hero { background: var(--navy); padding: 5rem 0 4rem; }
.article-hero .article-meta { display: flex; gap: 1.5rem; align-items: center; margin-bottom: 1.25rem; flex-wrap: wrap; }
.article-hero .article-tag {
  background: rgba(249,115,22,.15);
  color: var(--orange);
  padding: .3rem .8rem;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.article-hero .article-date { font-size: .85rem; color: rgba(255,255,255,.5); }
.article-hero h1 { color: var(--white); }
.article-content { max-width: 760px; margin: 0 auto; padding: 4rem 0; }
.article-content h2 { margin: 2.5rem 0 1rem; color: var(--navy); }
.article-content h3 { margin: 2rem 0 .75rem; color: var(--navy); }
.article-content p { margin-bottom: 1.25rem; }
.article-content ul, .article-content ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.article-content li { margin-bottom: .5rem; font-size: .975rem; color: var(--charcoal); }
.article-content ul li { list-style: disc; }
.article-content ol li { list-style: decimal; }
.article-content strong { font-weight: 600; color: var(--navy); }
.article-cta {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  margin: 3rem 0;
  border: 1px solid rgba(249,115,22,.15);
}
.article-cta h3 { margin-bottom: .75rem; }
.article-cta p { margin-bottom: 1.5rem; color: var(--grey-mid); }

/* ── SEO service pages ────────────────────────────────────── */
.service-hero { background: var(--navy); padding: 5rem 0 4rem; }
.service-hero h1 { color: var(--white); margin-bottom: 1rem; }
.service-hero .lead { color: rgba(255,255,255,.75); }

/* ── Image with overlay ───────────────────────────────────── */
.img-overlay-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.img-overlay-wrap img { width: 100%; height: 100%; object-fit: cover; }
.img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,19,32,.7) 0%, transparent 60%);
}
.img-overlay-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  color: var(--white);
}
.img-overlay-content h3 { color: var(--white); margin-bottom: .3rem; }
.img-overlay-content p { color: rgba(255,255,255,.75); font-size: .875rem; }

/* ── Divider ──────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--grey-light); margin: 2rem 0; }

/* ── Misc ─────────────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .75rem;
  font-weight: 600;
  padding: .3rem .75rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.tag-orange { background: rgba(249,115,22,.1); color: var(--orange); }
.tag-mint { background: rgba(45,212,191,.1); color: #0d9488; }
.tag-navy { background: rgba(11,19,32,.08); color: var(--navy); }

/* ── RTL (Arabic) ─────────────────────────────────────────── */
[dir="rtl"] body { direction: rtl; text-align: right; }
[dir="rtl"] .section-label::before { order: 2; }
[dir="rtl"] .hero-inner { direction: rtl; }
[dir="rtl"] .hero-image-badge.badge-1 { left: auto; right: -2rem; }
[dir="rtl"] .hero-image-badge.badge-2 { right: auto; left: -1.5rem; }
[dir="rtl"] .about-badge { left: auto; right: -1.5rem; }
[dir="rtl"] .whatsapp-float { right: auto; left: 2rem; }
[dir="rtl"] .footer-links a { direction: rtl; }
[dir="rtl"] .footer-links a::before { content: '←'; }
[dir="rtl"] .footer-links a:hover { padding-left: 0; padding-right: .4rem; }
[dir="rtl"] .method-steps::before { background: linear-gradient(to left, var(--orange), var(--mint)); }
[dir="rtl"] .main-nav { flex-direction: row-reverse; }
[dir="rtl"] .header-inner { flex-direction: row-reverse; }
[dir="rtl"] .program-benefits li { flex-direction: row; }
[dir="rtl"] .breadcrumb { flex-direction: row-reverse; }
[dir="rtl"] .hero-ctas { flex-direction: row; }
[dir="rtl"] .contact-grid { direction: rtl; }
[dir="rtl"] .form-row { direction: rtl; }
[dir="rtl"] .why-card::before { left: auto; right: 0; }
[dir="rtl"] select.form-control { text-align: right; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
  .hero-content { max-width: 100%; }
  .hero-ctas { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-image { order: -1; }
  .hero-image-wrapper { max-width: 420px; }
  .hero-image-wrapper img { aspect-ratio: 5 / 6; max-height: 500px; }
  .hero-image-badge.badge-1, .hero-image-badge.badge-2 { display: none; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .method-steps { grid-template-columns: repeat(2, 1fr); }
  .method-steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-img-wrapper img { aspect-ratio: 4 / 3; max-height: 460px; }
  .contact-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  [dir="rtl"] .hero-inner { text-align: center; }
}

@media (max-width: 768px) {
  .main-nav, .header-actions .btn { display: none; }
  .menu-toggle { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { gap: 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .cta-banner .ctas { flex-direction: column; align-items: center; }
  .section { padding: 3.5rem 0; }
  .section-lg { padding: 4.5rem 0; }
  .cert-grid { grid-template-columns: 1fr; }
  .about-highlights { grid-template-columns: 1fr; }
  .whatsapp-btn span.wa-label { display: none; }
  .whatsapp-btn { padding: .9rem; border-radius: 50%; }
  [dir="rtl"] .whatsapp-float { left: 1rem; right: auto; }
  .whatsapp-float { right: 1rem; bottom: 1.5rem; }
  .method-steps { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .hero h1 { font-size: 1.8rem; }
  .btn-lg { padding: .9rem 1.5rem; font-size: .875rem; }
  .stat-item .number { font-size: 2rem; }
  .form-card { padding: 1.5rem; }
}

/* ── prefers-reduced-motion ───────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .whatsapp-btn { animation: none; }
}

/* ============================================================
   ── COMPATIBILITY ALIASES, RTL POLISH & RESPONSIVE FIXES ──
   Adds styles for class names used across FR / EN / AR pages
   that were not present in the original stylesheet, plus full
   RTL hardening, Arabic typography, contrast nudges, and
   responsive overrides. No design tokens are changed; nothing
   above is removed.
   ============================================================ */

/* ── Arabic typography (Cairo) ────────────────────────────── */
html[lang="ar"],
html[lang="ar"] body,
[dir="rtl"] body {
  font-family: 'Cairo', 'Tajawal', 'Inter', system-ui, sans-serif;
  font-size: 17px;
}
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3,
html[lang="ar"] h4, html[lang="ar"] h5,
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3,
[dir="rtl"] h4, [dir="rtl"] h5 {
  font-family: 'Cairo', 'Tajawal', 'Sora', system-ui, sans-serif;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 0;
}
html[lang="ar"] h1, [dir="rtl"] h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
html[lang="ar"] h2, [dir="rtl"] h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
html[lang="ar"] h3, [dir="rtl"] h3 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
html[lang="ar"] p, [dir="rtl"] p {
  line-height: 1.95;
  font-size: 1.02rem;
}
html[lang="ar"] .lead, [dir="rtl"] .lead {
  font-size: 1.18rem;
  line-height: 2;
}
html[lang="ar"] .btn, [dir="rtl"] .btn {
  font-family: 'Cairo', 'Tajawal', 'Sora', system-ui, sans-serif;
  font-size: .98rem;
  font-weight: 600;
}
html[lang="ar"] .logo, [dir="rtl"] .logo {
  font-family: 'Sora', 'Cairo', system-ui, sans-serif;
}
html[lang="ar"] .section-label, [dir="rtl"] .section-label {
  font-size: .85rem;
  letter-spacing: .06em;
}

/* ── Section subtitle / CTA helpers ───────────────────────── */
.section-subtitle {
  font-size: 1.05rem;
  color: var(--grey-mid);
  line-height: 1.8;
  margin-top: .5rem;
  max-width: 720px;
}
.section-header.centered .section-subtitle,
.section-header[data-reveal] .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}
.bg-navy .section-subtitle,
.bg-navy .section-header p {
  color: rgba(255,255,255,.78);
}
.section-cta {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ── Page hero aliases ────────────────────────────────────── */
.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.page-hero-content h1 { color: var(--white); margin-bottom: .75rem; }
.page-hero-lead {
  color: rgba(255,255,255,.78);
  font-size: 1.1rem;
  line-height: 1.85;
  max-width: 680px;
}
.breadcrumb-sep { color: rgba(255,255,255,.35); }

/* ── Hero singular alias + alternate stat structure ───────── */
.hero-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.hero-stats .stat {
  text-align: center;
  display: flex;
  flex-direction: column;
  min-width: 90px;
}
.hero-stats .stat .stat-number {
  font-family: var(--font-title);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.hero-stats .stat .stat-label {
  font-size: .78rem;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: .35rem;
  white-space: nowrap;
}
[dir="rtl"] .hero-stats .stat .stat-label,
html[lang="ar"] .hero-stats .stat .stat-label {
  font-size: .82rem;
  letter-spacing: .04em;
  white-space: normal;
}

/* hero-badge-card (EN inner pages) — alias of hero-image-badge */
.hero-badge-card {
  position: absolute;
  background: var(--white);
  border-radius: 12px;
  padding: .75rem 1.1rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: .85rem;
}
.hero-badge-card span:first-child {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(249,115,22,.1);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.15rem;
}
.hero-badge-card strong {
  display: block;
  font-family: var(--font-title);
  font-size: .9rem;
  color: var(--navy);
}
.hero-badge-card small { font-size: .72rem; color: var(--grey-mid); }
.hero-badge-card--top    { top: 1.5rem; left: -1.5rem; }
.hero-badge-card--bottom { bottom: 1.5rem; right: -1.25rem; }
[dir="rtl"] .hero-badge-card--top    { left: auto; right: -1.5rem; }
[dir="rtl"] .hero-badge-card--bottom { right: auto; left: -1.25rem; }

/* ── Why grid alias ───────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

/* ── About variants (about-image, about-img, about-text) ──── */
.about-image,
.about-img {
  position: relative;
}
.about-image img,
.about-img img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  max-height: 620px;
  min-height: 320px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: block;
}
.about-text {
  /* alias of .about-content */
}
.about-text h2 { margin-bottom: 1rem; }
.about-text p { margin-bottom: 1rem; color: var(--grey-mid); }
.about-text ul.about-highlights {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin: 1.5rem 0 1.75rem;
}
.about-text ul.about-highlights li {
  font-size: .95rem;
  color: var(--charcoal);
  font-weight: 500;
}

/* about-image-badge — orange floating badge inside about-image */
.about-image-badge {
  position: absolute;
  bottom: 1.5rem;
  left: -1.25rem;
  background: var(--orange);
  color: var(--white);
  padding: 1.1rem 1.4rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: .15rem;
  z-index: 2;
}
.about-image-badge .badge-number {
  font-family: var(--font-title);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1;
}
.about-image-badge .badge-text {
  font-size: .75rem;
  letter-spacing: .04em;
  opacity: .92;
}
[dir="rtl"] .about-image-badge { left: auto; right: -1.25rem; }

/* highlights-grid + highlight-row (AR alt structure) */
.highlights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem 1.25rem;
  margin: 1.5rem 0 2rem;
}
.highlight-row {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: .95rem;
  color: var(--charcoal);
  font-weight: 500;
  line-height: 1.5;
}
.highlight-row .highlight-icon,
.highlight-item .highlight-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(249,115,22,.1);
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: .95rem;
}

/* ── Objectives grid + objective-card ─────────────────────── */
.objectives-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}
.objective-card {
  display: block;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  transition: var(--transition);
  color: inherit;
  position: relative;
  overflow: hidden;
}
.objective-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--transition);
}
[dir="rtl"] .objective-card::before { transform-origin: right center; }
.objective-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(249,115,22,.25);
}
.objective-card:hover::before { transform: scaleX(1); }
.objective-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(249,115,22,.1);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  margin: 0 auto 1.1rem;
}
.objective-card h3 { font-size: 1.05rem; margin-bottom: .55rem; }
.objective-card p {
  font-size: .92rem;
  color: var(--grey-mid);
  line-height: 1.65;
  margin-bottom: 1.1rem;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--orange);
  transition: gap var(--transition);
}
.objective-card:hover .card-link { gap: .65rem; }

/* ── Programs grid + program-image/body aliases ───────────── */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}
.program-image {
  width: 100%;
  overflow: hidden;
  position: relative;
}
.program-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  max-height: 260px;
  min-height: 180px;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.program-card:hover .program-image img { transform: scale(1.05); }
.program-body {
  padding: 1.75rem;
}
.program-body h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.program-body p {
  font-size: .95rem;
  color: var(--grey-mid);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

/* program-card-img: also support being used as a wrapper (FR uses div, EN uses div) */
div.program-card-img {
  width: 100%;
  height: auto;
  overflow: hidden;
}
div.program-card-img img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  max-height: 280px;
  min-height: 180px;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.program-card:hover div.program-card-img img { transform: scale(1.05); }

/* ── Method aliases (step-number / step-content) ──────────── */
.method-step .step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 16px rgba(249,115,22,.3);
}
.method-step .step-content h3 {
  font-size: 1.05rem;
  margin-bottom: .5rem;
  color: var(--white);
}
.method-step .step-content p {
  font-size: .92rem;
  color: rgba(255,255,255,.72);
  line-height: 1.7;
}
.bg-navy .method-step .method-step-content h3,
.bg-navy .method-step h3 { color: var(--white); }
.bg-navy .method-step .method-step-content p,
.bg-navy .method-step p { color: rgba(255,255,255,.72); }

/* ── Stats banner + stats-grid (AR) ───────────────────────── */
.stats-banner {
  padding: 4rem 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}
.stats-grid .stat-item {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  transition: var(--transition);
}
.stats-grid .stat-item:hover { background: rgba(255,255,255,.08); }
.stat-big {
  display: block;
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  margin-bottom: .4rem;
}
.stat-desc {
  display: block;
  font-size: .85rem;
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
  letter-spacing: .07em;
}
html[lang="ar"] .stat-desc,
[dir="rtl"] .stat-desc {
  font-size: .92rem;
  letter-spacing: .02em;
  text-transform: none;
}

/* ── Testimonials variants (AR uses stars / testimonial-name) */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}
.testimonial-card .testimonial-image {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}
.testimonial-card .testimonial-image img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--cream);
}
.testimonial-card .testimonial-content {
  text-align: center;
}
.testimonial-card .stars {
  color: #F59E0B;
  font-size: 1.05rem;
  letter-spacing: 2px;
  margin-bottom: .85rem;
  display: block;
}
.testimonial-card .testimonial-name {
  display: block;
  margin-top: 1rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--navy);
}

/* ── Blog grid / blog-card variants ───────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}
.blog-grid--full {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}
.blog-card--featured {
  grid-column: span 2;
}
.blog-card-image {
  width: 100%;
  overflow: hidden;
  position: relative;
}
.blog-card-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  max-height: 280px;
  min-height: 180px;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.blog-card:hover .blog-card-image img { transform: scale(1.04); }
.blog-card--featured .blog-card-image img {
  aspect-ratio: 16 / 8;
  max-height: 360px;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: .65rem;
}
.blog-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--orange);
  background: rgba(249,115,22,.08);
  padding: .3rem .7rem;
  border-radius: 50px;
}
.blog-date {
  font-size: .78rem;
  color: var(--grey-mid);
}
.blog-card h2 {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  margin: .25rem 0 .75rem;
  color: var(--navy);
}
.blog-card h2 a { color: inherit; transition: color var(--transition); }
.blog-card:hover h2 a { color: var(--orange); }
.blog-card p {
  font-size: .92rem;
  color: var(--grey-mid);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.blog-read-more {
  font-size: .88rem;
  font-weight: 600;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: gap var(--transition);
}
.blog-read-more:hover { gap: .6rem; }

/* ── Certifications variant (cert-card / cert-content) ────── */
.cert-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.4rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--grey-light);
  transition: var(--transition);
}
.cert-card:hover {
  box-shadow: var(--shadow);
  border-color: rgba(249,115,22,.25);
  transform: translateY(-3px);
}
.cert-card .cert-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(45,212,191,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.cert-card .cert-content { flex: 1; min-width: 0; }
.cert-card .cert-content h3 {
  font-size: 1rem;
  margin-bottom: .4rem;
  line-height: 1.35;
}
.cert-card .cert-content p {
  font-size: .9rem;
  color: var(--grey-mid);
  line-height: 1.65;
}

/* ── CTA variants (cta-content / cta-actions) ─────────────── */
.cta-banner .cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 740px;
  margin: 0 auto;
}
.cta-banner .cta-content h2 { color: var(--white); margin-bottom: 1rem; }
.cta-banner .cta-content p {
  color: rgba(255,255,255,.78);
  margin-bottom: 2.25rem;
  font-size: 1.05rem;
}
.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Contrast & legibility nudges ─────────────────────────── */
.section-header p,
.section-header.centered p {
  color: #4b5563;
}
.bg-cream .section-header p,
.bg-white .section-header p { color: #4b5563; }
.card-text,
.blog-card-excerpt,
.program-card p {
  color: #4b5563;
}
.testimonial-text { color: #1f2937; }
.section-label { color: var(--orange); }
.bg-navy .section-label { color: var(--mint); }

/* ── RTL polish for the new classes ───────────────────────── */
[dir="rtl"] .why-grid,
[dir="rtl"] .programs-grid,
[dir="rtl"] .objectives-grid,
[dir="rtl"] .blog-grid,
[dir="rtl"] .blog-grid--full,
[dir="rtl"] .testimonials-grid,
[dir="rtl"] .stats-grid,
[dir="rtl"] .highlights-grid,
[dir="rtl"] .grid-2,
[dir="rtl"] .grid-3,
[dir="rtl"] .grid-4 {
  direction: rtl;
}
[dir="rtl"] .objective-card,
[dir="rtl"] .why-card,
[dir="rtl"] .testimonial-card,
[dir="rtl"] .blog-card,
[dir="rtl"] .program-card,
[dir="rtl"] .cert-card,
[dir="rtl"] .contact-info-card {
  text-align: right;
  direction: rtl;
}
[dir="rtl"] .testimonial-card .testimonial-content { text-align: center; }
[dir="rtl"] .objective-card { text-align: center; }
[dir="rtl"] .card-link,
[dir="rtl"] .read-more,
[dir="rtl"] .blog-read-more {
  direction: rtl;
}
/* Mirror trailing arrows in RTL (read-more uses → in FR/EN) */
[dir="rtl"] .read-more,
[dir="rtl"] .card-link {
  flex-direction: row-reverse;
}
[dir="rtl"] .method-step { text-align: center; }
[dir="rtl"] .breadcrumb { flex-direction: row-reverse; }
[dir="rtl"] .blog-card-meta { flex-direction: row-reverse; justify-content: flex-start; }
[dir="rtl"] .form-group label { text-align: right; }
[dir="rtl"] .form-control { text-align: right; }
[dir="rtl"] textarea.form-control { text-align: right; direction: rtl; }
[dir="rtl"] .form-group label .required { margin-left: 0; margin-right: .2rem; }
[dir="rtl"] .hero-ctas,
[dir="rtl"] .hero-cta { justify-content: flex-start; }
[dir="rtl"] .cta-actions { justify-content: center; }
[dir="rtl"] .section-cta { justify-content: center; }
[dir="rtl"] .footer-grid { direction: rtl; text-align: right; }
[dir="rtl"] .footer-brand p { max-width: 100%; }
[dir="rtl"] .footer-bottom { direction: rtl; }
[dir="rtl"] .header-actions { flex-direction: row-reverse; }
[dir="rtl"] .lang-switcher { direction: ltr; } /* keep FR | EN | AR readable */
[dir="rtl"] .program-benefits li::before {
  margin-left: .4rem;
  margin-right: 0;
}
[dir="rtl"] .highlight-row,
[dir="rtl"] .highlight-item,
[dir="rtl"] .contact-info-card,
[dir="rtl"] .cert-card,
[dir="rtl"] .cert-item {
  flex-direction: row;
}
[dir="rtl"] .about-content,
[dir="rtl"] .about-text { text-align: right; }
[dir="rtl"] .testimonial-author { flex-direction: row; text-align: right; }
[dir="rtl"] .footer-links a::before { content: '←'; }
[dir="rtl"] .blog-card h2,
[dir="rtl"] .blog-card-title,
[dir="rtl"] .card-title,
[dir="rtl"] .program-card h3 { text-align: right; }

/* Make sure mobile nav button shows up on the right side in RTL */
[dir="rtl"] .menu-toggle { margin-right: auto; margin-left: 0; }

/* ── Spacing & consistency ────────────────────────────────── */
.section .container > .section-header + .grid-3,
.section .container > .section-header + .grid-4,
.section .container > .section-header + .why-grid,
.section .container > .section-header + .programs-grid,
.section .container > .section-header + .objectives-grid,
.section .container > .section-header + .blog-grid,
.section .container > .section-header + .testimonials-grid,
.section .container > .section-header + .method-steps {
  margin-top: 2.5rem;
}
.about-grid > .about-image,
.about-grid > .about-img,
.about-grid > .about-img-wrapper { min-width: 0; }
.about-grid > .about-content,
.about-grid > .about-text { min-width: 0; }

/* ── Responsive overrides for the new classes ─────────────── */
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .objectives-grid { grid-template-columns: repeat(2, 1fr); }
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-card--featured { grid-column: span 2; }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .highlights-grid { grid-template-columns: 1fr; }
  .hero-badge-card { display: none; }
  .about-image img,
  .about-img img { aspect-ratio: 4 / 3; max-height: 460px; }
  .about-image-badge { left: 1rem; bottom: 1rem; padding: .9rem 1.1rem; }
  [dir="rtl"] .about-image-badge { left: auto; right: 1rem; }
  html[lang="ar"], html[lang="ar"] body, [dir="rtl"] body { font-size: 16.5px; }
}

@media (max-width: 768px) {
  .why-grid,
  .objectives-grid,
  .programs-grid,
  .blog-grid,
  .blog-grid--full,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .blog-card--featured { grid-column: span 1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid .stat-item { padding: 1.5rem 1rem; }
  .stat-big { font-size: 2rem; }
  .hero-cta { justify-content: center; }
  .hero-stats { gap: 1.25rem; }
  .hero-stats .stat .stat-number { font-size: 1.6rem; }
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; max-width: 320px; justify-content: center; }
  .page-hero-content h1 { font-size: 1.9rem; }
  .page-hero-lead { font-size: 1rem; }
  .about-image img,
  .about-img img { aspect-ratio: 4 / 3; max-height: 380px; }
  .about-image-badge {
    position: static;
    margin: 1rem auto 0;
    display: inline-flex;
  }
  [dir="rtl"] .about-image-badge { right: auto; left: auto; }
  .method-step { padding: 1rem .5rem; }
  .method-step .step-number,
  .method-step-num { width: 48px; height: 48px; font-size: 1.05rem; }
  .objective-card,
  .why-card { padding: 1.5rem 1.25rem; }
  .program-body,
  .program-card-body { padding: 1.4rem; }
  .testimonial-card { padding: 1.5rem; }
  .form-card { padding: 1.5rem; }
  .article-content { padding: 2.5rem 0; }
  .article-content h2 { margin: 2rem 0 .85rem; }
  .footer-grid { gap: 2rem; }
  html[lang="ar"], html[lang="ar"] body, [dir="rtl"] body { font-size: 16px; }
  html[lang="ar"] .lead, [dir="rtl"] .lead { font-size: 1.05rem; }
  /* Hide mobile nav button repositioning issues in RTL */
  [dir="rtl"] .mobile-nav a { padding: .9rem 1.5rem; text-align: right; }
  [dir="rtl"] .mobile-nav a:hover { padding-right: 2rem; padding-left: 1.5rem; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .stats-grid .stat-item { padding: 1.25rem .75rem; }
  .stat-big { font-size: 1.8rem; }
  .stat-desc { font-size: .72rem; }
  .hero-badge { font-size: .72rem; padding: .35rem .85rem; }
  .hero-stats { gap: 1rem; }
  .hero-stats .stat { min-width: 70px; }
  .hero-stats .stat .stat-number { font-size: 1.45rem; }
  .objective-card { padding: 1.5rem 1rem; }
  .objective-icon { width: 48px; height: 48px; font-size: 1.3rem; }
  .program-body,
  .program-card-body { padding: 1.25rem; }
  .blog-card-body { padding: 1.25rem; }
  .testimonial-card { padding: 1.25rem; }
  .testimonial-card .testimonial-image img { width: 56px; height: 56px; }
  .cert-card { padding: 1.1rem; gap: .8rem; }
  .cert-card .cert-icon { width: 40px; height: 40px; font-size: 1.15rem; }
  .page-hero-content h1 { font-size: 1.65rem; }
  .article-hero h1 { font-size: 1.7rem; }
  .article-content { font-size: .98rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-brand p { max-width: 100%; }
}

/* ── Final safety net — never let cards collapse ──────────── */
.why-card,
.program-card,
.blog-card,
.testimonial-card,
.objective-card,
.cert-card,
.cert-item,
.contact-info-card {
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.why-card h3,
.program-card h3,
.blog-card h2,
.blog-card h3,
.objective-card h3,
.cert-card h3 {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* ============================================================
   ── DARK-SECTION CONTRAST FIX (stats / hero metrics) ──
   The bare <strong> and <span> inside .hero-stat and .stat-item
   have no class, so earlier .stat-label / .label selectors did
   not match — text inherited body charcoal on navy. These rules
   target the elements as they actually exist in the HTML and
   force a clearly legible light tone. Numbers stay orange/white.
   ============================================================ */

/* ── Hero stats (FR/EN structure: .hero-stat > strong + span) ── */
.hero .hero-stat,
.hero-stats .hero-stat {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  min-width: 90px;
}
.hero .hero-stat strong,
.hero-stats .hero-stat strong {
  font-family: var(--font-title);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  display: block;
}
.hero .hero-stat > span,
.hero-stats .hero-stat > span {
  font-size: .78rem;
  font-weight: 500;
  color: #E5E7EB;
  text-transform: uppercase;
  letter-spacing: .08em;
  line-height: 1.35;
}

/* AR variant inside hero (.hero-stats .stat > .stat-number/.stat-label) — brighten */
.hero-stats .stat .stat-number { color: var(--orange); }
.hero-stats .stat .stat-label {
  color: #E5E7EB;
  font-weight: 500;
}

/* ── Stats banner (FR/EN: .stat-item > strong + span) ──────── */
.stats-row .stat-item,
.stats-banner .stat-item,
section.bg-navy .stat-item {
  /* keep existing card chrome; just make children readable */
  text-align: center;
}
.stats-row .stat-item strong,
.stats-banner .stat-item strong,
section.bg-navy .stat-item strong {
  display: block;
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  margin-bottom: .4rem;
}
.stats-row .stat-item > span,
.stats-banner .stat-item > span,
section.bg-navy .stat-item > span {
  display: block;
  font-size: .85rem;
  font-weight: 500;
  color: #E5E7EB;
  text-transform: uppercase;
  letter-spacing: .07em;
  line-height: 1.35;
}

/* ── AR stats banner (.stats-grid .stat-item > .stat-big + .stat-desc) ── */
.stats-banner .stat-big,
.stats-grid .stat-big,
section.bg-navy .stat-big {
  color: var(--orange);
}
.stats-banner .stat-desc,
.stats-grid .stat-desc,
section.bg-navy .stat-desc {
  color: #E5E7EB;
  font-weight: 500;
}

/* ── Brighten the existing dim label tokens inside dark sections ── */
.bg-navy .stat-item .label,
.stats-row .stat-item .label,
.stats-banner .stat-item .label {
  color: #E5E7EB;
}
.hero .hero-stat .stat-label,
.hero-stats .hero-stat .stat-label {
  color: #E5E7EB;
}

/* ── About-badge label sits on orange — make sure it stays readable ── */
.about-badge .badge-label,
.about-image-badge .badge-text {
  color: rgba(255,255,255,.95);
  opacity: 1;
}

/* ── Hero/CTA lead text inside dark sections — slight contrast lift ── */
.hero .lead,
.cta-banner .lead,
.cta-banner .cta-content p,
.page-hero .lead,
.page-hero-lead,
.article-hero p {
  color: #F7F3EA;
}

/* ── Method steps text on navy — ensure white headings, cream body ── */
.bg-navy .method-step h3,
.bg-navy .method-step .step-content h3,
.bg-navy .method-step .method-step-content h3 {
  color: var(--white);
}
.bg-navy .method-step p,
.bg-navy .method-step .step-content p,
.bg-navy .method-step .method-step-content p {
  color: #E5E7EB;
}

/* ── Generic safety net: any bare <span> directly under a .stat-* on navy ── */
section.bg-navy [class*="stat"] > span:not([class]),
.hero [class*="stat"] > span:not([class]) {
  color: #E5E7EB;
}

/* ============================================================
   ── ARABIC HERO — PREMIUM POLISH (visual refinement only) ──
   Scoped to html[lang="ar"] / [dir="rtl"]. Does not affect
   FR / EN render. Balances image vs text, refines typography
   rhythm, softens (does not recolor) the WhatsApp CTA, aligns
   RTL stats cleanly, prevents empty hero margins at any size.
   ============================================================ */

/* ── 1. Hero grid balance & vertical centering ────────────── */
html[lang="ar"] .hero,
[dir="rtl"] .hero {
  min-height: 88vh;
  align-items: center;
  overflow-x: clip;
}
html[lang="ar"] .hero-inner,
[dir="rtl"] .hero-inner {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 4.5rem;
  align-items: center;
  padding: 5rem 0 4.5rem;
}
html[lang="ar"] .hero-content,
[dir="rtl"] .hero-content {
  max-width: 620px;
  align-self: center;
}

/* ── 2. Hero image — constrained when used without .hero-image-wrapper ── */
html[lang="ar"] .hero .hero-image,
[dir="rtl"] .hero .hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  align-self: center;
}
html[lang="ar"] .hero .hero-image > img,
[dir="rtl"] .hero .hero-image > img {
  width: 100%;
  height: auto;
  max-width: 460px;
  aspect-ratio: 5 / 6;
  max-height: 600px;
  min-height: 380px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 70px rgba(0,0,0,.4);
  margin: 0;
}

/* ── 3. Arabic typography refinement (hero only) ──────────── */
html[lang="ar"] .hero h1,
[dir="rtl"] .hero h1 {
  font-size: clamp(2rem, 4.1vw, 2.9rem);
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 1.5rem;
  word-spacing: .02em;
}
html[lang="ar"] .hero .lead,
[dir="rtl"] .hero .lead {
  font-size: 1.1rem;
  line-height: 2.1;
  color: rgba(255,255,255,.82);
  margin-bottom: 2.75rem;
  max-width: 560px;
}
html[lang="ar"] .hero-badge,
[dir="rtl"] .hero-badge {
  font-size: .8rem;
  padding: .45rem 1.05rem;
  letter-spacing: .03em;
  margin-bottom: 1.5rem;
}

/* ── 4. CTA refinement: softer WhatsApp, balanced sizing ──── */
html[lang="ar"] .hero .hero-cta,
[dir="rtl"] .hero .hero-cta,
html[lang="ar"] .hero .hero-ctas,
[dir="rtl"] .hero .hero-ctas {
  display: flex;
  gap: .9rem;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-bottom: 3rem;
}
html[lang="ar"] .hero .btn-whatsapp,
[dir="rtl"] .hero .btn-whatsapp {
  background: #22B85C;
  box-shadow: 0 4px 16px rgba(34,184,92,.22);
  animation: none;
  font-weight: 600;
}
html[lang="ar"] .hero .btn-whatsapp:hover,
[dir="rtl"] .hero .btn-whatsapp:hover {
  background: #1ea651;
  box-shadow: 0 8px 26px rgba(34,184,92,.32);
  transform: translateY(-2px);
}
html[lang="ar"] .hero .btn-secondary,
[dir="rtl"] .hero .btn-secondary {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.5);
  color: var(--white);
}
html[lang="ar"] .hero .btn-secondary:hover,
[dir="rtl"] .hero .btn-secondary:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
}
html[lang="ar"] .hero .btn-lg,
[dir="rtl"] .hero .btn-lg {
  padding: 1rem 1.9rem;
  font-size: .98rem;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}

/* ── 5. Hero stats — RTL alignment + spacing ──────────────── */
html[lang="ar"] .hero-stats,
[dir="rtl"] .hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 2.25rem;
  justify-content: flex-start;
  padding-top: .25rem;
}
html[lang="ar"] .hero-stats .stat,
[dir="rtl"] .hero-stats .stat {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  align-items: flex-start;
  text-align: right;
  min-width: 88px;
}
html[lang="ar"] .hero-stats .stat .stat-number,
[dir="rtl"] .hero-stats .stat .stat-number {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  display: block;
}
html[lang="ar"] .hero-stats .stat .stat-label,
[dir="rtl"] .hero-stats .stat .stat-label {
  font-size: .85rem;
  font-weight: 500;
  color: #E5E7EB;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.45;
  white-space: normal;
}

/* ── 6. Responsive polish — no overflow / no empty edges ──── */
@media (min-width: 1441px) {
  html[lang="ar"] .hero-inner,
  [dir="rtl"] .hero-inner {
    gap: 5.5rem;
  }
  html[lang="ar"] .hero .hero-image > img,
  [dir="rtl"] .hero .hero-image > img {
    max-width: 480px;
  }
}

@media (max-width: 1280px) {
  html[lang="ar"] .hero-inner,
  [dir="rtl"] .hero-inner {
    gap: 3.5rem;
  }
  html[lang="ar"] .hero .hero-image > img,
  [dir="rtl"] .hero .hero-image > img {
    max-width: 420px;
  }
}

@media (max-width: 1024px) {
  html[lang="ar"] .hero,
  [dir="rtl"] .hero {
    min-height: auto;
  }
  html[lang="ar"] .hero-inner,
  [dir="rtl"] .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.75rem;
    padding: 4rem 0 3.5rem;
    text-align: right;
  }
  html[lang="ar"] .hero-content,
  [dir="rtl"] .hero-content {
    max-width: 100%;
    margin: 0;
  }
  html[lang="ar"] .hero .hero-image,
  [dir="rtl"] .hero .hero-image {
    order: -1;
    justify-content: center;
  }
  html[lang="ar"] .hero .hero-image > img,
  [dir="rtl"] .hero .hero-image > img {
    max-width: 380px;
    aspect-ratio: 5 / 6;
    min-height: 360px;
  }
  html[lang="ar"] .hero-stats,
  [dir="rtl"] .hero-stats {
    justify-content: flex-start;
    gap: 1.75rem;
  }
}

@media (max-width: 768px) {
  html[lang="ar"] .hero-inner,
  [dir="rtl"] .hero-inner {
    padding: 3.5rem 0 3rem;
    gap: 2.25rem;
    text-align: right;
  }
  html[lang="ar"] .hero h1,
  [dir="rtl"] .hero h1 {
    font-size: clamp(1.7rem, 5.2vw, 2.1rem);
    line-height: 1.55;
    margin-bottom: 1.25rem;
  }
  html[lang="ar"] .hero .lead,
  [dir="rtl"] .hero .lead {
    font-size: 1.02rem;
    line-height: 2;
    margin-bottom: 2rem;
  }
  html[lang="ar"] .hero .hero-image > img,
  [dir="rtl"] .hero .hero-image > img {
    max-width: 320px;
    max-height: 460px;
    min-height: 320px;
  }
  html[lang="ar"] .hero-stats,
  [dir="rtl"] .hero-stats {
    gap: 1.25rem 1.75rem;
    justify-content: flex-start;
  }
  html[lang="ar"] .hero-stats .stat,
  [dir="rtl"] .hero-stats .stat {
    min-width: 80px;
  }
  html[lang="ar"] .hero-stats .stat .stat-number,
  [dir="rtl"] .hero-stats .stat .stat-number {
    font-size: 1.7rem;
  }
  html[lang="ar"] .hero-stats .stat .stat-label,
  [dir="rtl"] .hero-stats .stat .stat-label {
    font-size: .78rem;
  }
  html[lang="ar"] .hero .btn-lg,
  [dir="rtl"] .hero .btn-lg {
    padding: .9rem 1.5rem;
    font-size: .92rem;
    min-height: 48px;
    width: 100%;
    max-width: 320px;
  }
  html[lang="ar"] .hero .hero-cta,
  [dir="rtl"] .hero .hero-cta,
  html[lang="ar"] .hero .hero-ctas,
  [dir="rtl"] .hero .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
    gap: .75rem;
  }
}

@media (max-width: 480px) {
  html[lang="ar"] .hero-inner,
  [dir="rtl"] .hero-inner {
    padding: 2.75rem 0 2.5rem;
    gap: 2rem;
  }
  html[lang="ar"] .hero h1,
  [dir="rtl"] .hero h1 {
    font-size: 1.55rem;
    line-height: 1.6;
  }
  html[lang="ar"] .hero .lead,
  [dir="rtl"] .hero .lead {
    font-size: .98rem;
    line-height: 1.95;
    margin-bottom: 1.6rem;
  }
  html[lang="ar"] .hero .hero-image > img,
  [dir="rtl"] .hero .hero-image > img {
    max-width: 260px;
    max-height: 360px;
    min-height: 260px;
  }
  html[lang="ar"] .hero-stats,
  [dir="rtl"] .hero-stats {
    gap: 1rem 1.25rem;
    justify-content: space-between;
    width: 100%;
  }
  html[lang="ar"] .hero-stats .stat,
  [dir="rtl"] .hero-stats .stat {
    min-width: 64px;
    flex: 1 1 calc(50% - 1rem);
  }
  html[lang="ar"] .hero-stats .stat .stat-number,
  [dir="rtl"] .hero-stats .stat .stat-number {
    font-size: 1.5rem;
  }
  html[lang="ar"] .hero-stats .stat .stat-label,
  [dir="rtl"] .hero-stats .stat .stat-label {
    font-size: .74rem;
  }
  html[lang="ar"] .hero .btn-lg,
  [dir="rtl"] .hero .btn-lg {
    width: 100%;
    max-width: 100%;
  }
}

/* ── 7. Overflow guard — ensure nothing escapes the viewport ── */
html[lang="ar"] .hero .container,
[dir="rtl"] .hero .container {
  max-width: min(1200px, 100%);
}
html[lang="ar"] body,
[dir="rtl"] body {
  overflow-x: hidden;
}

/* ============================================================
   ── HERO CREDENTIAL CARDS — MULTILINGUAL CONSISTENCY ──
   FR / EN / AR all now use .hero-badge-card + --top / --bottom.
   These rules refine spacing and Arabic typography so the
   cards render identically across all three languages, and
   reaffirm the RTL position mirror.
   ============================================================ */

.hero-badge-card {
  padding: .7rem 1.05rem;
  gap: .7rem;
  min-width: 0;
  max-width: 230px;
}
.hero-badge-card strong {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: .9rem;
  color: var(--navy);
  line-height: 1.25;
  white-space: nowrap;
  display: block;
}
.hero-badge-card small {
  font-size: .72rem;
  color: var(--grey-mid);
  line-height: 1.35;
  display: block;
  margin-top: .1rem;
}
.hero-badge-card > div { min-width: 0; }

/* Arabic typography inside cards — Cairo at slightly tuned metrics */
html[lang="ar"] .hero-badge-card strong,
[dir="rtl"] .hero-badge-card strong {
  font-family: 'Cairo', 'Sora', system-ui, sans-serif;
  font-size: .92rem;
  line-height: 1.4;
}
html[lang="ar"] .hero-badge-card small,
[dir="rtl"] .hero-badge-card small {
  font-family: 'Cairo', 'Inter', system-ui, sans-serif;
  font-size: .74rem;
  line-height: 1.4;
}

/* RTL: text flows right-to-left inside the card */
[dir="rtl"] .hero-badge-card {
  direction: rtl;
  text-align: right;
}

/* RTL position mirror — reaffirmed for unambiguous cascade order */
[dir="rtl"] .hero-badge-card--top    { left: auto; right: -1.5rem; }
[dir="rtl"] .hero-badge-card--bottom { right: auto; left: -1.25rem; }

/* ── AR override: un-mirror card placement so they don't overlap the face
      Top "Les Mills"     → top-LEFT of the image (same corner as FR/EN)
      Bottom "Royal Mansour" → bottom-RIGHT of the image (same corner as FR/EN)
      Text inside each card stays RTL via the [dir="rtl"] rule above.   */
html[lang="ar"] .hero-badge-card--top {
  top: 1.25rem;
  left: -1.25rem;
  right: auto;
}
html[lang="ar"] .hero-badge-card--bottom {
  bottom: 1.25rem;
  right: -1.25rem;
  left: auto;
}

/* ============================================================
   ── FINAL-CTA BUTTON-GROUP CENTERING (global) ──
   Final CTA sections (.cta-banner / .cta-content / .cta-banner-inner
   / .section-cta / .final-cta) must center their button group
   horizontally in LTR and RTL, on every page. FR pages keep their
   inline justify-content:center as well (inline wins anyway); EN
   and AR rely entirely on these rules.
   ============================================================ */

/* Standalone usage — .cta-actions always centers, both directions */
.cta-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-left: auto;
  margin-right: auto;
}

/* Nested usage — any CTA row inside a final-CTA wrapper */
.cta-banner .cta-actions,
.cta-banner .hero-ctas,
.cta-banner-inner .cta-actions,
.cta-banner-inner .hero-ctas,
.cta-content .cta-actions,
.cta-content .hero-ctas,
.section-cta .cta-actions,
.section-cta .hero-ctas,
.final-cta .cta-actions,
.final-cta .hero-ctas {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 100%;
}

/* RTL — preserve center alignment; only the text inside the buttons
   inherits RTL flow. The button row stays centered as a group. */
[dir="rtl"] .cta-actions,
[dir="rtl"] .cta-banner .cta-actions,
[dir="rtl"] .cta-banner .hero-ctas,
[dir="rtl"] .cta-banner-inner .cta-actions,
[dir="rtl"] .cta-banner-inner .hero-ctas,
[dir="rtl"] .cta-content .cta-actions,
[dir="rtl"] .cta-content .hero-ctas,
[dir="rtl"] .section-cta .cta-actions,
[dir="rtl"] .section-cta .hero-ctas,
[dir="rtl"] .final-cta .cta-actions,
[dir="rtl"] .final-cta .hero-ctas {
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Mobile — stack vertically, still centered, no overflow */
@media (max-width: 768px) {
  .cta-actions,
  .cta-banner .cta-actions,
  .cta-banner .hero-ctas,
  .cta-banner-inner .cta-actions,
  .cta-banner-inner .hero-ctas,
  .cta-content .cta-actions,
  .cta-content .hero-ctas,
  .section-cta .cta-actions,
  .section-cta .hero-ctas,
  .final-cta .cta-actions,
  .final-cta .hero-ctas {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .75rem;
  }
  .cta-actions .btn,
  .cta-banner .cta-actions .btn,
  .cta-banner .hero-ctas .btn,
  .cta-banner-inner .cta-actions .btn,
  .cta-banner-inner .hero-ctas .btn,
  .cta-content .cta-actions .btn,
  .cta-content .hero-ctas .btn,
  .section-cta .cta-actions .btn,
  .section-cta .hero-ctas .btn,
  .final-cta .cta-actions .btn,
  .final-cta .hero-ctas .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
}

/* ============================================================
   ── PROGRAMS PREVIEW SECTION — shared FR/EN/AR ──
   .programs-extra-cta = the "need a fully personalized program?"
   note that sits below the 5-card grid and the "view all" button.
   Plus a tablet 2-col break scoped to the programs section so
   3-col cards don't get crushed between 769 and 1024 px.
   ============================================================ */

.programs-extra-cta {
  max-width: 760px;
  margin: 3rem auto 0;
  padding: 2rem 2.25rem;
  text-align: center;
  background: var(--cream);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(249,115,22,.15);
}
.programs-extra-cta p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--charcoal);
  margin: 0 0 1.5rem;
}
.programs-extra-cta .btn {
  display: inline-flex;
}

/* Arabic typography polish */
html[lang="ar"] .programs-extra-cta p,
[dir="rtl"] .programs-extra-cta p {
  font-size: 1.05rem;
  line-height: 2;
}
[dir="rtl"] .programs-extra-cta {
  direction: rtl;
  text-align: center;
}

/* Tablet: 5 cards in 3-col grid get too tight — drop to 2 cols
   for the programs section only (other grid-3 instances untouched) */
@media (max-width: 1024px) {
  .programs-preview-section .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .programs-preview-section .grid-2 {
    max-width: 100% !important;
    margin-top: 1.5rem !important;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .programs-extra-cta {
    padding: 1.5rem 1.25rem;
    margin-top: 2rem;
  }
  .programs-extra-cta p {
    font-size: .95rem;
    line-height: 1.7;
  }
  .programs-preview-section .grid-3,
  .programs-preview-section .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .programs-extra-cta {
    padding: 1.25rem 1rem;
  }
  .programs-extra-cta p {
    font-size: .92rem;
  }
}

/* ============================================================
   ── COACHING PHILOSOPHY SECTION — multilingual reusable ──
   Used by /en/about.html and /ar/about.html. Mirrors the
   FR layout (which uses .grid-2 + .about-highlights inline)
   so all three languages render identically. FR markup is
   not changed.
   ============================================================ */

.philosophy-section {
  /* visual identity already handled by .section + .bg-cream */
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.philosophy-content > .section-label {
  margin-bottom: 1rem;
}
.philosophy-content > h2 {
  margin-bottom: 1.25rem;
  line-height: 1.3;
}
.philosophy-content > p {
  margin-bottom: 1rem;
  color: #4b5563;
  line-height: 1.85;
  font-size: 1rem;
}
.philosophy-content > p:last-of-type {
  margin-bottom: 1.25rem;
}

.philosophy-image {
  position: relative;
}
.philosophy-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  max-height: 460px;
  min-height: 300px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: block;
}

.philosophy-points {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-top: 1.5rem;
}
.philosophy-points.about-highlights {
  /* defeat the default 2-col grid when used in this context */
  display: flex;
  grid-template-columns: none;
}
.philosophy-points .highlight-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.55;
}

/* RTL — text on right, image on left (grid-2 reading order in RTL) */
[dir="rtl"] .philosophy-grid {
  direction: rtl;
}
[dir="rtl"] .philosophy-content {
  text-align: right;
}
[dir="rtl"] .philosophy-points .highlight-item {
  flex-direction: row;
  text-align: right;
}

/* Arabic typography polish inside philosophy text — more breathing room */
html[lang="ar"] .philosophy-content > h2,
[dir="rtl"] .philosophy-content > h2 {
  line-height: 1.55;
  font-size: clamp(1.75rem, 3.4vw, 2.4rem);
  margin-bottom: 1.5rem;
}
html[lang="ar"] .philosophy-content > p,
[dir="rtl"] .philosophy-content > p {
  font-size: 1.05rem;
  line-height: 2.05;
  color: var(--charcoal);
  margin-bottom: 1.1rem;
}
html[lang="ar"] .philosophy-points .highlight-item,
[dir="rtl"] .philosophy-points .highlight-item {
  font-size: 1.05rem;
  line-height: 1.75;
}

/* Stats row in AR: <strong> + bare <span> need readable label without
   uppercase / latin letter-spacing (Arabic has no case) */
html[lang="ar"] .stats-row .stat-item > span,
[dir="rtl"] .stats-row .stat-item > span,
html[lang="ar"] section.bg-navy .stat-item > span,
[dir="rtl"] section.bg-navy .stat-item > span {
  text-transform: none;
  letter-spacing: 0;
  font-size: .95rem;
  line-height: 1.4;
}

/* Responsive */
@media (max-width: 1024px) {
  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }
  .philosophy-image img {
    aspect-ratio: 16 / 10;
    max-height: 420px;
  }
}

@media (max-width: 768px) {
  .philosophy-grid {
    gap: 2.25rem;
  }
  .philosophy-image img {
    aspect-ratio: 4 / 3;
    max-height: 340px;
    min-height: 240px;
  }
  .philosophy-content > h2 {
    font-size: clamp(1.55rem, 5vw, 2rem);
  }
  .philosophy-points .highlight-item {
    font-size: .95rem;
  }
  html[lang="ar"] .philosophy-content > p,
  [dir="rtl"] .philosophy-content > p {
    font-size: 1rem;
    line-height: 2;
  }
}

@media (max-width: 480px) {
  .philosophy-grid {
    gap: 2rem;
  }
  .philosophy-image img {
    max-height: 280px;
    min-height: 200px;
  }
  .philosophy-points .highlight-item {
    font-size: .92rem;
  }
}

/* ============================================================
   ── HERO STATS — PREMIUM MINI-CARD GRID (FR / EN / AR) ──
   Replaces the flex-wrap layout that sometimes dropped one
   stat to its own row. Renders 4 evenly-sized mini cards on
   desktop, 2×2 on mobile. Same rules for FR/EN (.hero-stat)
   and AR (.stat) markup.
   ============================================================ */

.hero .hero-stats,
html[lang="ar"] .hero .hero-stats,
[dir="rtl"] .hero .hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
  width: 100%;
  max-width: 100%;
  margin-top: 2rem;
  padding-top: 0;
  flex-wrap: initial;
  justify-content: stretch;
}

.hero .hero-stats .hero-stat,
.hero .hero-stats .stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: 1rem .7rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  text-align: center;
  min-width: 0;
  min-height: 88px;
  transition: background .2s ease, border-color .2s ease;
}

.hero .hero-stats .hero-stat:hover,
.hero .hero-stats .stat:hover {
  background: rgba(249,115,22,.06);
  border-color: rgba(249,115,22,.25);
}

/* Number on top — orange, bold, large */
.hero .hero-stats .hero-stat > strong,
.hero .hero-stats .stat .stat-number {
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 2.2vw, 1.85rem);
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  display: block;
  margin: 0;
}

/* Label below — light gray, uppercase (Latin only), tight leading */
.hero .hero-stats .hero-stat > span,
.hero .hero-stats .stat .stat-label {
  font-size: .7rem;
  font-weight: 500;
  color: #E5E7EB;
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1.3;
  display: block;
  word-break: break-word;
  white-space: normal;
  text-align: center;
}

/* AR labels — no uppercase (Arabic has no case), no letter-spacing
   (it breaks Arabic letter joining), slightly larger for Cairo */
html[lang="ar"] .hero .hero-stats .hero-stat > span,
html[lang="ar"] .hero .hero-stats .stat .stat-label,
[dir="rtl"] .hero .hero-stats .hero-stat > span,
[dir="rtl"] .hero .hero-stats .stat .stat-label {
  text-transform: none;
  letter-spacing: 0;
  font-size: .78rem;
  line-height: 1.45;
}

/* When hero stacks on tablet, cap stats row width and center it
   so 4 cards don't stretch across the full viewport */
@media (max-width: 1024px) {
  .hero .hero-stats,
  html[lang="ar"] .hero .hero-stats,
  [dir="rtl"] .hero .hero-stats {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Mobile — 2×2 grid */
@media (max-width: 640px) {
  .hero .hero-stats,
  html[lang="ar"] .hero .hero-stats,
  [dir="rtl"] .hero .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
    max-width: 100%;
  }
  .hero .hero-stats .hero-stat,
  .hero .hero-stats .stat {
    padding: .85rem .6rem;
    min-height: 80px;
  }
  .hero .hero-stats .hero-stat > strong,
  .hero .hero-stats .stat .stat-number {
    font-size: 1.5rem;
  }
}

/* AR: ensure the grid flows right-to-left (first card on the right) */
[dir="rtl"] .hero .hero-stats {
  direction: rtl;
}
