/* =========================================
   GENOMIC LANDING — PREMIUM MEDICAL STYLE
   ========================================= */

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cyan:      #06b6d4;
  --cyan-dark: #0891b2;
  --blue:      #0284c7;
  --blue-dark: #0369a1;
  --navy:      #0f172a;
  --navy-mid:  #1e293b;
  --green:     #10b981;
  --green-dk:  #059669;
  --white:     #ffffff;
  --off-white: #f8fafc;
  --gray-50:   #f8fafc;
  --gray-100:  #f1f5f9;
  --gray-200:  #e2e8f0;
  --gray-400:  #94a3b8;
  --gray-600:  #475569;
  --gray-800:  #1e293b;
  --wa-green:  #25d366;
  --wa-dark:   #128c7e;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --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), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.14), 0 4px 12px rgba(0,0,0,.08);
  --shadow-xl: 0 20px 60px rgba(0,0,0,.18);

  --transition: .25s ease;
  --font-ar: 'Cairo', sans-serif;
  --font-fr: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

[lang="ar"] body { font-family: var(--font-ar); direction: rtl; }
[lang="fr"] body { font-family: var(--font-fr); direction: ltr; }

body {
  background: var(--white);
  color: var(--navy);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- SECTION HEADERS ---- */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-tag {
  display: inline-block;
  background: linear-gradient(135deg, rgba(6,182,212,.12), rgba(2,132,199,.12));
  color: var(--blue);
  border: 1px solid rgba(6,182,212,.3);
  border-radius: 100px;
  padding: 6px 20px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 14px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
  white-space: normal;
  word-break: keep-all;
}
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(6,182,212,.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(6,182,212,.55);
}
.btn-whatsapp {
  background: linear-gradient(135deg, var(--wa-green), var(--wa-dark));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(37,211,102,.35);
}
.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37,211,102,.5);
}
.btn-submit {
  width: 100%;
  justify-content: center;
  background: linear-gradient(135deg, var(--wa-green), var(--wa-dark));
  color: var(--white);
  padding: 16px;
  font-size: 1.05rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(37,211,102,.35);
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37,211,102,.5);
}
.btn-lg { padding: 18px 40px; font-size: 1.1rem; border-radius: var(--radius-lg); }

@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(6,182,212,.5); }
  70%  { box-shadow: 0 0 0 12px rgba(6,182,212,0); }
  100% { box-shadow: 0 0 0 0 rgba(6,182,212,0); }
}
.pulse-btn { animation: pulse-ring 2s infinite; }
.btn-submit.pulse-btn { animation: none; }
.btn-submit.pulse-btn:hover { animation: none; }

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--cyan);
}
.nav-brand {
  font-size: 1.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  color: var(--gray-600);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--blue); background: var(--gray-100); }
.nav-links .nav-cta {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(6,182,212,.3);
}
.nav-links .nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(6,182,212,.45);
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 14px;
  border: 2px solid var(--gray-200);
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--gray-600);
  background: var(--white);
  transition: var(--transition);
  cursor: pointer;
}
.lang-toggle:hover { border-color: var(--cyan); color: var(--blue); }
.lang-toggle .lang-ar,
.lang-toggle .lang-fr { transition: color var(--transition); }
.lang-toggle .lang-ar.active,
.lang-toggle .lang-fr.active { color: var(--blue); }
.lang-sep { color: var(--gray-400); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.hamburger:hover { background: var(--gray-100); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================
   HERO
   ========================================= */
.hero {
  position: relative;
  padding-top: 68px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, var(--navy) 0%, #0c2340 40%, #0a3d62 100%);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 10% 20%, rgba(6,182,212,.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 90% 80%, rgba(16,185,129,.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(2,132,199,.15) 0%, transparent 50%);
  pointer-events: none;
}
.hero-inner {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 80px 20px 40px;
}
.hero-text { color: var(--white); }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(6,182,212,.15);
  border: 1px solid rgba(6,182,212,.35);
  color: var(--cyan);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: 24px;
  animation: fadeSlideDown .6s ease both;
}
.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.18;
  color: var(--white);
  margin-bottom: 20px;
  animation: fadeSlideDown .7s ease both;
}
.hero-title span { color: var(--cyan); }
.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 36px;
  line-height: 1.7;
  animation: fadeSlideDown .8s ease both;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
  animation: fadeSlideDown .9s ease both;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  animation: fadeSlideDown 1s ease both;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--cyan);
  line-height: 1;
}
.stat-label {
  font-size: .78rem;
  color: rgba(255,255,255,.6);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,.15);
}

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  animation: fadeSlideUp .9s ease both;
}
.hero-card-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
}
.hero-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,.08);
  position: relative;
}
.hero-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}
.hero-card-badge {
  position: absolute;
  bottom: 20px;
  left: 20px; right: 20px;
  background: rgba(15,23,42,.75);
  backdrop-filter: blur(10px);
  color: var(--cyan);
  text-align: center;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: .85rem;
  font-weight: 700;
  border: 1px solid rgba(6,182,212,.3);
}
.hero-logo-float {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--white);
  box-shadow: var(--shadow-lg);
}
[lang="fr"] .hero-logo-float { right: auto; left: -18px; }
.hero-logo-float img { width: 100%; height: 100%; object-fit: cover; }
.hero-bubble {
  position: absolute;
  background: rgba(255,255,255,.95);
  color: var(--navy);
  font-size: .8rem;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 100px;
  box-shadow: var(--shadow);
  white-space: nowrap;
}
.bubble1 {
  top: 60px;
  left: -30px;
  animation: float 3s ease-in-out infinite;
}
[lang="fr"] .bubble1 { left: auto; right: -30px; }
.bubble2 {
  bottom: 80px;
  right: -30px;
  animation: float 3s ease-in-out infinite .8s;
}
[lang="fr"] .bubble2 { right: auto; left: -30px; }

.hero-wave {
  position: relative;
  height: 80px;
  overflow: hidden;
}
.hero-wave svg {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
}

@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* =========================================
   TRUST BADGES
   ========================================= */
.trust {
  padding: 40px 0;
  background: var(--off-white);
  border-bottom: 1px solid var(--gray-200);
}
.trust-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 12px 20px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--navy-mid);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.trust-item:hover {
  border-color: var(--cyan);
  box-shadow: 0 4px 12px rgba(6,182,212,.15);
  transform: translateY(-2px);
}
.trust-icon { font-size: 1.3rem; line-height: 1; }

/* =========================================
   PROGRAMS
   ========================================= */
.programs {
  padding: 100px 0;
  background: var(--white);
}
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 24px;
}
.program-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.program-card:hover {
  border-color: var(--cyan);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.program-card.featured {
  background: linear-gradient(135deg, #0c2340, #0a3d62);
  border-color: var(--cyan);
  color: var(--white);
  box-shadow: var(--shadow-lg);
}
.program-card.featured .program-sub,
.program-card.featured .program-desc { color: rgba(255,255,255,.7); }
.program-card.featured .btn-program {
  background: var(--cyan);
  color: var(--white);
  border-color: transparent;
}
.program-card.highlight {
  border-color: var(--green);
  background: linear-gradient(135deg, rgba(16,185,129,.04), rgba(5,150,105,.06));
}
.program-card.highlight:hover { border-color: var(--green); }

.program-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: var(--white);
  font-size: .72rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: .06em;
  box-shadow: 0 2px 10px rgba(6,182,212,.35);
}
[lang="fr"] .program-badge { right: auto; left: 20px; }
.badge-green { background: linear-gradient(135deg, var(--green), var(--green-dk)); box-shadow: 0 2px 10px rgba(16,185,129,.35); }

.program-icon { font-size: 2.2rem; line-height: 1; }
.program-duration span {
  background: linear-gradient(135deg, rgba(6,182,212,.12), rgba(2,132,199,.12));
  color: var(--blue);
  border: 1px solid rgba(6,182,212,.25);
  padding: 4px 14px;
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 700;
}
.program-card.featured .program-duration span {
  background: rgba(6,182,212,.2);
  color: var(--cyan);
  border-color: rgba(6,182,212,.3);
}
.program-name {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.3;
}
.program-sub {
  font-size: .85rem;
  color: var(--gray-600);
  font-weight: 600;
}
.program-desc {
  font-size: .9rem;
  color: var(--gray-600);
  line-height: 1.6;
  flex: 1;
}
.btn-program {
  display: inline-block;
  padding: 10px 20px;
  border: 2px solid var(--cyan);
  color: var(--blue);
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 700;
  text-align: center;
  transition: var(--transition);
  margin-top: auto;
}
.btn-program:hover {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: var(--white);
  border-color: transparent;
  transform: translateY(-1px);
}
.program-card.highlight .btn-program {
  border-color: var(--green);
  color: var(--green-dk);
}
.program-card.highlight .btn-program:hover {
  background: linear-gradient(135deg, var(--green), var(--green-dk));
  color: var(--white);
  border-color: transparent;
}

/* =========================================
   WHY US
   ========================================= */
.why-us {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--off-white) 0%, #e0f7fa 100%);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 24px;
}
.why-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.why-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--cyan);
}
.why-icon { font-size: 2.4rem; margin-bottom: 14px; line-height: 1; }
.why-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
}
.why-card p {
  font-size: .92rem;
  color: var(--gray-600);
  line-height: 1.65;
}

/* =========================================
   GALLERY
   ========================================= */
.gallery {
  padding: 100px 0;
  background: var(--white);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 16px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4/3;
}
.gallery-item.large {
  grid-row: span 2;
  aspect-ratio: auto;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,.7) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
  color: var(--white);
  font-weight: 700;
  font-size: .95rem;
}

/* =========================================
   REGISTRATION FORM
   ========================================= */
.register {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--navy) 0%, #0c2340 100%);
  position: relative;
  overflow: hidden;
}
.register::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6,182,212,.12), transparent 70%);
  pointer-events: none;
}
.register-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.register-left { color: var(--white); }
.register-left .section-tag {
  background: rgba(6,182,212,.15);
  border-color: rgba(6,182,212,.3);
  color: var(--cyan);
}
.register-left .section-title { color: var(--white); }
.register-left p {
  color: rgba(255,255,255,.75);
  margin: 16px 0 28px;
  font-size: 1rem;
  line-height: 1.7;
}
.register-perks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.register-perks li {
  font-size: .95rem;
  font-weight: 600;
  color: rgba(255,255,255,.9);
}
.register-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(6,182,212,.4);
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
}
.register-logo img { width: 100%; height: 100%; object-fit: cover; }

.register-right {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  box-shadow: var(--shadow-xl);
}
.reg-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: .88rem;
  font-weight: 700;
  color: var(--gray-800);
}
.form-group input,
.form-group select {
  padding: 13px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-family: inherit;
  color: var(--navy);
  background: var(--white);
  transition: var(--transition);
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(6,182,212,.15);
}
.form-group input.error,
.form-group select.error { border-color: #ef4444; }
.field-error {
  font-size: .8rem;
  color: #ef4444;
  font-weight: 600;
  min-height: 16px;
  display: block;
}
[lang="ar"] .form-group input,
[lang="ar"] .form-group select { direction: rtl; text-align: right; }
[lang="fr"] .form-group input,
[lang="fr"] .form-group select { direction: ltr; text-align: left; }

/* =========================================
   FAQ
   ========================================= */
.faq {
  padding: 100px 0;
  background: var(--off-white);
}
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.faq-item.open { border-color: var(--cyan); box-shadow: 0 4px 16px rgba(6,182,212,.12); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: .98rem;
  font-weight: 700;
  color: var(--navy);
  text-align: right;
  background: transparent;
  gap: 12px;
}
[lang="fr"] .faq-q { text-align: left; }
.faq-q::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--cyan);
  line-height: 1;
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .3s ease;
}
.faq-a.open { max-height: 400px; }
.faq-a p {
  padding: 0 24px 20px;
  font-size: .93rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* =========================================
   CONTACT
   ========================================= */
.contact {
  padding: 100px 0;
  background: var(--white);
}

/* Branch cards — two-column premium layout */
.contact-branches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
.branch-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 36px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.branch-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.branch-card:hover {
  border-color: var(--cyan);
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}
.branch-top {
  display: flex;
  align-items: center;
  gap: 16px;
}
.branch-emoji { font-size: 2.8rem; line-height: 1; flex-shrink: 0; }
.branch-name {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}
.branch-region {
  display: inline-block;
  background: linear-gradient(135deg, rgba(6,182,212,.12), rgba(2,132,199,.12));
  color: var(--blue);
  border: 1px solid rgba(6,182,212,.25);
  border-radius: 100px;
  padding: 3px 12px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .05em;
}
.branch-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.branch-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.brow-icon { font-size: 1.05rem; flex-shrink: 0; margin-top: 2px; }
.brow-val {
  font-size: .93rem;
  color: var(--navy-mid);
  font-weight: 600;
  line-height: 1.5;
}
.brow-val.phone-number {
  color: var(--blue);
  font-size: 1.08rem;
  font-weight: 800;
}
.brow-val.phone-number:hover { color: var(--cyan); text-decoration: underline; }
.brow-note {
  color: var(--gray-600);
  font-size: .85rem;
  font-weight: 500;
  font-style: italic;
}
.branch-wa-btn { width: 100%; justify-content: center; }

/* Email row below branch cards */
.contact-email-row { display: flex; justify-content: center; }
.email-card { max-width: 360px; width: 100%; text-align: center; }

/* Generic contact card (email) */
.contact-card {
  background: var(--off-white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: var(--transition);
}
.contact-card:hover {
  border-color: var(--cyan);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  background: var(--white);
}
.contact-icon { font-size: 2.2rem; margin-bottom: 12px; }
.contact-card h3 {
  font-size: .88rem;
  font-weight: 700;
  color: var(--gray-600);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.contact-val {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue);
  word-break: break-all;
  display: block;
}
.contact-val:hover { color: var(--cyan); }

/* Phone / WhatsApp numbers — always LTR regardless of page direction */
.phone-number,
.whatsapp-number {
  direction: ltr;
  unicode-bidi: embed;
  display: inline-block;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding: 48px 0 32px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-brand img {
  width: 50px; height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(6,182,212,.4);
}
.footer-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}
.footer-license { font-size: .8rem; color: var(--cyan); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
}
.footer-links a {
  font-size: .88rem;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--cyan); }
.footer-copy { font-size: .8rem; color: rgba(255,255,255,.4); }

/* =========================================
   FLOATING WHATSAPP
   ========================================= */
.float-wa {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 999;
  width: 62px; height: 62px;
  background: linear-gradient(135deg, var(--wa-green), var(--wa-dark));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.5);
  transition: var(--transition);
}
[lang="fr"] .float-wa { left: auto; right: 28px; }
.float-wa:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37,211,102,.65);
}
.float-wa-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  background: var(--navy);
  color: var(--white);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: .8rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  box-shadow: var(--shadow);
}
[lang="fr"] .float-wa-tooltip { right: auto; left: calc(100% + 12px); }
.float-wa-tooltip::after {
  content: '';
  position: absolute;
  top: 50%; right: -6px;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--navy);
  border-right: none;
}
[lang="fr"] .float-wa-tooltip::after {
  right: auto; left: -6px;
  border-left: none;
  border-right-color: var(--navy);
}
.float-wa:hover .float-wa-tooltip { opacity: 1; }

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,.5); }
  50%       { box-shadow: 0 4px 30px rgba(37,211,102,.8), 0 0 0 10px rgba(37,211,102,.15); }
}
.float-wa { animation: wa-pulse 2.5s ease-in-out infinite; }
.float-wa:hover { animation: none; }

/* =========================================
   SCROLL REVEAL ANIMATION
   ========================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   FR (LTR) OVERRIDES — desktop
   ========================================= */
[lang="fr"] body { direction: ltr; font-family: var(--font-fr); }
[lang="fr"] .faq-q { text-align: left; }
[lang="fr"] .faq-q::after { order: -1; }
[lang="fr"] .hero-inner { direction: ltr; }
[lang="fr"] .hero-text { order: 1; }
[lang="fr"] .hero-visual { order: 2; }
[lang="fr"] .register-left { order: 1; }
[lang="fr"] .register-right { order: 2; }

/* RTL desktop hero: image left (order 1), text right (order 2) in RTL grid */
[lang="ar"] .hero-text { order: 2; }
[lang="ar"] .hero-visual { order: 1; }

/* =========================================
   RESPONSIVE — TABLET  max-width: 768px
   ========================================= */
@media (max-width: 768px) {
  .section-header { margin-bottom: 36px; }
  .trust { padding: 28px 0; }
  .programs, .why-us, .testimonials, .register, .faq, .contact { padding: 64px 0; }
  .contact-branches { grid-template-columns: 1fr; gap: 20px; }
  .branch-card { padding: 28px 24px 22px; }

  /* Navbar */
  .hamburger { display: flex; }
  .nav-links { display: none; flex-direction: column; }
  .nav-links.open {
    display: flex;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--white);
    padding: 12px 20px 24px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    z-index: 999;
    gap: 4px;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
  }
  .nav-links.open a {
    display: block;
    width: 100%;
    padding: 13px 16px;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    text-align: center;
  }
  .nav-links.open .nav-cta { margin-top: 6px; }

  /* Hero — single column, text on top first for conversion */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 44px 20px 20px;
    text-align: center;
  }
  /* Override lang-specific desktop orders — text always first on mobile */
  [lang="ar"] .hero-text,
  [lang="fr"] .hero-text { order: 1; }
  [lang="ar"] .hero-visual,
  [lang="fr"] .hero-visual { order: 2; }

  .hero-ctas { justify-content: center; }
  .hero-stats { justify-content: center; gap: 20px; }
  .hero-card-wrap { max-width: 380px; margin: 0 auto; }
  .bubble1, .bubble2 { display: none; }

  /* Register */
  .register-wrap { grid-template-columns: 1fr; gap: 36px; }
  [lang="ar"] .register-left,
  [lang="fr"] .register-left { order: 1; text-align: center; }
  [lang="ar"] .register-right,
  [lang="fr"] .register-right { order: 2; }
  .register-perks { align-items: center; }
  .register-left .register-logo { margin: 0 auto; }

  /* Gallery 2-col on tablet */
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .gallery-item.large { grid-row: span 1; }
}

/* =========================================
   RESPONSIVE — MOBILE  max-width: 480px
   ========================================= */
@media (max-width: 480px) {
  .container { padding: 0 16px; }

  /* Section spacing */
  .trust { padding: 22px 0; }
  .programs, .why-us, .testimonials, .faq, .contact { padding: 52px 0; }
  .register { padding: 52px 0; }
  .section-header { margin-bottom: 28px; }
  .section-title { font-size: 1.45rem; }
  .section-sub { font-size: .9rem; }

  /* Navbar */
  .nav-inner { height: 60px; gap: 8px; }
  .nav-logo img { width: 36px; height: 36px; }
  .nav-brand { font-size: 1rem; }
  .lang-toggle { padding: 6px 10px; font-size: .75rem; }
  .nav-links.open { top: 60px; }

  /* Hero */
  .hero { padding-top: 60px; min-height: auto; }
  .hero-inner { padding: 32px 16px 12px; gap: 22px; }
  .hero-badge { font-size: .76rem; padding: 6px 12px; margin-bottom: 14px; }
  .hero-title { font-size: 1.65rem; line-height: 1.22; margin-bottom: 12px; }
  .hero-subtitle { font-size: .92rem; margin-bottom: 22px; line-height: 1.6; }
  .hero-ctas {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
    width: 100%;
    align-items: stretch;
  }
  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 16px;
    font-size: .93rem;
  }
  .hero-stats { gap: 14px; }
  .stat-num { font-size: 1.3rem; }
  .stat-label { font-size: .68rem; }
  .stat-divider { height: 26px; }
  .hero-card-wrap { max-width: 100%; width: 100%; }
  .hero-img { height: 220px; }
  .hero-logo-float { width: 52px; height: 52px; top: -10px; right: -10px; }
  [lang="fr"] .hero-logo-float { right: auto; left: -10px; }
  .hero-wave { height: 36px; }

  /* Trust — 2-col pill grid on mobile */
  .trust-grid { gap: 8px; }
  .trust-item {
    font-size: .78rem;
    padding: 9px 12px;
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    gap: 7px;
  }
  .trust-icon { font-size: 1.1rem; flex-shrink: 0; }

  /* Programs */
  .programs-grid { grid-template-columns: 1fr; gap: 20px; }
  .program-card { padding: 22px 18px; }
  .program-name { font-size: 1.05rem; }
  .program-desc { font-size: .88rem; }
  .btn-program { width: 100%; display: block; text-align: center; }

  /* Why Us */
  .why-grid { grid-template-columns: 1fr; gap: 14px; }
  .why-card { padding: 22px 18px; }
  .why-icon { font-size: 2rem; margin-bottom: 10px; }
  .why-card h3 { font-size: 1rem; }
  .why-card p { font-size: .88rem; }

  /* Gallery */
  .gallery-grid { grid-template-columns: 1fr; gap: 12px; }
  .gallery-item.large { grid-row: span 1; }
  .gallery-item { aspect-ratio: 16/9; border-radius: var(--radius); }
  .gallery-overlay { opacity: 1; } /* always visible — no hover on touch */

  /* Register */
  .register-wrap { gap: 28px; }
  .register-left .section-title { font-size: 1.35rem; }
  .register-left p { font-size: .88rem; margin: 10px 0 18px; }
  .register-perks li { font-size: .86rem; }
  .register-right { padding: 22px 16px; border-radius: var(--radius-lg); }
  .reg-form { gap: 16px; }
  .form-group input,
  .form-group select { padding: 14px 12px; font-size: 1rem; } /* larger tap targets */
  .btn-submit { padding: 15px; font-size: .95rem; }

  /* FAQ */
  .faq-list { gap: 10px; }
  .faq-q { padding: 16px 18px; font-size: .9rem; }
  .faq-a p { padding: 0 18px 16px; font-size: .88rem; }
  .faq-a.open { max-height: 700px; }

  /* Contact */
  .branch-card { padding: 22px 18px 18px; gap: 16px; }
  .branch-emoji { font-size: 2.2rem; }
  .branch-name { font-size: 1.05rem; }
  .branch-wa-btn { font-size: .9rem; padding: 12px 16px; }
  .contact-card { padding: 20px 16px; border-radius: var(--radius); }
  .contact-icon { font-size: 1.7rem; margin-bottom: 8px; }
  .contact-card h3 { font-size: .75rem; letter-spacing: .03em; }
  .contact-val { font-size: .85rem; }

  /* Footer */
  .footer { padding: 36px 0 22px; }
  .footer-brand { flex-direction: column; gap: 8px; text-align: center; }
  .footer-brand img { width: 44px; height: 44px; }
  .footer-name { font-size: .88rem; }

  /* Floating WA */
  .float-wa { bottom: 16px; left: 16px; width: 52px; height: 52px; }
  [lang="fr"] .float-wa { left: auto; right: 16px; }
  .float-wa-tooltip { display: none; } /* no hover on touch devices */

  /* Full-width btn-lg */
  .btn-lg { width: 100%; justify-content: center; padding: 15px 20px; font-size: .97rem; }
}

/* =========================================
   RESPONSIVE — SMALL PHONES  max-width: 380px
   ========================================= */
@media (max-width: 380px) {
  .container { padding: 0 14px; }

  .nav-inner { gap: 6px; }
  .nav-brand { font-size: .9rem; }
  .lang-toggle { padding: 5px 8px; font-size: .72rem; }

  .hero-title { font-size: 1.45rem; }
  .hero-subtitle { font-size: .87rem; }
  .hero-badge { font-size: .7rem; padding: 5px 10px; }
  .hero-img { height: 190px; }
  .hero-logo-float { width: 46px; height: 46px; top: -8px; right: -8px; }
  [lang="fr"] .hero-logo-float { right: auto; left: -8px; }

  .section-title { font-size: 1.3rem; }
  .trust-item { font-size: .73rem; padding: 8px 10px; }

  .program-card { padding: 18px 14px; }
  .register-right { padding: 18px 14px; }
  .faq-q { font-size: .86rem; padding: 14px; }

  /* Branch cards on tiny screens */
  .branch-card { padding: 18px 14px 16px; }
  .branch-emoji { font-size: 1.9rem; }
  .branch-name { font-size: 1rem; }
}

/* =========================================
   TESTIMONIALS CAROUSEL
   ========================================= */
.testimonials {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--navy) 0%, #0c2340 100%);
  overflow: hidden;
}
.testimonials .section-tag {
  background: rgba(6,182,212,.15);
  border-color: rgba(6,182,212,.3);
  color: var(--cyan);
}
.testimonials .section-title { color: var(--white); }

.carousel-outer { overflow: hidden; width: 100%; }
.carousel-track {
  display: flex;
  gap: 24px;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
  direction: ltr;
  will-change: transform;
}
.testi-card {
  flex: 0 0 calc((100% - 48px) / 3);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(6,182,212,.2);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}
.testi-card:hover {
  background: rgba(255,255,255,.10);
  border-color: rgba(6,182,212,.4);
  transform: translateY(-4px);
}
.testi-stars { color: #fbbf24; font-size: 1.1rem; letter-spacing: 2px; }
.testi-text {
  font-size: .95rem;
  color: rgba(255,255,255,.85);
  line-height: 1.75;
  flex: 1;
  font-style: italic;
}
.testi-footer { display: flex; align-items: center; gap: 14px; }
.testi-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.testi-meta { display: flex; flex-direction: column; gap: 3px; }
.testi-meta strong { font-size: .92rem; font-weight: 700; color: var(--white); }
.testi-meta span { font-size: .8rem; color: var(--cyan); font-weight: 600; }

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}
.carousel-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(6,182,212,.3);
  color: var(--white);
  font-size: 1.8rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  cursor: pointer;
}
.carousel-btn:hover:not(:disabled) { background: var(--cyan); border-color: var(--cyan); }
.carousel-btn:disabled { opacity: .35; cursor: not-allowed; }
.carousel-dots { display: flex; gap: 8px; align-items: center; }
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}
.carousel-dot.active { background: var(--cyan); width: 22px; border-radius: 4px; }

/* =========================================
   GALLERY MINI
   ========================================= */
.gallery-mini {
  padding: 40px 0;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
}
.gallery-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-mini-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.gallery-mini-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
  display: block;
}
.gallery-mini-item:hover img { transform: scale(1.04); }

/* =========================================
   CAROUSEL + GALLERY-MINI RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
  .testi-card { flex: 0 0 calc((100% - 24px) / 2); }
  .carousel-controls { gap: 14px; margin-top: 30px; }
  .gallery-mini-grid { gap: 10px; }
}
@media (max-width: 480px) {
  .testi-card { flex: 0 0 100%; }
  .carousel-controls { gap: 12px; margin-top: 24px; }
  .gallery-mini { padding: 28px 0; }
  .gallery-mini-grid { gap: 8px; }
  .gallery-mini-item { border-radius: var(--radius-sm); }
}
@media (max-width: 380px) {
  .carousel-btn { width: 38px; height: 38px; font-size: 1.5rem; }
}
