/* ==========================================================
   مدارس أرض النشامى النموذجية — Main stylesheet
   ========================================================== */
:root {
  --green: #0f3d2e;
  --green-2: #17573f;
  --leaf: #5aa63a;
  --red: #c8102e;
  --star: #e4572e;
  --gold: #c9952b;
  --cream: #faf6ee;
  --sand: #f1e8d6;
  --ink: #1d2420;
  --muted: #5d6762;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(15, 61, 46, .10);
  --shadow-lg: 0 20px 50px rgba(15, 61, 46, .18);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: "Tajawal", system-ui, sans-serif;
  --font-head: "El Messiri", "Tajawal", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.35; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
figure { margin: 0; }
::selection { background: var(--gold); color: #fff; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ---------- Preloader & progress ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 200; display: grid; place-content: center; justify-items: center; gap: 22px;
  background: var(--green);
  transition: opacity .6s, visibility .6s;
}
.preloader-logo { width: 110px; height: 110px; animation: logoPop 1.4s var(--ease) infinite alternate; }
.preloader-bar { width: 140px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.15); overflow: hidden; }
.preloader-bar i { display: block; height: 100%; width: 40%; background: var(--gold); border-radius: 4px; animation: loadbar 1s ease-in-out infinite; }
body:not(.is-loading) .preloader { opacity: 0; visibility: hidden; }
@keyframes logoPop { from { transform: scale(.9); } to { transform: scale(1.05); } }
@keyframes loadbar { 0% { transform: translateX(260%); } 100% { transform: translateX(-160%); } }

.scroll-progress {
  position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 100;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--leaf));
  transform-origin: right; transform: scaleX(0);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.6em; border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem var(--font); cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s;
}
.btn svg { width: 1.2em; height: 1.2em; fill: currentColor; }
.btn:hover { transform: translateY(-3px); }
.btn-accent { background: var(--red); color: var(--white); box-shadow: 0 8px 20px rgba(200, 16, 46, .3); }
.btn-accent:hover { background: #a90d26; box-shadow: 0 12px 28px rgba(200, 16, 46, .4); }
.btn-ghost { border-color: rgba(255,255,255,.5); color: var(--white); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn-sm { padding: .45em 1.2em; font-size: .95rem; }
.btn-block { width: 100%; }

/* Light sweep on hover */
.btn-shine { position: relative; overflow: hidden; isolation: isolate; }
.btn-shine::after {
  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 .7s var(--ease);
}
.btn-shine:hover::after { transform: translateX(-120%); }

.eyebrow {
  display: inline-block; font-weight: 700; font-size: .9rem;
  color: var(--red); background: rgba(200, 16, 46, .08);
  padding: .25em 1em; border-radius: 999px; margin-bottom: 1em;
}
.hl { color: var(--gold); }

/* ---------- Social icon buttons ---------- */
.si {
  width: 42px; height: 42px; border-radius: 50%; display: inline-grid; place-items: center;
  color: #fff; transition: transform .3s var(--ease), box-shadow .3s;
}
.si svg { width: 20px; height: 20px; fill: currentColor; }
.si:hover { transform: translateY(-4px) rotate(-8deg) scale(1.08); box-shadow: 0 8px 18px rgba(0,0,0,.25); }
.si-fb { background: #1877f2; }
.si-ig { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.si-yt { background: #ff0000; }
.si-wa { background: #25d366; }

.social {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .75em 1.5em; border-radius: 999px; font-weight: 700; color: #fff;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.social:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(0,0,0,.3); }
.social svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.social.fb { background: #1877f2; }
.social.yt { background: #ff0000; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 238, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 61, 46, .08);
  transition: box-shadow .3s, background .3s;
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.07); background: rgba(250, 246, 238, .96); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; }

.brand { display: flex; align-items: center; gap: .6em; }
.brand-logo { width: 50px; height: 50px; flex: none; transition: transform .6s var(--ease); }
.brand:hover .brand-logo { transform: rotate(-10deg) scale(1.08); }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-family: var(--font-head); font-size: 1.25rem; color: var(--green); }
.brand-text small { font-size: .72rem; color: var(--muted); }
.brand-light .brand-text strong { color: var(--white); }
.brand-light .brand-text small { color: rgba(255,255,255,.6); }

.nav { display: flex; align-items: center; gap: 1.4em; }
.nav a:not(.btn) { font-weight: 500; color: var(--green); position: relative; font-size: .97rem; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -4px; height: 2px; border-radius: 2px;
  background: var(--red); transform: scaleX(0); transition: transform .3s var(--ease);
}
.nav a:not(.btn):hover::after, .nav a.active::after { transform: scaleX(1); }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--green); margin: 6px 0; transition: .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  min-height: min(calc(100vh - 74px), 900px); display: flex; flex-direction: column; justify-content: center;
  padding: 70px 0 110px; background: var(--green);
}
.hero-slides, .hero-overlay, .hero-particles { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: -4%; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.12);
  transition: opacity 1.6s ease, transform 8s linear;
}
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero-overlay {
  background:
    linear-gradient(270deg, rgba(10, 44, 33, .96) 0%, rgba(15, 61, 46, .86) 45%, rgba(15, 61, 46, .55) 100%),
    radial-gradient(ellipse at 80% 100%, rgba(201,149,43,.25), transparent 60%);
}
.hero-particles { pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero .eyebrow { background: rgba(255,255,255,.12); color: #ffd7a0; backdrop-filter: blur(4px); }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); margin-bottom: .25em; line-height: 1.2; }
.hero h1 small { display: block; font-size: .42em; color: rgba(255,255,255,.75); letter-spacing: .02em; margin-top: .2em; }
.hero h1 .hl {
  background: linear-gradient(90deg, #f3cf7a, var(--gold), #f3cf7a); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 4s linear infinite;
}
.lead { font-size: clamp(1.25rem, 2.6vw, 1.7rem); color: rgba(255,255,255,.9); margin-bottom: 1.4em; font-weight: 500; }
.typed { color: #fff; font-weight: 800; border-bottom: 3px solid var(--red); }
.caret { display: inline-block; margin-inline-start: 2px; color: var(--gold); animation: blink .8s steps(1) infinite; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.hero-social { display: flex; align-items: center; gap: 10px; }
.hero-social span { font-size: .9rem; color: rgba(255,255,255,.7); margin-inline-end: 6px; }

.hero-cards { position: relative; height: 460px; }
.hcard {
  position: absolute; border-radius: 22px; overflow: hidden; border: 5px solid #fff;
  box-shadow: 0 25px 50px rgba(0,0,0,.35); background: #fff;
  transition: transform .6s var(--ease);
}
.hcard img { width: 100%; height: 100%; object-fit: cover; }
.hcard-1 { width: 54%; height: 78%; top: 4%; right: 4%; transform: rotate(4deg); animation: float 7s ease-in-out infinite; }
.hcard-2 { width: 58%; height: 44%; bottom: 0; left: 0; transform: rotate(-5deg); animation: float 8s ease-in-out infinite -3s; }
.hcard-3 { width: 36%; height: 50%; top: 0; left: 6%; transform: rotate(-8deg); animation: float 6s ease-in-out infinite -1.5s; }
.hero-cards:hover .hcard-1 { transform: rotate(0) scale(1.03); }

.float-card {
  position: absolute; z-index: 2; background: var(--white); color: var(--green);
  padding: .5em 1.1em; border-radius: 14px; font-weight: 700; font-size: .95rem;
  box-shadow: var(--shadow-lg); display: flex; gap: .45em; align-items: center;
  animation: float 6s ease-in-out infinite;
}
.fc-1 { top: 44%; right: -4%; }
.fc-2 { bottom: 4%; right: 30%; animation-delay: -2s; }
.fc-3 { top: 50%; left: -6%; animation-delay: -4s; }

.hero-stats {
  position: relative; list-style: none; padding: 22px 28px; margin: 48px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: 20px; backdrop-filter: blur(8px);
}
.hero-stats li { display: flex; flex-direction: column; text-align: center; }
[data-count] { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.hero-stats strong { font-family: var(--font-head); font-size: 2.1rem; color: var(--gold); line-height: 1.2; direction: ltr; }
.hero-stats span { font-size: .88rem; color: rgba(255,255,255,.75); }

.scroll-down {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.6); border-radius: 14px;
}
.scroll-down span {
  position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: #fff; animation: scrollDot 1.8s ease-in-out infinite;
}

/* Entry animation for hero items */
.anim-in { opacity: 0; transform: translateY(30px); }
body.loaded .anim-in { animation: rise .9s var(--ease) forwards; animation-delay: var(--d, 0s); }

/* Shmagh-inspired red & white band */
.shmagh-band {
  position: absolute; bottom: 0; left: 0; right: 0; height: 16px; z-index: 2;
  background-color: #fff;
  background-image:
    linear-gradient(45deg, var(--red) 25%, transparent 25%, transparent 75%, var(--red) 75%),
    linear-gradient(45deg, var(--red) 25%, transparent 25%, transparent 75%, var(--red) 75%);
  background-size: 12px 12px;
  background-position: 0 0, 6px 6px;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { translate: 0 -14px; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes shimmer { to { background-position: -200% center; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }
@keyframes marquee { to { transform: translateX(50%); } }

/* ---------- Marquee ---------- */
.marquee { background: var(--gold); color: var(--green); overflow: hidden; padding: 14px 0; }
.marquee-track { display: flex; width: max-content; gap: 28px; align-items: center; animation: marquee 35s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font: 700 1.2rem var(--font-head); white-space: nowrap; }
.marquee i { font-style: normal; color: var(--red); }

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.section-tint { background: var(--sand); }
.section-dark { background: var(--green); color: var(--white); }
.section-dark .eyebrow { background: rgba(255,255,255,.1); color: #ffd7a0; }
.section-dark .section-head p { color: rgba(255,255,255,.75); }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head-start { text-align: start; margin: 0 0 32px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: inherit; }
.section:not(.section-dark) .section-head h2 { color: var(--green); }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* Reveal on scroll */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--i, 0) * 110ms);
}
.reveal[data-anim="right"] { transform: translateX(60px); }
.reveal[data-anim="left"] { transform: translateX(-60px); }
.reveal[data-anim="zoom"] { transform: scale(.88); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 64px; align-items: center; }
.about-media { position: relative; height: 560px; }
.am { position: absolute; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); }
.am img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.am:hover img { transform: scale(1.06); }
.am-1 { inset: 0 0 18% 22%; }
.am-2 { width: 42%; height: 52%; bottom: 0; left: 0; border: 6px solid var(--cream); }
.am-badge {
  position: absolute; top: 24px; left: 4%; z-index: 2;
  background: var(--red); color: #fff; border-radius: 20px; padding: 16px 22px;
  box-shadow: 0 16px 30px rgba(200,16,46,.35); text-align: center; line-height: 1.4;
  animation: float 6s ease-in-out infinite;
}
.am-badge strong { display: block; font: 700 2rem var(--font-head); direction: ltr; }
.am-badge span { font-size: .85rem; }

.values { display: grid; gap: 16px; }
.value {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--white); border-radius: var(--radius); padding: 22px 24px;
  box-shadow: var(--shadow); border-inline-start: 4px solid var(--red);
  transition: box-shadow .3s, transform .3s var(--ease);
}
.value:nth-child(2) { border-inline-start-color: var(--leaf); }
.value:nth-child(3) { border-inline-start-color: var(--gold); }
.value:hover { box-shadow: var(--shadow-lg); }
.value-icon {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; flex: none;
  background: var(--cream); transition: transform .5s var(--ease), background .3s;
}
.value:hover .value-icon { transform: rotate(-12deg) scale(1.1); background: var(--green); }
.value-icon svg { width: 26px; fill: var(--green); transition: fill .3s; }
.value:hover .value-icon svg { fill: #fff; }
.value h3 { font-size: 1.3rem; color: var(--green); margin-bottom: .2em; }
.value p { color: var(--muted); margin: 0; }

/* ---------- Director ---------- */
.director { overflow: hidden; }
.director-bg {
  position: absolute; inset: 0; opacity: .1;
  background: url("../img/director/banner.jpg") center / cover;
  filter: blur(2px) grayscale(.4);
}
.director::before {
  content: ""; position: absolute; width: 600px; height: 600px; border-radius: 50%;
  right: -200px; top: -200px; background: radial-gradient(circle, rgba(201,149,43,.25), transparent 65%);
}
.director .container { position: relative; }
.director-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; }
.director-photo { position: relative; max-width: 420px; margin-inline: auto; width: 100%; }
.director-photo .ring {
  position: relative; border-radius: 50%; padding: 8px; aspect-ratio: 1;
  background: conic-gradient(from 0deg, var(--gold), var(--red), var(--leaf), var(--gold));
  animation: spin 8s linear infinite;
}
.director-photo .ring img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 6px solid var(--green);
  animation: spin 8s linear infinite reverse;
}
.verified {
  position: absolute; bottom: 10%; left: 10%; width: 56px; height: 56px; border-radius: 50%;
  background: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg);
  animation: float 5s ease-in-out infinite;
}
.verified svg { width: 34px; fill: #1877f2; }
.director-text h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: .1em; }
.director-role { color: #ffd7a0; font-weight: 700; font-size: 1.1rem; }
.director blockquote {
  position: relative; margin: 24px 0; padding: 22px 26px 22px 22px;
  background: rgba(255,255,255,.07); border-inline-start: 4px solid var(--gold);
  border-radius: 14px; font-size: 1.15rem; line-height: 1.9;
}
.director blockquote .q { position: absolute; top: -16px; inset-inline-start: 16px; width: 34px; fill: var(--gold); }
.director-points { list-style: none; padding: 0; margin: 0 0 28px; }
.director-points li { position: relative; padding-inline-start: 30px; margin-bottom: 10px; color: rgba(255,255,255,.85); }
.director-points li::before { content: "✦"; position: absolute; inset-inline-start: 0; color: var(--gold); }
.director-points b { color: #fff; }
.director-stats { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.director-stats div {
  flex: 1 1 140px; text-align: center; padding: 14px 10px; border-radius: 16px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
}
.director-stats strong { display: block; font: 700 1.9rem var(--font-head); color: var(--gold); direction: ltr; }
.director-stats span { font-size: .85rem; color: rgba(255,255,255,.7); }
.director-links { display: flex; flex-wrap: wrap; gap: 12px; }

.director-media { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; margin-top: 70px; align-items: stretch; }
.visit { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 22px; padding: 26px; }
.visit-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.visit-head h3 { margin: 0; font-size: 1.3rem; }
.visit-head a { color: var(--gold); font-weight: 700; font-size: .95rem; }
.visit > p { color: rgba(255,255,255,.75); margin: 10px 0 18px; }
.visit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.visit-grid a { border-radius: 12px; overflow: hidden; aspect-ratio: 1; }
.visit-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .4s; }
.visit-grid a:hover img { transform: scale(1.12); filter: brightness(1.1); }

.yt-embed { border-radius: 22px; overflow: hidden; box-shadow: 0 25px 50px rgba(0,0,0,.35); min-height: 260px; position: relative; background: #000; }
.yt-lite { all: unset; cursor: pointer; position: absolute; inset: 0; display: block; }
.yt-lite img { width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: opacity .3s, transform .8s var(--ease); }
.yt-lite:hover img { opacity: .9; transform: scale(1.04); }
.yt-play { position: absolute; top: 50%; left: 50%; width: 76px; transform: translate(-50%, -50%); transition: transform .3s var(--ease); }
.yt-lite:hover .yt-play { transform: translate(-50%, -50%) scale(1.15); }
.yt-play::before {
  content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.6);
  animation: ripple 2s ease-out infinite;
}
.yt-label {
  position: absolute; bottom: 0; inset-inline: 0; padding: 40px 20px 16px; font-weight: 700;
  background: linear-gradient(transparent, rgba(0,0,0,.8));
}
.yt-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@keyframes ripple { from { transform: scale(.7); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }

/* ---------- Programs ---------- */
.programs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.program {
  position: relative; background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: box-shadow .3s, transform .3s var(--ease);
}
.program:hover { box-shadow: var(--shadow-lg); }
.program-img { height: 200px; overflow: hidden; }
.program-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.program:hover .program-img img { transform: scale(1.1); }
.program-body { position: relative; padding: 26px 28px 30px; }
.program-num {
  position: absolute; top: -34px; left: 20px; width: 64px; height: 64px; border-radius: 18px;
  display: grid; place-items: center; font: 700 1.5rem var(--font-head);
  background: var(--red); color: #fff; box-shadow: 0 10px 20px rgba(200,16,46,.3);
}
.program h3 { font-size: 1.4rem; color: var(--green); margin-bottom: .2em; }
.program-sub { color: var(--red); font-weight: 700; margin-bottom: .8em; }
.program-body p:last-child { color: var(--muted); margin: 0; }

.features {
  list-style: none; padding: 0; margin: 48px 0 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
}
.features li {
  background: var(--white); padding: .5em 1.2em; border-radius: 999px;
  font-weight: 500; color: var(--green); box-shadow: 0 4px 12px rgba(0,0,0,.05);
  transition: background .3s, color .3s, opacity .8s var(--ease), transform .8s var(--ease);
}
.features li:hover { background: var(--green); color: #fff; }

/* ---------- Activities ---------- */
.activities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.activity {
  --c: var(--green);
  position: relative; background: var(--white); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow); overflow: hidden;
  transition: box-shadow .3s, opacity .8s var(--ease), transform .8s var(--ease);
}
.activity::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 5px; background: var(--c);
  transition: width .5s var(--ease);
}
.activity::after {
  content: ""; position: absolute; width: 160px; height: 160px; border-radius: 50%;
  background: var(--c); opacity: .07; left: -50px; bottom: -60px; transition: transform .6s var(--ease);
}
.activity:hover { box-shadow: var(--shadow-lg); }
.activity:hover::after { transform: scale(2.2); }
.activity-emoji { font-size: 2.2rem; display: inline-block; margin-bottom: 10px; transition: transform .5s var(--ease); }
.activity:hover .activity-emoji { transform: scale(1.25) rotate(-10deg); }
.activity h3 { font-size: 1.3rem; color: var(--c); position: relative; }
.activity p { color: var(--muted); margin: 0; position: relative; }

.flag { width: 1.6em; height: .8em; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.1); flex: none; }
.activity-emoji .flag { width: 2.4em; height: 1.2em; font-size: 1rem; }

/* 3D tilt */
.tilt { transform-style: preserve-3d; will-change: transform; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 14px;
  grid-auto-flow: dense;
}
.g-item { position: relative; border-radius: 16px; overflow: hidden; background: var(--green-2); cursor: zoom-in; }
.g-wide { grid-column: span 2; }
.g-tall { grid-row: span 2; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s; }
.g-item:hover img { transform: scale(1.08); filter: saturate(1.15); }
.g-cap {
  position: absolute; inset-inline: 0; bottom: 0; padding: 40px 16px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  font-weight: 700; color: #fff; transition: padding .4s var(--ease);
}
.g-item:hover .g-cap { padding-bottom: 20px; }
.g-item::after {
  content: "⤢"; position: absolute; top: 12px; left: 12px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.9); color: var(--green); font-weight: 700;
  transform: scale(0); transition: transform .35s var(--ease);
}
.g-item:hover::after { transform: scale(1); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 150; display: grid; place-items: center;
  background: rgba(5, 20, 15, .92); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .3s;
}
.lightbox.open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox figure { max-width: min(92vw, 1100px); text-align: center; transform: scale(.94); transition: transform .35s var(--ease); }
.lightbox.open figure { transform: none; }
.lightbox img { max-height: 80vh; margin: 0 auto; border-radius: 12px; box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.lightbox figcaption { color: #fff; margin-top: 14px; font-weight: 700; font-size: 1.1rem; }
.lightbox button {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer;
  width: 52px; height: 52px; border-radius: 50%; font-size: 2rem; line-height: 1; transition: background .2s;
}
.lightbox button:hover { background: var(--red); }
.lb-close { top: 20px; left: 20px; }
.lb-prev { right: 20px; top: 50%; translate: 0 -50%; }
.lb-next { left: 20px; top: 50%; translate: 0 -50%; }

/* ---------- Social hub ---------- */
.social-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.scard {
  --bg: #1877f2;
  position: relative; overflow: hidden; border-radius: 22px; padding: 28px 22px; color: #fff;
  background: var(--bg); display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  box-shadow: var(--shadow); transition: box-shadow .3s, opacity .8s var(--ease), transform .8s var(--ease);
}
.scard::before {
  content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%;
  background: rgba(255,255,255,.12); left: -60px; top: -70px; transition: transform .6s var(--ease);
}
.scard:hover { box-shadow: var(--shadow-lg); }
.scard:hover::before { transform: scale(1.6); }
.scard-fb { --bg: linear-gradient(135deg, #1877f2, #0b4fb3); }
.scard-ig { --bg: linear-gradient(135deg, #feda75, #fa7e1e 25%, #d62976 55%, #962fbf 80%, #4f5bd5); }
.scard-yt { --bg: linear-gradient(135deg, #ff3d3d, #b80000); }
.scard-wa { --bg: linear-gradient(135deg, #34e07a, #128c7e); }
.scard-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 14px;
  background: rgba(255,255,255,.2); transition: transform .5s var(--ease);
}
.scard:hover .scard-icon { transform: rotate(-12deg) scale(1.1); }
.scard-icon svg { width: 30px; height: 30px; fill: #fff; }
.scard strong { font: 700 1.9rem var(--font-head); line-height: 1.2; position: relative; }
.scard span { opacity: .9; position: relative; }
.scard em { font-style: normal; font-size: .85rem; opacity: .75; margin-top: 8px; direction: ltr; position: relative; }

.ig-feed { margin-top: 40px; background: var(--white); border-radius: 24px; padding: 22px; box-shadow: var(--shadow); }
.ig-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.ig-avatar {
  width: 58px; height: 58px; border-radius: 50%; object-fit: cover; padding: 3px;
  background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf);
}
.ig-head div { display: flex; flex-direction: column; line-height: 1.4; }
.ig-head strong { direction: ltr; text-align: right; }
.ig-head span { color: var(--muted); font-size: .9rem; }
.ig-follow { margin-inline-start: auto; background: #0095f6; color: #fff; }
.ig-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.ig-grid a { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; }
.ig-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ig-grid span {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(214, 41, 118, .55); opacity: 0; transition: opacity .3s;
}
.ig-grid span svg { width: 34px; fill: #fff; transform: scale(.5); transition: transform .4s var(--ease); }
.ig-grid a:hover span { opacity: 1; }
.ig-grid a:hover span svg { transform: scale(1); }
.ig-grid a:hover img { transform: scale(1.1); }

/* ---------- Register ---------- */
.register-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.register-info h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); color: var(--green); }
.register-info p { color: var(--muted); font-size: 1.1rem; }
.check-list { list-style: none; padding: 0; margin: 24px 0 0; }
.check-list li { position: relative; padding-inline-start: 36px; margin-bottom: 12px; font-weight: 500; }
.check-list li::before {
  content: "✓"; position: absolute; inset-inline-start: 0; top: 2px;
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green); color: #fff; font-size: .8rem;
}
.register-form {
  background: var(--white); border-radius: 24px; padding: 36px;
  box-shadow: var(--shadow-lg); border-top: 6px solid var(--red);
}
.field { margin-bottom: 18px; display: flex; flex-direction: column; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-weight: 700; margin-bottom: 6px; color: var(--green); font-size: .95rem; }
.field input, .field select, .field textarea {
  font: inherit; padding: .7em 1em; border-radius: 12px;
  border: 1.5px solid #dcd5c6; background: #fdfbf7; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green-2); box-shadow: 0 0 0 4px rgba(23, 87, 63, .12);
}
.field .invalid { border-color: var(--red); animation: shake .4s; }
.form-msg { margin: 12px 0 0; text-align: center; font-weight: 500; min-height: 1.5em; }
.form-msg.error { color: var(--red); }
.form-msg.ok { color: var(--green-2); }
@keyframes shake { 25% { transform: translateX(6px); } 75% { transform: translateX(-6px); } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 28px; }
.contact-cards { display: grid; gap: 16px; }
.contact-card {
  display: flex; gap: 16px; align-items: center;
  background: var(--white); padding: 20px 24px; border-radius: var(--radius);
  box-shadow: var(--shadow); transition: box-shadow .3s, opacity .8s var(--ease), transform .8s var(--ease);
}
.contact-card.visible:hover { transform: translateX(-6px); box-shadow: var(--shadow-lg); }
.cc-icon { font-size: 1.7rem; width: 54px; height: 54px; flex: none; display: grid; place-items: center; background: var(--cream); border-radius: 14px; transition: transform .4s var(--ease); }
.contact-card:hover .cc-icon { transform: scale(1.12) rotate(-8deg); }
.contact-card h3 { font-size: 1.1rem; margin: 0; color: var(--green); }
.contact-card p { margin: 0; color: var(--muted); }
.contact-card p[dir="ltr"] { text-align: right; font-weight: 700; color: var(--ink); }
.map { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 380px; }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.map-btn { position: absolute; bottom: 16px; left: 16px; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: #0a2c21; color: rgba(255,255,255,.75); padding: 70px 0 0; }
.site-footer .shmagh-band { top: 0; bottom: auto; height: 10px; background-size: 10px 10px; background-position: 0 0, 5px 5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; }
.footer-tag { margin-top: 16px; }
.footer-social { display: flex; gap: 10px; }
.site-footer h4 { color: #fff; font-size: 1.15rem; }
.site-footer h4.mt { margin-top: 22px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer li a { transition: color .2s, padding .3s; }
.site-footer li a:hover { color: var(--gold); padding-inline-start: 6px; }
.copyright { text-align: center; border-top: 1px solid rgba(255,255,255,.1); padding: 20px 16px; margin: 0; font-size: .9rem; }

/* ---------- Floating buttons ---------- */
.wa-float {
  position: fixed; bottom: 22px; left: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37, 211, 102, .45);
  transition: transform .2s;
}
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1;
  animation: pulseRing 2.2s ease-out infinite;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
@keyframes pulseRing { from { transform: scale(1); opacity: .6; } to { transform: scale(1.7); opacity: 0; } }

.to-top {
  position: fixed; bottom: 24px; right: 22px; z-index: 60; width: 52px; height: 52px;
  border: 0; border-radius: 50%; background: var(--green); cursor: pointer; padding: 0;
  box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top-ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.to-top-ring circle { fill: none; stroke: var(--gold); stroke-width: 3; stroke-dasharray: 138.2; stroke-dashoffset: 138.2; }
.to-top-arrow { position: relative; width: 22px; fill: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .reveal, .anim-in { opacity: 1; transform: none; transition: none; }
  .hero-slide { transition: opacity 1s; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { gap: 1em; }
  .nav a:not(.btn) { font-size: .9rem; }
}
@media (max-width: 980px) {
  .hero-grid, .register-grid, .contact-grid, .about-grid, .director-grid, .director-media { grid-template-columns: 1fr; }
  .hero { min-height: 0; padding: 50px 0 100px; }
  .hero-cards { height: 380px; max-width: 520px; width: 100%; margin-inline: auto; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .about-media { height: 440px; }
  .director-photo { max-width: 320px; }
  .programs, .activities { grid-template-columns: 1fr 1fr; }
  .social-cards { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .yt-embed { aspect-ratio: 16 / 9; min-height: 0; }
}
@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 74px; inset-inline: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); padding: 8px 16px 20px;
    box-shadow: 0 20px 30px rgba(0,0,0,.08);
    transform: translateY(-10px); opacity: 0; pointer-events: none;
    transition: .3s var(--ease);
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid rgba(15,61,46,.08); font-size: 1rem; }
  .nav .btn { margin-top: 14px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 76px 0; }
  .programs, .activities, .field-row { grid-template-columns: 1fr; }
  .social-cards { gap: 12px; }
  .scard { padding: 20px 16px; }
  .scard strong { font-size: 1.4rem; }
  .scard-icon { width: 46px; height: 46px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .g-wide.g-tall { grid-row: span 1; }
  .ig-grid { grid-template-columns: repeat(3, 1fr); }
  .visit-grid { grid-template-columns: 1fr 1fr; }
  .register-form { padding: 24px 20px; }
  .hero-cards { height: 300px; }
  .hero-stats { padding: 16px; gap: 14px; }
  .hero-stats strong { font-size: 1.6rem; }
  .float-card { font-size: .8rem; }
  .fc-1 { right: 0; } .fc-3 { left: 0; }
  .about-media { height: 360px; }
  .am-badge { padding: 10px 14px; }
  .am-badge strong { font-size: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-text strong { font-size: 1.1rem; }
  .brand-logo { width: 42px; height: 42px; }
  .director blockquote { font-size: 1.05rem; }
  .scroll-down { display: none; }
  .to-top { bottom: 90px; left: 26px; right: auto; width: 48px; height: 48px; }
}
