/* ==========================================================
   Green Minds — Cinematic Emerald Theme
   Base colour: #0B2E22  ·  Dark / Light  ·  RTL / LTR
   ========================================================== */

/* ---------- Tokens ---------- */
:root {
  --base: #0B2E22;
  --bg: #0B2E22;
  --bg-deep: #06180F;
  --bg-lift: #124D39;
  --surface: rgba(255, 255, 255, .045);
  --surface-strong: rgba(255, 255, 255, .08);
  --text: #EAF3EC;
  --muted: #9CB9A9;
  --heading: #FFFFFF;
  --gold: #E0BC6B;
  --gold-soft: rgba(224, 188, 107, .16);
  --mint: #5FE3A8;
  --mint-soft: rgba(95, 227, 168, .16);
  --line: rgba(224, 188, 107, .2);
  --line-soft: rgba(255, 255, 255, .08);
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, .65);
  --nav-bg: rgba(8, 32, 23, .72);
  --hover-glow: rgba(95, 227, 168, .22);
  --badge-bg: #F1ECDC;
  --grad: linear-gradient(-45deg, #0B2E22, #06180F, #124D39, #0B2E22, #0E3B2C);
  --gold-text: linear-gradient(90deg, #E0BC6B, #FFF0C2, #5FE3A8, #E0BC6B);
  --font-head: 'Playfair Display', 'El Messiri', serif;
  --font-body: 'Inter', 'Tajawal', system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --nav-h: 76px;
}

:root[data-theme="light"] {
  --bg: #F3F0E4;
  --bg-deep: #E6E8D6;
  --bg-lift: #FBF9F0;
  --surface: rgba(255, 255, 255, .72);
  --surface-strong: rgba(255, 255, 255, .95);
  --text: #1C3A2E;
  --muted: #55705F;
  --heading: #0B2E22;
  --gold: #9A7122;
  --gold-soft: rgba(154, 113, 34, .12);
  --mint: #1E8A5A;
  --mint-soft: rgba(30, 138, 90, .12);
  --line: rgba(11, 46, 34, .14);
  --line-soft: rgba(11, 46, 34, .08);
  --shadow: 0 22px 50px -24px rgba(11, 46, 34, .35);
  --nav-bg: rgba(243, 240, 228, .8);
  --hover-glow: rgba(30, 138, 90, .18);
  --badge-bg: #FFFFFF;
  --grad: linear-gradient(-45deg, #F3F0E4, #E3ECD8, #FBF9F0, #DCE8D2, #F3F0E4);
  --gold-text: linear-gradient(90deg, #0B2E22, #1E8A5A, #9A7122, #0B2E22);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.75;
  overflow-x: hidden;
  transition: background-color .5s ease, color .5s ease;
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body { font-family: 'Tajawal', 'Inter', system-ui, sans-serif; font-size: 17px; }
html[lang="ar"] .eyebrow, html[lang="ar"] .btn, html[lang="ar"] .nav a { letter-spacing: 0 !important; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--heading); line-height: 1.2; margin: 0; font-weight: 700; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { font-family: 'El Messiri', 'Tajawal', serif; line-height: 1.35; }
p { margin: 0; }
::selection { background: var(--mint); color: #06180F; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--gold), var(--mint)); border-radius: 10px; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }

.shell { width: min(1180px, 100% - 40px); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 130px) 0; position: relative; }
.section-alt { background: var(--grad); background-size: 400% 400%; animation: flow 18s ease infinite; border-block: 1px solid var(--line-soft); }

/* ---------- Animated gradient (cinematic) ---------- */
@keyframes flow { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }
.animated-bg { background: var(--grad); background-size: 400% 400%; animation: flow 14s ease infinite; }
.gold-glow {
  background: var(--gold-text); background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  animation: flow 6s linear infinite;
}

/* ---------- Loader ---------- */
#loader { position: fixed; inset: 0; z-index: 9999; background: var(--bg-deep); display: grid; place-items: center; transition: opacity .9s ease, visibility .9s; }
#loader.done { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; }
.loader-logo { width: 124px; height: 124px; border-radius: 50%; object-fit: cover; margin: 0 auto 22px; border: 2px solid var(--gold); box-shadow: 0 0 0 8px var(--gold-soft), 0 0 60px var(--hover-glow); animation: pulse 2s ease-in-out infinite; }
.loader-title { font-family: var(--font-head); font-size: 2rem; color: var(--gold); letter-spacing: .3em; text-transform: uppercase; }
.loader-bar { width: 190px; height: 2px; margin: 24px auto 0; background: var(--line); overflow: hidden; border-radius: 2px; }
.loader-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--mint)); box-shadow: 0 0 12px var(--mint); animation: load 1.6s var(--ease) forwards; }
@keyframes load { to { width: 100%; } }
@keyframes pulse { 50% { transform: scale(1.05); } }

/* ---------- Cursor glow + canvas ---------- */
#fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
:root[data-theme="light"] body.pointer-live main, .site-footer { position: relative; z-index: 2; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 1000; height: var(--nav-h);
  display: flex; align-items: center;
  background: var(--nav-bg); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line-soft); transition: height .4s var(--ease), background .4s, box-shadow .4s;
}
.nav.scrolled { height: 62px; box-shadow: 0 10px 40px -20px rgba(0, 0, 0, .55); border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: min(1280px, 100% - 32px); margin-inline: auto; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--gold); transition: transform .5s var(--ease), box-shadow .4s; }
.brand:hover img { transform: rotate(-8deg) scale(1.08); box-shadow: 0 0 0 5px var(--gold-soft), 0 0 22px var(--hover-glow); }
.brand b { display: block; font-family: var(--font-head); font-size: 1.15rem; color: var(--heading); line-height: 1.1; }
html[lang="ar"] .brand b { font-family: 'El Messiri', serif; font-size: 1.3rem; }
.brand small { display: block; font-size: .62rem; letter-spacing: .32em; color: var(--gold); font-weight: 600; }
.menu { display: flex; align-items: center; gap: 4px; }
.menu a {
  position: relative; padding: 8px 14px; font-size: .86rem; font-weight: 600; color: var(--muted);
  transition: color .3s; white-space: nowrap;
}
.menu a::after { content: ''; position: absolute; inset-inline: 50%; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--gold), var(--mint)); box-shadow: 0 0 10px var(--mint); transition: inset-inline .4s var(--ease); border-radius: 2px; }
.menu a:hover, .menu a.active { color: var(--heading); }
.menu a:hover::after, .menu a.active::after { inset-inline: 14px; }
.tools { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); color: var(--gold); border-radius: 50%;
  transition: all .35s var(--ease); font: inherit;
}
.icon-btn:hover { background: var(--gold); color: #06180F; transform: translateY(-2px) rotate(15deg); box-shadow: 0 8px 22px -6px var(--gold); }
.icon-btn svg { width: 18px; height: 18px; }
.lang-btn { width: auto; padding-inline: 14px; border-radius: 99px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; }
.lang-btn:hover { transform: translateY(-2px); }
#theme-btn .moon { display: none; }
:root[data-theme="light"] #theme-btn .moon { display: block; }
:root[data-theme="light"] #theme-btn .sun { display: none; }


/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px; overflow: hidden;
  padding: 15px 30px; border-radius: 99px; font-weight: 700; font-size: .92rem; letter-spacing: .02em; cursor: pointer; border: 1px solid transparent;
  transition: transform .4s var(--ease), box-shadow .4s, color .3s, background .3s;
}
.btn::before { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn:hover::before { transform: translateX(120%); }
.btn:hover { transform: translateY(-4px); }
.btn-gold { background: linear-gradient(135deg, #F1D68E, #D4A94A); color: #0B2E22; box-shadow: 0 10px 30px -10px rgba(224, 188, 107, .7); }
.btn-gold:hover { box-shadow: 0 18px 40px -10px rgba(224, 188, 107, .95), 0 0 0 4px var(--gold-soft); }
:root[data-theme="light"] .btn-gold { background: linear-gradient(135deg, #0B2E22, #1B6E4B); color: #fff; box-shadow: 0 10px 30px -10px rgba(11, 46, 34, .6); }
.btn-ghost { background: var(--surface); color: var(--heading); border-color: var(--line); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--mint); color: var(--mint); box-shadow: 0 14px 34px -12px var(--hover-glow), inset 0 0 0 1px var(--mint); }
.arr { width: 18px; height: 18px; transition: transform .4s var(--ease); }
[dir="rtl"] .arr { transform: scaleX(-1); }
.btn:hover .arr { transform: translateX(5px); }
[dir="rtl"] .btn:hover .arr { transform: scaleX(-1) translateX(5px); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 40px) 0 80px; overflow: hidden; background: var(--grad); background-size: 400% 400%; animation: flow 14s ease infinite; }
.hero::before, .hero::after { content: ''; position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: 0; }
.hero::before { width: 520px; height: 520px; background: var(--mint-soft); top: -140px; inset-inline-start: -120px; animation: drift 16s ease-in-out infinite alternate; }
.hero::after { width: 460px; height: 460px; background: var(--gold-soft); bottom: -160px; inset-inline-end: -100px; animation: drift 20s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(60px, 50px) scale(1.15); } }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: .74rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.eyebrow::before { content: ''; width: 36px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
[dir="rtl"] .eyebrow::before { background: linear-gradient(270deg, var(--gold), transparent); }
.hero h1 { font-size: clamp(3.4rem, 8.5vw, 7rem); margin: 18px 0 8px; font-weight: 900; line-height: 1.05; }
.hero h2 { font-size: clamp(1.15rem, 2.4vw, 1.7rem); font-weight: 500; color: var(--text); opacity: .92; margin-bottom: 20px; }
.hero p.lead { max-width: 560px; color: var(--muted); font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 44px; }
.org-chip { display: inline-flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 99px; backdrop-filter: blur(10px); transition: all .4s var(--ease); font-size: .8rem; font-weight: 600; color: var(--muted); }
[dir="rtl"] .org-chip { padding: 8px 8px 8px 18px; }
.org-chip img { width: 38px; height: 38px; border-radius: 50%; transition: transform .6s var(--ease); }
.org-chip:hover { border-color: var(--mint); color: var(--heading); transform: translateY(-4px); box-shadow: 0 14px 30px -12px var(--hover-glow); }
.org-chip:hover img { transform: rotate(360deg); }

/* Orbit logo */
.orbit-wrap { position: relative; width: min(100%, 470px); aspect-ratio: 1; margin-inline: auto; display: grid; place-items: center; }
.orbit-wrap::before { content: ''; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, var(--hover-glow), transparent 70%); animation: pulse 5s ease-in-out infinite; }
.orbit-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed var(--line); animation: spin 70s linear infinite; }
.orbit-ring.r2 { inset: 9%; border-style: solid; border-color: var(--line-soft); animation-direction: reverse; animation-duration: 90s; }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit-dot { position: absolute; width: 50px; height: 50px; margin: -25px; display: grid; place-items: center; border-radius: 50%; background: var(--badge-bg); border: 1.5px solid var(--gold); color: #0B2E22; box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .6); top: 50%; left: 50%; }
.orbit-dot svg { width: 24px; height: 24px; animation: spin 70s linear infinite reverse; }
.logo-badge { position: relative; width: 66%; aspect-ratio: 1; border-radius: 50%; padding: 6px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7), 0 0 70px -10px var(--hover-glow); isolation: isolate; }
.logo-badge::before { content: ''; position: absolute; inset: 0; border-radius: 50%; z-index: -1; background: conic-gradient(from 0deg, var(--gold), var(--mint), var(--gold), var(--mint), var(--gold)); animation: spin 14s linear infinite; }
.logo-badge > div { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: var(--badge-bg); }
.logo-badge img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }


.scroll-cue { position: absolute; bottom: 28px; inset-inline: 0; margin-inline: auto; width: 26px; height: 44px; border: 1.5px solid var(--line); border-radius: 20px; z-index: 3; }
.scroll-cue::after { content: ''; position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(18px); } }

/* ---------- Section heading ---------- */
.heading { max-width: 700px; margin-bottom: 56px; }
.heading.center { text-align: center; margin-inline: auto; }
.heading h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); margin: 14px 0 14px; }
.heading p { color: var(--muted); }
.split { display: flex; justify-content: space-between; align-items: end; max-width: none; gap: 20px; flex-wrap: wrap; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Spotlight cards ---------- */
.card {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: 22px;
  padding: 34px 30px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: transform .5s var(--ease), border-color .4s, box-shadow .5s;
  --mx: 50%; --my: 50%;
}
.card::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--mx) var(--my), var(--hover-glow), transparent 60%); }
.card::after { content: ''; position: absolute; inset-inline: 30px; bottom: 0; height: 2px; width: 40px; background: linear-gradient(90deg, var(--gold), var(--mint)); transition: width .6s var(--ease); box-shadow: 0 0 12px var(--mint); }
.card:hover { transform: translateY(-10px); border-color: var(--mint); box-shadow: var(--shadow), 0 0 0 1px var(--mint-soft); }
.card:hover::before { opacity: 1; }
.card:hover::after { width: calc(100% - 60px); }
.card h3 { font-size: 1.35rem; margin: 20px 0 10px; transition: color .3s; }
.card:hover h3 { color: var(--mint); }
.card p { color: var(--muted); font-size: .96rem; }
.ico { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 18px; background: var(--gold-soft); border: 1px solid var(--line); color: var(--gold); transition: all .5s var(--ease); }
.ico svg { width: 30px; height: 30px; }
.card:hover .ico { background: linear-gradient(135deg, var(--gold), var(--mint)); color: #06180F; transform: rotate(-8deg) scale(1.1); border-color: transparent; }
.num { position: absolute; top: 18px; inset-inline-end: 24px; font-family: var(--font-head); font-size: 3.6rem; font-weight: 900; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--line); transition: all .5s; }
.card:hover .num { -webkit-text-stroke-color: var(--mint); transform: translateY(-6px); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.about-copy p { font-size: 1.1rem; color: var(--muted); margin-bottom: 28px; }
.about-copy p strong { color: var(--gold); font-weight: 600; }
.vm { display: grid; gap: 22px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 8px; }
.stat { text-align: center; padding: 20px 8px; border: 1px solid var(--line-soft); border-radius: 18px; background: var(--surface); transition: all .4s var(--ease); }
.stat:hover { border-color: var(--gold); transform: translateY(-5px); box-shadow: 0 14px 30px -14px var(--gold-soft); }
.stat b { display: block; font-family: var(--font-head); font-size: 2.6rem; font-weight: 900; line-height: 1; }
.stat span { font-size: .8rem; color: var(--muted); font-weight: 600; }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.pillars .card { grid-column: span 2; }
.pillars .card:nth-child(4) { grid-column: 2 / span 2; }
.pillars .card:nth-child(5) { grid-column: 4 / span 2; }
.footnote { margin-top: 34px; text-align: center; color: var(--muted); font-size: .88rem; }

/* ---------- Activities ---------- */
.acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.act { padding: 0; }
.act-top { height: 150px; display: grid; place-items: center; background: linear-gradient(135deg, var(--bg-lift), var(--bg-deep)); position: relative; overflow: hidden; border-bottom: 1px solid var(--line-soft); }
:root[data-theme="light"] .act-top { background: linear-gradient(135deg, #DDE9D3, #F7F3E4); }
.act-top::before { content: ''; position: absolute; width: 180px; height: 180px; border-radius: 50%; border: 1px dashed var(--line); transition: transform 1s var(--ease); }
.act:hover .act-top::before { transform: rotate(90deg) scale(1.25); border-color: var(--mint); }
.act-top svg { width: 54px; height: 54px; color: var(--gold); position: relative; transition: transform .6s var(--ease), color .3s; }
.act:hover .act-top svg { transform: scale(1.2) rotate(-6deg); color: var(--mint); }
.act-body { padding: 26px 26px 34px; }
.tag { display: inline-block; padding: 4px 12px; border-radius: 99px; font-size: .7rem; font-weight: 700; letter-spacing: .08em; background: var(--gold-soft); color: var(--gold); border: 1px solid var(--line); }
.act-body h3 { margin: 14px 0 8px; font-size: 1.2rem; }
.act::after { inset-inline: 26px; }

/* ---------- Supervisors ---------- */
.sups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.sup { text-align: center; padding: 0 0 34px; cursor: pointer; }
.sup-photo { position: relative; aspect-ratio: 1; overflow: hidden; margin-bottom: 26px; }
.sup-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; filter: grayscale(.45) contrast(1.02); transition: transform 1.1s var(--ease), filter .6s; }
.sup-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 0%, transparent 45%); opacity: .8; transition: opacity .5s; }
:root[data-theme="light"] .sup-photo::after { background: linear-gradient(to top, #F3F0E4 0%, transparent 40%); opacity: .55; }
.sup:hover .sup-photo img { transform: scale(1.1); filter: grayscale(0) contrast(1.05); }
.sup:hover .sup-photo::after { opacity: .35; }
.sup .zoom { position: absolute; z-index: 2; top: 16px; inset-inline-end: 16px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(6, 24, 15, .7); backdrop-filter: blur(8px); color: var(--gold); border: 1px solid var(--line); opacity: 0; transform: scale(.6); transition: all .4s var(--ease); }
.sup:hover .zoom { opacity: 1; transform: none; }
.sup .zoom svg { width: 18px; height: 18px; }
.sup h3 { font-size: 1.4rem; margin: 0 22px 6px; }
.sup .role { font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
html[lang="ar"] .sup .role { letter-spacing: 0; font-size: .9rem; }
.sup .fac { margin-top: 6px; font-size: .85rem; color: var(--muted); }
.sup::after { inset-inline: 50%; margin-inline-start: -20px; }
.sup:hover::after { width: calc(100% - 60px); inset-inline: 30px; margin: 0; }

/* ---------- Join / TikTok ---------- */
.join { position: relative; overflow: hidden; text-align: center; padding: clamp(48px, 7vw, 90px) 30px; border-radius: 34px; border: 1px solid var(--line); background: var(--grad); background-size: 400% 400%; animation: flow 12s ease infinite; box-shadow: var(--shadow); }
.join::before { content: ''; position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent, var(--mint-soft), transparent 30%, var(--gold-soft), transparent 60%); animation: spin 20s linear infinite; }
.join > * { position: relative; }
.join h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); margin: 14px 0 14px; }
.join p { max-width: 560px; margin: 0 auto 32px; color: var(--muted); }
.tiktok-ico { width: 20px; height: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--line); padding: 64px 0 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.foot-grid h4 { font-size: 1rem; color: var(--gold); margin-bottom: 18px; font-family: var(--font-body); letter-spacing: .12em; text-transform: uppercase; }
html[lang="ar"] .foot-grid h4 { font-family: 'El Messiri', serif; letter-spacing: 0; font-size: 1.15rem; }
.foot-grid p { color: var(--muted); max-width: 380px; margin-top: 14px; font-size: .94rem; }
.foot-grid a.fl { display: block; padding: 5px 0; color: var(--muted); font-size: .94rem; transition: all .3s; }
.foot-grid a.fl:hover { color: var(--mint); transform: translateX(6px); }
[dir="rtl"] .foot-grid a.fl:hover { transform: translateX(-6px); }
.social { display: flex; gap: 10px; margin-top: 8px; }
.social a { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--gold); transition: all .4s var(--ease); }
.social a:hover { background: var(--gold); color: #06180F; transform: translateY(-5px); box-shadow: 0 12px 26px -8px var(--gold); }
.social svg { width: 20px; height: 20px; }
.foot-bottom { border-top: 1px solid var(--line-soft); padding: 22px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: .84rem; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; background: rgba(3, 14, 9, .82); backdrop-filter: blur(14px); opacity: 0; visibility: hidden; transition: all .4s; padding: 20px; }
.lightbox.open { opacity: 1; visibility: visible; }
.lb-card { width: min(440px, 100%); border-radius: 26px; overflow: hidden; background: var(--bg-lift); border: 2px solid var(--gold); text-align: center; transform: scale(.88) translateY(20px); transition: transform .5s var(--ease); box-shadow: 0 40px 100px -20px #000, 0 0 60px -10px var(--hover-glow); position: relative; }
.lightbox.open .lb-card { transform: none; }
.lb-card img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center 20%; }
.lb-info { padding: 22px 20px 28px; }
.lb-info h3 { font-size: 1.6rem; margin-bottom: 4px; }
.lb-close { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 2; background: rgba(6, 24, 15, .7); }

/* ---------- Sub-pages ---------- */
.page-hero { padding: calc(var(--nav-h) + 90px) 0 70px; text-align: center; background: var(--grad); background-size: 400% 400%; animation: flow 14s ease infinite; position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin: 14px 0 12px; }
.page-hero p.lead { color: var(--muted); max-width: 580px; margin-inline: auto; }
.block { margin-bottom: 70px; }
.block h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 12px 0 18px; }
.block > p { color: var(--muted); max-width: 760px; font-size: 1.05rem; }
.objectives { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; counter-reset: o; }
.objectives li { counter-increment: o; position: relative; padding: 20px 26px; padding-inline-start: 82px; border: 1px solid var(--line-soft); border-radius: 18px; background: var(--surface); transition: all .45s var(--ease); }
.objectives li::before { content: counter(o, decimal-leading-zero); position: absolute; inset-inline-start: 24px; top: 50%; transform: translateY(-50%); font-family: var(--font-head); font-weight: 900; font-size: 1.7rem; color: var(--gold); transition: color .3s, transform .4s var(--ease); }
.objectives li:hover { border-color: var(--mint); transform: translateX(10px); background: var(--mint-soft); }
[dir="rtl"] .objectives li:hover { transform: translateX(-10px); }
.objectives li:hover::before { color: var(--mint); transform: translateY(-50%) scale(1.2); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 0 0 70px; }
.acts.big { grid-template-columns: repeat(3, 1fr); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-grid { text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .hero-actions, .hero-chips { justify-content: center; }
  .eyebrow::before { display: none; }
  .orbit-wrap { width: min(80%, 400px); }
  .hero-visual { order: -1; }
  .acts { grid-template-columns: repeat(2, 1fr); }
  .sups { grid-template-columns: repeat(2, 1fr); }
  .menu { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .pillars { grid-template-columns: 1fr; }
  .pillars .card, .pillars .card:nth-child(4), .pillars .card:nth-child(5) { grid-column: auto; }
  .acts, .acts.big, .sups, .two { grid-template-columns: 1fr; }
  .brand small { display: none; }
  .stats { gap: 8px; }
  .stat b { font-size: 2rem; }
  .foot-grid { grid-template-columns: 1fr; }
  .tools { gap: 6px; }
  .scroll-cue { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Side drawer ---------- */
.drawer-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(3, 14, 9, .7); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: all .45s var(--ease); }
.drawer-overlay.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 2100; width: min(360px, 88vw);
  display: flex; flex-direction: column; padding: 22px 26px 28px; overflow-y: auto;
  background: var(--grad); background-size: 400% 400%; animation: flow 14s ease infinite;
  border-inline-end: 2px solid var(--gold); box-shadow: 30px 0 80px -20px rgba(0,0,0,.6);
  transform: translateX(-105%); transition: transform .65s cubic-bezier(.85, 0, .15, 1); visibility: hidden;
}
:root[data-theme="light"] .drawer { background: var(--bg); }
[dir="rtl"] .drawer { transform: translateX(105%); box-shadow: -30px 0 80px -20px rgba(0,0,0,.6); }
.drawer.open { transform: none !important; visibility: visible; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.drawer-head .icon-btn:hover { transform: rotate(90deg); }
.drawer-links { display: flex; flex-direction: column; gap: 6px; padding: 26px 0; flex: 1; }
.drawer-links a {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 15px 16px; border-radius: 16px; font-weight: 700; font-size: 1.05rem; color: var(--text);
  border: 1px solid transparent; opacity: 0; transform: translateX(-24px); transition: opacity .5s var(--ease), transform .5s var(--ease), background .3s, border-color .3s, color .3s, padding .4s var(--ease);
}
[dir="rtl"] .drawer-links a { transform: translateX(24px); }
.drawer.open .drawer-links a { opacity: 1; transform: none; transition-delay: calc(.25s + var(--i) * .07s), calc(.25s + var(--i) * .07s), 0s, 0s, 0s, 0s; }
.drawer-links a:hover { background: var(--mint-soft); border-color: var(--mint); color: var(--mint); padding-inline-start: 24px; box-shadow: 0 12px 28px -14px var(--hover-glow); }
.di { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--gold-soft); color: var(--gold); transition: all .4s var(--ease); }
.di svg { width: 20px; height: 20px; }
.drawer-links a:hover .di { background: linear-gradient(135deg, var(--gold), var(--mint)); color: #06180F; transform: rotate(-8deg) scale(1.1); }
.dn { margin-inline-start: auto; font-family: var(--font-head); font-weight: 900; font-size: 1rem; color: transparent; -webkit-text-stroke: 1px var(--line); }
.drawer-links a:hover .dn { -webkit-text-stroke-color: var(--mint); }
.drawer-foot .btn { width: 100%; justify-content: center; }

/* ---------- SDG grid ---------- */
.sdg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sdg { cursor: pointer; padding: 28px 24px 30px; --c: var(--gold); }
.sdg::after { background: var(--c); box-shadow: 0 0 12px var(--c); }
.sdg:hover { border-color: var(--c); box-shadow: var(--shadow), 0 0 40px -12px var(--c); }
.sdg::before { background: radial-gradient(380px circle at var(--mx) var(--my), color-mix(in srgb, var(--c) 28%, transparent), transparent 60%); }
.sdg-n { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; background: var(--c); color: #fff; font-family: var(--font-head); font-weight: 900; font-size: 1.4rem; box-shadow: 0 12px 26px -10px var(--c); transition: transform .5s var(--ease), border-radius .5s var(--ease); text-shadow: 0 1px 4px rgba(0,0,0,.3); }
.sdg:hover .sdg-n { transform: rotate(-8deg) scale(1.12); border-radius: 50%; }
.sdg:hover h3 { color: var(--heading); }
.sdg h3 { font-size: 1.12rem; min-height: 2.7em; }
.sdg p { font-size: .88rem; min-height: 3.6em; }
.sdg .more { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: .82rem; font-weight: 700; color: var(--gold); transition: gap .3s, color .3s; }
.sdg:hover .more { gap: 14px; color: var(--c); }
.sdg-modal { border-color: var(--gold); }
.sdg-modal-top { height: 150px; display: grid; place-items: center; background: var(--c, var(--gold)); position: relative; overflow: hidden; }
.sdg-modal-top::before { content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%; border: 1px dashed rgba(255,255,255,.5); animation: spin 30s linear infinite; }
.sdg-big { font-family: var(--font-head); font-weight: 900; font-size: 5rem; color: #fff; line-height: 1; text-shadow: 0 4px 20px rgba(0,0,0,.25); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.contact-card { display: block; text-align: start; }
.contact-card p { margin-top: 4px; font-weight: 600; color: var(--text); word-break: break-all; unicode-bidi: plaintext; }
.contact-card p.cfg-text { color: var(--muted); }
.is-soon { opacity: .55; cursor: not-allowed; }
.is-soon.card:hover { transform: none; box-shadow: none; border-color: var(--line-soft); }
.is-soon.card:hover::before { opacity: 0; }
.is-soon.card:hover .ico { background: var(--gold-soft); color: var(--gold); transform: none; }
.soon-tag { font-size: .66rem; padding: 2px 8px; border-radius: 99px; background: rgba(0,0,0,.18); font-weight: 700; }

@media (max-width: 1020px) { .sdg-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .sdg-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .sdg { padding: 20px 16px 22px; } .sdg p { display: none; } .sdg h3 { min-height: 3.2em; font-size: 1rem; } }
@media (max-width: 420px) { .sdg-grid { grid-template-columns: 1fr; } .sdg p { display: block; } }

.btn { white-space: nowrap; }
.contact-grid { grid-template-columns: repeat(6, 1fr); }
.contact-grid .contact-card { grid-column: span 2; }
.contact-grid .contact-card:nth-child(n+4) { grid-column: span 3; }
@media (min-width: 1021px) { .sdg:last-child { grid-column: 2 / span 2; } }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } .contact-grid .contact-card, .contact-grid .contact-card:nth-child(n+4) { grid-column: auto; } }

/* ---------- Footer extras ---------- */
.foot-bottom .dev { font-weight: 600; color: var(--gold); }
.social a.is-soon { opacity: .45; cursor: not-allowed; }
.social a.is-soon:hover { background: transparent; color: var(--gold); transform: none; box-shadow: none; }

/* ---------- Contact: 2 cards ---------- */
.contact-grid { grid-template-columns: repeat(2, 1fr) !important; max-width: 860px; margin-inline: auto; }
.contact-grid .contact-card, .contact-grid .contact-card:nth-child(n+4) { grid-column: auto !important; }
@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr !important; } }

/* ---------- Linktree ---------- */
.linktree { max-width: 560px; margin-inline: auto; display: flex; flex-direction: column; gap: 14px; }
.lt-head { text-align: center; margin-bottom: 14px; }
.lt-head img { width: 96px; height: 96px; margin: 0 auto 16px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); box-shadow: 0 0 0 7px var(--gold-soft), 0 0 50px -8px var(--hover-glow); }
.lt-head h2 { font-size: 2rem; margin-bottom: 6px; }
.lt-head p { color: var(--muted); }
.lt-link { position: relative; overflow: hidden; display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); backdrop-filter: blur(10px); transition: transform .45s var(--ease), border-color .3s, box-shadow .45s, background .3s; }
.lt-link::before { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, var(--hover-glow) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.lt-link:hover::before { transform: translateX(120%); }
.lt-link:hover { transform: translateY(-4px) scale(1.02); border-color: var(--mint); box-shadow: 0 18px 40px -16px var(--hover-glow); }
.lt-ico { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 15px; background: var(--gold-soft); color: var(--gold); border: 1px solid var(--line); transition: all .5s var(--ease); flex-shrink: 0; }
.lt-ico svg { width: 24px; height: 24px; }
.lt-link:hover .lt-ico { background: linear-gradient(135deg, var(--gold), var(--mint)); color: #06180F; transform: rotate(-8deg) scale(1.08); border-color: transparent; }
.lt-txt { display: flex; flex-direction: column; flex: 1; line-height: 1.35; }
.lt-txt b { font-family: var(--font-body); color: var(--heading); font-size: 1.05rem; }
.lt-txt small { color: var(--muted); font-size: .84rem; }
.lt-go { color: var(--gold); display: grid; place-items: center; transition: transform .4s var(--ease), color .3s; }
.lt-link:hover .lt-go { color: var(--mint); transform: translateX(4px); }
[dir="rtl"] .lt-link:hover .lt-go { transform: translateX(-4px); }
.lt-go .arr { transform: none; }
[dir="rtl"] .lt-go .arr { transform: scaleX(-1); }
.lt-link.is-soon { opacity: .55; cursor: not-allowed; }
.lt-link.is-soon:hover { transform: none; border-color: var(--line); box-shadow: none; }
.lt-link.is-soon:hover::before { transform: translateX(-120%); }
.lt-link.is-soon:hover .lt-ico { background: var(--gold-soft); color: var(--gold); transform: none; }
.lt-link.is-soon::after { content: attr(data-soon); position: absolute; inset-inline-end: 56px; top: 50%; transform: translateY(-50%); font-size: .68rem; font-weight: 700; padding: 2px 10px; border-radius: 99px; background: rgba(0,0,0,.2); }

.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn .arr { width: 18px; height: 18px; }

/* ---------- Footer bottom: 3 parts ---------- */
.foot-bottom { display: grid !important; grid-template-columns: 1fr auto; align-items: center; gap: 16px; }
.foot-bottom > :first-child { justify-self: start; }
.foot-bottom .dev { justify-self: center; text-align: center; }
.foot-bottom > :last-child { justify-self: end; text-align: end; }
@media (max-width: 820px) { .foot-bottom { grid-template-columns: 1fr !important; text-align: center; } .foot-bottom > * { justify-self: center !important; text-align: center !important; } }
.num, .sdg-n, .stat b { font-variant-numeric: tabular-nums; }

/* ---------- Sponsor (faculty) ---------- */
.sponsor { display: inline-flex; align-items: center; gap: 16px; }
.sponsor-logo { position: relative; width: 74px; height: 74px; border-radius: 50%; flex-shrink: 0; display: block; background: #fff; box-shadow: 0 0 0 2px var(--gold), 0 0 22px 2px rgba(224, 188, 107, .55), 0 0 50px 6px var(--hover-glow); animation: sponsorGlow 3.2s ease-in-out infinite; transition: transform .5s var(--ease); }
.sponsor-logo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
@keyframes sponsorGlow { 50% { box-shadow: 0 0 0 2px var(--mint), 0 0 34px 6px rgba(95, 227, 168, .6), 0 0 70px 12px var(--hover-glow); } }
.sponsor:hover .sponsor-logo { transform: scale(1.1) rotate(-4deg); }
.sponsor-txt { display: flex; flex-direction: column; line-height: 1.4; text-align: start; }
.sponsor-txt small { font-size: .74rem; font-weight: 700; letter-spacing: .14em; color: var(--gold); text-transform: uppercase; }
html[lang="ar"] .sponsor-txt small { letter-spacing: 0; font-size: .85rem; text-transform: none; }
.sponsor-txt b { font-size: 1rem; color: var(--heading); font-weight: 700; transition: color .3s; }
.sponsor:hover .sponsor-txt b { color: var(--mint); }
@media (max-width: 480px) { .sponsor-logo { width: 62px; height: 62px; } .sponsor-txt b { font-size: .92rem; } }

/* ---------- Sponsor: bigger + gold-only glow ---------- */
.sponsor { gap: 20px; }
.sponsor-logo { width: 104px; height: 104px; box-shadow: 0 0 0 2px var(--gold), 0 0 26px 3px rgba(224, 188, 107, .6), 0 0 60px 8px rgba(224, 188, 107, .28); animation: sponsorGold 3s ease-in-out infinite; }
@keyframes sponsorGold { 50% { box-shadow: 0 0 0 3px #F3D58A, 0 0 42px 8px rgba(243, 213, 138, .85), 0 0 90px 18px rgba(224, 188, 107, .38); } }
.sponsor-txt b { font-size: 1.12rem; }
.sponsor:hover .sponsor-txt b { color: var(--gold); }
@media (max-width: 480px) { .sponsor-logo { width: 84px; height: 84px; } .sponsor-txt b { font-size: .98rem; } }

/* ---------- Latest news / الأخبار ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.news-card { padding: 0; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; }
.news-media { position: relative; aspect-ratio: 16/10; background: linear-gradient(135deg, var(--bg-lift), var(--bg-deep)); overflow: hidden; border-bottom: 1px solid var(--line-soft); }
:root[data-theme="light"] .news-media { background: linear-gradient(135deg, #DDE9D3, #F7F3E4); }
.news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); display: block; }
.news-card:hover .news-media img { transform: scale(1.07); }
.news-media.no-img { display: grid; place-items: center; }
.news-media.no-img svg { width: 54px; height: 54px; color: var(--gold); }
.news-tag { position: absolute; top: 14px; inset-inline-start: 14px; padding: 5px 14px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--gold); color: #06180F; }
.news-tag.static { position: static; display: inline-block; margin-bottom: 10px; }
.news-count { position: absolute; bottom: 12px; inset-inline-end: 12px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: rgba(6,24,15,.75); color: #fff; }
.news-body { padding: 22px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.news-date { margin: 0; font-size: .82rem; color: var(--gold); font-weight: 600; }
.news-sample { font-style: normal; color: var(--muted); }
.news-body h3 { margin: 8px 0 8px; font-size: 1.15rem; line-height: 1.5; }
.news-excerpt { margin: 0 0 14px; }
.news-more { margin-top: auto; color: var(--mint); font-weight: 700; font-size: .9rem; }
.news-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 30px 0; }
.news-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; }
.news-chip { font: inherit; font-size: .92rem; font-weight: 600; padding: 8px 20px; border-radius: 999px; cursor: pointer; border: 1px solid var(--line); background: var(--surface); color: var(--text); transition: all .3s; }
.news-chip:hover { border-color: var(--mint); color: var(--mint); }
.news-chip.on { background: linear-gradient(135deg, var(--gold), var(--mint)); color: #06180F; border-color: transparent; }
.news-modal { position: fixed; inset: 0; z-index: 3000; display: none; align-items: center; justify-content: center; padding: 32px 20px; background: rgba(3,12,8,.82); backdrop-filter: blur(6px); }
.news-modal.open { display: flex; }
.nm-card { position: relative; width: min(860px, 100%); max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); overflow: auto; border-radius: 22px; background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow); }
.nm-close { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; background: rgba(6,24,15,.7); color: #fff; }
.nm-main { width: 100%; max-height: 55vh; object-fit: contain; background: #06180F; display: block; }
.nm-thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; background: var(--bg-deep); }
.nm-thumbs img { height: 62px; width: 90px; object-fit: cover; border-radius: 8px; cursor: pointer; opacity: .6; border: 2px solid transparent; flex: none; }
.nm-thumbs img.on, .nm-thumbs img:hover { opacity: 1; border-color: var(--gold); }
.nm-content { padding: 26px 30px 34px; }
.nm-content h3 { margin: 6px 0 16px; font-size: 1.5rem; line-height: 1.5; }
.nm-content p { color: var(--text); line-height: 2; }
.nm-content .news-date { color: var(--gold); }

.nm-main { max-height: 50vh; }
.nm-content { padding: 28px 32px 36px; }
@media (max-width: 600px) { .news-modal { padding: 16px 12px; } .nm-card { max-height: calc(100dvh - 32px); border-radius: 18px; } .nm-content { padding: 22px 20px 30px; } .nm-main { max-height: 40vh; } }

/* Demo notice */
.demo-badge { flex: none; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1.5; white-space: nowrap; color: #1a1400; background: linear-gradient(135deg, #f5d36b, #e0a82e); animation: demoPulse 2.6s ease-in-out infinite; }
@keyframes demoPulse { 0%, 100% { opacity: 1; } 50% { opacity: .6; } }
@media (max-width: 640px) { .demo-badge { font-size: 10px; padding: 2px 7px; } }
@media (prefers-reduced-motion: reduce) { .demo-badge { animation: none; } }
