:root {
  --green: #3fae49; --green-d: #2b8f3a; --orange: #f5821f; --purple: #6b2d90;
  --yellow: #f7b500; --pink: #f0699a; --cream: #fff7ea; --ink: #2c2340; --muted: #5d5670;
  --glass: rgba(255, 255, 255, .86); --radius: 28px;
  --shadow: 0 24px 60px -24px rgba(60, 40, 110, .38), 0 2px 0 rgba(255, 255, 255, .8) inset;
  --display: "Baloo 2", "Baloo Bhaijaan 2", system-ui, sans-serif;
  --body: "Nunito", "Tajawal", system-ui, sans-serif;
}
[dir="rtl"] { --display: "Baloo Bhaijaan 2", "Baloo 2", system-ui, sans-serif; --body: "Tajawal", "Nunito", system-ui, sans-serif; }

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { font-family: var(--body); color: var(--ink); background: #bfe6ff; line-height: 1.65; font-size: 17px; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--purple); }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -.01em; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { line-height: 1.35; letter-spacing: 0; }
.c-green { color: var(--green-d); } .c-orange { color: #e06d0c; } .c-purple { color: var(--purple); }

/* ---------- sky + canvas ---------- */
#sky { position: fixed; inset: 0; z-index: -2; --warm: 0;
  background:
    radial-gradient(120% 70% at 50% 110%, rgba(255, 236, 196, calc(.75 + var(--warm) * .25)) 0%, transparent 62%),
    linear-gradient(180deg, #6fc3f7 0%, #a9defc 42%, #dff3ff 78%, #fff3dc 100%); }
#sky::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 190, 120, .0), rgba(255, 196, 140, .32)); opacity: var(--warm); }
#world { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; opacity: 0; transition: opacity 1.2s ease; }
body.ready #world { opacity: 1; }
body.no-webgl #world { display: none; }
#progress { position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 60; transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--green), var(--orange), var(--purple)); }
[dir="rtl"] #progress { transform-origin: right; }

/* ---------- loader ---------- */
#loader { position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 22px; background: var(--cream); transition: opacity .7s ease, visibility .7s; }
#loader img { width: 200px; height: auto; animation: bob 1.6s ease-in-out infinite; }
.dots { display: flex; gap: 10px; }
.dots i { width: 13px; height: 13px; border-radius: 50%; background: var(--green); animation: hop .9s ease-in-out infinite; }
.dots i:nth-child(2) { background: var(--orange); animation-delay: .15s; } .dots i:nth-child(3) { background: var(--purple); animation-delay: .3s; }
body.ready #loader { opacity: 0; visibility: hidden; }
@keyframes hop { 50% { transform: translateY(-12px); } }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* ---------- header ---------- */
.top { position: fixed; inset: 12px 16px auto 16px; z-index: 50; display: flex; align-items: center; gap: 18px; padding: 8px 12px 8px 18px;
  border-radius: 999px; background: rgba(255, 255, 255, .0); transition: background .35s, box-shadow .35s, backdrop-filter .35s; }
body.scrolled .top { background: var(--glass); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 10px 34px -16px rgba(60, 40, 110, .45); }
.brand img { height: 52px; width: auto; filter: drop-shadow(0 2px 6px rgba(255, 255, 255, .9)); }
.nav { display: flex; gap: 2px; margin-inline: auto; }
.nav a { font-family: var(--display); font-weight: 600; font-size: 16px; text-decoration: none; color: var(--ink); padding: 8px 13px; border-radius: 999px; transition: background .2s, color .2s; white-space: nowrap; }
.nav a:hover { background: rgba(63, 174, 73, .14); }
.nav a.active { background: var(--green); color: #fff; }
.top-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.nav + .top-actions { margin-inline-start: 0; }
.pill { font-family: var(--display); font-weight: 700; font-size: 15px; border-radius: 999px; padding: 9px 18px; border: 2px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap; }
.pill.solid { background: var(--orange); color: #fff; box-shadow: 0 8px 18px -8px rgba(245, 130, 31, .9); }
.pill.ghost { background: rgba(255, 255, 255, .8); color: var(--purple); border-color: rgba(107, 45, 144, .25); }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--purple); cursor: pointer; padding: 13px 11px; flex-direction: column; justify-content: space-between; }
.burger span { display: block; height: 3px; border-radius: 3px; background: #fff; }

/* ---------- sections ---------- */
main > section { min-height: 118vh; display: flex; align-items: center; padding: 110px clamp(16px, 5vw, 72px); position: relative; }
.side-l { justify-content: flex-start; } .side-r { justify-content: flex-end; } .side-c { justify-content: center; }
.card { width: min(100%, 560px); background: var(--glass); backdrop-filter: blur(18px) saturate(1.25); -webkit-backdrop-filter: blur(18px) saturate(1.25);
  border-radius: var(--radius); padding: clamp(22px, 3.2vw, 42px); box-shadow: var(--shadow); border: 1px solid rgba(255, 255, 255, .9); }
.card.wide { width: min(100%, 760px); }
.side-c .card.wide { width: min(100%, 1080px); }
.card > * + * { margin-top: 16px; }
.kicker { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: 14px; }
[dir="rtl"] .kicker { letter-spacing: 0; font-size: 17px; }
h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; color: var(--ink); text-wrap: balance; }
h3 { font-size: 22px; font-weight: 700; }
.sub { color: var(--muted); font-size: 17.5px; }
.reveal { opacity: 0; transform: translateY(46px) scale(.98); transition: opacity .9s cubic-bezier(.2, .8, .2, 1), transform .9s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero { min-height: 100vh; min-height: 100svh; flex-direction: column; justify-content: center; align-items: flex-start; padding-top: 120px; }
.hero-inner { max-width: 640px; }
.hero-inner > * + * { margin-top: 20px; }
.eyebrow { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--purple); background: rgba(255, 255, 255, .82); padding: 6px 16px; border-radius: 999px; }
h1 { font-size: clamp(54px, 9.2vw, 122px); font-weight: 800; text-shadow: 0 3px 0 #fff, 0 12px 34px rgba(255, 255, 255, .85); }
h1 span { display: inline-block; animation: pop .9s cubic-bezier(.2, 1.5, .4, 1) both; }
h1 span:nth-child(2) { animation-delay: .12s; } h1 span:nth-child(3) { animation-delay: .24s; }
h1 .c-green { color: var(--green); } h1 .c-orange { color: var(--orange); }
@keyframes pop { from { opacity: 0; transform: translateY(40px) scale(.7) rotate(-6deg); } }
.lead { font-size: clamp(18px, 1.7vw, 22px); font-weight: 600; color: #33294d; max-width: 30em; text-shadow: 0 1px 12px rgba(255, 255, 255, .95), 0 0 2px #fff; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 18px; padding: 13px 26px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-3px) scale(1.02); }
.btn.primary { background: linear-gradient(135deg, #ff9a3d, var(--orange)); color: #fff; box-shadow: 0 14px 28px -12px rgba(245, 130, 31, .95), 0 -3px 0 rgba(0, 0, 0, .1) inset; }
.btn.glass { background: rgba(255, 255, 255, .86); color: var(--purple); box-shadow: 0 12px 26px -14px rgba(60, 40, 110, .5); backdrop-filter: blur(8px); }
.btn.glass.dark { background: var(--purple); color: #fff; }
.play { width: 0; height: 0; border-block: 8px solid transparent; border-inline-start: 13px solid var(--orange); }
.facts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.facts li { background: var(--glass); backdrop-filter: blur(10px); border-radius: 20px; padding: 10px 18px; display: grid; box-shadow: 0 10px 26px -18px rgba(60, 40, 110, .6); }
.facts b { font-family: var(--display); font-size: 24px; line-height: 1.15; color: var(--green-d); }
.facts li:nth-child(2) b { color: #e06d0c; } .facts li:nth-child(3) b { color: var(--purple); }
.facts span { font-size: 13.5px; color: var(--muted); font-weight: 700; }
.hint { position: absolute; bottom: 22px; inset-inline: 0; text-align: center; font-family: var(--display); font-weight: 600; color: var(--purple); font-size: 15px; animation: bob 2.2s ease-in-out infinite; text-shadow: 0 0 10px #fff, 0 0 3px #fff; }

/* ---------- about ---------- */
.award { display: flex; gap: 16px; align-items: center; background: linear-gradient(135deg, #fff8e1, #fff1c9); border-radius: 20px; padding: 14px 18px; border: 1px dashed rgba(247, 181, 0, .7); }
.award img { width: 84px; height: auto; flex: none; }
.award p { font-size: 15.5px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 22px; }
.mini { background: #fff; border-radius: 22px; padding: 16px; box-shadow: 0 10px 28px -20px rgba(60, 40, 110, .55); }
.mini img { width: 100%; height: 150px; object-fit: contain; border-radius: 14px; background: var(--cream); }
.mini h3 { margin-top: 12px; } .mini p, .mini ul { margin-top: 6px; font-size: 15.5px; color: var(--muted); }
.ticks { list-style: none; padding: 0; display: grid; gap: 6px; }
.ticks li { position: relative; padding-inline-start: 28px; font-size: 15.5px; }
.ticks li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--green); color: #fff; font-size: 12px; font-weight: 900; display: grid; place-content: center; }
.ticks.cols { grid-template-columns: 1fr 1fr; }

/* ---------- groups ---------- */
.rooms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 22px; }
.rooms article { background: #fff; border-radius: 22px; padding: 16px 14px; text-align: center; border-bottom: 6px solid var(--c); box-shadow: 0 10px 26px -20px rgba(60, 40, 110, .6); transition: transform .25s; }
.rooms article:hover { transform: translateY(-6px) rotate(-1.5deg); }
.rooms span { font-size: 34px; display: grid; place-content: center; width: 62px; height: 62px; margin: 0 auto 8px; border-radius: 50%; background: color-mix(in srgb, var(--c) 16%, #fff); }
.rooms h3 { font-size: 19px; } .rooms p { font-size: 14px; color: var(--muted); line-height: 1.45; margin-top: 4px; }

/* ---------- programme ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tab { font-family: var(--display); font-weight: 700; font-size: 16px; padding: 8px 18px; border-radius: 999px; border: 2px solid rgba(107, 45, 144, .2); background: #fff; color: var(--purple); cursor: pointer; transition: all .2s; }
.tab.on { background: var(--purple); border-color: var(--purple); color: #fff; }
.pane { display: grid; grid-template-columns: 300px 1fr; gap: 22px; align-items: center; background: #fff; border-radius: 22px; padding: 16px; animation: fade .45s ease; }
.pane[hidden] { display: none; }
.pane img { width: 100%; height: 240px; object-fit: cover; border-radius: 16px; }
.pane > div > * + * { margin-top: 10px; } .pane p { color: var(--muted); font-size: 16px; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } }

/* ---------- facilities ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 20px; }
.gallery figure, .camps figure { position: relative; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 10px 26px -20px rgba(60, 40, 110, .7); }
.gallery img { width: 100%; height: 130px; object-fit: cover; transition: transform .5s; }
.gallery figure:hover img, .camps figure:hover img { transform: scale(1.08); }
.gallery figcaption { font-family: var(--display); font-weight: 600; font-size: 14.5px; line-height: 1.25; padding: 9px 10px 11px; text-align: center; }

/* ---------- camps / box ---------- */
.camps { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); }
.camps img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s; }
.camps figcaption { font-family: var(--display); font-weight: 700; text-align: center; padding: 8px; }
.banner { width: 100%; border-radius: 18px; }

/* ---------- partners ---------- */
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin-top: 22px; }
.logos img { width: 100%; height: 78px; object-fit: contain; background: #fff; border-radius: 16px; padding: 10px; transition: transform .25s; }
.logos img:hover { transform: scale(1.08) rotate(-1deg); }

/* ---------- enrol ---------- */
.enrol { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 22px; }
.enrol > div > * + * { margin-top: 12px; }
.steps { padding-inline-start: 22px; display: grid; gap: 4px; }
.form { background: #fff; border-radius: 22px; padding: 20px; display: grid; gap: 11px; box-shadow: 0 14px 34px -22px rgba(60, 40, 110, .6); }
.form label { display: grid; gap: 4px; font-weight: 700; font-size: 14px; color: var(--muted); }
.form input, .form select, .form textarea { font: inherit; font-size: 16px; color: var(--ink); padding: 10px 14px; border-radius: 14px; border: 2px solid #ebe5f3; background: #fbf9fe; width: 100%; outline: none; transition: border-color .2s; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--green); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form .btn { justify-content: center; }
.note { font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- contact ---------- */
.branches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 22px; }
.branches article { background: #fff; border-radius: 22px; padding: 18px 16px; text-align: center; box-shadow: 0 10px 28px -20px rgba(60, 40, 110, .6); display: flex; flex-direction: column; gap: 8px; }
.branches img { width: 96px; height: 96px; margin: 0 auto; object-fit: contain; }
.branches p { font-size: 14px; color: var(--muted); line-height: 1.5; flex: 1; }
.links { display: grid; gap: 6px; }
.links a { font-family: var(--display); font-weight: 700; font-size: 15px; text-decoration: none; padding: 7px 10px; border-radius: 999px; background: rgba(63, 174, 73, .12); color: var(--green-d); }
.links a:nth-child(2) { background: rgba(245, 130, 31, .13); color: #c75d06; } .links a:nth-child(3) { background: rgba(107, 45, 144, .1); color: var(--purple); }
.careers { display: flex; gap: 20px; align-items: center; margin-top: 22px; background: linear-gradient(135deg, #f3fbef, #fff6e6); border-radius: 22px; padding: 18px 22px; }
.careers img { width: 78px; height: auto; flex: none; }
.careers div > * + * { margin-top: 8px; } .careers p { font-size: 15.5px; color: var(--muted); }

/* ---------- footer ---------- */
.foot { position: relative; background: rgba(255, 255, 255, .92); backdrop-filter: blur(14px); text-align: center; padding: 34px 18px 28px; display: grid; gap: 14px; justify-items: center; border-radius: 40px 40px 0 0; }
.foot img { height: 76px; width: auto; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.foot nav a { font-family: var(--display); font-weight: 700; text-decoration: none; padding: 6px 16px; border-radius: 999px; background: rgba(107, 45, 144, .08); }
.foot p { font-size: 14px; color: var(--muted); }

/* ---------- extras ---------- */
#popCount { position: fixed; bottom: 18px; inset-inline-end: 18px; z-index: 40; background: var(--glass); backdrop-filter: blur(10px); border-radius: 999px; padding: 8px 18px; font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--purple); box-shadow: 0 10px 26px -14px rgba(60, 40, 110, .6); }
#popCount.bump { animation: bump .4s cubic-bezier(.2, 1.8, .4, 1); }
@keyframes bump { 40% { transform: scale(1.3) rotate(-6deg); } }
.modal { position: fixed; inset: 0; z-index: 90; background: rgba(44, 35, 64, .72); backdrop-filter: blur(8px); display: grid; place-items: center; padding: 18px; }
.modal[hidden] { display: none; }
.modal-box { position: relative; width: min(100%, 980px); background: #000; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.modal-box video { width: 100%; max-height: 82vh; display: block; }
.modal-close { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; color: var(--purple); font-size: 26px; line-height: 1; cursor: pointer; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav { position: fixed; inset: 78px 16px auto 16px; flex-direction: column; background: #fff; border-radius: 26px; padding: 12px; box-shadow: 0 24px 60px -20px rgba(60, 40, 110, .55); display: none; }
  .nav.open { display: flex; }
  .nav a { font-size: 19px; padding: 11px 18px; }
  .burger { display: flex; }
  .branches { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  main > section { min-height: auto; padding: 46vh 14px 12vh; align-items: flex-start; }
  .hero { padding: 110px 18px 70px; min-height: 100svh; justify-content: flex-start; }
  .card { background: rgba(255, 255, 255, .93); }
  .grid2, .enrol, .pane, .camps { grid-template-columns: 1fr; }
  .rooms { grid-template-columns: repeat(2, 1fr); }
  .pane img { height: 200px; }
  .brand img { height: 44px; }
  .top { inset: 8px 8px auto 8px; padding: 6px 8px 6px 12px; gap: 8px; }
  .pill { padding: 8px 13px; font-size: 14px; }
  .facts li { padding: 8px 14px; } .facts b { font-size: 20px; }
  .careers { flex-direction: column; text-align: center; }
  .hint { position: static; margin-top: 26px; width: 100%; }
}
@media (max-width: 480px) {
  .branches, .ticks.cols, .form .row { grid-template-columns: 1fr; }
  .top-actions .pill.solid { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
