/* =========================================================
   مدرسة السيدة خديجة الخاصة للغات — نظام التصميم
   ========================================================= */
:root {
  --primary: #0b3d5c;
  --primary-2: #145b85;
  --primary-3: #1f7bb0;
  --accent: #f2a93b;
  --accent-2: #ffc861;
  --coral: #ef6f6c;
  --mint: #22a99a;
  --sky: #5aa9e6;
  --violet: #7b6cf6;

  --bg: #fbf8f3;
  --bg-2: #f3efe7;
  --surface: #ffffff;
  --text: #1b2a36;
  --muted: #5d6d79;
  --line: #e7e1d6;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 8px rgba(11, 61, 92, .06);
  --shadow: 0 12px 34px rgba(11, 61, 92, .10);
  --shadow-lg: 0 24px 60px rgba(11, 61, 92, .16);

  --font-head: "Cairo", "Tajawal", system-ui, sans-serif;
  --font-body: "Tajawal", "Cairo", system-ui, sans-serif;

  --container: 1200px;
  --header-h: 84px;
  --ease: cubic-bezier(.22, .9, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
/* clip يمنع التمرير الأفقي دون كسر الهيدر الثابت (sticky) */
@supports (overflow: clip) { html, body { overflow-x: clip; } }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, h5 { font-family: var(--font-head); line-height: 1.35; margin: 0 0 .5em; color: var(--primary); }
p { margin: 0 0 1em; }
ul { padding: 0; margin: 0; list-style: none; }
::selection { background: var(--accent); color: var(--primary); }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 110px) 0; position: relative; }
.section--alt { background: var(--bg-2); }
.section--dark { background: var(--primary); color: #dbe7ef; }
.section--dark h2, .section--dark h3 { color: #fff; }
.text-center { text-align: center; }
.muted { color: var(--muted); }

/* ---------- Section heading ---------- */
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section--dark .section-head p { color: #b9cbd8; }
.hl { position: relative; color: var(--primary-2); white-space: nowrap; }
.hl::after {
  content: ""; position: absolute; inset-inline: -4px; bottom: .08em; height: .32em;
  background: var(--accent); opacity: .45; border-radius: 6px; z-index: -1;
  transform: scaleX(0); transform-origin: right; transition: transform 1s .3s var(--ease);
}
.is-visible .hl::after, .hl.is-visible::after { transform: scaleX(1); }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--primary);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 99px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  background: var(--b); color: #fff; position: relative; overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s;
  box-shadow: 0 10px 24px rgba(11, 61, 92, .22);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(120%); transition: transform .8s var(--ease);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(11, 61, 92, .28); }
.btn:hover::before { transform: translateX(-120%); }
.btn--accent { --b: var(--accent); color: var(--primary); box-shadow: 0 10px 24px rgba(242, 169, 59, .35); }
.btn--ghost { background: transparent; color: var(--primary); border-color: currentColor; box-shadow: none; }
.btn--ghost:hover { background: var(--primary); color: #fff; }
.btn--light { background: #fff; color: var(--primary); }
.btn--sm { padding: 9px 20px; font-size: .92rem; }
.btn i { font-size: 1.15em; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center;
  background: var(--primary); transition: opacity .6s, visibility .6s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__logo { width: 92px; height: 92px; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.9); opacity: .7; } }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; inset-inline: 0; height: 4px; z-index: 1001;
  background: linear-gradient(90deg, var(--accent), var(--coral));
  transform-origin: right; transform: scaleX(0);
}

/* ---------- Top bar ---------- */
.topbar { background: var(--primary); color: #cfe0ea; font-size: .88rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 42px; flex-wrap: wrap; }
.topbar__info { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar__info span { display: inline-flex; gap: 6px; align-items: center; }
.topbar__info i, .topbar__social a:hover { color: var(--accent); }
.topbar__social { display: flex; gap: 14px; font-size: 1.05rem; }
.topbar__social a { transition: color .2s; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 1000; height: var(--header-h);
  background: rgba(251, 248, 243, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: height .35s var(--ease), box-shadow .35s, border-color .35s, background .35s;
}
.header.is-scrolled { height: 70px; box-shadow: var(--shadow-sm); border-color: var(--line); background: rgba(255, 255, 255, .92); }
.header .container { width: min(100% - 40px, 1380px); height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.topbar .container { width: min(100% - 40px, 1380px); }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand__logo { width: 56px; height: 56px; flex: none; border-radius: 50%; box-shadow: 0 6px 16px rgba(11, 61, 92, .22); transition: transform .6s var(--ease); }
.brand:hover .brand__logo { transform: rotate(-10deg) scale(1.05); }
.brand__text { white-space: nowrap; }
.brand__text strong { display: block; font-family: var(--font-head); font-size: 1.15rem; font-weight: 800; color: var(--primary); line-height: 1.25; }
.brand__text small { display: block; font-size: .72rem; color: var(--muted); letter-spacing: .4px; direction: ltr; text-align: right; line-height: 1.4; }
.header__cta { flex: none; }
.header__cta .btn { white-space: nowrap; }

.nav { display: flex; align-items: center; justify-content: center; gap: 2px; flex: 1; min-width: 0; }
.nav__link {
  position: relative; padding: 8px 14px; border-radius: 99px;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem; color: var(--text);
  transition: color .25s, background .25s;
}
.nav__link::after {
  content: ""; position: absolute; bottom: 2px; right: 50%; width: 0; height: 3px; border-radius: 3px;
  background: var(--accent); transition: width .35s var(--ease), right .35s var(--ease);
}
.nav__link:hover { color: var(--primary-2); }
.nav__link:hover::after, .nav__link.is-active::after { width: 22px; right: calc(50% - 11px); }
.nav__link.is-active { color: var(--primary-2); }
.header__cta { display: flex; align-items: center; gap: 10px; }
.burger {
  display: none; width: 46px; height: 46px; border-radius: 12px; border: 0;
  background: var(--primary); color: #fff; position: relative;
}
.burger span, .burger span::before, .burger span::after {
  position: absolute; width: 22px; height: 2px; background: currentColor; border-radius: 2px;
  right: 12px; transition: transform .35s var(--ease), opacity .2s;
}
.burger span { top: 22px; }
.burger span::before { content: ""; top: -7px; right: 0; }
.burger span::after { content: ""; top: 7px; right: 0; }
.nav-open .burger span { background: transparent; }
.nav-open .burger span::before { transform: translateY(7px) rotate(45deg); background: #fff; }
.nav-open .burger span::after { transform: translateY(-7px) rotate(-45deg); background: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 6vw, 80px) 0 clamp(80px, 10vw, 130px); overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 48px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px;
  background: #fff; border-radius: 99px; box-shadow: var(--shadow-sm); font-weight: 700; font-size: .92rem; margin-bottom: 22px;
}
.hero__badge b { background: var(--accent); color: var(--primary); padding: 2px 12px; border-radius: 99px; font-size: .82rem; }
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.9rem); font-weight: 900; line-height: 1.3; margin-bottom: 20px; }
.hero h1 .typed { color: var(--primary-3); border-inline-start: 3px solid var(--accent); padding-inline-start: 6px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { border-color: transparent; } }
.hero__lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; margin-bottom: 32px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero__trust { display: flex; align-items: center; gap: 16px; }
.avatars { display: flex; }
.avatars span {
  width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--bg); margin-inline-start: -12px;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-family: var(--font-head);
}
.avatars span:first-child { margin-inline-start: 0; }
.hero__trust small { color: var(--muted); display: block; line-height: 1.5; }
.hero__trust strong { color: var(--primary); }

.hero__visual { position: relative; }
.hero__art { width: 100%; height: auto; filter: drop-shadow(0 30px 50px rgba(11, 61, 92, .18)); }
.float-card {
  position: absolute; background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 12px 16px;
  display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: .92rem; animation: floatY 5s ease-in-out infinite;
}
.float-card i { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; color: #fff; }
.float-card small { display: block; color: var(--muted); font-weight: 500; font-size: .78rem; }
.float-card--1 { top: 8%; right: -4%; }
.float-card--2 { bottom: 12%; left: -6%; animation-delay: -2.5s; }
@keyframes floatY { 50% { transform: translateY(-14px); } }

.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; z-index: -1; pointer-events: none; }
.blob--1 { width: 420px; height: 420px; background: #bfe3f7; top: -120px; left: -120px; }
.blob--2 { width: 340px; height: 340px; background: #ffe3b5; bottom: -80px; right: 20%; }
.shape { position: absolute; pointer-events: none; z-index: -1; opacity: .9; }
.wave-bottom { position: absolute; bottom: -1px; inset-inline: 0; line-height: 0; }
.wave-bottom svg { width: 100%; height: 70px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  padding: clamp(70px, 10vw, 120px) 0 clamp(90px, 12vw, 140px);
  background: radial-gradient(1200px 400px at 80% -10%, rgba(242,169,59,.35), transparent 60%),
              linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 60%, var(--primary-3) 100%);
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; }
.page-hero p { max-width: 640px; margin: 0 auto; color: #d2e3ee; font-size: 1.1rem; }
.breadcrumb { display: inline-flex; gap: 8px; align-items: center; margin-bottom: 16px; font-size: .92rem; background: rgba(255,255,255,.12); padding: 6px 16px; border-radius: 99px; }
.breadcrumb a:hover { color: var(--accent-2); }
.page-hero .dots { position: absolute; inset: 0; opacity: .12; background-image: radial-gradient(#fff 1.5px, transparent 1.5px); background-size: 26px 26px; }
.page-hero .wave-bottom svg path { fill: var(--bg); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); position: relative; overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card h3 { font-size: 1.25rem; }
.card p { color: var(--muted); margin: 0; }
.icon-box {
  --c: var(--primary-3);
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 1.8rem;
  color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); margin-bottom: 20px;
  transition: transform .5s var(--ease), background .3s, color .3s;
}
.card:hover .icon-box { transform: rotate(-8deg) scale(1.08); background: var(--c); color: #fff; }

/* feature card with corner accent */
.feature-card::before {
  content: ""; position: absolute; width: 140px; height: 140px; border-radius: 50%;
  background: var(--c, var(--accent)); opacity: .07; top: -50px; left: -50px; transition: transform .6s var(--ease);
}
.feature-card:hover::before { transform: scale(2.4); }

/* stage cards */
.stage-card { padding: 0; display: flex; flex-direction: column; }
.stage-card__top {
  --c: var(--primary-3);
  padding: 30px 28px 26px; color: #fff; position: relative;
  background: linear-gradient(140deg, var(--c), color-mix(in srgb, var(--c) 70%, #000));
}
.stage-card__top h3 { color: #fff; margin-bottom: 4px; }
.stage-card__top small { opacity: .85; }
.stage-card__top .big-ic { position: absolute; left: 20px; top: 18px; font-size: 3.4rem; opacity: .25; transition: transform .6s var(--ease); }
.stage-card:hover .big-ic { transform: scale(1.2) rotate(-10deg); opacity: .4; }
.stage-card__body { padding: 24px 28px 28px; flex: 1; display: flex; flex-direction: column; }
.stage-card__body ul { margin: 0 0 20px; }
.stage-card__body li { display: flex; gap: 8px; padding: 5px 0; color: var(--muted); }
.stage-card__body li i { color: var(--mint); }
.stage-card__body .link { margin-top: auto; }
.link { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 700; color: var(--primary-2); }
.link i { transition: transform .3s var(--ease); }
.link:hover i { transform: translateX(-6px); }

/* ---------- About split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.media-stack { position: relative; aspect-ratio: 1 / 1; }
.media-stack .ph { position: absolute; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.media-stack .ph--a { inset: 0 18% 22% 0; }
.media-stack .ph--b { inset: 46% 0 0 40%; border: 8px solid var(--bg); }
.exp-badge {
  position: absolute; bottom: 4%; right: 2%; z-index: 2; width: 130px; height: 130px; border-radius: 50%;
  background: var(--accent); color: var(--primary); display: grid; place-items: center; text-align: center;
  font-family: var(--font-head); font-weight: 800; line-height: 1.2; box-shadow: var(--shadow);
  animation: spinSlow 18s linear infinite;
}
.exp-badge > div { animation: spinSlow 18s linear infinite reverse; }
.exp-badge strong { font-size: 2.2rem; display: block; }
@keyframes spinSlow { to { transform: rotate(360deg); } }
.check-list li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; font-weight: 500; }
.check-list i { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(34,169,154,.14); color: var(--mint); margin-top: 3px; }

/* Placeholder "photo" — gradient art with icon (replace with real photos) */
.ph {
  --c1: #1f7bb0; --c2: #0b3d5c;
  background: linear-gradient(140deg, var(--c1), var(--c2)); color: rgba(255,255,255,.9);
  display: grid; place-items: center; position: relative; isolation: isolate;
}
.ph img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.ph::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .18; background-image: radial-gradient(#fff 1.4px, transparent 1.4px); background-size: 20px 20px; }
.ph i { font-size: clamp(2.6rem, 6vw, 4.2rem); filter: drop-shadow(0 6px 12px rgba(0,0,0,.2)); }
.ph--warm { --c1: #ffc861; --c2: #ef6f6c; }
.ph--mint { --c1: #4fd1c0; --c2: #167f74; }
.ph--violet { --c1: #a89bff; --c2: #5a4bd6; }
.ph--sky { --c1: #8fd0ff; --c2: #3a86c8; }

/* ---------- Stats ---------- */
.stats {
  position: relative; z-index: 2; margin-top: -60px;
}
.stats__box {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: repeat(4, 1fr); padding: 34px 20px;
}
.stat { text-align: center; padding: 6px 12px; position: relative; }
.stat + .stat::before { content: ""; position: absolute; right: 0; top: 15%; height: 70%; width: 1px; background: var(--line); }
.stat i { font-size: 2rem; color: var(--accent); }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(1.9rem, 3.6vw, 2.7rem); color: var(--primary); font-weight: 900; line-height: 1.2; }
.stat span { color: var(--muted); font-weight: 500; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; background: var(--accent); color: var(--primary); padding: 16px 0; transform: rotate(-1.2deg); margin: 20px -10px; }
.marquee__track { display: flex; gap: 48px; width: max-content; animation: marquee 30s linear infinite; }
.marquee__track span { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; display: inline-flex; align-items: center; gap: 48px; white-space: nowrap; }
.marquee__track span::after { content: "✦"; color: #fff; }
@keyframes marquee { to { transform: translateX(50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ---------- Tabs ---------- */
.tabs__nav { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.tabs__btn {
  border: 2px solid var(--line); background: #fff; color: var(--text); padding: 10px 22px; border-radius: 99px;
  font-family: var(--font-head); font-weight: 700; transition: all .3s var(--ease);
}
.tabs__btn:hover { border-color: var(--primary-3); color: var(--primary-3); }
.tabs__btn.is-active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 10px 20px rgba(11,61,92,.2); }
.tabs__panel { display: none; animation: fadeUp .6s var(--ease); }
.tabs__panel.is-active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } }

/* ---------- Timeline (steps) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 38px; right: 12%; left: 12%; height: 3px; background: repeating-linear-gradient(90deg, var(--accent) 0 12px, transparent 12px 22px); }
.step { text-align: center; position: relative; }
.step__num {
  width: 78px; height: 78px; margin: 0 auto 18px; border-radius: 50%; background: #fff; border: 3px solid var(--accent);
  display: grid; place-items: center; font-size: 1.8rem; color: var(--primary); position: relative; z-index: 1;
  box-shadow: var(--shadow); transition: transform .5s var(--ease), background .3s;
}
.step:hover .step__num { transform: scale(1.1) rotate(8deg); background: var(--accent); }
.step__num::after {
  counter-increment: step; content: counter(step); position: absolute; top: -6px; left: -6px; width: 28px; height: 28px;
  border-radius: 50%; background: var(--primary); color: #fff; font-size: .85rem; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800;
}
.step h4 { font-size: 1.1rem; }
.step p { color: var(--muted); font-size: .95rem; }

/* vertical timeline */
.vtimeline { position: relative; max-width: 860px; margin: 0 auto; }
.vtimeline::before { content: ""; position: absolute; right: 50%; top: 0; bottom: 0; width: 3px; background: var(--line); transform: translateX(50%); }
.vt-item { position: relative; width: 50%; padding: 0 0 40px 40px; }
.vt-item:nth-child(even) { margin-right: 50%; padding: 0 40px 40px 0; }
.vt-item::before { content: ""; position: absolute; top: 8px; left: -10px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); border: 4px solid var(--bg); box-shadow: 0 0 0 3px var(--accent); }
.vt-item:nth-child(even)::before { left: auto; right: -10px; }
.vt-item .card { padding: 22px 24px; }
.vt-year { font-family: var(--font-head); font-weight: 900; color: var(--accent); font-size: 1.3rem; }

/* ---------- Testimonials ---------- */
.slider { position: relative; max-width: 860px; margin: 0 auto; }
.slider__viewport { overflow: hidden; border-radius: var(--radius-lg); }
.slider__track { display: flex; transition: transform .7s var(--ease); }
.slide { min-width: 100%; padding: 6px; }
.quote {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 48px); text-align: center; position: relative;
}
.quote > i { font-size: 3rem; color: var(--accent); line-height: 1; }
.quote p { font-size: clamp(1.05rem, 2vw, 1.3rem); color: #e8f0f5; margin: 14px 0 24px; }
.quote__who { display: inline-flex; align-items: center; gap: 12px; text-align: right; }
.quote__who .av { width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: var(--primary); display: grid; place-items: center; font-weight: 900; font-family: var(--font-head); font-size: 1.2rem; }
.quote__who strong { color: #fff; display: block; font-family: var(--font-head); }
.quote__who small { color: #9fb6c6; }
.stars { color: var(--accent); letter-spacing: 2px; }
.slider__ctrl { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 28px; }
.slider__arrow { width: 48px; height: 48px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); background: transparent; color: #fff; font-size: 1.3rem; transition: all .3s; }
.slider__arrow:hover { background: var(--accent); border-color: var(--accent); color: var(--primary); }
.slider__dots { display: flex; gap: 8px; }
.slider__dots button { width: 10px; height: 10px; border-radius: 99px; border: 0; background: rgba(255,255,255,.3); transition: all .35s var(--ease); padding: 0; }
.slider__dots button.is-active { width: 30px; background: var(--accent); }

/* ---------- News cards ---------- */
.news-card { padding: 0; display: flex; flex-direction: column; }
.news-card .ph { aspect-ratio: 16 / 10; }
.news-card .ph i { transition: transform .6s var(--ease); }
.news-card:hover .ph i { transform: scale(1.25) rotate(-6deg); }
.news-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.news-meta { display: flex; gap: 14px; font-size: .85rem; color: var(--muted); margin-bottom: 8px; flex-wrap: wrap; }
.news-meta i { color: var(--accent); }
.tag { position: absolute; top: 16px; right: 16px; background: #fff; color: var(--primary); font-weight: 800; font-size: .8rem; padding: 4px 12px; border-radius: 99px; font-family: var(--font-head); z-index: 1; }
.news-card h3 { font-size: 1.15rem; transition: color .3s; }
.news-card:hover h3 { color: var(--primary-3); }
.news-card .link { margin-top: auto; padding-top: 10px; }

/* ---------- Gallery ---------- */
.filters { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 16px; }
.gallery__item { border-radius: var(--radius); overflow: hidden; cursor: zoom-in; position: relative; transition: transform .5s var(--ease), opacity .4s; }
.gallery__item.is-wide { grid-column: span 2; }
.gallery__item.is-tall { grid-row: span 2; }
.gallery__item .ph { width: 100%; height: 100%; transition: transform .7s var(--ease); }
.gallery__item:hover .ph { transform: scale(1.08); }
.gallery__item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 30px 16px 14px; color: #fff; font-weight: 700; font-family: var(--font-head);
  background: linear-gradient(transparent, rgba(0,0,0,.6)); transform: translateY(100%); transition: transform .45s var(--ease);
}
.gallery__item:hover figcaption { transform: none; }
.is-hidden { display: none !important; }

.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(6, 24, 36, .92); display: grid; place-items: center; padding: 24px; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__content { width: min(900px, 100%); aspect-ratio: 16 / 10; border-radius: var(--radius-lg); overflow: hidden; transform: scale(.9); transition: transform .45s var(--ease); }
.lightbox.is-open .lightbox__content { transform: none; }
.lightbox__content .ph { width: 100%; height: 100%; }
.lightbox__caption { color: #fff; text-align: center; margin-top: 14px; font-family: var(--font-head); font-weight: 700; }
.lightbox__close, .lightbox__nav { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 1.5rem; transition: background .3s; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--accent); color: var(--primary); }
.lightbox__close { top: 20px; left: 20px; }
.lightbox__nav--prev { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { left: 20px; top: 50%; transform: translateY(-50%); }

/* ---------- Team ---------- */
.team-card { text-align: center; padding: 0 0 24px; }
.team-card .ph { aspect-ratio: 1 / 1; margin-bottom: 18px; }
.team-card h3 { font-size: 1.1rem; margin-bottom: 0; }
.team-card .role { color: var(--primary-3); font-weight: 700; font-size: .92rem; }

/* ---------- Accordion ---------- */
.accordion { max-width: 860px; margin: 0 auto; display: grid; gap: 14px; }
.acc-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .3s, border-color .3s; }
.acc-item.is-open { box-shadow: var(--shadow); border-color: transparent; }
.acc-head { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; background: none; border: 0; text-align: right; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--primary); }
.acc-head i { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); transition: transform .4s var(--ease), background .3s; }
.acc-item.is-open .acc-head i { transform: rotate(45deg); background: var(--accent); }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.acc-item.is-open .acc-body { grid-template-rows: 1fr; }
.acc-body > div { overflow: hidden; }
.acc-body p { padding: 0 24px 22px; margin: 0; color: var(--muted); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-family: var(--font-head); font-size: .95rem; color: var(--primary); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 18px; border-radius: 14px; border: 2px solid var(--line); background: #fff;
  font: inherit; color: var(--text); transition: border-color .25s, box-shadow .25s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary-3); box-shadow: 0 0 0 4px rgba(31,123,176,.12); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--coral); }
.field .err { color: var(--coral); font-size: .85rem; display: none; }
.field.has-error .err { display: block; }

/* contact info */
.info-item { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px dashed var(--line); }
.info-item:last-child { border-bottom: 0; }
.info-item .icon-box { margin: 0; width: 54px; height: 54px; font-size: 1.4rem; flex: none; }
.info-item strong { display: block; font-family: var(--font-head); color: var(--primary); }
.info-item span { color: var(--muted); }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 6px solid #fff; }
.map-frame iframe { width: 100%; height: 420px; border: 0; display: block; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 64px);
  background: linear-gradient(120deg, var(--primary) 0%, var(--primary-3) 100%); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-bottom: 8px; }
.cta-band p { color: #cfe2ee; margin: 0; }
.cta-band__circle { position: absolute; border-radius: 50%; border: 40px solid rgba(255,255,255,.06); pointer-events: none; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; }

/* ---------- Footer ---------- */
.footer { background: #072b41; color: #a9bfcd; padding-top: 80px; position: relative; overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.footer h4 { color: #fff; font-size: 1.1rem; margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.footer h4::after { content: ""; position: absolute; bottom: 0; right: 0; width: 34px; height: 3px; border-radius: 3px; background: var(--accent); }
.footer .brand__text strong { color: #fff; }
.footer .brand__text small { color: #86a3b5; }
.footer__about { margin: 18px 0 22px; font-size: .95rem; }
.footer__links li { padding: 5px 0; }
.footer__links a { display: inline-flex; align-items: center; gap: 8px; transition: color .25s, transform .25s; }
.footer__links a::before { content: "‹"; color: var(--accent); font-weight: 900; }
.footer__links a:hover { color: #fff; transform: translateX(-5px); }
.footer__contact li { display: flex; gap: 10px; padding: 6px 0; font-size: .95rem; }
.footer__contact i { color: var(--accent); margin-top: 4px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.07); color: #fff; font-size: 1.15rem; transition: all .3s var(--ease); }
.socials a:hover { background: var(--accent); color: var(--primary); transform: translateY(-4px); }
.newsletter { display: flex; background: rgba(255,255,255,.07); border-radius: 99px; padding: 5px; margin-top: 12px; }
.newsletter input { flex: 1; min-width: 0; background: transparent; border: 0; padding: 8px 16px; color: #fff; font: inherit; }
.newsletter input::placeholder { color: #86a3b5; }
.newsletter input:focus { outline: none; }
.newsletter button { border: 0; background: var(--accent); color: var(--primary); border-radius: 99px; padding: 8px 18px; font-weight: 800; font-family: var(--font-head); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .9rem; }
.footer__bottom a { color: var(--accent); }

/* ---------- Floating buttons ---------- */
.fab-wrap { position: fixed; bottom: 22px; left: 22px; z-index: 900; display: grid; gap: 12px; }
.fab { width: 54px; height: 54px; border-radius: 50%; border: 0; display: grid; place-items: center; font-size: 1.5rem; color: #fff; box-shadow: var(--shadow); transition: transform .35s var(--ease), opacity .35s; }
.fab:hover { transform: scale(1.1); }
.fab--wa { background: #25d366; animation: ring 2.8s infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
.fab--top { background: var(--primary); opacity: 0; pointer-events: none; transform: translateY(20px); }
.fab--top.is-shown { opacity: 1; pointer-events: auto; transform: none; }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 30px; right: 50%; transform: translate(50%, 140%); z-index: 3000; background: var(--primary); color: #fff; padding: 14px 24px; border-radius: 14px; box-shadow: var(--shadow-lg); display: flex; gap: 10px; align-items: center; font-weight: 700; transition: transform .5s var(--ease); max-width: calc(100% - 32px); }
.toast i { color: var(--accent); font-size: 1.3rem; }
.toast.is-shown { transform: translate(50%, 0); }

/* ---------- Reveal animations ---------- */
[data-reveal] { opacity: 0; transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); will-change: opacity, transform; }
[data-reveal="up"] { transform: translateY(46px); }
[data-reveal="down"] { transform: translateY(-46px); }
[data-reveal="right"] { transform: translateX(60px); }
[data-reveal="left"] { transform: translateX(-60px); }
[data-reveal="zoom"] { transform: scale(.85); }
[data-reveal="flip"] { transform: perspective(800px) rotateX(25deg) translateY(30px); transform-origin: top; }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
.nav__link { white-space: nowrap; }
.btn { white-space: nowrap; }
@media (max-width: 1480px) {
  .nav__link { padding: 8px 11px; font-size: .95rem; }
  .header__cta .btn--ghost { display: none; }
}
@media (max-width: 1100px) {
  .topbar__info span:nth-child(3) { display: none; }
}
@media (max-width: 1240px) {
  :root { --header-h: 74px; }
  .float-card--2 { left: 0; }
  .float-card--1 { right: 0; }
  .burger { display: block; }
  .nav {
    position: fixed; top: 0; right: 0; height: 100dvh; width: min(330px, 86vw); background: #fff; z-index: 1001;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 100px 22px 30px; box-shadow: var(--shadow-lg);
    transform: translateX(105%); transition: transform .5s var(--ease); overflow-y: auto;
  }
  .nav-open .nav { transform: none; }
  .nav__link { padding: 14px 18px; font-size: 1.05rem; border-radius: 14px; }
  .nav__link::after { display: none; }
  .nav__link.is-active, .nav__link:hover { background: var(--bg-2); }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(6,24,36,.45); z-index: 999; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
  .nav-open .nav-backdrop { opacity: 1; visibility: visible; }
  .burger { z-index: 1002; }
}
@media (max-width: 992px) {
  .hero .container, .split { grid-template-columns: 1fr; }
  .hero__visual { max-width: 560px; margin: 0 auto; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats__box { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .stat:nth-child(3)::before { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar__info span:nth-child(n+2) { display: none; }
  .brand__text small { display: none; }
  .brand__logo { width: 44px; height: 44px; }
  .brand__text strong { font-size: 1rem; }
  .header__cta .btn { display: none; }
  .grid-2, .grid-3, .grid-4, .form-row { grid-template-columns: 1fr; }
  .stats__box { grid-template-columns: 1fr 1fr; padding: 26px 8px; }
  .stat::before { display: none; }
  .steps { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gallery__item.is-wide { grid-column: span 2; }
  .float-card { font-size: .8rem; padding: 8px 12px; }
  .float-card i { width: 34px; height: 34px; font-size: 1.1rem; }
  .float-card--1 { right: 0; }
  .float-card--2 { left: 0; }
  .vtimeline::before { right: 10px; }
  .vt-item, .vt-item:nth-child(even) { width: 100%; margin: 0; padding: 0 36px 30px 0; }
  .vt-item::before, .vt-item:nth-child(even)::before { right: 0; left: auto; }
  .cta-band { text-align: center; justify-content: center; }
  .lightbox__nav { display: none; }
}

/* جدول المصروفات على الموبايل: إخفاء عمود الصفوف لإظهار المبلغ مباشرة */
@media (max-width: 640px) {
  .fees-table { min-width: 0 !important; }
  .fees-table th:nth-child(2), .fees-table td:nth-child(2) { display: none; }
  .fees-table th, .fees-table td { padding: 14px 16px !important; }
}

/* backdrop-filter يجعل الهيدر "حاوية" للعناصر الثابتة فيقصّ قائمة الموبايل — نلغيه على الشاشات الصغيرة */
@media (max-width: 1240px) {
  .header, .header.is-scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255, 255, 255, .97); }
}

/* ---------- صور حقيقية داخل .ph ---------- */
.ph { overflow: hidden; }
.ph img { z-index: 0; transition: transform .9s var(--ease); }
.ph:has(> img)::before, .ph:has(> img) > i { display: none; }
.ph:has(> img)::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(11,61,92,0) 55%, rgba(11,61,92,.28)); pointer-events: none; }
.tag { z-index: 2; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.card:hover .ph img, .gallery__item:hover .ph img { transform: scale(1.07); }
.news-card:hover .ph i { transform: none; }

/* ---------- صورة الهيرو ---------- */
.hero-photo { position: relative; aspect-ratio: 5 / 5.2; }
.hero-photo__main { position: absolute; inset: 0 0 8% 10%; border-radius: 46% 54% 40px 40px / 38% 38% 40px 40px; overflow: hidden; box-shadow: var(--shadow-lg); border: 8px solid #fff; }
.hero-photo__main img, .hero-photo__sub img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo__sub { position: absolute; width: 42%; aspect-ratio: 1; bottom: 0; left: 0; border-radius: 28px; overflow: hidden; border: 6px solid #fff; box-shadow: var(--shadow-lg); animation: floatY 6s ease-in-out infinite; }
.hero-photo__ring { position: absolute; width: 120px; height: 120px; top: -10px; left: 6%; border-radius: 50%; border: 14px solid var(--accent); opacity: .85; z-index: -1; }
.hero-photo__dots { position: absolute; width: 140px; height: 140px; right: -20px; bottom: 14%; z-index: -1; background-image: radial-gradient(var(--primary-3) 2px, transparent 2px); background-size: 16px 16px; opacity: .35; }
.hero .float-card--1 { top: 10%; right: -2%; }
.hero .float-card--2 { bottom: 16%; left: auto; right: -2%; animation-delay: -2.5s; z-index: 2; }
@media (max-width: 640px) { .hero .float-card--1, .hero .float-card--2 { right: 0; } }

/* ---------- خلفيات بصور حقيقية ---------- */
.page-hero {
  background:
    radial-gradient(1000px 380px at 85% -10%, rgba(242,169,59,.30), transparent 60%),
    linear-gradient(135deg, rgba(11,61,92,.94) 0%, rgba(20,91,133,.88) 60%, rgba(31,123,176,.80) 100%),
    url(../img/hero-school.jpg) center 40% / cover no-repeat;
}
.cta-band {
  background:
    linear-gradient(110deg, rgba(11,61,92,.96) 0%, rgba(11,61,92,.86) 45%, rgba(31,123,176,.55) 100%),
    url(../img/cta-bg.jpg) center 30% / cover no-repeat;
}
figure { margin: 0; }
.gallery__item { margin: 0; }
.hero__visual { width: 100%; }
@media (max-width: 992px) { .hero__visual { margin-top: 10px; } .hero-photo__dots { right: 0; } }

/* ---------- توقيع الشركة المطوّرة ---------- */
.footer__bottom { align-items: center; }
.footer__bottom .made-by { display: inline-flex; align-items: center; gap: 10px; color: #a9bfcd; padding: 6px 14px; border-radius: 99px; border: 1px solid rgba(255,255,255,.1); transition: background .3s, border-color .3s; }
.footer__bottom .made-by img { height: 22px; width: auto; opacity: .9; transition: opacity .3s; }
.footer__bottom .made-by:hover { background: rgba(255,255,255,.06); border-color: rgba(242,169,59,.5); }
.footer__bottom .made-by:hover img { opacity: 1; }
@media (max-width: 640px) { .footer__bottom { justify-content: center; text-align: center; } }
/* مساحة للأزرار العائمة (واتساب/للأعلى) حتى لا تغطي التوقيع */
@media (max-width: 1400px) { .footer__bottom { padding-inline-end: 84px; } .footer__grid > div:last-child { padding-inline-end: 0; } }
@media (max-width: 1400px) and (min-width: 993px) { .footer .newsletter { margin-inline-end: 70px; } }
@media (max-width: 640px) { .footer__bottom { padding-inline-end: 0; padding-bottom: 96px; } }

/* =========================================================
   قائمة الموبايل (Drawer)
   ========================================================= */
.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__head, .nav__foot, .nav__ic, .nav__chev { display: none; }

@media (max-width: 1240px) {
  .nav { padding: 0; gap: 0; width: min(350px, 88vw); justify-content: flex-start; background: var(--surface); box-shadow: -20px 0 60px rgba(6, 24, 36, .25); }
  .nav-open .burger { opacity: 0; pointer-events: none; }

  .nav__head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 18px 20px; background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1;
  }
  .nav__head .brand__logo { width: 46px; height: 46px; }
  .nav__head .brand__text strong { font-size: 1.05rem; }
  .nav__head .brand__text small { display: block; font-size: .66rem; }
  .nav__close {
    flex: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: #fff;
    color: var(--primary); font-size: 1.4rem; display: grid; place-items: center; transition: background .25s, color .25s, transform .35s var(--ease);
  }
  .nav__close:hover { background: var(--primary); color: #fff; transform: rotate(90deg); }

  .nav__links { flex-direction: column; align-items: stretch; gap: 4px; padding: 16px 14px; }
  .nav .nav__link {
    display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 14px;
    font-size: 1.02rem; font-weight: 700; color: var(--text); background: transparent;
  }
  .nav__ic {
    display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px;
    background: var(--bg-2); color: var(--primary-2); font-size: 1.2rem; transition: background .25s, color .25s;
  }
  .nav__chev { display: block; margin-inline-start: auto; color: var(--muted); font-size: 1.2rem; opacity: .5; transition: transform .3s var(--ease), opacity .3s; }
  .nav .nav__link:hover { background: var(--bg); }
  .nav .nav__link:hover .nav__chev { transform: translateX(-4px); opacity: 1; }
  .nav .nav__link.is-active { background: var(--primary); color: #fff; box-shadow: 0 10px 22px rgba(11, 61, 92, .22); }
  .nav .nav__link.is-active .nav__ic { background: var(--accent); color: var(--primary); }
  .nav .nav__link.is-active .nav__chev { color: #fff; opacity: .8; }

  .nav__foot { display: grid; gap: 10px; margin-top: auto; padding: 18px 20px 24px; border-top: 1px solid var(--line); background: var(--bg); }
  .nav__foot .btn { width: 100%; }
  .nav__foot .btn--ghost { border-width: 2px; }
  .nav__social { display: flex; justify-content: center; gap: 10px; margin-top: 4px; }
  .nav__social a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--primary); font-size: 1.15rem; transition: all .25s; }
  .nav__social a:hover { background: var(--primary); color: #fff; }

  /* دخول متتابع للروابط عند فتح القائمة */
  .nav-open .nav__link { animation: navIn .5s var(--ease) both; }
  .nav-open .nav__link:nth-child(2) { animation-delay: .04s; }
  .nav-open .nav__link:nth-child(3) { animation-delay: .08s; }
  .nav-open .nav__link:nth-child(4) { animation-delay: .12s; }
  .nav-open .nav__link:nth-child(5) { animation-delay: .16s; }
  .nav-open .nav__link:nth-child(6) { animation-delay: .20s; }
  .nav-open .nav__link:nth-child(7) { animation-delay: .24s; }
}
@keyframes navIn { from { opacity: 0; transform: translateX(30px); } }
.hero-photo__main img { object-position: 62% 8%; }
.hero .float-card--1 { top: 12%; right: auto; left: -3%; } @media (max-width: 640px) { .hero .float-card--1 { left: 0; right: auto; } }

/* ---------- Lightbox: عرض الصورة بحجم كبير ---------- */
.lightbox { padding: 70px 90px 40px; }
.lightbox__stage { width: 100%; height: 100%; display: grid; grid-template-rows: 1fr auto; justify-items: center; align-items: center; gap: 14px; min-height: 0; }
.lightbox__content { width: auto; max-width: 100%; aspect-ratio: auto; min-height: 0; height: 100%; display: grid; place-items: center; overflow: visible; border-radius: 0; background: none; }
.lightbox__content img {
  display: block; max-width: 100%; max-height: calc(100vh - 170px); width: auto; height: auto;
  border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.5); object-fit: contain;
}
.lightbox__content .ph { width: min(1000px, 90vw); aspect-ratio: 16 / 10; border-radius: 18px; }
.lightbox__content.is-in img { animation: lbIn .45s var(--ease); }
@keyframes lbIn { from { opacity: 0; transform: scale(.96); } }
.lightbox__caption { margin: 0; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
.lightbox__count { font-size: .85rem; font-weight: 600; color: #9fb6c6; background: rgba(255,255,255,.08); padding: 3px 12px; border-radius: 99px; direction: ltr; }
.lightbox__close { top: 18px; left: 18px; z-index: 2; }
.lightbox__nav { z-index: 2; }
@media (max-width: 640px) {
  .lightbox { padding: 70px 12px 30px; }
  .lightbox__content img { max-height: calc(100vh - 200px); border-radius: 12px; }
  .lightbox__nav { display: grid; place-items: center; top: auto; bottom: 18px; transform: none; width: 44px; height: 44px; }
  .lightbox__nav--prev { right: 18px; } .lightbox__nav--next { left: 18px; }
}

/* ---------- زر تشغيل الفيديو ---------- */
.play-btn {
  position: absolute; z-index: 2; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.92); color: var(--primary); box-shadow: 0 12px 30px rgba(0,0,0,.3);
  transition: transform .4s var(--ease), background .3s, color .3s;
}
.play-btn::before {
  content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7);
  animation: playRing 2s ease-out infinite;
}
.ph .play-btn i { font-size: 2.2rem; filter: none; margin-inline-start: 0; transform: translateX(2px); display: block; line-height: 1; }
.news-card:hover .play-btn { transform: translate(-50%, -50%) scale(1.1); background: var(--accent); color: var(--primary); }
@keyframes playRing { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }

/* أسهم الاتجاه داخل الأزرار تكون بعد النص (نهاية السطر في RTL) وتتحرك للأمام عند المرور */
.btn i[class*="ri-arrow-left"] { order: 2; transition: transform .35s var(--ease); }
.btn:hover i[class*="ri-arrow-left"] { transform: translateX(-5px); }
