/* ==========================================================
   مدارس الفيصلية الأهلية — Design System
   ========================================================== */
:root {
  --navy-900: #061f3d;
  --navy-800: #0a2c55;
  --navy-700: #0b3a6b;
  --navy-600: #0e4c84;
  --navy-500: #1a5f9e;
  --sky-600: #0d8fc7;
  --sky-500: #17a3dd;
  --sky-400: #4cbbe8;
  --sky-100: #e3f4fc;
  --sky-50: #f2f9fe;
  --gold: #f0b43c;
  --ink: #0f1f33;
  --text: #3d4d63;
  --muted: #6b7a90;
  --line: #e3e9f1;
  --bg: #ffffff;
  --bg-soft: #f6f9fc;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 8px rgba(11, 58, 107, .06);
  --shadow: 0 12px 34px -12px rgba(11, 58, 107, .18);
  --shadow-lg: 0 30px 60px -20px rgba(6, 31, 61, .35);
  --font: "Tajawal", "Segoe UI", Tahoma, sans-serif;
  --font-head: "Readex Pro", "Tajawal", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--navy-600); text-decoration: none; transition: color .2s; }
a:hover { color: var(--sky-500); }
h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--ink); line-height: 1.35; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--sky-400); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1240px, 100% - 40px); margin-inline: auto; }
.ic { width: 1.25em; height: 1.25em; flex-shrink: 0; }

.skip { position: absolute; top: -60px; right: 16px; background: var(--navy-700); color: #fff; padding: 10px 18px; border-radius: 8px; z-index: 999; }
.skip:focus { top: 12px; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .78em 1.5em; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem; line-height: 1.2;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn .ic { width: 1.1em; height: 1.1em; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--sky-500), var(--navy-600)); color: #fff; box-shadow: 0 10px 24px -10px rgba(23, 163, 221, .8); }
.btn-primary:hover { color: #fff; box-shadow: 0 16px 30px -10px rgba(23, 163, 221, .9); }
.btn-navy { background: var(--navy-700); color: #fff; }
.btn-navy:hover { background: var(--navy-600); color: #fff; }
.btn-outline { border-color: var(--line); color: var(--navy-700); background: #fff; }
.btn-outline:hover { border-color: var(--sky-500); color: var(--sky-600); }
.btn-light { background: #fff; color: var(--navy-700); }
.btn-light:hover { color: var(--sky-600); box-shadow: 0 14px 30px -12px rgba(0,0,0,.4); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; background: rgba(255,255,255,.06); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.14); }
.btn-lg { padding: 1em 1.9em; font-size: 1.02rem; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; font-family: var(--font-head); font-size: .95rem; }
.link-arrow .ic { transition: transform .25s var(--ease); }
.link-arrow:hover .ic { transform: translateX(-5px); }

/* ---------- Topbar ---------- */
.topbar { background: var(--navy-900); color: rgba(255,255,255,.78); font-size: .86rem; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; }
.topbar-info { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.topbar-info a, .topbar-info span { display: inline-flex; align-items: center; gap: 7px; color: inherit; }
.topbar-info a:hover { color: #fff; }
.topbar-info .ic { width: 15px; height: 15px; color: var(--sky-400); }
.topbar-social { display: flex; gap: 4px; }
.topbar-social a { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: rgba(255,255,255,.75); }
.topbar-social a:hover { color: #fff; background: rgba(255,255,255,.1); }
.topbar-social .ic { width: 16px; height: 16px; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s; }
.header.scrolled { box-shadow: 0 8px 30px -14px rgba(11,58,107,.25); border-color: var(--line); }
.header-in { display: flex; align-items: center; gap: 18px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); flex-shrink: 0; }
.brand img { width: 68px; height: auto; transition: transform .4s var(--ease); }
.brand:hover img { transform: scale(1.05) rotate(-2deg); }
.brand-txt { display: flex; flex-direction: column; line-height: 1.25; }
.brand-txt strong { font-family: var(--font-head); font-size: 1.12rem; color: var(--navy-700); font-weight: 700; }
.brand-txt small { font-size: .7rem; color: var(--sky-600); letter-spacing: .06em; font-weight: 700; direction: ltr; text-align: right; }

.nav { margin-inline-start: auto; }
.menu { display: flex; align-items: center; gap: 2px; }
.menu > li { position: relative; }
.menu-link {
  display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 10px;
  color: var(--ink); font-weight: 700; font-size: .95rem; background: none; border: 0; font-family: var(--font);
  position: relative; white-space: nowrap;
}
.menu-link .caret { width: 16px; height: 16px; transition: transform .25s; opacity: .6; }
.menu-link:hover, .menu > li:hover > .menu-link { color: var(--sky-600); background: var(--sky-50); }
.menu > li.active > .menu-link { color: var(--navy-600); }
.menu > li.active > .menu-link::after { content: ""; position: absolute; bottom: 2px; right: 14px; left: 14px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--sky-500), var(--navy-600)); }
.sub {
  position: absolute; top: calc(100% + 10px); right: 50%; transform: translate(50%, 8px);
  width: 330px; background: #fff; border-radius: var(--radius); padding: 10px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s var(--ease), visibility .25s;
}
.sub::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: translate(50%, 0); }
.has-sub:hover .caret { transform: rotate(180deg); }
.sub-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--ink); }
.sub-link:hover { background: var(--sky-50); color: var(--ink); }
.sub-link strong { display: block; font-size: .95rem; font-weight: 700; line-height: 1.4; }
.sub-link small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.4; }
.sub-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--sky-100); color: var(--navy-600); flex-shrink: 0; transition: background .25s, color .25s; }
.sub-link:hover .sub-ic { background: var(--navy-600); color: #fff; }
.sub-ic .ic { width: 21px; height: 21px; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--navy-700); display: grid; place-items: center; }
.icon-btn .ic { width: 22px; height: 22px; }
.menu-toggle, .nav-head, .nav-foot { display: none; }
.nav-overlay { display: none; }

/* ---------- Home Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1000px 600px at 15% 20%, rgba(23,163,221,.35), transparent 60%),
    radial-gradient(700px 500px at 90% 100%, rgba(76,187,232,.18), transparent 60%),
    linear-gradient(160deg, var(--navy-800) 0%, var(--navy-700) 45%, var(--navy-600) 100%);
  padding: 90px 0 170px;
}
.hero::before { /* dotted pattern */
  content: ""; position: absolute; inset: 0; opacity: .14;
  background-image: radial-gradient(rgba(255,255,255,.9) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(to left, #000, transparent 70%); mask-image: linear-gradient(to left, #000, transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); font-size: .9rem; font-weight: 700; margin-bottom: 22px; backdrop-filter: blur(6px); }
.hero-badge b { background: var(--sky-500); color: #fff; border-radius: 999px; padding: 2px 12px; font-size: .8rem; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.7rem); line-height: 1.25; margin-bottom: 22px; letter-spacing: -.01em; }
.hero h1 .hl { background: linear-gradient(90deg, var(--sky-400), #9be1ff); -webkit-background-clip: text; background-clip: text; color: transparent; position: relative; }
.hero-lead { font-size: 1.15rem; color: rgba(255,255,255,.82); max-width: 560px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 44px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.12); }
.hero-trust div { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .95rem; color: rgba(255,255,255,.9); }
.hero-trust .ic { width: 22px; height: 22px; color: var(--sky-400); }

.hero-visual { position: relative; aspect-ratio: 1; max-width: 500px; margin-inline: auto; width: 100%; }
.hv-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(255,255,255,.22); animation: spin 60s linear infinite; }
.hv-ring.r2 { inset: 12%; border-style: solid; border-color: rgba(255,255,255,.08); animation-duration: 90s; animation-direction: reverse; }
.hv-core {
  position: absolute; inset: 18%; border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #fff 0%, #eef8fd 60%, #d6eefa 100%);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.5), inset 0 -10px 30px rgba(14,76,132,.12);
  display: grid; place-items: center; overflow: hidden;
}
.hv-core img.logo { width: 78%; }
.hv-core img.photo { width: 100%; height: 100%; object-fit: cover; }
.hv-chip {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px;
  background: rgba(255,255,255,.96); color: var(--ink); box-shadow: var(--shadow-lg); font-weight: 700; font-size: .92rem;
  animation: float 6s ease-in-out infinite;
}
.hv-chip span.i { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--sky-500), var(--navy-600)); }
.hv-chip .ic { width: 20px; height: 20px; }
.hv-chip small { display: block; color: var(--muted); font-weight: 500; font-size: .76rem; line-height: 1.3; }
.hv-chip strong { display: block; line-height: 1.3; }
.hv-chip.c1 { top: 8%; right: -4%; }
.hv-chip.c2 { bottom: 18%; right: -8%; animation-delay: -2s; }
.hv-chip.c3 { top: 42%; left: -8%; animation-delay: -4s; }
.hv-dot { position: absolute; border-radius: 50%; background: var(--sky-400); }
.hv-dot.d1 { width: 14px; height: 14px; top: 4%; left: 30%; }
.hv-dot.d2 { width: 9px; height: 9px; bottom: 6%; left: 22%; background: var(--gold); }
.hv-dot.d3 { width: 11px; height: 11px; bottom: 30%; right: 2%; background: #fff; }

/* book-page arcs echoing the logo */
.hero-arcs { position: absolute; left: 0; right: 0; bottom: 0; height: 160px; pointer-events: none; }
.hero-arcs svg { width: 100%; height: 100%; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Quick links ---------- */
.quick { position: relative; z-index: 3; margin-top: -95px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.quick-card {
  display: flex; gap: 16px; align-items: flex-start; padding: 26px 24px; border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line); color: var(--text);
  transition: transform .35s var(--ease), box-shadow .35s;
  position: relative; overflow: hidden;
}
.quick-card::after { content: ""; position: absolute; bottom: 0; right: 0; left: 0; height: 4px; background: linear-gradient(90deg, var(--sky-500), var(--navy-600)); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.quick-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: var(--text); }
.quick-card:hover::after { transform: scaleX(1); }
.quick-card .qi { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--sky-100); color: var(--navy-600); flex-shrink: 0; transition: .3s; }
.quick-card:hover .qi { background: var(--navy-600); color: #fff; }
.quick-card .qi .ic { width: 26px; height: 26px; }
.quick-card h3 { font-size: 1.08rem; margin: 2px 0 4px; }
.quick-card p { font-size: .9rem; margin: 0; color: var(--muted); line-height: 1.6; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.section-sm { padding: 70px 0; }
.bg-soft { background: var(--bg-soft); }
.bg-sky { background: linear-gradient(180deg, var(--sky-50), #fff); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600;
  color: var(--sky-600); font-size: .9rem; margin-bottom: 14px; letter-spacing: .01em;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--sky-500), var(--navy-600)); }
.eyebrow.light { color: var(--sky-400); }
.eyebrow.light::before { background: var(--sky-400); }
.sec-head { max-width: 820px; margin-bottom: 56px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }
.sec-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.sec-head p { font-size: 1.08rem; color: var(--muted); margin: 0; }
.sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 50px; }
.sec-head-row .sec-head { margin: 0; }

/* ---------- About split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.lead { font-size: 1.12rem; color: var(--text); }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin: 28px 0 34px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; color: var(--ink); line-height: 1.5; }
.checks .ck { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--sky-100); color: var(--sky-600); flex-shrink: 0; }
.checks .ck .ic { width: 15px; height: 15px; stroke-width: 3; }

.mosaic { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 210px 210px auto; gap: 18px; }
.tile { border-radius: var(--radius-lg); position: relative; overflow: hidden; padding: 28px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; }
.tile .ic { width: 40px; height: 40px; margin-bottom: auto; opacity: .95; }
.tile h4 { color: #fff; font-size: 1.15rem; margin: 0; }
.tile p { margin: 4px 0 0; font-size: .9rem; opacity: .85; line-height: 1.5; }
.tile::after { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; border: 28px solid rgba(255,255,255,.08); left: -60px; top: -60px; }
.tile.t1 { grid-row: span 2; background: linear-gradient(160deg, var(--navy-600), var(--navy-800)); }
.tile.t2 { background: linear-gradient(160deg, var(--sky-400), var(--sky-600)); }
.tile.t3 { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); }
.tile.t3 h4 { color: var(--ink); }
.tile.t3 .ic { color: var(--sky-500); }
.tile.t3::after { border-color: var(--sky-100); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile.has-img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,31,61,.85), transparent 60%); z-index: 1; }
.tile.has-img > *:not(img) { position: relative; z-index: 2; }
.mosaic-badge {
  grid-column: 1 / -1; background: #fff; border-radius: 20px; padding: 16px 24px; box-shadow: var(--shadow);
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; gap: 14px;
}
.mosaic-badge img { width: 54px; }
.mosaic-badge strong { display: block; font-family: var(--font-head); color: var(--navy-700); font-size: 1rem; line-height: 1.4; }
.mosaic-badge small { color: var(--muted); font-size: .82rem; }

/* ---------- Stage cards ---------- */
.stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stage {
  position: relative; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line);
  padding: 34px 28px 28px; overflow: hidden; display: flex; flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; color: var(--text);
}
.stage:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; color: var(--text); }
.stage .num { position: absolute; top: 18px; left: 22px; font-family: var(--font-head); font-size: 3.6rem; font-weight: 700; line-height: 1; color: var(--sky-100); transition: color .4s; }
.stage:hover .num { color: rgba(255,255,255,.12); }
.stage .si { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--sky-500), var(--navy-600)); margin-bottom: 26px; box-shadow: 0 14px 26px -12px rgba(14,76,132,.7); position: relative; z-index: 1; }
.stage .si .ic { width: 30px; height: 30px; }
.stage h3 { font-size: 1.3rem; margin-bottom: 6px; position: relative; z-index: 1; transition: color .4s; }
.stage .age { display: inline-block; font-size: .82rem; font-weight: 700; color: var(--sky-600); background: var(--sky-50); padding: 3px 12px; border-radius: 999px; margin-bottom: 14px; position: relative; z-index: 1; transition: .4s; }
.stage p { font-size: .95rem; color: var(--muted); flex: 1; position: relative; z-index: 1; transition: color .4s; }
.stage .link-arrow { position: relative; z-index: 1; color: var(--navy-600); transition: color .4s; }
.stage::before { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, var(--navy-600), var(--navy-800)); opacity: 0; transition: opacity .4s; }
.stage:hover::before { opacity: 1; }
.stage:hover h3, .stage:hover .link-arrow { color: #fff; }
.stage:hover p { color: rgba(255,255,255,.78); }
.stage:hover .age { background: rgba(255,255,255,.12); color: var(--sky-400); }
.stage:hover .si { background: #fff; color: var(--navy-600); }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { background: #fff; border-radius: var(--radius); padding: 32px 28px; border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s; }
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.feature .fi { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--sky-100); color: var(--navy-600); margin-bottom: 20px; position: relative; }
.feature .fi::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px dashed var(--sky-400); opacity: .6; }
.feature .fi .ic { width: 27px; height: 27px; }
.feature h3 { font-size: 1.15rem; }
.feature p { font-size: .95rem; color: var(--muted); margin: 0; }

/* ---------- Stats ---------- */
.stats-band {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); color: #fff;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  padding: 60px 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.stats-band::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(23,163,221,.12); top: -200px; left: -120px; }
.stats-band::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(23,163,221,.16); filter: blur(40px); bottom: -120px; right: 10%; }
.stat { text-align: center; position: relative; z-index: 1; }
.stat + .stat { border-right: 1px solid rgba(255,255,255,.1); }
.stat .ic { width: 34px; height: 34px; color: var(--sky-400); margin: 0 auto 12px; }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(2.2rem, 4vw, 3.1rem); line-height: 1.1; color: #fff; }
.stat span { color: rgba(255,255,255,.72); font-weight: 500; }

/* ---------- Activities ---------- */
.acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.act { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 300px; padding: 28px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; isolation: isolate; }
.act::before { content: ""; position: absolute; inset: 0; z-index: -1; transition: transform .6s var(--ease); }
.act:hover::before { transform: scale(1.06); }
.act.a1::before { background: linear-gradient(160deg, #1a5f9e, #0a2c55); }
.act.a2::before { background: linear-gradient(160deg, #17a3dd, #0b6a96); }
.act.a3::before { background: linear-gradient(160deg, #0e4c84, #17a3dd); }
.act.a4::before { background: linear-gradient(160deg, #0a2c55, #0d8fc7); }
.act .big { position: absolute; top: 24px; left: 24px; width: 110px; height: 110px; opacity: .14; stroke-width: 1.2; transition: transform .6s var(--ease), opacity .4s; }
.act:hover .big { transform: rotate(-8deg) scale(1.1); opacity: .22; }
.act .ai { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,255,255,.14); backdrop-filter: blur(6px); margin-bottom: auto; }
.act .ai .ic { width: 26px; height: 26px; }
.act h3 { color: #fff; font-size: 1.25rem; margin: 0 0 6px; }
.act p { color: rgba(255,255,255,.8); font-size: .92rem; margin: 0 0 14px; line-height: 1.6; }
.act .link-arrow { color: #fff; }
.act:hover { color: #fff; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 36px; right: 12%; left: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--sky-400) 0 10px, transparent 10px 18px); opacity: .5; }
.step { text-align: center; position: relative; }
.step .sn { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 20px; display: grid; place-items: center; background: #fff; border: 2px solid var(--sky-100); color: var(--navy-600); box-shadow: var(--shadow); position: relative; z-index: 1; transition: .35s; }
.step:hover .sn { background: var(--navy-600); color: #fff; border-color: var(--navy-600); }
.step .sn .ic { width: 30px; height: 30px; }
.step .sn::after { counter-increment: step; content: counter(step); position: absolute; top: -4px; left: -4px; width: 26px; height: 26px; border-radius: 50%; background: var(--sky-500); color: #fff; font-size: .8rem; font-weight: 800; display: grid; place-items: center; font-family: var(--font-head); }
.step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step p { font-size: .93rem; color: var(--muted); margin: 0; }

/* ---------- Values / mission ---------- */
.vm { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.vm-card { border-radius: var(--radius-lg); padding: 40px 32px; background: #fff; border: 1px solid var(--line); position: relative; overflow: hidden; }
.vm-card.featured { background: linear-gradient(160deg, var(--navy-600), var(--navy-800)); color: rgba(255,255,255,.85); border: 0; }
.vm-card.featured h3 { color: #fff; }
.vm-card .vi { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--sky-100); color: var(--navy-600); margin-bottom: 22px; }
.vm-card.featured .vi { background: rgba(255,255,255,.12); color: var(--sky-400); }
.vm-card .vi .ic { width: 28px; height: 28px; }
.vm-card h3 { font-size: 1.35rem; }
.vm-card p { margin: 0; }

.values { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.values span { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; color: var(--ink); box-shadow: var(--shadow-sm); }
.values .ic { width: 18px; height: 18px; color: var(--sky-500); }

/* ---------- Contact block ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.25fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; }
.contact-info { padding: 50px 44px; background: linear-gradient(160deg, var(--navy-700), var(--navy-900)); color: rgba(255,255,255,.82); position: relative; overflow: hidden; }
.contact-info::after { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; border: 50px solid rgba(23,163,221,.1); bottom: -140px; left: -120px; }
.contact-info h2, .contact-info h3 { color: #fff; }
.c-list { display: grid; gap: 22px; margin: 30px 0; position: relative; z-index: 1; }
.c-list li { display: flex; gap: 16px; align-items: flex-start; }
.c-list .ci { width: 48px; height: 48px; border-radius: 14px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: var(--sky-400); flex-shrink: 0; }
.c-list small { display: block; color: rgba(255,255,255,.55); font-size: .82rem; }
.c-list a, .c-list b { color: #fff; font-weight: 700; }
.c-list a:hover { color: var(--sky-400); }
.map { min-height: 460px; position: relative; background: var(--sky-50); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.9); }
.map-open { position: absolute; bottom: 18px; right: 18px; z-index: 2; box-shadow: var(--shadow); }

.social-lg { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
.social-lg a { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; transition: .3s; }
.social-lg a:hover { background: var(--sky-500); transform: translateY(-3px); color: #fff; }
.social-lg .ic { width: 22px; height: 22px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 56px 60px; color: rgba(255,255,255,.85);
  background: linear-gradient(120deg, var(--sky-600) 0%, var(--navy-600) 55%, var(--navy-800) 100%);
  display: grid; grid-template-columns: 1.4fr auto; gap: 40px; align-items: center;
}
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 10px; }
.cta-band p { margin: 0; max-width: 560px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }
.cta-deco { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 8% 120%, rgba(255,255,255,.14) 0 120px, transparent 121px),
    radial-gradient(circle at 8% 120%, transparent 0 170px, rgba(255,255,255,.07) 171px 200px, transparent 201px),
    radial-gradient(circle at 95% -30%, rgba(255,255,255,.08) 0 150px, transparent 151px);
}
.cta-band > div { position: relative; z-index: 1; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden; color: rgba(255,255,255,.82); padding: 80px 0 120px;
  background:
    radial-gradient(800px 400px at 10% 0%, rgba(23,163,221,.35), transparent 60%),
    linear-gradient(160deg, var(--navy-800), var(--navy-600));
}
.page-hero::before { content: ""; position: absolute; inset: 0; opacity: .12; background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 24px 24px; -webkit-mask-image: linear-gradient(to left, #000, transparent 60%); mask-image: linear-gradient(to left, #000, transparent 60%); }
.page-hero .container { position: relative; z-index: 1; max-width: 860px; text-align: center; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.2rem); margin-bottom: 14px; }
.page-hero p { font-size: 1.12rem; margin: 0 auto; max-width: 640px; }
.page-hero .eyebrow { justify-content: center; }
.crumbs { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 8px; font-size: .9rem; margin-bottom: 22px; padding: 6px 18px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.crumbs a { color: rgba(255,255,255,.75); }
.crumbs a:hover { color: #fff; }
.crumbs span { color: rgba(255,255,255,.4); }
.crumbs span[aria-current] { color: var(--sky-400); font-weight: 700; }
.hero-deco span { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.1); }
.hero-deco span:nth-child(1) { width: 520px; height: 520px; left: -200px; top: -240px; border-width: 50px; border-color: rgba(23,163,221,.1); }
.hero-deco span:nth-child(2) { width: 280px; height: 280px; right: -80px; bottom: -120px; }
.hero-deco span:nth-child(3) { width: 14px; height: 14px; background: var(--sky-400); border: 0; right: 18%; top: 30%; }
.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 70px; fill: #fff; }
.page-hero.soft-wave .hero-wave { fill: var(--bg-soft); }

/* ---------- Generic content ---------- */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.75rem; margin-top: 1.4em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.2em; }
.prose ul.bullets li { position: relative; padding-right: 28px; margin-bottom: 10px; }
.prose ul.bullets li::before { content: ""; position: absolute; right: 4px; top: .7em; width: 10px; height: 10px; border-radius: 3px; transform: rotate(45deg); background: var(--sky-500); }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; transition: transform .35s var(--ease), box-shadow .35s; }
.info-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.info-card .ii { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--sky-500), var(--navy-600)); color: #fff; margin-bottom: 18px; }
.info-card .ii .ic { width: 26px; height: 26px; }
.info-card h3 { font-size: 1.15rem; }
.info-card p { font-size: .95rem; color: var(--muted); margin: 0; }
.info-card ul { margin-top: 10px; }
.info-card ul li { display: flex; gap: 8px; font-size: .95rem; margin-bottom: 6px; }
.info-card ul li .ic { width: 18px; height: 18px; color: var(--sky-500); margin-top: 5px; }

.side-layout { display: grid; grid-template-columns: 1fr 360px; gap: 50px; align-items: start; }
.aside-card { position: sticky; top: calc(var(--header-h) + 24px); background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.aside-card .ah { background: linear-gradient(135deg, var(--navy-600), var(--navy-800)); color: #fff; padding: 26px; }
.aside-card .ah h3 { color: #fff; margin: 0 0 4px; font-size: 1.2rem; }
.aside-card .ah p { margin: 0; color: rgba(255,255,255,.75); font-size: .92rem; }
.aside-card .ab { padding: 22px 26px 26px; display: grid; gap: 12px; }
.aside-links a { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 12px; color: var(--ink); font-weight: 700; border: 1px solid var(--line); }
.aside-links a:hover, .aside-links a.on { background: var(--sky-50); border-color: var(--sky-400); color: var(--navy-600); }
.aside-links a .ic { width: 18px; height: 18px; color: var(--sky-500); }

.highlight-box { border-radius: var(--radius); padding: 26px 28px; background: var(--sky-50); border-right: 4px solid var(--sky-500); margin: 30px 0; }
.highlight-box h3 { margin-top: 0; font-size: 1.15rem; }
.highlight-box p:last-child { margin: 0; }

.timeline { position: relative; display: grid; gap: 18px; padding-right: 32px; }
.timeline::before { content: ""; position: absolute; right: 9px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--sky-500), var(--navy-600)); border-radius: 2px; }
.tl-item { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; display: flex; gap: 18px; align-items: center; }
.tl-item::before { content: ""; position: absolute; right: -30px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--sky-500); }
.tl-item time { font-family: var(--font-head); font-weight: 700; color: var(--navy-600); background: var(--sky-50); border-radius: 10px; padding: 6px 12px; white-space: nowrap; direction: ltr; font-size: .92rem; }
.tl-item strong { color: var(--ink); display: block; }
.tl-item span { color: var(--muted); font-size: .92rem; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 44px; }
.form-card h2 { font-size: 1.6rem; margin-bottom: 6px; }
.form-card > p { color: var(--muted); margin-bottom: 30px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.form-legend { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; color: var(--navy-700); font-size: 1.05rem; padding-top: 10px; margin-top: 6px; border-top: 1px dashed var(--line); }
.form-legend:first-child { border: 0; padding-top: 0; margin-top: 0; }
.form-legend .ic { color: var(--sky-500); }
.field label { display: block; font-weight: 700; color: var(--ink); font-size: .92rem; margin-bottom: 7px; }
.field label .req { color: #d9363e; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg-soft);
  font: inherit; font-size: .98rem; color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--sky-500); background: #fff; box-shadow: 0 0 0 4px rgba(23,163,221,.14); }
.field input[type=file] { padding: 10px; background: #fff; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.form-note { font-size: .88rem; color: var(--muted); margin: 0; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; pointer-events: none; }
.alert { border-radius: 14px; padding: 16px 20px; margin-bottom: 24px; font-weight: 700; display: flex; gap: 10px; align-items: center; }
.alert-ok { background: #e7f8ef; color: #0b6b3a; border: 1px solid #b6e7cb; }
.alert-err { background: #fdecec; color: #a3222a; border: 1px solid #f5c2c4; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 4px 22px; transition: box-shadow .3s, border-color .3s; }
.faq details[open] { box-shadow: var(--shadow); border-color: var(--sky-400); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 0; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--font-head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .3s; color: var(--sky-500); }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { position: relative; background: var(--navy-900); color: rgba(255,255,255,.68); padding-top: 90px; margin-top: 40px; overflow: hidden; }
.footer-arc { position: absolute; width: 900px; height: 900px; border-radius: 50%; border: 90px solid rgba(23,163,221,.05); top: -560px; left: -300px; pointer-events: none; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 50px; position: relative; padding-bottom: 60px; }
.f-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.f-brand img { width: 84px; }
.f-brand strong { font-family: var(--font-head); color: #fff; font-size: 1.25rem; line-height: 1.4; }
.f-about p { font-size: .95rem; max-width: 360px; }
.footer h4 { color: #fff; font-size: 1.08rem; margin-bottom: 22px; position: relative; padding-bottom: 12px; }
.footer h4::after { content: ""; position: absolute; bottom: 0; right: 0; width: 32px; height: 3px; border-radius: 3px; background: var(--sky-500); }
.f-links li { margin-bottom: 10px; }
.f-links a { color: rgba(255,255,255,.68); display: inline-flex; align-items: center; gap: 8px; transition: color .2s, transform .25s var(--ease); }
.f-links a::before { content: ""; width: 6px; height: 6px; border-radius: 2px; transform: rotate(45deg); background: var(--sky-500); opacity: .7; }
.f-links a:hover { color: #fff; transform: translateX(-4px); }
.f-contact li { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.f-contact .ic { width: 20px; height: 20px; color: var(--sky-400); margin-top: 5px; }
.f-contact a { color: rgba(255,255,255,.8); }
.f-contact a:hover { color: #fff; }
.f-social { display: flex; gap: 10px; margin-top: 22px; }
.f-social a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.06); color: #fff; border: 1px solid rgba(255,255,255,.08); transition: .3s; }
.f-social a:hover { background: var(--sky-500); border-color: var(--sky-500); transform: translateY(-3px); color: #fff; }
.f-social .ic { width: 19px; height: 19px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; font-size: .88rem; }
.fb-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.made { color: rgba(255,255,255,.4); }

/* ---------- Floating ---------- */
.wa-float { position: fixed; bottom: 24px; right: 24px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -8px rgba(37,211,102,.6); transition: transform .3s var(--ease); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; animation: pulse 2.2s infinite; z-index: -1; }
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float .ic { width: 28px; height: 28px; }
@keyframes pulse { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.7); opacity: 0; } }
.to-top { position: fixed; bottom: 24px; left: 24px; z-index: 90; width: 48px; height: 48px; border-radius: 14px; border: 0; background: var(--navy-700); color: #fff; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(14px); transition: .3s; box-shadow: var(--shadow); }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--sky-500); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; } .reveal.d5 { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1360px) {
  .menu-link { padding: 10px 9px; font-size: .9rem; }
  .brand img { width: 58px; }
  .brand-txt strong { font-size: 1.02rem; }
}
@media (max-width: 1180px) {
  .brand-txt small { display: none; }
}
@media (max-width: 1180px) {
  :root { --header-h: 74px; }
  .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .hide-md { display: none !important; }
  .menu-toggle { display: grid; }
  .nav {
    position: fixed; top: 0; bottom: 0; right: 0; width: min(380px, 88vw); background: #fff; z-index: 200;
    transform: translateX(100%); transition: transform .4s var(--ease); display: flex; flex-direction: column; overflow-y: auto;
    box-shadow: var(--shadow-lg);
  }
  .nav.open { transform: none; }
  .nav-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
  .nav-head img { width: 60px; }
  .nav-foot { display: grid; gap: 18px; padding: 20px; margin-top: auto; border-top: 1px solid var(--line); }
  .nav-social { display: flex; gap: 8px; justify-content: center; }
  .nav-social a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--sky-50); color: var(--navy-600); }
  .menu { flex-direction: column; align-items: stretch; padding: 12px; gap: 2px; }
  .menu-link { width: 100%; justify-content: space-between; padding: 14px 14px; font-size: 1rem; }
  .menu > li.active > .menu-link::after { display: none; }
  .menu > li.active > .menu-link { background: var(--sky-50); }
  .sub { position: static; transform: none !important; width: auto; box-shadow: none; border: 0; padding: 0 6px; opacity: 1; visibility: visible; display: none; }
  .has-sub.open .sub { display: block; }
  .has-sub.open .caret { transform: rotate(180deg); }
  .has-sub:hover .caret { transform: none; }
  .has-sub.open:hover .caret { transform: rotate(180deg); }
  .nav-overlay { display: block; position: fixed; inset: 0; background: rgba(6,31,61,.5); backdrop-filter: blur(3px); z-index: 150; opacity: 0; visibility: hidden; transition: .3s; }
  .nav-overlay.show { opacity: 1; visibility: visible; }

  .hero { padding: 60px 0 160px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  .hero-visual { max-width: 400px; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 70px; }
  .stages, .acts { grid-template-columns: repeat(2, 1fr); }
  .features, .card-grid, .vm { grid-template-columns: repeat(2, 1fr); }
  .card-grid.four { grid-template-columns: repeat(2, 1fr); }
  .stats-band { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .stat:nth-child(3) { border-right: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; padding: 44px 36px; }
  .side-layout { grid-template-columns: 1fr; }
  .aside-card { position: static; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 76px 0; }
  .section-sm { padding: 50px 0; }
  .hide-sm { display: none !important; }
  .topbar-social { display: none; }
  .topbar-in { justify-content: center; }
  .brand img { width: 54px; }
  .brand-txt strong { font-size: 1rem; }
  .hero h1 { font-size: 2rem; }
  .hv-chip { padding: 9px 12px; font-size: .8rem; }
  .hv-chip span.i { width: 32px; height: 32px; }
  .hv-chip.c1 { right: 0; } .hv-chip.c2 { right: -2%; } .hv-chip.c3 { left: -2%; }
  .quick-grid, .stages, .acts, .features, .card-grid, .card-grid.two, .card-grid.four, .vm, .steps { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr; }
  .mosaic { grid-template-rows: 190px 190px auto; gap: 12px; }
  .tile { padding: 20px; }
  .stats-band { padding: 44px 20px; }
  .stat:nth-child(odd) { border-right: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .form-card { padding: 28px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-info { padding: 36px 26px; }
  .sec-head-row { flex-direction: column; align-items: flex-start; }
  .wa-float { width: 52px; height: 52px; bottom: 18px; right: 18px; }
  .to-top { bottom: 18px; left: 18px; }
  .tl-item { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ---------- 3D social icons (image based) ---------- */
a.soc-img { background: none !important; border: 0 !important; padding: 0; overflow: visible; }
a.soc-img img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,.25)); transition: transform .3s var(--ease), filter .3s; }
a.soc-img:hover img { transform: translateY(-3px) scale(1.08); filter: drop-shadow(0 8px 14px rgba(0,0,0,.35)); }
a.soc-img:hover { transform: none !important; }
.topbar-social a.soc-img { width: 28px; height: 28px; }
.topbar-social a.soc-img img { filter: none; }
.f-social a.soc-img { width: 46px; height: 46px; }
.social-lg a.soc-img { width: 54px; height: 54px; }
.nav-social a.soc-img { width: 46px; height: 46px; }
.topbar-social, .f-social, .social-lg, .nav-social { align-items: center; }


/* ---------- Mega menu (boys / girls) ---------- */
.sub.mega { width: 620px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 12px; }
.mega-col { min-width: 0; }
.mega-head { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; font-size: .88rem; color: var(--navy-600); padding: 8px 12px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.mega-head .ic { width: 18px; height: 18px; color: var(--sky-500); }
.mega-col + .mega-col { border-right: 1px solid var(--line); padding-right: 6px; }

/* ---------- Homepage school sections ---------- */
.school-secs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.ssec { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.ssec-head { position: relative; display: flex; align-items: center; gap: 16px; padding: 28px; color: #fff; overflow: hidden; }
.ssec-head::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; border: 34px solid rgba(255,255,255,.08); left: -70px; top: -90px; }
.ssec-boys .ssec-head { background: linear-gradient(135deg, var(--navy-600), var(--navy-800)); }
.ssec-girls .ssec-head { background: linear-gradient(135deg, var(--sky-500), var(--navy-500)); }
.ssec-ic { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: rgba(255,255,255,.14); flex-shrink: 0; position: relative; z-index: 1; }
.ssec-ic .ic { width: 28px; height: 28px; }
.ssec-head h3 { color: #fff; font-size: 1.45rem; margin: 0 0 4px; }
.ssec-head p { margin: 0; color: rgba(255,255,255,.8); font-size: .93rem; line-height: 1.6; }
.ssec-head > div { position: relative; z-index: 1; flex: 1; }
.ssec-count { position: relative; z-index: 1; background: rgba(255,255,255,.16); border-radius: 999px; padding: 4px 14px; font-size: .82rem; font-weight: 700; white-space: nowrap; }
.ssec-list { padding: 10px; }
.ssec-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 16px; transition: background .25s; }
.ssec-row:hover { background: var(--sky-50); }
.sr-main { flex: 1; display: flex; align-items: center; gap: 14px; color: var(--ink); min-width: 0; }
.sr-main:hover { color: var(--ink); }
.sr-main strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; line-height: 1.4; }
.sr-main small { display: block; color: var(--muted); font-size: .85rem; line-height: 1.4; }
.sr-ic { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: var(--sky-100); color: var(--navy-600); flex-shrink: 0; transition: .3s; }
.ssec-row:hover .sr-ic { background: var(--navy-600); color: #fff; }
.sr-ic .ic { width: 24px; height: 24px; }
.sr-phone { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--navy-600); font-weight: 700; font-size: .86rem; white-space: nowrap; transition: .25s; }
.sr-phone .ic { width: 16px; height: 16px; color: var(--sky-500); }
.sr-phone:hover { border-color: var(--sky-500); color: var(--sky-600); }
.sr-go { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--navy-600); flex-shrink: 0; transition: .25s; }
.sr-go .ic { width: 18px; height: 18px; }
.ssec-row:hover .sr-go { background: var(--navy-600); color: #fff; transform: translateX(-3px); }

/* ---------- Stage page: hero phone + aside ---------- */
.hero-phone { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-phone .btn b { font-family: var(--font-head); font-weight: 600; }
.aside-stack { display: grid; gap: 22px; position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.aside-stack .aside-card { position: static; }
.sc-phone { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; background: var(--sky-50); border: 1px solid var(--sky-100); color: var(--ink); }
.sc-phone:hover { border-color: var(--sky-400); color: var(--ink); }
.sc-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--sky-500), var(--navy-600)); color: #fff; flex-shrink: 0; }
.sc-phone small { display: block; color: var(--muted); font-size: .8rem; }
.sc-phone b { display: block; font-family: var(--font-head); font-size: 1.25rem; color: var(--navy-700); line-height: 1.3; }
.sc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sc-actions .btn:only-child { grid-column: 1 / -1; }
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { color: #fff; box-shadow: 0 10px 22px -10px rgba(37,211,102,.8); }
.al-group { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; font-size: .85rem; color: var(--muted); padding: 6px 4px 0; }
.al-group:not(:first-child) { margin-top: 8px; }
.al-group .ic { width: 16px; height: 16px; color: var(--sky-500); }
.f-sec { color: var(--sky-400); font-weight: 700; font-size: .85rem; margin: 4px 0 8px; }
.f-links + .f-sec { margin-top: 14px; }

@media (max-width: 1180px) {
  .sub.mega { width: auto; display: none; grid-template-columns: 1fr; padding: 0 6px; }
  .has-sub.open .sub.mega { display: grid; }
  .mega-col + .mega-col { border-right: 0; padding-right: 0; }
  .school-secs { grid-template-columns: 1fr; }
  .aside-stack { position: static; }
}
@media (max-width: 640px) {
  .ssec-head { padding: 22px; flex-wrap: wrap; }
  .ssec-row { flex-wrap: wrap; }
  .sr-phone { order: 3; margin-inline-start: 64px; }
  .sr-go { display: none; }
}

/* ---------- Brand: long school names wrap neatly on two lines ---------- */
.brand-txt strong { max-width: 190px; line-height: 1.3; }
.brand-txt small { margin-top: 3px; }
.nav { min-width: 0; }
@media (max-width: 1180px) { .brand-txt strong { max-width: 240px; } }
@media (max-width: 640px) { .brand-txt strong { max-width: 170px; font-size: .95rem; } }
@media (min-width: 1181px) and (max-width: 1500px) {
  .header-in { gap: 12px; }
  .menu-link { padding: 10px 8px; font-size: .9rem; }
  .header-actions .btn { padding: .7em 1.1em; }
  .brand img { width: 56px; }
}

/* ==========================================================
   Activities
   ========================================================== */
.act-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.act-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); color: var(--text); transition: transform .4s var(--ease), box-shadow .4s; }
.act-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: var(--text); }
.ac-img { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--sky-100), var(--sky-50)); overflow: hidden; }
.ac-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.act-card:hover .ac-img img { transform: scale(1.06); }
.ac-noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--sky-400); }
.ac-noimg .ic { width: 54px; height: 54px; }
.ac-stage { position: absolute; top: 14px; right: 14px; background: rgba(255,255,255,.95); color: var(--navy-600); font-weight: 700; font-size: .8rem; padding: 4px 12px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.ac-count { position: absolute; bottom: 12px; left: 12px; display: inline-flex; align-items: center; gap: 5px; background: rgba(6,31,61,.7); color: #fff; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; backdrop-filter: blur(4px); }
.ac-count .ic { width: 14px; height: 14px; }
.ac-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.ac-body time { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .85rem; margin-bottom: 8px; }
.ac-body time .ic { width: 16px; height: 16px; color: var(--sky-500); }
.ac-body h3 { font-size: 1.15rem; margin-bottom: 8px; line-height: 1.5; }
.ac-body p { color: var(--muted); font-size: .93rem; line-height: 1.7; flex: 1; margin-bottom: 14px; }
.ac-body .link-arrow { color: var(--navy-600); }

.act-filter { display: grid; gap: 12px; margin-bottom: 40px; }
.af-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.af-sub { padding-top: 12px; border-top: 1px dashed var(--line); }
.af-chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); color: var(--ink); font-weight: 700; transition: .25s; }
.af-chip .ic { width: 18px; height: 18px; color: var(--sky-500); }
.af-chip b { background: var(--sky-50); color: var(--navy-600); font-size: .78rem; min-width: 26px; padding: 1px 8px; border-radius: 999px; text-align: center; }
.af-chip:hover { border-color: var(--sky-400); color: var(--navy-600); }
.af-chip.on { background: linear-gradient(135deg, var(--sky-500), var(--navy-600)); border-color: transparent; color: #fff; box-shadow: 0 10px 24px -12px rgba(14,76,132,.8); }
.af-chip.on .ic { color: #fff; }
.af-chip.on b { background: rgba(255,255,255,.2); color: #fff; }
.af-chip.sm { padding: 7px 14px; font-size: .9rem; }
.act-empty { text-align: center; padding: 70px 20px; background: var(--bg-soft); border-radius: var(--radius-lg); border: 1.5px dashed var(--line); }
.act-empty > span { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; background: #fff; color: var(--sky-500); box-shadow: var(--shadow); }
.act-empty > span .ic { width: 38px; height: 38px; }
.act-empty p { color: var(--muted); }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 44px; }
.pager a { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line); background: #fff; font-weight: 700; color: var(--ink); }
.pager a.on, .pager a:hover { background: var(--navy-600); color: #fff; border-color: var(--navy-600); }

/* single activity */
.gal { margin-bottom: 34px; }
.gal-main { display: block; position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-soft); box-shadow: var(--shadow); cursor: zoom-in; }
.gal-main img { width: 100%; max-height: 560px; object-fit: cover; }
.gal-badge { position: absolute; bottom: 16px; left: 16px; display: inline-flex; align-items: center; gap: 6px; background: rgba(6,31,61,.75); color: #fff; font-weight: 700; font-size: .85rem; padding: 6px 14px; border-radius: 999px; backdrop-filter: blur(4px); }
.gal-badge .ic { width: 16px; height: 16px; }
.gal-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 12px; }
.gal-thumbs a { display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; border: 3px solid transparent; cursor: zoom-in; transition: border-color .2s, transform .2s; }
.gal-thumbs a:hover { transform: translateY(-2px); }
.gal-thumbs a.on { border-color: var(--sky-500); }
.gal-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.act-prose { max-width: none; font-size: 1.07rem; line-height: 2; }
.act-prose h2 { font-size: 1.4rem; margin: 1.2em 0 .5em; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); }
.share > span { font-weight: 700; color: var(--ink); margin-inline-end: 6px; }
.btn-sm { padding: .55em 1.1em; font-size: .86rem; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 300; background: rgba(4,14,30,.94); display: flex; align-items: center; justify-content: center; padding: 60px 70px; }
.lb[hidden] { display: none; }
.lb img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lb-x, .lb-nav { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; transition: background .2s; }
.lb-x:hover, .lb-nav:hover { background: rgba(255,255,255,.25); }
.lb-x { top: 18px; left: 18px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { right: 16px; transform: translateY(-50%) scaleX(-1); }
.lb-next { left: 16px; }
.lb-count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.8); font-weight: 700; }

@media (max-width: 1080px) { .act-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .act-grid { grid-template-columns: 1fr; }
  .lb { padding: 60px 10px; }
  .lb-nav { width: 42px; height: 42px; }
}

/* ==========================================================
   Banner slider (الإعلانات)
   ========================================================== */
.bslider { padding: 22px 0 6px; background: linear-gradient(180deg, #fff, var(--bg-soft)); }
.bs-wrap { position: relative; }
.bs-track { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--sky-50); aspect-ratio: 3 / 1; }
.bs-tall .bs-track { aspect-ratio: 16 / 7; }
.bs-slim .bs-track { aspect-ratio: 4 / 1; }
.bs-slide { position: absolute; inset: 0; display: block; opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility .8s; }
.bs-slide.on { opacity: 1; visibility: visible; z-index: 1; }
.bs-slide picture, .bs-slide img { display: block; width: 100%; height: 100%; }
.bs-slide img { object-fit: cover; transform: scale(1.04); transition: transform 7s ease-out; }
.bs-slide.on img { transform: scale(1); }
.bs-cap { position: absolute; inset: auto 0 0 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 60px 32px 26px; background: linear-gradient(to top, rgba(6,31,61,.85), transparent); color: #fff; }
.bs-cap strong { font-family: var(--font-head); font-size: clamp(1.1rem, 2.2vw, 1.7rem); line-height: 1.4; }
.bs-more { display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; border-radius: 999px; background: #fff; color: var(--navy-700); font-weight: 700; font-size: .9rem; white-space: nowrap; transition: transform .25s; }
.bs-slide:hover .bs-more { transform: translateX(-4px); }
.bs-more .ic { width: 16px; height: 16px; }
.bs-nav { position: absolute; top: 50%; z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--navy-700); display: grid; place-items: center; box-shadow: var(--shadow); transform: translateY(-50%); opacity: 0; transition: opacity .3s, background .2s; }
.bs-wrap:hover .bs-nav, .bs-nav:focus-visible { opacity: 1; }
.bs-nav:hover { background: #fff; color: var(--sky-600); }
.bs-prev { right: 16px; transform: translateY(-50%) scaleX(-1); }
.bs-next { left: 16px; }
.bs-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; gap: 8px; padding: 6px 10px; border-radius: 999px; background: rgba(6,31,61,.35); backdrop-filter: blur(4px); }
.bs-dots button { width: 9px; height: 9px; border-radius: 999px; border: 0; padding: 0; background: rgba(255,255,255,.55); transition: width .3s, background .3s; }
.bs-dots button.on { width: 26px; background: #fff; }
.bs-cap ~ * { }
.bslider + .hero { margin-top: 0; }
@media (max-width: 640px) {
  .bslider { padding: 12px 0 4px; }
  .bs-track, .bs-tall .bs-track, .bs-slim .bs-track { aspect-ratio: 16 / 9; border-radius: 18px; }
  .bs-cap { padding: 40px 16px 34px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .bs-more { padding: 6px 14px; font-size: .82rem; }
  .bs-nav { display: none; }
}

/* announcement post page */
.ann-hero-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 30px; cursor: zoom-in; display: block; }
.ann-hero-img img { width: 100%; display: block; }
.ann-list { display: grid; gap: 18px; }
.ann-item { display: grid; grid-template-columns: 320px 1fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); color: var(--text); transition: box-shadow .3s, transform .3s; }
.ann-item:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); color: var(--text); }
.ann-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/1.6; }
.ann-item > div { padding: 22px 26px; display: flex; flex-direction: column; justify-content: center; }
.ann-item h3 { font-size: 1.2rem; }
.ann-item p { color: var(--muted); margin: 0 0 10px; }
@media (max-width: 760px) { .ann-item { grid-template-columns: 1fr; } }
