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

:root {
  /* Brand */
  --gold:        #ac9a27;
  --gold-light:  #c8b53a;
  --gold-dark:   #8a7b1f;

  /* Layout backgrounds */
  --bg-white:    #ffffff;
  --bg-light:    #f5f7fc;
  --bg-cream:    #faf8ef;
  --bg-pale:     #f0f4fb;
  --bg-hero:     #1a2744;        /* kept dark for hero contrast */
  --bg-footer:   #111d30;

  /* Text */
  --text-head:   #1a2744;
  --text-body:   #3d4f6b;
  --text-muted:  #7a8aaa;

  /* Cards */
  --card-bg:     #ffffff;
  --shadow-sm:   0 2px 12px rgba(0,0,0,.06);
  --shadow-md:   0 8px 32px rgba(0,0,0,.1);
  --shadow-lg:   0 20px 60px rgba(0,0,0,.13);
  --shadow-gold: 0 8px 32px rgba(172,154,39,.22);

  /* Borders */
  --border:      rgba(0,0,0,.08);
  --border-gold: rgba(172,154,39,.28);
}

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

body {
  font-family: 'Cairo', sans-serif;
  background: var(--bg-white);
  color: var(--text-body);
  overflow-x: hidden;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

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

/* Gold gradient text */
.gold-text {
  background: linear-gradient(135deg, #ac9a27, #d4a820, #8a7b1f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══════════════════════════════════════
   ANIMATIONS
════════════════════════════════════════ */
@keyframes float {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-18px) rotate(3deg); }
}
@keyframes float-logo {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes glow-pulse {
  0%,100% { box-shadow: 0 0 30px rgba(255,255,255,.4); }
  50%      { box-shadow: 0 0 80px rgba(255,255,255,.8), 0 0 120px rgba(255,255,255,.3); }
}
@keyframes dot-bounce {
  0%,80%,100% { transform: scale(.7); opacity:.4; }
  40%          { transform: scale(1.2); opacity:1; }
}
@keyframes shine {
  0%   { left: -80%; }
  50%  { left: 130%; }
  100% { left: 130%; }
}

/* Scroll-reveal */
.fade-up, .fade-left, .fade-right, .scale-in {
  opacity: 0;
  transition: opacity .7s ease, transform .7s ease;
}
.fade-up   { transform: translateY(40px); }
.fade-left  { transform: translateX(40px); }
.fade-right { transform: translateX(-40px); }
.scale-in  { transform: scale(.87); }
.fade-up.visible,
.fade-left.visible,
.fade-right.visible,
.scale-in.visible { opacity: 1; transform: none; }

/* Shine overlay */
.shine-btn { position: relative; overflow: hidden; }
.shine-btn::after {
  content: '';
  position: absolute;
  top: -50%; left: -80%;
  width: 50%; height: 200%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,.3) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  animation: shine 3s ease-in-out infinite;
}

/* ═══════════════════════════════════════
   LOADING SCREEN  — gold background
════════════════════════════════════════ */
#loading-screen {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  transition: opacity .7s ease;
}
#loading-screen.fade-out { opacity: 0; pointer-events: none; }

#loading-circle {
  position: absolute;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255,255,255,.22);
  filter: blur(6px);
  animation: glow-pulse 2s ease-in-out infinite;
  transition: transform .8s ease, opacity .8s ease;
}
#loading-logo {
  position: relative; z-index: 10;
  width: 200px; object-fit: contain;
  animation: float-logo 2s ease-in-out infinite;
  transition: opacity .6s ease, transform .6s ease;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,.15));
}
#loading-dots {
  position: absolute; bottom: 64px;
  display: flex; gap: 8px;
  transition: opacity .5s ease;
}
#loading-dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.85); display: block;
  animation: dot-bounce 1.2s ease-in-out infinite;
}
#loading-dots span:nth-child(2) { animation-delay: .2s; }
#loading-dots span:nth-child(3) { animation-delay: .4s; }

/* ═══════════════════════════════════════
   HEADER
════════════════════════════════════════ */
#header {
  position: fixed; top: 0; right: 0; left: 0; z-index: 100;
  transition: background .4s ease, box-shadow .4s ease, transform .7s ease, opacity .7s ease;
  transform: translateY(-100%); opacity: 0;
}
#header.visible { transform: translateY(0); opacity: 1; }

/* Scrolled = white glass */
#header.scrolled {
  background: rgba(255,255,255,.93);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-gold);
  box-shadow: 0 2px 20px rgba(0,0,0,.07);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
  direction: rtl; /* lock physical positions — same layout in both languages */
}
.header-logo { height: 90px; width: auto; object-fit: contain; }

/* Left group: contact + language switcher */
.header-actions {
  display: flex; align-items: center; gap: 12px;
}

/* Language switcher */
.lang-switcher {
  display: flex; align-items: center; gap: 2px;
}
.lang-btn {
  background: none;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: .75rem; font-weight: 700;
  padding: 4px 9px; border-radius: 7px;
  cursor: pointer; font-family: inherit;
  letter-spacing: .06em;
  transition: color .2s, border-color .2s, background .2s;
}
.lang-btn:hover  { color: var(--gold); border-color: rgba(172,154,39,.35); }
.lang-btn.active { color: var(--gold); border-color: rgba(172,154,39,.5); background: rgba(172,154,39,.1); }
.lang-sep { color: var(--text-muted); font-size: .7rem; padding: 0 1px; user-select: none; }
.lang-switcher-mobile { margin-top: 12px; justify-content: center; }

/* Hero is now light — nav links are always dark */
#main-nav { display: flex; gap: 28px; }
.nav-link {
  font-size: .875rem; font-weight: 600;
  position: relative;
  color: var(--text-head);
  transition: color .3s;
}

.nav-link::after {
  content: '';
  position: absolute; bottom: -4px; right: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width .3s ease; border-radius: 1px;
}
.nav-link:hover { color: var(--gold); }
.nav-link:hover::after { width: 100%; }

.btn-contact {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 50px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: .8rem; font-weight: 600;
  transition: background .3s, color .3s;
}
.btn-contact:hover { background: var(--gold); color: #fff; }

#hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
#hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text-head); border-radius: 2px;
  transition: all .3s;
}
#hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
#hamburger.open span:nth-child(2) { opacity: 0; }
#hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

#mobile-nav {
  display: none; flex-direction: column; gap: 12px;
  padding: 16px 20px 20px;
  border-top: 1px solid var(--border-gold);
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
}
#mobile-nav.open { display: flex; }
#mobile-nav .nav-link { color: var(--text-head); }
#mobile-nav .btn-contact { border-color: var(--gold); color: var(--gold); width: fit-content; }

/* ═══════════════════════════════════════
   HERO  — light / white
════════════════════════════════════════ */
#hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: flex-end; overflow: hidden;
  background: url('images/hero.jpeg') center center / cover no-repeat;
}

.hero-bg {
  position: absolute; inset: 0;
  background: none; will-change: transform;
}

.hero-overlay {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(6, 10, 24, .94)  0%,
    rgba(6, 10, 24, .72)  30%,
    rgba(6, 10, 24, .28)  55%,
    rgba(6, 10, 24, .06)  72%,
    transparent           88%
  );
}

.hero-circle { position: absolute; border-radius: 50%; pointer-events: none; }
.hero-circle-1 {
  width: 600px; height: 600px; top: -160px; left: -160px;
  background: radial-gradient(circle, rgba(172,154,39,.14), transparent 65%);
  animation: float 9s ease-in-out infinite;
}
.hero-circle-2 {
  width: 380px; height: 380px; top: 25%; right: -100px;
  background: radial-gradient(circle, rgba(172,154,39,.09), transparent 65%);
  animation: float 7s ease-in-out 2s infinite;
}
.hero-circle-3 {
  width: 240px; height: 240px; bottom: 8%; left: 28%;
  background: radial-gradient(circle, rgba(26,39,68,.06), transparent 65%);
  animation: float 6s ease-in-out 1s infinite;
}

.hero-grid { position: absolute; inset: 0; opacity: .06; pointer-events: none; }

.particle {
  position: absolute; width: 6px; height: 6px;
  border-radius: 50%; background: var(--gold); opacity: .45;
  animation: float 5s ease-in-out infinite;
}
.line-bottom-right {
  position: absolute; bottom: 0; right: 0;
  width: 33%; height: 1px;
  background: linear-gradient(to left, rgba(172,154,39,.4), transparent);
}
.line-top-left {
  position: absolute; top: 0; left: 0;
  width: 33%; height: 1px;
  background: linear-gradient(to right, rgba(172,154,39,.4), transparent);
}

.hero-content {
  position: relative; z-index: 10;
  padding-top: 72px; padding-bottom: 56px;
  max-width: 1200px; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  direction: rtl; /* lock column positions — matches Arabic/image layout in both languages */
}

/* Right column: badge · headline · CTAs */
.hero-col-right {
  /* flex: 0 0 40%;  */
  max-width: 60%;
}

/* Left column: stats */
.hero-col-left {
  flex: 0 0 24%; max-width: 24%;
  display: flex; align-items: center;
}

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 50px;
  border: 1px solid rgba(172,154,39,.55);
  background: rgba(172,154,39,.18);
  color: var(--gold-light); font-size: .85rem; font-weight: 700;
  margin-bottom: 28px;
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); animation: dot-bounce 2s ease-in-out infinite;
}

#hero h1 {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 900; line-height: 1.2;
  color: #fff; margin-bottom: 24px;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
}

.hero-sub {
  font-size: clamp(.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,.82);
  max-width: 640px; margin-bottom: 40px; line-height: 1.9;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 60px; }

.btn-gold {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 14px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light), var(--gold-dark));
  color: #fff; font-weight: 700; font-size: .95rem;
  box-shadow: var(--shadow-gold);
  transition: transform .3s, box-shadow .3s;
}
.btn-gold:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 12px 40px rgba(172,154,39,.5); }

.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 14px;
  border: 1px solid rgba(37,211,102,.6);
  background: rgba(37,211,102,.14); color: #3ddc7a;
  font-weight: 700; font-size: .95rem;
  transition: transform .3s, background .3s;
}
.btn-whatsapp:hover { transform: translateY(-3px); background: rgba(37,211,102,.26); }

.hero-stats {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 24px;
  padding-top: 32px; border-top: 1px solid rgba(255,255,255,.15);
}
.hero-stat { text-align: start; }
.hero-stat-val { font-size: 2rem; font-weight: 900; }
.hero-stat-lbl { font-size: .8rem; color: rgba(255,255,255,.6); margin-top: 4px; }

.scroll-indicator {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,.6); font-size: .75rem;
  z-index: 10; pointer-events: none;
}
.scroll-line {
  width: 2px; height: 36px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: dot-bounce 2s ease-in-out infinite;
}

/* ═══════════════════════════════════════
   SECTION COMMON
════════════════════════════════════════ */
section { padding: 88px 0; }

.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  font-weight: 900; color: var(--text-head); margin-bottom: 16px;
}
.section-header p {
  color: var(--text-muted); font-size: 1.05rem;
  max-width: 520px; margin: 0 auto; line-height: 1.85;
}

.section-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 50px;
  border: 1px solid var(--border-gold);
  background: rgba(172,154,39,.08);
  color: var(--gold); font-size: .8rem; font-weight: 700;
  margin-bottom: 18px; letter-spacing: .3px;
}

.section-divider {
  width: 80px; height: 3px;
  background: linear-gradient(to left, var(--gold), transparent);
  border-radius: 2px; margin: 20px auto 0;
}

/* ═══════════════════════════════════════
   DIPLOMAS — pure white
════════════════════════════════════════ */
#diplomas { background: var(--bg-white); border-top: 1px solid var(--border); }

.diplomas-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 32px; }

.diploma-card {
  border-radius: 20px; overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
  transition: transform .35s ease, box-shadow .35s ease;
}
.diploma-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-gold);
}

.diploma-img-wrap { position: relative; height: 210px; overflow: hidden; }
.diploma-img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.diploma-card:hover .diploma-img { transform: scale(1.06); }
.diploma-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,39,68,.65) 0%, transparent 55%);
}

.badge-early {
  position: absolute; top: 14px; left: 14px;
  padding: 5px 12px; border-radius: 50px;
  background: var(--gold); color: #fff;
  font-size: .72rem; font-weight: 700;
  box-shadow: 0 4px 12px rgba(172,154,39,.5);
}
.badge-duration {
  position: absolute; top: 14px; right: 14px;
  padding: 5px 12px; border-radius: 50px;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(8px);
  color: var(--text-head); font-size: .72rem; font-weight: 600;
  border: 1px solid rgba(0,0,0,.1);
}

/* Card body — light */
.diploma-body { padding: 22px; }
.diploma-body h3 { font-size: 1.1rem; font-weight: 800; color: var(--text-head); margin-bottom: 8px; line-height: 1.4; }
.diploma-desc { color: var(--text-muted); font-size: .85rem; line-height: 1.8; margin-bottom: 18px; }

.diploma-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.meta-item { display: flex; align-items: flex-start; gap: 8px; font-size: .82rem; }
.meta-item span { font-size: 1.1rem; margin-top: 2px; flex-shrink: 0; }
.meta-item small { display: block; color: var(--text-muted); font-size: .7rem; line-height: 1.3; }
.meta-item strong { display: block; color: var(--text-head); font-weight: 600; font-size: .82rem; }

/* Tabs */
.tabs {
  display: flex; gap: 4px; padding: 4px;
  border-radius: 14px;
  background: var(--bg-light); border: 1px solid var(--border);
  margin-bottom: 16px;
}
.tab-btn {
  flex: 1; padding: 7px 4px; border-radius: 10px; border: none;
  background: none; color: var(--text-muted);
  font-family: 'Cairo', sans-serif; font-size: .78rem; font-weight: 600;
  cursor: pointer; transition: background .3s, color .3s;
}
.tab-btn.active { background: var(--gold); color: #fff; box-shadow: 0 2px 8px rgba(172,154,39,.35); }

.tab-content { display: none; min-height: 40px; }
.tab-content.active { display: block; }

/* Accordion */
.accordion-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--bg-light);
  color: var(--text-head); font-family: 'Cairo', sans-serif;
  font-size: .85rem; font-weight: 600;
  cursor: pointer; transition: background .3s; margin-bottom: 8px; text-align: start;
}
.accordion-trigger:hover { background: #eef0f6; }
.acc-icon { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; transition: transform .35s; }
.accordion-trigger[aria-expanded="true"] .acc-icon { transform: rotate(180deg); }

.accordion-body { max-height: 0; overflow: hidden; transition: max-height .55s cubic-bezier(.4,0,.2,1); }
.accordion-body.open { max-height: 800px; }

.curriculum-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--border-gold);
  background: rgba(172,154,39,.04);
  font-size: .83rem; color: var(--text-body); margin-bottom: 6px;
}
.curr-num {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px;
  background: rgba(172,154,39,.15); color: var(--gold);
  font-size: .75rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* Checklist */
.checklist { padding: 4px 0; }
.checklist li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: .84rem; color: var(--text-body); margin-bottom: 10px;
}
.checklist li::before {
  content: '✓'; flex-shrink: 0;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(172,154,39,.14); color: var(--gold);
  font-size: .7rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}

/* Audience */
.audience-list li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: .84rem; color: var(--text-body); margin-bottom: 10px;
}
.audience-list li::before {
  content: ''; flex-shrink: 0; width: 8px; height: 8px;
  border-radius: 50%; background: rgba(172,154,39,.5); margin-top: 7px;
}

/* Certification */
.certification-box {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border-radius: 14px;
  border: 1px solid var(--border-gold);
  background: rgba(172,154,39,.05); margin-top: 16px;
}
.certification-box span { font-size: 1.3rem; flex-shrink: 0; }
.certification-box small { display: block; color: var(--gold); font-size: .72rem; font-weight: 700; margin-bottom: 4px; }
.certification-box p { font-size: .8rem; color: var(--text-muted); line-height: 1.5; }
.cert-list { margin: 0; padding: 0; list-style: none; }
.cert-list li { font-size: .8rem; color: var(--text-muted); line-height: 1.6; padding-inline-start: 14px; position: relative; }
.cert-list li::before { content: '•'; position: absolute; inset-inline-start: 0; color: var(--gold); }

/* Pricing */
.pricing-box {
  margin-top: 18px; padding: 16px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(172,154,39,.1), rgba(172,154,39,.03));
  border: 1px solid var(--border-gold);
}
.pricing-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.price-original { color: var(--text-muted); font-size: .78rem; text-decoration: line-through; }
.price-current { font-size: 1.6rem; font-weight: 900; line-height: 1.1; }
.price-current span { font-size: 1rem; font-weight: 600; }
.price-label { color: var(--gold); font-size: .72rem; margin-top: 3px; }
.price-group { text-align: left; }
.price-group small { display: block; color: var(--text-muted); font-size: .72rem; }
.price-group span { color: var(--text-body); font-size: .78rem; }

.pricing-btns { display: flex; gap: 8px; }

.btn-wa-small {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px; border-radius: 12px;
  border: 1px solid rgba(37,211,102,.35); background: rgba(37,211,102,.08);
  color: #1aab4e; font-family: 'Cairo', sans-serif; font-size: .82rem; font-weight: 600;
  cursor: pointer; transition: background .3s;
}
.btn-wa-small:hover { background: rgba(37,211,102,.18); }

.btn-gold-small {
  flex: 1; display: inline-flex; align-items: center; justify-content: center;
  padding: 10px; border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #fff; font-family: 'Cairo', sans-serif; font-size: .85rem; font-weight: 700;
  transition: transform .3s, box-shadow .3s;
}
.btn-gold-small:hover { transform: scale(1.03); box-shadow: var(--shadow-gold); }

.diplomas-cta { text-align: center; margin-top: 52px; }
.diplomas-cta p { color: var(--text-muted); font-size: .9rem; margin-bottom: 14px; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 14px;
  border: 1px solid var(--border-gold); color: var(--gold);
  font-weight: 600; font-size: .9rem;
  transition: background .3s, border-color .3s;
}
.btn-outline:hover { background: rgba(172,154,39,.07); border-color: var(--gold); }

/* ═══════════════════════════════════════
   STATS / WHY ARKAN — light blue-gray
════════════════════════════════════════ */
#why-arkan {
  background: var(--bg-pale);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }

.stat-card {
  text-align: center; padding: 40px 20px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
  transition: transform .35s, box-shadow .35s;
}
.stat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.stat-icon { font-size: 2.2rem; margin-bottom: 14px; }
.stat-num { font-size: 2.8rem; font-weight: 900; line-height: 1; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.stat-lbl { color: var(--text-muted); font-weight: 500; font-size: .9rem; }

/* ═══════════════════════════════════════
   TRAINING AREAS CTA BANNER
════════════════════════════════════════ */
#training-areas {
  position: relative; overflow: hidden;
  padding: 88px 0;
}

.ta-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0f1b35 0%, #1a2744 55%, #0d1728 100%);
}

.ta-circle {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(172,154,39,.18), transparent 65%);
}
.ta-circle-1 { width: 520px; height: 520px; top: -180px; right: -80px; }
.ta-circle-2 { width: 380px; height: 380px; bottom: -120px; left: -60px; }

.ta-grid {
  position: absolute; inset: 0; opacity: .04; pointer-events: none;
  background-image:
    linear-gradient(rgba(172,154,39,.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(172,154,39,.6) 1px, transparent 1px);
  background-size: 60px 60px;
}

.ta-inner {
  position: relative; z-index: 10;
  text-align: center;
  max-width: 700px; margin: 0 auto;
}

.ta-icon {
  font-size: 3.2rem; display: block;
  margin-bottom: 18px;
  filter: drop-shadow(0 4px 16px rgba(172,154,39,.45));
}

.ta-badge {
  display: inline-flex; align-items: center;
  padding: 7px 20px; border-radius: 50px;
  border: 1px solid rgba(172,154,39,.4);
  background: rgba(172,154,39,.14);
  color: var(--gold-light);
  font-size: .82rem; font-weight: 700;
  margin-bottom: 22px;
  letter-spacing: .02em;
}

#training-areas h2 {
  font-size: clamp(1.65rem, 3.5vw, 2.6rem);
  font-weight: 900; line-height: 1.25;
  color: #fff; margin-bottom: 18px;
  text-shadow: 0 2px 16px rgba(0,0,0,.3);
}

#training-areas p {
  font-size: clamp(.95rem, 1.8vw, 1.08rem);
  color: rgba(255,255,255,.72);
  max-width: 580px; margin: 0 auto 36px;
  line-height: 1.9;
}

.btn-ta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 40px; border-radius: 50px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light), var(--gold-dark));
  color: #fff; font-weight: 700; font-size: 1rem;
  box-shadow: 0 8px 32px rgba(172,154,39,.38), 0 2px 8px rgba(0,0,0,.25);
  transition: transform .3s, box-shadow .3s;
}
.btn-ta:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 44px rgba(172,154,39,.55);
}
.btn-ta svg { flex-shrink: 0; }

/* ═══════════════════════════════════════
   FEATURES — light cream / gold tint
════════════════════════════════════════ */
#features {
  background: var(--bg-cream);
}

.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }

.feature-card {
  padding: 32px 26px; border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
  transition: transform .35s, border-color .35s, box-shadow .35s;
  position: relative; overflow: hidden;
}
.feature-card::after {
  content: ''; position: absolute; bottom: 0; right: 0;
  width: 0; height: 3px;
  background: linear-gradient(to left, var(--gold), transparent);
  border-radius: 1px; transition: width .5s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--border-gold); }
.feature-card:hover::after { width: 100%; }

.feat-icon {
  font-size: 2rem; width: 58px; height: 58px; border-radius: 16px;
  background: rgba(172,154,39,.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; transition: background .3s;
}
.feature-card:hover .feat-icon { background: rgba(172,154,39,.2); }
.feature-card h4 { font-size: 1.05rem; font-weight: 800; color: var(--text-head); margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: .85rem; line-height: 1.8; }

/* ═══════════════════════════════════════
   TESTIMONIALS — white
════════════════════════════════════════ */
#testimonials { background: var(--bg-white); }

.testimonial-wrapper { max-width: 780px; margin: 0 auto; }

.testimonial-card {
  padding: 52px 44px;
  border-radius: 24px;
  border: 1px solid var(--border-gold);
  background: var(--card-bg);
  box-shadow: var(--shadow-md);
  text-align: center; min-height: 280px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}

.quote-mark {
  font-size: 5rem; line-height: .8;
  color: var(--gold); opacity: .2;
  font-family: Georgia, serif; margin-bottom: 12px;
}
#t-text {
  font-size: 1.05rem; color: var(--text-body);
  line-height: 1.9; max-width: 580px;
  margin-bottom: 24px; transition: opacity .4s ease;
}
.t-stars { color: var(--gold); font-size: 1.2rem; letter-spacing: 3px; margin-bottom: 20px; }
.t-author { display: flex; align-items: center; gap: 14px; }
.t-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--gold); color: #fff;
  font-weight: 700; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
#t-name { display: block; font-weight: 800; font-size: .95rem; color: var(--text-head); }
#t-role { display: block; color: var(--text-muted); font-size: .8rem; }

.t-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.t-dot {
  height: 8px; border-radius: 4px;
  background: var(--border); cursor: pointer;
  transition: width .35s, background .35s; width: 8px;
}
.t-dot.active { width: 32px; background: var(--gold); }

.t-thumbs { display: flex; justify-content: center; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.t-thumb {
  padding: 8px 14px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--bg-light);
  cursor: pointer; transition: border-color .3s, background .3s;
  text-align: center; min-width: 80px;
}
.t-thumb.active { border-color: var(--gold); background: rgba(172,154,39,.08); }
.t-thumb-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  margin: 0 auto 4px;
  background: rgba(0,0,0,.08); color: var(--text-muted);
  font-size: .8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.t-thumb.active .t-thumb-avatar { background: var(--gold); color: #fff; }
.t-thumb-name { font-size: .72rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ═══════════════════════════════════════
   FAQ — light pale bg
════════════════════════════════════════ */
#faq { background: var(--bg-pale); }
.faq-container { max-width: 780px; }

.faq-list { display: flex; flex-direction: column; gap: 10px; }

.faq-item {
  border-radius: 16px; border: 1px solid var(--border);
  background: var(--card-bg); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s, border-color .3s;
}
.faq-item:hover { border-color: var(--border-gold); box-shadow: var(--shadow-md); }

.faq-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  background: var(--card-bg);
  border: none; color: var(--text-head);
  font-family: 'Cairo', sans-serif; font-size: .95rem; font-weight: 700;
  cursor: pointer; text-align: start; transition: background .3s;
}
.faq-trigger:hover { background: var(--bg-light); }

.faq-icon {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--border-gold); padding: 6px;
  color: var(--gold); flex-shrink: 0; margin-right: 8px;
  transition: transform .35s, background .3s, color .3s;
}
.faq-trigger[aria-expanded="true"] .faq-icon { transform: rotate(180deg); background: var(--gold); color: #fff; }

.faq-body {
  max-height: 0; overflow: hidden;
  transition: max-height .5s cubic-bezier(.4,0,.2,1);
  color: var(--text-body); font-size: .9rem; line-height: 1.85;
  border-top: 1px solid var(--border); padding: 0 22px;
}
.faq-body.open { max-height: 400px; padding: 16px 22px 20px; }

.faq-cta { text-align: center; margin-top: 40px; }
.faq-cta p { color: var(--text-muted); font-size: .9rem; margin-bottom: 14px; }

.btn-wa-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 14px;
  border: 1px solid rgba(37,211,102,.4); background: rgba(37,211,102,.07);
  color: #1aab4e; font-weight: 600; font-size: .9rem;
  transition: background .3s;
}
.btn-wa-outline:hover { background: rgba(37,211,102,.15); }

/* ═══════════════════════════════════════
   PRIVACY — white
════════════════════════════════════════ */
#privacy { background: var(--bg-white); border-top: 1px solid var(--border); }

.privacy-box {
  padding: 48px 40px; border-radius: 20px;
  border: 1px solid var(--border-gold);
  background: var(--card-bg); box-shadow: var(--shadow-sm);
}
.privacy-box h2 { font-size: 1.8rem; font-weight: 900; color: var(--text-head); margin-bottom: 24px; }
.privacy-content p { color: var(--text-body); font-size: .92rem; line-height: 1.95; margin-bottom: 16px; }
.privacy-content strong { color: var(--text-head); }

/* ═══════════════════════════════════════
   CONTACT — cream with gold tint
════════════════════════════════════════ */
#contact { background: var(--bg-cream); }

.contact-card {
  position: relative; padding: 64px 52px;
  border-radius: 28px; border: 1px solid var(--border-gold);
  background: var(--card-bg); box-shadow: var(--shadow-md);
  text-align: center; overflow: hidden;
}
.contact-deco {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(172,154,39,.1), transparent);
}
.contact-deco-1 { width: 300px; height: 300px; top: -80px; right: -80px; }
.contact-deco-2 { width: 220px; height: 220px; bottom: -70px; left: -70px; }
.contact-inner { position: relative; z-index: 2; }

.contact-card h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); font-weight: 900; color: var(--text-head); margin-bottom: 16px; }
.contact-card > .contact-inner > p {
  color: var(--text-muted); font-size: 1rem;
  max-width: 480px; margin: 0 auto 36px; line-height: 1.85;
}

.contact-btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 36px; }

.btn-wa-contact {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 14px;
  border: 1px solid rgba(37,211,102,.45); background: rgba(37,211,102,.08);
  color: #1aab4e; font-family: 'Cairo', sans-serif; font-weight: 700; font-size: .95rem;
  transition: background .3s, transform .3s;
}
.btn-wa-contact:hover { background: rgba(37,211,102,.18); transform: scale(1.03); }

.btn-call-contact {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 14px;
  border: 1px solid var(--border-gold); background: rgba(172,154,39,.08);
  color: var(--gold-dark); font-family: 'Cairo', sans-serif; font-weight: 700; font-size: .95rem;
  transition: background .3s, transform .3s;
}
.btn-call-contact:hover { background: rgba(172,154,39,.16); transform: scale(1.03); }

.btn-email-contact {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--bg-light);
  color: var(--text-body); font-family: 'Cairo', sans-serif; font-weight: 600; font-size: .95rem;
  transition: background .3s, transform .3s;
}
.btn-email-contact:hover { background: #e8eaf2; transform: scale(1.03); }

.contact-info-strip {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 16px;
  padding-top: 28px; border-top: 1px solid var(--border);
}
.cis-label { color: var(--gold); font-size: .78rem; font-weight: 700; margin-bottom: 4px; }
.cis-val { color: var(--text-muted); font-size: .84rem; }

/* ═══════════════════════════════════════
   FOOTER — dark navy (contrast anchor)
════════════════════════════════════════ */
#footer { border-top: 3px solid var(--gold); background: var(--bg-footer); }

.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px; padding-top: 52px; padding-bottom: 36px;
}
.footer-logo { height: 48px; width: auto; object-fit: contain; margin-bottom: 18px; }
.footer-brand p { color: rgba(255,255,255,.45); font-size: .85rem; line-height: 1.85; margin-bottom: 22px; }

.social-links { display: flex; gap: 10px; }
.social-btn {
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid rgba(172,154,39,.35); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  transition: background .3s, border-color .3s;
}
.social-btn:hover { background: rgba(172,154,39,.15); border-color: var(--gold); }

/* App store download badges */
.app-download { margin-top: 24px; }
.app-download-label {
  font-size: .73rem; font-weight: 600; letter-spacing: .04em;
  color: rgba(255,255,255,.38); text-transform: uppercase;
  margin-bottom: 10px;
}
.app-badges { display: flex; gap: 10px; }
.app-badge {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 9px 16px; border-radius: 11px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.13);
  color: #fff;
  transition: background .25s, border-color .25s, transform .2s;
  width: fit-content;
}
.app-badge:hover {
  background: rgba(255,255,255,.13);
  border-color: rgba(255,255,255,.28);
  transform: translateY(-2px);
}
.app-badge svg { flex-shrink: 0; }
.app-badge-text {
  display: flex; flex-direction: column; line-height: 1.25;
}
.app-badge-text span {
  font-size: .62rem; color: rgba(255,255,255,.62); font-weight: 400;
}
.app-badge-text strong { font-size: .88rem; font-weight: 700; letter-spacing: .01em; }

.footer-col h4 { color: #fff; font-weight: 700; font-size: .9rem; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  color: rgba(255,255,255,.45); font-size: .85rem;
  display: flex; align-items: flex-start; gap: 8px;
  transition: color .3s;
}
.footer-col ul a::before {
  content: ''; flex-shrink: 0; width: 5px; height: 5px;
  border-radius: 50%; background: rgba(172,154,39,.5); margin-top: 8px;
}
.footer-col ul a:hover { color: var(--gold-light); }

.footer-contact li { color: rgba(255,255,255,.45); font-size: .85rem; margin-bottom: 10px; display: flex; gap: 8px; }
.footer-contact a { color: rgba(255,255,255,.45); transition: color .3s; }
.footer-contact a:hover { color: var(--gold-light); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; gap: 16px; flex-wrap: wrap;
}
.footer-bottom p { color: rgba(255,255,255,.3); font-size: .78rem; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: rgba(255,255,255,.3); font-size: .78rem; transition: color .3s; }
.footer-links a:hover { color: var(--gold); }

/* Floating WhatsApp */
#floating-wa {
  position: fixed; bottom: 24px; left: 24px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 30px rgba(37,211,102,.5);
  transition: transform .3s;
  animation: float 5s ease-in-out 1s infinite;
}
#floating-wa:hover { transform: scale(1.12); }
.floating-badge {
  position: absolute; top: -2px; right: -2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #ef4444; color: #fff;
  font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ═══════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 1024px) {
  /* Tighten hero columns on tablet */
  .hero-col-right { flex: 0 0 44%; max-width: 44%; }
  .hero-col-left  { flex: 0 0 28%; max-width: 28%; }

  .stats-grid    { grid-template-columns: repeat(2,1fr); }
  .features-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  section { padding: 64px 0; }

  #main-nav { display: none; }
  #hamburger { display: flex; }

  .diplomas-grid  { grid-template-columns: 1fr; }
  .stats-grid     { grid-template-columns: repeat(2,1fr); }
  .features-grid  { grid-template-columns: 1fr; }
  .footer-grid    { grid-template-columns: 1fr; }
  .contact-info-strip { grid-template-columns: 1fr; }

  /* Mobile hero: stack columns vertically */
  #hero { background-size: cover; background-position: center center; align-items: flex-end; }
  .hero-overlay {
    background: linear-gradient(to top,
      rgba(6,10,24,.94) 0%, rgba(6,10,24,.72) 30%,
      rgba(6,10,24,.25) 58%, transparent 80%);
  }
  .hero-content {
    flex-direction: column; align-items: flex-start;
    padding-top: 0; padding-bottom: 56px; gap: 24px;
  }
  .hero-col-right { flex: none; max-width: 100%; width: 100%; }
  .hero-col-left  { flex: none; max-width: 100%; width: 100%; }
  .hero-stats {
    flex-direction: row; justify-content: space-around;
    border-right: none; border-top: 1px solid rgba(255,255,255,.18);
    padding-right: 0; padding-top: 20px; gap: 0;
  }
  .hero-stat { text-align: center; }
  .hero-stat-val { font-size: 1.4rem; }

  .contact-card  { padding: 36px 24px; }
  .privacy-box   { padding: 28px; }
  .testimonial-card { padding: 32px 24px; }
}

@media (max-width: 480px) {
  /* On portrait mobile anchor the image so the face stays centred */
  #hero { background-position: 48% center; }

  .hero-ctas    { flex-direction: column; }
  .hero-stat-val { font-size: 1.25rem; }
  .tabs         { flex-direction: column; }
  .pricing-btns { flex-direction: column; }
  .stats-grid   { grid-template-columns: 1fr 1fr; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .t-thumbs     { gap: 6px; }
  .t-thumb      { min-width: 68px; }
}

/* ═══════════════════════════════════════
   LTR OVERRIDES  (English mode)
════════════════════════════════════════ */

/*
 * Hero section: identical visual layout in English and Arabic.
 * [dir="ltr"] #hero * has specificity 1,1,0 — beats the browser UA stylesheet's
 * [dir="ltr"] * { direction: ltr } which is only 0,1,0.
 * This locks every hero descendant (columns, text, buttons, stats) to RTL direction
 * so nothing shifts between Arabic and English.
 */
[dir="ltr"] #hero * { direction: rtl; }

/* Floating WhatsApp: move to right side in LTR */
[dir="ltr"] #floating-wa { left: auto; right: 24px; }

/* Nav underline grows left-to-right in LTR */
[dir="ltr"] .nav-link::after { left: 0; right: auto; }

/* Mobile nav lang switcher */
[dir="ltr"] .lang-switcher-mobile { justify-content: flex-start; }
