/* ==========================================================
   GLR Education Foundation — stylesheet
   Colours: peacock teal, marigold, leaf green (Indian palette)
   Fonts:   Baloo 2 (headings, supports Hindi) + Mukta (body)
   ========================================================== */

:root {
  --teal: #0F5E6B;
  --teal-deep: #0A3D46;
  --teal-soft: #E6F2F2;
  --gold: #F4A51C;
  --gold-deep: #D98A00;
  --leaf: #3C9D5D;
  --rose: #D6456F;
  --blue: #2B59C3;
  --ink: #1A2B33;
  --muted: #5B6E75;
  --line: #DCE7E8;
  --paper: #FFFFFF;
  --mist: #F5F9F9;

  --f-head: "Baloo 2", "Mukta", system-ui, sans-serif;
  --f-body: "Mukta", "Segoe UI", system-ui, sans-serif;

  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 8px;
  --shadow: 0 14px 40px -18px rgba(10, 61, 70, .35);
  --shadow-lg: 0 30px 60px -25px rgba(10, 61, 70, .45);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
main { overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul, ol { list-style: none; }
input, select, textarea { font: inherit; color: inherit; }
code { background: var(--teal-soft); padding: 1px 6px; border-radius: 4px; font-size: .9em; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }

.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ic--sm { width: 14px; height: 14px; }
svg use { pointer-events: none; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  overflow: hidden;
  isolation: isolate;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), color .3s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn:hover { transform: translateY(-3px); }
.btn .ic { transition: transform .3s var(--ease); }
.btn:hover .ic { transform: translateX(4px); }
.btn--primary { background: var(--teal); color: #fff; box-shadow: 0 10px 24px -10px var(--teal); }
.btn--primary::before { background: var(--teal-deep); }
.btn--primary:hover { box-shadow: 0 16px 30px -12px var(--teal); }
.btn--gold { background: var(--gold); color: var(--ink); box-shadow: 0 10px 24px -12px var(--gold-deep); }
.btn--gold::before { background: var(--ink); }
.btn--gold:hover { color: #fff; }
.btn--ghost { border: 2px solid var(--teal); color: var(--teal); }
.btn--ghost::before { background: var(--teal); }
.btn--ghost:hover { color: #fff; }
.btn--block { width: 100%; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 999;
  display: grid; place-content: center; justify-items: center; gap: 14px;
  background: var(--teal-deep);
  transition: opacity .6s, visibility .6s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader__mark { display: flex; gap: 6px; }
.preloader__mark span {
  font-family: var(--f-head); font-weight: 800; font-size: 54px; color: #fff; line-height: 1;
  animation: bounce 1s var(--ease) infinite alternate;
}
.preloader__mark span:nth-child(2) { animation-delay: .15s; color: var(--gold); }
.preloader__mark span:nth-child(3) { animation-delay: .3s; color: #8FD3A6; }
.preloader__text { color: rgba(255,255,255,.75); letter-spacing: .05em; }
@keyframes bounce { to { transform: translateY(-14px); } }

.scroll-progress {
  position: fixed; top: 0; left: 0; height: 4px; width: 0; z-index: 200;
  background: linear-gradient(90deg, var(--gold), var(--leaf));
}

/* ---------- Top bar ---------- */
.topbar { background: var(--teal-deep); color: rgba(255,255,255,.85); font-size: 14px; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 3px 0; }
.topbar__info { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.topbar__info a, .topbar__badge { display: inline-flex; align-items: center; gap: 7px; transition: color .25s; }
.topbar__info a:hover { color: var(--gold); }
.topbar__info .ic { width: 15px; height: 15px; color: var(--gold); }
.topbar__social { display: flex; gap: 6px; }
.topbar__social a {
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
  transition: background .3s, color .3s, transform .3s var(--ease);
}
.topbar__social a:hover { background: var(--gold); color: var(--ink); transform: translateY(-2px) rotate(-8deg); }
.topbar__social .ic { width: 15px; height: 15px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s;
}
.header.scrolled { box-shadow: 0 8px 30px -18px rgba(10,61,70,.4); border-color: var(--line); }
.header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.logo { display: flex; align-items: center; gap: 10px; }
.logo__mark svg { width:50px; height: 50px; transition: transform .6s var(--ease); margin-left:50px;}
.logo:hover .logo__mark svg { transform: rotate(-12deg) scale(1.06); }
.logo__ring { fill: var(--teal); }
.logo__stem { stroke: #fff; stroke-width: 3; stroke-linecap: round; fill: none; }
.logo__leaf1 { fill: var(--gold); }
.logo__leaf2 { fill: #8FD3A6; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__text strong { font-family: var(--f-head); font-size: 28px; font-weight: 800; color: var(--teal); letter-spacing: .02em; }
.logo__text small { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.logo--light .logo__text strong { color: #fff; }
.logo--light .logo__text small { color: rgba(255,255,255,.7); }
.logo--light .logo__ring { fill: rgba(255,255,255,.12); }

.nav { display: flex; align-items: center; gap: 22px; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 12px; font-weight: 600; font-size: 16px; color: var(--ink);
  transition: color .25s;
}
.nav__link::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 3px; border-radius: 3px;
  background: var(--gold); transform: scaleX(0); transform-origin: center; transition: transform .35s var(--ease);
}
.nav__link:hover, .nav__link.active { color: var(--teal); }
.nav__link:hover::after, .nav__link.active::after { transform: scaleX(1); }
.nav__link .ic { transition: transform .3s; }

.nav__drop { position: relative; }
.mega {
  position: absolute; top: calc(100% + 12px); left: 50%;
  width: 640px; padding: 26px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translate(-50%, 12px);
  transition: opacity .3s, transform .35s var(--ease), visibility .3s;
}
.mega::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.nav__drop:hover .mega, .nav__drop:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav__drop:hover .nav__link .ic { transform: rotate(180deg); }
.mega h4 { font-family: var(--f-head); font-size: 17px; color: var(--teal); margin-bottom: 8px; padding-bottom: 6px; border-bottom: 2px solid var(--teal-soft); }
.mega a {
  display: block; padding: 5px 8px; margin: 0 -8px; border-radius: var(--r-sm); font-size: 15px; color: var(--muted);
  transition: background .25s, color .25s, padding .25s;
}
.mega a:hover { background: var(--teal-soft); color: var(--teal); padding-left: 14px; }
.nav__cta { padding: 11px 22px; }

.burger { display: none; width: 44px; height: 44px; border-radius: 12px; background: var(--teal-soft); position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2.5px; border-radius: 2px; background: var(--teal); transition: transform .35s var(--ease), opacity .25s, top .35s var(--ease); }
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 28px; }
.burger.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 70px 0 110px; background: linear-gradient(180deg, var(--mist), #fff 80%); }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .45; animation: drift 14s ease-in-out infinite alternate; }
.blob--1 { width: 420px; height: 420px; background: #9FD8C9; top: -120px; right: -80px; }
.blob--2 { width: 320px; height: 320px; background: #FFD989; bottom: -80px; left: -100px; animation-delay: -4s; }
.blob--3 { width: 240px; height: 240px; background: #F6B7C8; top: 40%; left: 45%; opacity: .25; animation-delay: -8s; }
@keyframes drift { to { transform: translate(40px, 30px) scale(1.1); } }
.hero__grid { position: absolute; width: 380px; right: 4%; bottom: 6%; fill: var(--teal); opacity: .09; }

.hero__inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.hero__tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 12px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  font-weight: 600; font-size: 15px; color: var(--teal);
  opacity: 0; animation: rise .8s var(--ease) .3s forwards;
}
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--leaf); position: relative; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--leaf); animation: ping 1.6s ease-out infinite; }
@keyframes ping { to { transform: scale(2.8); opacity: 0; } }

.hero__title {
  font-family: var(--f-head); font-weight: 800;
  font-size: clamp(52px, 8.2vw, 104px); line-height: .95; letter-spacing: -.01em;
  margin: 22px 0 22px;
}
.hero__line { display: block; overflow: hidden; padding-bottom: .06em; }
.word { display: inline-block; transform: translateY(110%); animation: wordUp 1s var(--ease) forwards; }
.w1 { color: var(--teal); animation-delay: .45s; }
.w2 { color: var(--gold-deep); animation-delay: .6s; }
.w3 { color: var(--leaf); animation-delay: .75s; }
@keyframes wordUp { to { transform: none; } }
.word { transition: letter-spacing .4s var(--ease); }
.hero__line:hover .word { letter-spacing: .03em; }

.hero__lead { font-size: 19px; color: var(--muted); max-width: 540px; opacity: 0; animation: rise .8s var(--ease) 1s forwards; }
.typer { color: var(--ink); font-weight: 700; border-bottom: 3px solid var(--gold); }
.caret { display: inline-block; width: 2px; height: 1.1em; background: var(--ink); margin-left: 3px; vertical-align: -3px; animation: blink .9s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 26px; opacity: 0; animation: rise .8s var(--ease) 1.15s forwards; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; color: var(--muted); opacity: 0; animation: rise .8s var(--ease) 1.3s forwards; }
.hero__trust li { display: inline-flex; align-items: center; gap: 6px; }
.hero__trust .ic { color: var(--leaf); stroke-width: 3; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* orbit visual */
.hero__visual { position: relative; aspect-ratio: 1; max-width: 500px; width: 100%; justify-self: center; opacity: 0; animation: pop 1.2s var(--ease) .6s forwards; }
@keyframes pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
.orbit { position: absolute; inset: 0; }
.orbit__ring { position: absolute; border-radius: 50%; border: 2px dashed rgba(15,94,107,.25); }
.orbit__ring--1 { inset: 6%; }
.orbit__ring--2 { inset: 24%; border-color: rgba(244,165,28,.4); }
.orbit__core {
  position: absolute; inset: 36%;
  border-radius: 50%; background: radial-gradient(circle at 30% 30%, #178595, var(--teal-deep));
  color: #fff; display: grid; place-content: center; justify-items: center; text-align: center;
  box-shadow: 0 0 0 12px rgba(15,94,107,.08), 0 0 0 26px rgba(15,94,107,.05), var(--shadow-lg);
  transition: transform .5s var(--ease);
}
.orbit__core:hover { transform: scale(1.06); }
.orbit__core svg { width: 42%; fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; }
.orbit__core svg path:nth-child(2) { fill: var(--gold); stroke: var(--gold); }
.orbit__core svg path:nth-child(3) { fill: #8FD3A6; stroke: #8FD3A6; }
.orbit__core strong { font-family: var(--f-head); font-size: clamp(22px, 3vw, 32px); line-height: 1; margin-top: 4px; }
.orbit__core small { font-size: 11px; opacity: .7; }

.orbit__track { position: absolute; border-radius: 50%; animation: spin 40s linear infinite; }
.orbit__track--1 { inset: 6%; }
.orbit__track--2 { inset: 24%; animation-duration: 28s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.chip {
  --size: 64px;
  position: absolute; top: 50%; left: 50%;
  width: var(--size); height: var(--size); margin: calc(var(--size) / -2);
  transform: rotate(var(--a)) translateY(calc(-50cqw)) rotate(calc(-1 * var(--a)));
  display: grid; place-items: center;
}
.orbit__track { container-type: inline-size; }
.chip::before {
  content: ""; position: absolute; inset: 0; border-radius: 18px; background: #fff; box-shadow: var(--shadow);
  animation: counter 40s linear infinite; border: 1px solid var(--line);
}
.chip svg { position: relative; width: 50%; height: 50%; fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: counter 40s linear infinite; }
.chip--sm { --size: 50px; }
.chip--sm::before, .chip--sm svg { animation-duration: 28s; animation-direction: reverse; }
.chip--sm svg { stroke: var(--gold-deep); }
@keyframes counter { to { transform: rotate(-360deg); } }
.orbit:hover .orbit__track, .orbit:hover .chip::before, .orbit:hover .chip svg { animation-play-state: paused; }

.floatcard {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); animation: float 5s ease-in-out infinite;
  transition: transform .3s var(--ease);
}
.floatcard:hover { animation-play-state: paused; transform: scale(1.05); }
.floatcard .ic { width: 38px; height: 38px; padding: 8px; border-radius: 10px; background: var(--teal-soft); color: var(--teal); }
.floatcard strong { display: block; font-size: 15px; line-height: 1.2; }
.floatcard small { color: var(--muted); font-size: 13px; }
.floatcard--a { top: 4%; left: -6%; }
.floatcard--b { bottom: 6%; right: -4%; animation-delay: -2.5s; }
.floatcard--b .ic { background: #E6F4EA; color: var(--leaf); }
@keyframes float { 50% { transform: translateY(-14px); } }

.hero__scroll { position: absolute; bottom: 26px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 2px solid var(--teal); border-radius: 14px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--teal); animation: wheel 1.6s infinite; }
@keyframes wheel { to { transform: translateY(14px); opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee { background: var(--teal); color: #fff; overflow: hidden; padding: 16px 0; position: relative; z-index: 2; }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span { font-family: var(--f-head); font-weight: 700; font-size: 22px; padding: 0 28px; white-space: nowrap; display: inline-flex; align-items: center; gap: 28px; transition: color .3s; }
.marquee span::after { content: "✦"; color: var(--gold); font-size: 16px; }
.marquee span:hover { color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section__head p { color: var(--muted); margin-top: 12px; }
.kicker {
  display: inline-block; font-weight: 700; font-size: 15px; color: var(--gold-deep);
  padding: 4px 14px; border-radius: 999px; background: #FEF3DC; margin-bottom: 14px;
}
.title { font-family: var(--f-head); font-weight: 800; font-size: clamp(32px, 4.4vw, 50px); line-height: 1.08; color: var(--ink); }
.section__head--light .title { color: #fff; }
.section__head--light .kicker { background: rgba(255,255,255,.12); color: var(--gold); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 70px; align-items: center; }
.about__frame { position: relative; }
.about__art {
  border-radius: 200px 200px var(--r-lg) var(--r-lg);
  background: linear-gradient(160deg, var(--teal-soft), #FFF4DD);
  padding: 40px 30px 30px; overflow: hidden;
  transition: transform .6s var(--ease), box-shadow .6s;
}
.about__frame:hover .about__art { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.about__art svg { width: 100%; }
.a-desk { fill: #C9E3E1; } .a-screen { fill: var(--ink); } .a-screen-in { fill: #EAF6F4; }
.a-graph { fill: none; stroke: var(--teal); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 200; stroke-dashoffset: 200; transition: stroke-dashoffset 1.6s var(--ease) .3s; }
.about__visual.in .a-graph { stroke-dashoffset: 0; }
.a-dot { fill: var(--gold); } .a-stand { fill: var(--ink); }
.a-sun { fill: var(--gold); animation: sunpulse 4s ease-in-out infinite; transform-origin: 70px 80px; }
@keyframes sunpulse { 50% { transform: scale(1.12); } }
.a-leaf { fill: var(--leaf); transform-origin: 255px 60px; animation: sway 4s ease-in-out infinite; }
.a-leaf-line { stroke: #fff; stroke-width: 2; fill: none; }
@keyframes sway { 50% { transform: rotate(-10deg); } }
.a-book1 { fill: var(--rose); } .a-book2 { fill: var(--blue); } .a-note { fill: #fff; } .a-note-line { stroke: var(--line); stroke-width: 4; stroke-linecap: round; }
.about__badge {
  position: absolute; right: -20px; bottom: 30px;
  background: var(--gold); color: var(--ink); padding: 18px 22px; border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); max-width: 170px; line-height: 1.2;
  transition: transform .4s var(--ease);
}
.about__badge:hover { transform: rotate(-4deg) scale(1.05); }
.about__badge strong { font-family: var(--f-head); font-size: 44px; font-weight: 800; display: block; line-height: 1; }
.about__badge span { font-size: 14px; font-weight: 600; }

.about__content > p { color: var(--muted); margin: 18px 0 26px; max-width: 60ch; }
.about__tabs { display: inline-flex; gap: 6px; padding: 6px; background: var(--mist); border-radius: 999px; border: 1px solid var(--line); }
.tab { display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; border-radius: 999px; font-weight: 600; color: var(--muted); transition: background .3s, color .3s, box-shadow .3s; }
.tab:hover { color: var(--teal); }
.tab.active { background: #fff; color: var(--teal); box-shadow: 0 4px 14px -6px rgba(10,61,70,.35); }
.tabpanes { margin: 18px 0 30px; min-height: 84px; }
.tabpane { display: none; padding-left: 18px; border-left: 3px solid var(--gold); color: var(--ink); animation: fadeSlide .5s var(--ease); }
.tabpane.active { display: block; }
@keyframes fadeSlide { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }

.pillars {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}
.pillar {
  position: relative; padding: 20px; border-radius: var(--r-md); border: 1px solid var(--line); background: #fff; overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.pillar::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.pillar:hover { transform: translateY(-6px); border-color: transparent; box-shadow: var(--shadow); }
.pillar:hover::after { transform: scaleX(1); }
.pillar__ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--teal-soft); margin-bottom: 10px; transition: background .35s, transform .5s var(--ease); }
.pillar__ic svg { width: 22px; height: 22px; fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .35s; }
.pillar:hover .pillar__ic { background: var(--teal); transform: rotate(-10deg); }
.pillar:hover .pillar__ic svg { stroke: #fff; }
.pillar h3 { font-family: var(--f-head); font-size: 21px; line-height: 1.2; }
.pillar p { font-size: 15px; color: var(--muted); }

/* ---------- Programs ---------- */
.programs { background: var(--mist); }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 44px; }
.filter {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-weight: 600; color: var(--muted);
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.filter:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }
.filter.active { background: var(--teal); color: #fff; border-color: var(--teal); }
.filter__count { font-size: 12px; min-width: 22px; height: 22px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--teal-soft); color: var(--teal); }
.filter.active .filter__count { background: rgba(255,255,255,.2); color: #fff; }

.prog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.card {
  --accent: var(--teal);
  position: relative; display: flex; flex-direction: column;
  padding: 28px 24px 22px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line);
  text-align: left; overflow: hidden; isolation: isolate;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s, opacity .4s, scale .4s;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--accent);
  clip-path: circle(0% at 44px 52px);
  transition: clip-path .7s var(--ease);
}
.card:hover, .card:focus-visible { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::before, .card:focus-visible::before { clip-path: circle(150% at 44px 52px); }
.card__ic {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 12%, white); margin-bottom: 18px;
  transition: background .45s, transform .6s var(--ease);
}
.card__ic svg { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .45s; }
.card:hover .card__ic { background: rgba(255,255,255,.18); transform: rotateY(360deg); }
.card:hover .card__ic svg { stroke: #fff; }
.card__cat { font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 4px; transition: color .45s; }
.card h3 { font-family: var(--f-head); font-size: 22px; line-height: 1.2; margin-bottom: 8px; transition: color .45s; }
.card p { font-size: 15px; color: var(--muted); flex: 1; transition: color .45s; }
.card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 700; font-size: 15px; color: var(--accent); transition: color .45s, gap .3s; }
.card:hover h3, .card:hover .card__more { color: #fff; }
.card:hover p, .card:hover .card__cat { color: rgba(255,255,255,.82); }
.card:hover .card__more { gap: 12px; }
.card__num { position: absolute; top: 14px; right: 20px; font-family: var(--f-head); font-weight: 800; font-size: 54px; line-height: 1; color: var(--accent); opacity: .08; transition: opacity .45s, color .45s, transform .6s var(--ease); }
.card:hover .card__num { color: #fff; opacity: .2; transform: scale(1.2) rotate(-8deg); }
.card.hide { display: none; }
.card.enter { animation: cardIn .55s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes cardIn { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- Process ---------- */
.process { background: var(--teal-deep); color: #fff; overflow: hidden; }
.process::before { content: ""; position: absolute; width: 600px; height: 600px; border-radius: 50%; border: 80px solid rgba(255,255,255,.03); top: -250px; right: -200px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 44px; left: 12%; right: 12%; border-top: 2px dashed rgba(255,255,255,.2); }
.step {
  position: relative; text-align: center; padding: 0 12px 26px;
  border-radius: var(--r-lg); transition: background .4s, transform .4s var(--ease);
}
.step:hover { background: rgba(255,255,255,.05); transform: translateY(-6px); }
.step__ic { position: relative; z-index: 1; width: 88px; height: 88px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); border: 6px solid var(--teal-deep); transition: background .4s, transform .6s var(--ease); }
.step__ic svg { width: 34px; height: 34px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s; }
.step:hover .step__ic { background: var(--gold); transform: scale(1.1) rotate(8deg); }
.step:hover .step__ic svg { stroke: var(--ink); }
.step__num { position: absolute; z-index: 2; top: -4px; left: calc(50% + 22px); width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--ink); font-weight: 800; display: grid; place-items: center; font-size: 15px; }
.step h3 { font-family: var(--f-head); font-size: 22px; margin-bottom: 6px; }
.step p { color: rgba(255,255,255,.72); font-size: 15px; }

/* ---------- Impact ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat {
  position: relative; padding: 32px 24px; border-radius: var(--r-lg); text-align: center; overflow: hidden;
  background: #fff; border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
}
.stat::before { content: ""; position: absolute; inset: auto 0 0; height: 0; background: linear-gradient(0deg, var(--teal-soft), transparent); transition: height .5s var(--ease); z-index: 0; }
.stat:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.stat:hover::before { height: 100%; }
.stat > * { position: relative; }
.stat__ic { width: 60px; height: 60px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; background: #FEF3DC; transition: transform .6s var(--ease), background .4s; }
.stat__ic svg { width: 28px; height: 28px; fill: none; stroke: var(--gold-deep); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.stat:hover .stat__ic { transform: rotate(360deg); background: var(--gold); }
.stat:hover .stat__ic svg { stroke: var(--ink); }
.stat strong { display: block; font-family: var(--f-head); font-weight: 800; font-size: 46px; line-height: 1; color: var(--teal); }
.stat span:last-child { color: var(--muted); font-weight: 600; }

.bars { margin-top: 50px; padding: 34px; border-radius: var(--r-lg); background: var(--mist); border: 1px solid var(--line); }
.bars h3 { font-family: var(--f-head); font-size: 24px; margin-bottom: 18px; }
.bar { display: grid; grid-template-columns: 250px 1fr 50px; align-items: center; gap: 16px; padding: 8px 0; }
.bar__label { font-weight: 600; }
.bar__track { height: 12px; background: #fff; border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.bar__fill { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--teal), var(--leaf)); transition: width 1.6s var(--ease), filter .3s; }
.bar:nth-of-type(2) .bar__fill { background: linear-gradient(90deg, var(--gold-deep), var(--gold)); }
.bar:nth-of-type(3) .bar__fill { background: linear-gradient(90deg, var(--leaf), #9BC53D); }
.bar:nth-of-type(4) .bar__fill { background: linear-gradient(90deg, var(--blue), #6C8EE0); }
.bar:hover .bar__fill { filter: brightness(1.12) saturate(1.2); }
.bar__val { font-weight: 800; color: var(--teal); text-align: right; }

/* ---------- E-Library ---------- */
.elib { background: linear-gradient(180deg, #fff, var(--teal-soft)); }
.elib__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.elib__intro { position: sticky; top: calc(var(--header-h) + 30px); }
.elib__intro > p { color: var(--muted); margin: 14px 0 22px; }
.elib__search { position: relative; margin-bottom: 16px; }
.elib__search .ic { position: absolute; left: 18px; top: 50%; translate: 0 -50%; color: var(--muted); }
.elib__search input { width: 100%; padding: 14px 18px 14px 48px; border-radius: 999px; border: 2px solid var(--line); background: #fff; outline: none; transition: border-color .3s, box-shadow .3s; }
.elib__search input:focus { border-color: var(--teal); box-shadow: 0 0 0 5px rgba(15,94,107,.12); }
.elib__cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.cat { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 15px; color: var(--muted); transition: all .3s var(--ease); }
.cat:hover { color: var(--teal); border-color: var(--teal); }
.cat.active { background: var(--gold); color: var(--ink); border-color: var(--gold); }

.elib__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.book {
  --c: var(--teal);
  display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
  animation: cardIn .5s var(--ease) both; animation-delay: var(--d, 0s);
}
.book:hover { transform: translateX(6px); box-shadow: var(--shadow); border-color: var(--c); }
.book__cover {
  flex-shrink: 0; width: 58px; height: 76px; border-radius: 4px 10px 10px 4px; background: var(--c);
  display: grid; place-items: center; position: relative; box-shadow: inset 6px 0 0 rgba(0,0,0,.18);
  transition: transform .5s var(--ease);
  transform-origin: left;
}
.book:hover .book__cover { transform: perspective(300px) rotateY(-24deg); }
.book__cover svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.book__body { flex: 1; min-width: 0; }
.book__body h4 { font-family: var(--f-head); font-size: 17px; line-height: 1.25; }
.book__body small { color: var(--muted); font-size: 13px; }
.book__dl { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--mist); color: var(--c); transition: background .3s, color .3s, transform .3s var(--ease); }
.book__dl:hover { background: var(--c); color: #fff; transform: translateY(-2px); }
.elib__empty { grid-column: 1 / -1; text-align: center; padding: 40px; border: 2px dashed var(--line); border-radius: var(--r-md); color: var(--muted); }

/* ---------- Gallery ---------- */
.gal-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 16px; grid-auto-flow: dense; }
.gal {
  position: relative; border-radius: var(--r-lg); overflow: hidden; cursor: pointer;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  display: grid; place-items: center;
}
.gal--tall { grid-row: span 2; }
.gal--wide { grid-column: span 2; }
.gal > svg, .gal > img { width: 34%; max-width: 110px; fill: none; stroke: rgba(255,255,255,.9); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .8s var(--ease), opacity .5s; }
.gal > img { width: 100%; height: 100%; max-width: none; object-fit: cover; position: absolute; inset: 0; }
.gal::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.18) 0 20%, transparent 21%), radial-gradient(circle at 85% 80%, rgba(255,255,255,.12) 0 25%, transparent 26%); transition: transform 1s var(--ease); }
.gal::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,30,35,.8), transparent 60%); opacity: 0; transition: opacity .45s; }
.gal figcaption { position: absolute; left: 20px; right: 20px; bottom: 16px; z-index: 1; color: #fff; transform: translateY(20px); opacity: 0; transition: transform .45s var(--ease), opacity .45s; }
.gal figcaption strong { display: block; font-family: var(--f-head); font-size: 20px; line-height: 1.2; }
.gal figcaption span { font-size: 14px; opacity: .8; }
.gal:hover > svg, .gal:hover > img { transform: scale(1.15) rotate(-4deg); }
.gal:hover::before { transform: scale(1.3) rotate(10deg); }
.gal:hover::after { opacity: 1; }
.gal:hover figcaption { transform: none; opacity: 1; }

/* ---------- Testimonials ---------- */
.testi { background: var(--mist); }
.slider { max-width: 820px; margin: 0 auto; overflow: hidden; }
.slider__track { display: flex; transition: transform .7s var(--ease); }
.slide { flex: 0 0 100%; padding: 46px 50px 38px; background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line); position: relative; }
.slide__q { position: absolute; top: 24px; right: 34px; width: 64px; height: 64px; fill: var(--teal-soft); }
.slide p { position: relative; font-size: clamp(19px, 2.3vw, 24px); line-height: 1.5; font-weight: 500; margin-bottom: 26px; max-width: 60ch; }
.slide footer { display: flex; align-items: center; gap: 14px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: #fff; font-weight: 800; font-family: var(--f-head); font-size: 18px; }
.slide footer small { display: block; color: var(--muted); }
.slider__nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 26px; }
.slider__btn { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--teal); color: var(--teal); transition: background .3s, color .3s, transform .3s var(--ease); }
.slider__btn:hover { background: var(--teal); color: #fff; transform: scale(1.08); }
.slider__dots { display: flex; gap: 8px; }
.slider__dots button { width: 10px; height: 10px; border-radius: 999px; background: var(--line); transition: width .4s var(--ease), background .3s; }
.slider__dots button:hover { background: var(--gold); }
.slider__dots button.active { width: 32px; background: var(--teal); }


/* ---------- Get involved ---------- */
.involve { background: linear-gradient(135deg, var(--teal-deep), var(--teal)); color: #fff; overflow: hidden; }
.involve::after { content: ""; position: absolute; width: 400px; height: 400px; border-radius: 50%; background: var(--gold); opacity: .08; bottom: -200px; left: -120px; }
.inv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; position: relative; z-index: 1; }
.inv {
  position: relative; padding: 34px 30px; border-radius: var(--r-lg);
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  transition: transform .4s var(--ease), background .4s, border-color .4s;
}
.inv:hover { transform: translateY(-10px); background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); }
.inv__ic { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 18px; background: rgba(255,255,255,.1); margin-bottom: 18px; transition: transform .6s var(--ease), background .4s; }
.inv__ic svg { width: 30px; height: 30px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.inv:hover .inv__ic { transform: rotate(-12deg) scale(1.08); background: rgba(244,165,28,.2); }
.inv h3 { font-family: var(--f-head); font-size: 26px; margin-bottom: 8px; }
.inv p { color: rgba(255,255,255,.78); margin-bottom: 20px; }
.inv__link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--gold); transition: gap .3s; }
.inv__link:hover { gap: 14px; }
.inv--featured { background: #fff; color: var(--ink); transform: scale(1.04); box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); }
.inv--featured:hover { background: #fff; transform: scale(1.04) translateY(-10px); }
.inv--featured p { color: var(--muted); }
.inv--featured .inv__ic { background: #FEF3DC; }
.inv--featured .inv__ic svg { stroke: var(--gold-deep); }
.inv__tag { position: absolute; top: 18px; right: 18px; font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 999px; background: var(--rose); color: #fff; animation: wiggle 3s ease-in-out infinite; }
@keyframes wiggle { 0%, 90%, 100% { transform: rotate(0); } 93% { transform: rotate(-6deg); } 96% { transform: rotate(6deg); } }
.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.amt { padding: 10px 0; border-radius: var(--r-sm); border: 2px solid var(--line); font-weight: 700; transition: all .3s var(--ease); }
.amt:hover { border-color: var(--gold); }
.amt.active { background: var(--gold); border-color: var(--gold); transform: translateY(-2px); }
.note { text-align: center; font-size: 13px; color: rgba(255,255,255,.6); margin-top: 30px; position: relative; z-index: 1; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }
.contact__info > p { color: var(--muted); margin: 14px 0 28px; }
.cinfo { display: grid; gap: 14px; }
.cinfo li { display: flex; gap: 16px; align-items: flex-start; padding: 14px; border-radius: var(--r-md); transition: background .3s, transform .3s var(--ease); }
.cinfo li:hover { background: var(--mist); transform: translateX(6px); }
.cinfo li > span { width: 48px; height: 48px; flex-shrink: 0; display: grid; place-items: center; border-radius: 14px; background: var(--teal-soft); transition: background .3s; }
.cinfo li > span svg { width: 22px; height: 22px; fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.cinfo li:hover > span { background: var(--teal); }
.cinfo li:hover > span svg { stroke: #fff; }
.cinfo p { color: var(--muted); }
.cinfo a:hover { color: var(--teal); text-decoration: underline; }

.cform { padding: 38px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.cform h3 { font-family: var(--f-head); font-size: 26px; margin-bottom: 20px; }
.field { position: relative; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 22px 16px 8px; border-radius: var(--r-md); border: 2px solid var(--line); background: var(--mist); outline: none; resize: vertical;
  transition: border-color .3s, background .3s, box-shadow .3s;
  appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 55%, calc(100% - 16px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.field label { position: absolute; left: 18px; top: 16px; color: var(--muted); pointer-events: none; transition: all .25s var(--ease); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #B9D2D4; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); background: #fff; box-shadow: 0 0 0 5px rgba(15,94,107,.1); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select:focus + label, .field select:valid + label { top: 5px; font-size: 12.5px; font-weight: 700; color: var(--teal); }
.err { display: none; color: var(--rose); font-size: 13px; margin-top: 4px; font-weight: 600; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--rose); animation: shake .4s; }
.field.invalid .err { display: block; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.cform__ok { display: none; align-items: center; gap: 8px; margin-top: 16px; padding: 12px 16px; border-radius: var(--r-md); background: #E6F4EA; color: #1F6B3A; font-weight: 600; }
.cform__ok.show { display: flex; animation: fadeSlide .5s var(--ease); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.72); position: relative; padding-top: 90px; }
.footer__wave { position: absolute; top: -1px; left: 0; right: 0; height: 60px; }
.footer__wave svg { width: 100%; height: 100%; fill: #fff; transform: rotate(180deg); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 50px; }
.footer__brand p { margin: 16px 0 20px; max-width: 34ch; }
.footer h4 { font-family: var(--f-head); color: #fff; font-size: 20px; margin-bottom: 16px; }
.footer ul li { margin-bottom: 8px; }
.footer ul a { position: relative; transition: color .3s, padding-left .3s; }
.footer ul a::before { content: ""; position: absolute; left: 0; top: 50%; width: 0; height: 2px; background: var(--gold); transition: width .3s; }
.footer ul a:hover { color: var(--gold); padding-left: 16px; }
.footer ul a:hover::before { width: 10px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.07); transition: background .3s, color .3s, transform .3s var(--ease); }
.footer__social a:hover { background: var(--gold); color: var(--ink); transform: translateY(-4px); }
.news { display: flex; margin-top: 14px; background: rgba(255,255,255,.07); border-radius: 999px; padding: 5px; border: 1px solid rgba(255,255,255,.1); transition: border-color .3s; }
.news:focus-within { border-color: var(--gold); }
.news input { flex: 1; min-width: 0; background: none; border: 0; outline: none; padding: 8px 14px; color: #fff; }
.news input::placeholder { color: rgba(255,255,255,.5); }
.news button { width: 42px; height: 42px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; transition: transform .3s var(--ease); }
.news button:hover { transform: rotate(-45deg); }
.news__ok { display: none; margin-top: 10px; color: #8FD3A6; font-size: 14px; }
.news__ok.show { display: block; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: 14px; }
.footer__bottom a:hover { color: var(--gold); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(10,30,35,.6); backdrop-filter: blur(4px); animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
.modal__box { position: relative; width: min(560px, 100%); max-height: 90vh; overflow-y: auto; background: #fff; border-radius: var(--r-lg); padding: 34px; box-shadow: var(--shadow-lg); animation: modalIn .45s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(30px) scale(.95); } }
.modal__close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--mist); transition: background .3s, transform .4s var(--ease); }
.modal__close:hover { background: var(--rose); color: #fff; transform: rotate(90deg); }
.modal__head { --accent: var(--teal); display: flex; gap: 16px; align-items: center; margin-bottom: 16px; padding-right: 40px; }
.modal__ic { width: 62px; height: 62px; flex-shrink: 0; border-radius: 18px; display: grid; place-items: center; background: var(--accent); }
.modal__ic svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.modal__cat { font-size: 13px; font-weight: 700; color: var(--accent); }
.modal h3 { font-family: var(--f-head); font-size: 28px; line-height: 1.15; }
.modal__box > p { color: var(--muted); margin-bottom: 16px; }
.modal__list { display: grid; gap: 8px; margin-bottom: 18px; }
.modal__list li { display: flex; gap: 10px; align-items: flex-start; }
.modal__list .ic { color: var(--leaf); stroke-width: 3; margin-top: 4px; }
.modal__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.modal__meta span { font-size: 14px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--mist); border: 1px solid var(--line); }

/* ---------- Back to top ---------- */
.totop { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 50px; height: 50px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(20px); transition: all .4s var(--ease); }
.totop.show { opacity: 1; visibility: visible; transform: none; }
.totop:hover { background: var(--teal); color: #fff; transform: translateY(-4px); }
.totop .ic { transition: transform .3s; }
.totop:hover .ic { transform: translateY(-3px); }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1100px) {
  .nav__list { gap: 0; }
  .nav__link { padding: 10px 8px; font-size: 15px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .burger { display: block; z-index: 110; }
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 88vw);
    flex-direction: column; align-items: stretch; gap: 20px;
    padding: 90px 24px 30px; background: #fff; box-shadow: -20px 0 60px -20px rgba(0,0,0,.3);
    overflow-y: auto; transform: translateX(105%); transition: transform .5s var(--ease); z-index: 105;
  }
  .nav.open { transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link { width: 100%; padding: 12px 14px; font-size: 17px; border-radius: var(--r-sm); justify-content: space-between; }
  .nav__link::after { display: none; }
  .nav__link:hover, .nav__link.active { background: var(--teal-soft); }
  .nav__list > li { opacity: 0; transform: translateX(30px); transition: opacity .4s, transform .4s var(--ease); }
  .nav.open .nav__list > li { opacity: 1; transform: none; }
  .nav.open .nav__list > li:nth-child(2) { transition-delay: .05s; }
  .nav.open .nav__list > li:nth-child(3) { transition-delay: .1s; }
  .nav.open .nav__list > li:nth-child(4) { transition-delay: .15s; }
  .nav.open .nav__list > li:nth-child(5) { transition-delay: .2s; }
  .nav.open .nav__list > li:nth-child(6) { transition-delay: .25s; }
  .nav.open .nav__list > li:nth-child(7) { transition-delay: .3s; }
  .mega { position: static; width: auto; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; padding: 0 0 0 14px; grid-template-columns: 1fr; gap: 10px; max-height: 0; overflow: hidden; transition: max-height .5s var(--ease), padding .3s; }
  .nav__drop.open .mega { max-height: 900px; padding: 10px 0 10px 14px; }
  .nav__drop:hover .mega { transform: none; }
  .nav__drop.open .nav__link .ic { transform: rotate(180deg); }
  .nav__drop:hover .nav__link .ic { transform: none; }
  .nav__drop.open:hover .nav__link .ic { transform: rotate(180deg); }
  .nav-overlay { position: fixed; inset: 0; background: rgba(10,30,35,.5); z-index: 99; opacity: 0; visibility: hidden; transition: .4s; }
  .nav-overlay.show { opacity: 1; visibility: visible; }

  .hero { padding: 50px 0 100px; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__actions, .hero__trust { justify-content: center; }
  .hero__visual { max-width: 420px; }
  .floatcard--a { left: 0; }
  .floatcard--b { right: 0; }

  .about__grid, .elib__grid, .contact__grid { grid-template-columns: 1fr; gap: 50px; }
  .about__visual { max-width: 480px; margin-inline: auto; width: 100%; }
  .about__badge { right: 0; }
  .elib__intro { position: static; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
  .inv-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .inv--featured, .inv--featured:hover { transform: none; }
  .gal-grid { grid-template-columns: repeat(2, 1fr); }
  .bar { grid-template-columns: 1fr 50px; }
  .bar__label { grid-column: 1 / -1; margin-bottom: -8px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 80px 0; }
  .topbar__info a[href^="mailto"], .topbar__badge { display: none; }
  .logo__text strong { font-size: 24px; }
  .logo__text small { font-size: 11px; }
  .logo__mark svg { width: 40px; height: 40px; }
  .hero__visual { max-width: 330px; }
  .hero__scroll, .orbit__core small { display: none; }
  .chip { --size: 48px; }
  .chip--sm { --size: 38px; }
  .floatcard { padding: 8px 12px; gap: 8px; }
  .floatcard .ic { width: 30px; height: 30px; padding: 6px; }
  .floatcard strong { font-size: 13px; }
  .floatcard small { font-size: 11px; }
  .floatcard--a { top: -4%; }
  .floatcard--b { bottom: -2%; }
  .pillars { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pillar { padding: 16px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 22px 12px; }
  .stat strong { font-size: 32px; }
  .steps { grid-template-columns: 1fr; }
  .elib__list { grid-template-columns: 1fr; }
  .gal-grid { grid-auto-rows: 160px; gap: 10px; }
  .gal figcaption { opacity: 1; transform: none; left: 14px; bottom: 10px; }
  .gal figcaption strong { font-size: 16px; }
  .gal::after { opacity: .8; }
  .slide { padding: 34px 24px 28px; }
  .cform { padding: 24px 18px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .bars { padding: 22px 18px; }
  .about__tabs { display: flex; }
  .tab { flex: 1; justify-content: center; padding: 9px 10px; }
}

@media (max-width: 380px) {
  .pillars, .stats { grid-template-columns: 1fr; }
  .gal-grid { grid-template-columns: 1fr; }
  .gal--wide { grid-column: auto; }
}

/* Touch devices: hover-only captions visible */
@media (hover: none) {
  .gal figcaption { opacity: 1; transform: none; }
  .gal::after { opacity: .75; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .word, .hero__tag, .hero__lead, .hero__actions, .hero__trust, .hero__visual { opacity: 1; transform: none; }
}

/* ==========================================================
   MULTI-PAGE ADDITIONS (same design language as above)
   ========================================================== */
.link { color: var(--teal); font-weight: 700; border-bottom: 2px solid var(--gold); transition: color .25s; }
.link:hover { color: var(--gold-deep); }
.section--tight { padding: 70px 0; }
.narrow { max-width: 860px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* small dropdowns */
.mega--sm { width: 270px; grid-template-columns: 1fr; gap: 2px; padding: 12px; }
.mega--sm a { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 12px; color: var(--ink); font-weight: 600; }
.mega--sm a .ic { color: var(--teal); transition: transform .3s var(--ease); }
.mega--sm a:hover .ic { transform: scale(1.15) rotate(-8deg); }
.mega a.current { background: var(--teal-soft); color: var(--teal); }
.mega__all { grid-column: 1 / -1; display: flex !important; align-items: center; justify-content: center; gap: 8px; margin: 4px 0 0 !important; padding: 11px !important; border-radius: var(--r-md) !important; background: var(--teal-soft); color: var(--teal) !important; font-weight: 700; }
.mega__all:hover { background: var(--teal) !important; color: #fff !important; padding-left: 11px !important; }
.mega__all .ic { transition: transform .3s var(--ease); }
.mega__all:hover .ic { transform: translateX(4px); }

/* page hero */
.page-hero { position: relative; overflow: hidden; padding: 70px 0 76px; background: linear-gradient(180deg, var(--mist), #fff 85%); }
.page-hero .blob { opacity: .35; }
.page-hero__inner { position: relative; }
.page-hero--center .page-hero__inner { text-align: center; }
.page-hero--center .crumbs { justify-content: center; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); margin-bottom: 18px; animation: rise .8s var(--ease) .1s both; }
.crumbs a { color: var(--teal); font-weight: 600; transition: color .25s; }
.crumbs a:hover { color: var(--gold-deep); text-decoration: underline; }
.page-hero h1 { font-family: var(--f-head); font-weight: 800; font-size: clamp(40px, 6vw, 76px); line-height: 1.02; color: var(--teal-deep); margin-bottom: 14px; max-width: 900px; animation: rise .9s var(--ease) .2s both; }
.page-hero--center h1 { margin-inline: auto; }
.page-hero p { font-size: 19px; color: var(--muted); max-width: 640px; animation: rise .9s var(--ease) .35s both; }
.page-hero--center p { margin-inline: auto; }
.page-hero .kicker { animation: rise .8s var(--ease) .15s both; }
.page-hero__ic { width: 78px; height: 78px; border-radius: 22px; display: grid; place-items: center; background: var(--accent); margin-bottom: 18px; box-shadow: 0 16px 30px -14px var(--accent); animation: pop .9s var(--ease) both; transition: transform .5s var(--ease); }
.page-hero__ic:hover { transform: rotate(-10deg) scale(1.06); }
.page-hero__ic svg { width: 38px; height: 38px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding: 50px; border-radius: var(--r-lg); background: linear-gradient(135deg, var(--teal-deep), var(--teal)); color: #fff; }
.cta-band::after { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: var(--gold); opacity: .12; right: -80px; top: -140px; transition: transform .8s var(--ease); }
.cta-band:hover::after { transform: scale(1.3); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-family: var(--f-head); font-size: clamp(26px, 3vw, 36px); line-height: 1.15; margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,.8); max-width: 52ch; }
.cta-band__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn--light { border: 2px solid rgba(255,255,255,.6); color: #fff; }
.btn--light::before { background: #fff; }
.btn--light:hover { color: var(--teal-deep); }

/* mission & vision */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.mv-card { position: relative; overflow: hidden; padding: 44px 40px; border-radius: var(--r-lg); background: var(--teal-deep); color: #fff; transition: transform .45s var(--ease), box-shadow .45s; }
.mv-card::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; border: 50px solid rgba(255,255,255,.05); right: -90px; bottom: -110px; transition: transform .8s var(--ease); }
.mv-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.mv-card:hover::before { transform: scale(1.25) rotate(20deg); }
.mv-card--gold { background: var(--gold); color: var(--ink); }
.mv-card__ic { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; background: rgba(255,255,255,.14); margin-bottom: 20px; transition: transform .6s var(--ease); }
.mv-card:hover .mv-card__ic { transform: rotate(-12deg) scale(1.08); }
.mv-card__ic svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mv-card h2 { font-family: var(--f-head); font-size: 34px; margin-bottom: 10px; }
.mv-card p { font-size: 18px; opacity: .9; position: relative; }

.obj-list { display: grid; gap: 12px; }
.obj-list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; border-radius: var(--r-md); border: 1px solid var(--line); background: #fff; transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; }
.obj-list li:hover { transform: translateX(8px); border-color: var(--teal); box-shadow: var(--shadow); }
.obj-list .ic { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--leaf); color: #fff; stroke-width: 3; margin-top: 3px; }
.obj-list--tight { margin-top: 22px; }

/* team */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; }
.member { text-align: center; padding: 18px 18px 24px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; }
.member:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.member__photo { position: relative; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; background: linear-gradient(145deg, var(--bg), color-mix(in srgb, var(--bg) 60%, #000)); display: grid; place-items: center; margin-bottom: 16px; }
.member__photo > span { font-family: var(--f-head); font-weight: 800; font-size: 54px; color: rgba(255,255,255,.9); transition: transform .6s var(--ease); }
.member__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.member:hover .member__photo > span { transform: scale(1.15); }
.member__social { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 10px; padding: 14px; background: linear-gradient(0deg, rgba(0,0,0,.55), transparent); transform: translateY(100%); transition: transform .4s var(--ease); }
.member:hover .member__social, .member:focus-within .member__social { transform: none; }
.member__social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--teal); transition: background .3s, color .3s, transform .3s var(--ease); }
.member__social a:hover { background: var(--gold); color: var(--ink); transform: translateY(-3px); }
.member h3 { font-family: var(--f-head); font-size: 21px; line-height: 1.2; }
.member__role { color: var(--teal); font-weight: 700; }
.member small { color: var(--muted); }

/* documents */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.doc { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 26px 22px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; }
.doc::after { content: ""; position: absolute; left: 0; top: 0; width: 4px; height: 100%; background: var(--gold); transform: scaleY(0); transform-origin: top; transition: transform .45s var(--ease); }
.doc:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.doc:hover::after { transform: scaleY(1); }
.doc__ic { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--teal-soft); margin-bottom: 8px; transition: background .35s, transform .5s var(--ease); }
.doc__ic svg { width: 26px; height: 26px; fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .35s; }
.doc:hover .doc__ic { background: var(--teal); transform: rotate(-8deg); }
.doc:hover .doc__ic svg { stroke: #fff; }
.doc h3 { font-family: var(--f-head); font-size: 20px; line-height: 1.2; }
.doc p { color: var(--muted); font-size: 14px; }
.doc code { align-self: flex-start; margin: 6px 0 12px; }
.doc__btn { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--teal); transition: gap .3s, color .3s; }
.doc__btn:hover { gap: 12px; color: var(--gold-deep); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; transition: border-color .3s, box-shadow .3s; }
.faq__item:hover { border-color: var(--teal); }
.faq__item.open { border-color: var(--teal); box-shadow: var(--shadow); }
.faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-weight: 700; font-size: 17px; text-align: left; transition: color .3s; }
.faq__q:hover { color: var(--teal); }
.faq__q .ic { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); transition: transform .4s var(--ease), background .3s, color .3s; }
.faq__item.open .faq__q .ic { transform: rotate(45deg); background: var(--teal); color: #fff; }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 22px 20px; color: var(--muted); }
.faq__item.open .faq__a { grid-template-rows: 1fr; }

/* programme detail */
.detail { display: grid; grid-template-columns: 1fr 360px; gap: 50px; align-items: start; }
.detail__main { display: grid; gap: 44px; min-width: 0; }
.prose h2, .detail__h { font-family: var(--f-head); font-size: clamp(26px, 3vw, 32px); line-height: 1.15; margin-bottom: 14px; color: var(--ink); }
.prose p, .detail__p { color: var(--muted); margin-bottom: 14px; max-width: 70ch; }
.prose h2 { margin-top: 30px; }
.prose h2:first-child { margin-top: 0; }
.prose__meta { font-size: 14px; font-style: italic; margin-top: 30px; }
.learn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.learn { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: #fff; font-weight: 600; transition: transform .35s var(--ease), border-color .35s, box-shadow .35s, background .35s; }
.learn .ic { width: 28px; height: 28px; padding: 5px; border-radius: 8px; background: color-mix(in srgb, var(--accent) 14%, white); color: var(--accent); stroke-width: 3; transition: background .35s, color .35s, transform .5s var(--ease); }
.learn:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }
.learn:hover .ic { background: var(--accent); color: #fff; transform: rotate(360deg); }
.outcome { padding: 32px; border-radius: var(--r-lg); background: color-mix(in srgb, var(--accent) 8%, white); border: 1px solid color-mix(in srgb, var(--accent) 20%, white); }
.outcome ul { display: grid; gap: 12px; }
.outcome li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; transition: transform .3s var(--ease); }
.outcome li:hover { transform: translateX(6px); }
.outcome .ic { color: var(--gold-deep); fill: var(--gold); margin-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font-size: 14px; font-weight: 600; padding: 6px 14px; border-radius: 999px; background: var(--mist); border: 1px solid var(--line); transition: background .3s, color .3s, border-color .3s; }
.chips span:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pager__link { display: flex; flex-direction: column; padding: 18px 22px; border-radius: var(--r-md); border: 1px solid var(--line); transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; }
.pager__link small { color: var(--muted); }
.pager__link strong { font-family: var(--f-head); font-size: 18px; color: var(--teal); line-height: 1.2; }
.pager__link:hover { border-color: var(--teal); box-shadow: var(--shadow); transform: translateX(-4px); }
.pager__link--next { text-align: right; }
.pager__link--next:hover { transform: translateX(4px); }

.side { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.side-card { padding: 28px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.side-card h3 { font-family: var(--f-head); font-size: 22px; margin-bottom: 8px; }
.side-card > p { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.side-card--accent { background: var(--accent); border-color: transparent; color: #fff; }
.side-card--accent > p { color: rgba(255,255,255,.85); }
.side-card--accent .field input { background: rgba(255,255,255,.95); }
.side-card--accent .field input:focus + label, .side-card--accent .field input:not(:placeholder-shown) + label { color: var(--teal-deep); }
.side-card--accent .err { color: #fff; background: var(--rose); padding: 2px 8px; border-radius: 6px; display: none; }
.side-card--accent .field.invalid .err { display: inline-block; }
.side-card--accent .btn--gold:hover { color: #fff; }
.side-card .btn + .btn, .quick + .btn { margin-top: 12px; }
.glance { display: grid; gap: 4px; }
.glance li { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.glance li:last-child { border-bottom: 0; }
.glance .ic { grid-row: span 2; width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--teal-soft); color: var(--teal); }
.glance span { font-size: 13px; color: var(--muted); }
.glance strong { font-size: 15px; }
.side-contact { display: flex; align-items: center; gap: 10px; padding: 10px 0; font-weight: 600; transition: color .3s, gap .3s; }
.side-contact .ic { color: var(--teal); }
.side-contact:hover { color: var(--teal); gap: 14px; }

/* impact stories */
.story { position: relative; padding: 30px 26px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s; }
.story::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--accent); }
.story:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.story__ic { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: var(--accent); margin-bottom: 16px; transition: transform .6s var(--ease); }
.story:hover .story__ic { transform: rotate(-12deg) scale(1.08); }
.story__ic svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.story h3 { font-family: var(--f-head); font-size: 22px; line-height: 1.2; margin-bottom: 8px; }
.story p { color: var(--muted); }

/* donate */
.donate { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.donate__box { position: sticky; top: calc(var(--header-h) + 24px); padding: 36px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.donate__box h2 { font-family: var(--f-head); font-size: 28px; margin-bottom: 16px; }
.amounts--6 { grid-template-columns: repeat(3, 1fr); }
.donate__freq { display: flex; gap: 8px; margin-bottom: 18px; }
.donate__freq .cat { flex: 1; }
.donate__note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.uses { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0 28px; }
.uses li { padding: 18px; border-radius: var(--r-md); border: 1px solid var(--line); background: #fff; transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; }
.uses li:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: var(--shadow); }
.uses strong { display: block; font-family: var(--f-head); font-size: 26px; color: var(--teal); line-height: 1.1; }
.uses span { font-size: 15px; color: var(--muted); }
.bank { padding: 26px; border-radius: var(--r-lg); background: var(--mist); border: 1px dashed var(--teal); }
.bank h3 { display: flex; align-items: center; gap: 10px; font-family: var(--f-head); font-size: 22px; margin-bottom: 12px; }
.bank h3 .ic { color: var(--teal); width: 24px; height: 24px; }
.bank dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; }
.bank dt { color: var(--muted); }
.bank dd { font-weight: 700; }

/* gallery page */
.gal.hide { display: none; }
.gal.enter { animation: cardIn .5s var(--ease) both; animation-delay: var(--d, 0s); }
.gal:focus-visible { outline-offset: 4px; }
.gal__zoom { position: absolute; top: 14px; right: 14px; z-index: 1; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.95); color: var(--teal); transform: scale(0); transition: transform .4s var(--ease); }
.gal:hover .gal__zoom, .gal:focus-visible .gal__zoom { transform: scale(1); }
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(10,30,35,.85); animation: fade .3s; }
.lightbox__box { position: relative; width: min(900px, 100%); animation: modalIn .45s var(--ease); }
.lightbox__box .modal__close { top: -54px; right: 0; background: #fff; }
.lightbox__stage { aspect-ratio: 16 / 10; border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(135deg, var(--c1), var(--c2)); display: grid; place-items: center; position: relative; }
.lightbox__stage svg { width: 22%; fill: none; stroke: #fff; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; color: #fff; }
.lightbox__bar p { text-align: center; }
.lightbox__bar strong { display: block; font-family: var(--f-head); font-size: 22px; }
.lightbox__bar span { opacity: .75; }
.lightbox__bar .slider__btn { border-color: #fff; color: #fff; }
.lightbox__bar .slider__btn:hover { background: #fff; color: var(--teal); }

/* map placeholder */
.map { position: relative; min-height: 320px; border-radius: var(--r-lg); overflow: hidden; display: grid; place-content: center; justify-items: center; text-align: center; padding: 30px; background-color: var(--teal-soft); background-image: linear-gradient(rgba(15,94,107,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(15,94,107,.08) 1px, transparent 1px); background-size: 32px 32px; border: 1px solid var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__pin { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--rose); margin-bottom: 18px; animation: pinBounce 2s ease-in-out infinite; }
.map__pin svg { width: 28px; height: 28px; transform: rotate(45deg); fill: none; stroke: #fff; stroke-width: 2; }
@keyframes pinBounce { 50% { translate: 0 -10px; } }
.map h3 { font-family: var(--f-head); font-size: 24px; }
.map p { color: var(--muted); max-width: 44ch; }

/* modal actions + footer extras */
.modal__actions { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; }
.footer__mini li { margin-bottom: 6px; }
.footer__h4-gap { margin-top: 22px; }

/* 404 */
.nf { padding: 110px 0 120px; }
.nf__num { font-family: var(--f-head); font-weight: 800; font-size: clamp(110px, 20vw, 220px) !important; line-height: 1; color: var(--gold) !important; max-width: none !important; animation: pop 1s var(--ease) both !important; }
.nf__actions { justify-content: center; opacity: 1; animation: none; }

@media (max-width: 1100px) {
  .detail { grid-template-columns: 1fr 320px; gap: 36px; }
}
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .mv-grid, .detail, .donate { grid-template-columns: 1fr; }
  .side, .donate__box { position: static; }
  .mega--sm { width: auto; padding: 0 0 0 14px; }
  .nav__drop.open .mega--sm { padding: 6px 0 10px 14px; }
  .mega__all { margin: 6px 0 4px !important; }
  .cta-band { padding: 36px 28px; }
}
@media (max-width: 640px) {
  .grid-3, .learn-grid, .uses, .pager { grid-template-columns: 1fr; }
  .page-hero { padding: 48px 0 56px; }
  .page-hero p { font-size: 17px; }
  .mv-card { padding: 32px 24px; }
  .donate__box { padding: 24px 18px; }
  .modal__actions { grid-template-columns: 1fr; }
  .pager__link--next { text-align: left; }
  .lightbox__box .modal__close { top: -50px; }
}

/* ==========================================================
   HERO SLIDER (all pages) + smaller hero text
   ========================================================== */
.hero__title { font-size: clamp(42px, 6.2vw, 78px); }
.hero__lead { font-size: 17px; }
.hc1 { color: var(--teal); } .hc2 { color: var(--gold-deep); } .hc3 { color: var(--leaf); }

.page-hero--slider { padding: 56px 0 64px; }
.hslider { position: relative; }
.hslider__track { display: grid; }
.hslide {
  grid-area: 1 / 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .7s var(--ease), visibility .7s;
}
.hslide.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.hslide--home { grid-template-columns: 1.1fr .9fr; gap: 50px; }

/* text: staggered entrance on every slide change */
.hslide__text > * { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .7s var(--ease); animation: none !important; }
.hslide.is-active .hslide__text > * { opacity: 1; transform: none; }
.hslide.is-active .hslide__text > :nth-child(1) { transition-delay: .10s; }
.hslide.is-active .hslide__text > :nth-child(2) { transition-delay: .18s; }
.hslide.is-active .hslide__text > :nth-child(3) { transition-delay: .26s; }
.hslide.is-active .hslide__text > :nth-child(4) { transition-delay: .34s; }
.hslide.is-active .hslide__text > :nth-child(5) { transition-delay: .42s; }
.hslide.is-active .hslide__text > :nth-child(6) { transition-delay: .50s; }
.hslide__text .page-hero__ic { width: 62px; height: 62px; border-radius: 18px; margin-bottom: 14px; }
.hslide__text .page-hero__ic svg { width: 30px; height: 30px; }
.hslide__text .kicker { display: table; }
.page-hero .hslide__title {
  font-family: var(--f-head); font-weight: 800; font-size: clamp(30px, 4vw, 50px); line-height: 1.06;
  color: var(--teal-deep); margin-bottom: 12px; animation: none;
}
.page-hero .hslide__text p { font-size: 17px; }
.hslide__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hslide__btns .btn { padding: 12px 15px; font-size: 15px; }

/* visual */
.hslide__visual {
  position: relative; height: 340px; width: 100%;
  opacity: 0; transform: scale(.92) translateY(18px);
  transition: opacity .7s var(--ease) .15s, transform .9s var(--ease) .15s;
}
.hslide.is-active .hslide__visual { opacity: 1; transform: none; }
.hslide__visual--home { height: 420px; }
.hslide__panel {
  position: absolute; inset: 0; border-radius: 28px; overflow: hidden;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  display: grid; place-items: center; box-shadow: var(--shadow-lg);
  transition: transform .6s var(--ease), box-shadow .6s;
}
.hslide__panel::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 18% 22%, rgba(255,255,255,.18) 0 18%, transparent 19%),
              radial-gradient(circle at 86% 82%, rgba(255,255,255,.12) 0 24%, transparent 25%);
  animation: drift 12s ease-in-out infinite alternate;
}
.hslide__panel::after {
  content: ""; position: absolute; inset: 0; opacity: .12;
  background-image: radial-gradient(#fff 1.2px, transparent 1.3px); background-size: 18px 18px;
}
.hslide__ring { position: absolute; width: 58%; aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgba(255,255,255,.35); animation: spin 30s linear infinite; }
.hslide__big { position: relative; z-index: 1; width: 30%; max-width: 140px; fill: none; stroke: #fff; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; animation: float 5s ease-in-out infinite; transition: scale .6s var(--ease); }
.hslide__visual:hover .hslide__panel { transform: scale(1.02) rotate(-1deg); box-shadow: 0 40px 70px -30px rgba(10,61,70,.55); }
.hslide__visual:hover .hslide__big { scale: 1.12; }
.hslide__visual:hover .hslide__ring { animation-duration: 8s; }
.hs-fa { left: -26px; bottom: 34px; z-index: 2; }
.hs-fb { right: -22px; top: 30px; z-index: 2; animation-delay: -2.5s; }

/* controls */
.hslider__nav { position: relative; z-index: 3; display: flex; align-items: center; gap: 14px; margin-top: 34px; }
.hslider__progress { width: 120px; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; margin-left: 6px; }
.hslider__progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--leaf)); }
.hslider__count { font-family: var(--f-head); font-weight: 700; color: var(--muted); }
.hslider__count b { color: var(--teal); font-size: 20px; }
.hslider--home .hslider__nav { margin-top: 20px; }

.logo {
    display: flex;
    align-items: center;
    gap:4px;
    text-decoration: none;
}

.logo__mark {
    width:68px;
    height:68px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left:20px;
}

.logo__mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.logo__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

.logo__text strong {
    font-size: 22px;
    font-weight:900;
}

.logo__text small {
    font-size: 11px;
    margin-top: 4px;
}
/* =========================================================
   HERO SLIDER - FINAL IMAGE FIX
   ========================================================= */

.hslide__visual {
    position: relative;
    width: 100%;
    height: 340px;
}

.hslide__panel {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--c1), var(--c2));
    box-shadow: var(--shadow-lg);
}

.hslide__panel--photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 28px;
}

.hslide__panel--photo .editorial-photo {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    display: block;
    margin: 0;
    padding: 0;
    object-fit: cover;
    object-position: center center;
}

/* Keep decorative layer behind the image */
.hslide__panel::before,
.hslide__panel::after {
    pointer-events: none;
    z-index: 2;
}

.hslide__panel--photo .editorial-photo {
    z-index: 1;
}

/* Floating cards stay above image */
.hslide__visual .floatcard {
    z-index: 5;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 960px) {

    .hslide__visual {
        width: 100%;
        height: 280px;
        max-width: 560px;
    }

    .hslide__panel,
    .hslide__panel--photo {
        width: 100%;
        height: 100%;
    }

    .hslide__panel--photo .editorial-photo {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
        object-position: center center;
    }
}
.hslide:nth-child(2) .hslide__panel--photo .editorial-photo {
    object-position: center 25%;
}
.hslide:nth-child(3) .hslide__panel--photo .editorial-photo {
    object-position: center 20%;
}
/* Enquiry Form Input Text Fix */
.quick .field {
    position: relative;
}

.quick .field input {
    color: #111827 !important;
    background: #ffffff !important;
    caret-color: #111827 !important;
}

.quick .field input::placeholder {
    color: transparent !important;
}

.quick .field input:focus {
    color: #111827 !important;
    background: #ffffff !important;
}

.quick .field label {
    color: #6b7280;
    background: #ffffff;
}

.quick .field input:focus + label,
.quick .field input:not(:placeholder-shown) + label {
    top: 0;
    transform: translateY(-50%);
    font-size: 12px;
    color: #0f5e6b;
    padding: 0 6px;
}
/* Enquiry Success Message */
.quick + .cform__ok,
.cform__ok {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 70px;
    margin-top: 20px;
    padding: 18px 20px;
    border-radius: 12px;
    background: #e8f7ef !important;
    border: 2px solid #4f9f78;
    color: #17643f !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.5;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.cform__ok .ic {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
}
/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 640px) {

    .hslide__visual,
    .hslide__visual--home {
        width: 100%;
        height: 220px;
        max-width: 100%;
    }

    .hslide__panel,
    .hslide__panel--photo {
        width: 100%;
        height: 100%;
        border-radius: 22px;
    }

    .hslide__panel--photo .editorial-photo {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
        object-position: center center;
    }
}

/* Tablet */
@media (max-width: 991px) {
    .logo {
        gap: 10px;
    }

    .logo__mark {
        width: 52px;
        height: 52px;
    }

    .logo__text strong {
        font-size: 20px;
    }

    .logo__text small {
        font-size: 10px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .logo {
        gap: 8px;
    }

    .logo__mark {
        width: 46px;
        height: 46px;
    }

    .logo__text strong {
        font-size: 18px;
    }

    .logo__text small {
        font-size: 9px;
        margin-top: 3px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .logo {
        gap: 7px;
    }

    .logo__mark {
        width: 42px;
        height: 42px;
    }

    .logo__text strong {
        font-size: 16px;
    }

    .logo__text small {
        font-size: 8px;
    }
}
@media (max-width: 960px) {
  .hslide, .hslide--home { grid-template-columns: 1fr; gap: 34px; }
  .hslide__visual { height: 280px; max-width: 560px; }
  .hslide__visual--home { height: 300px; margin-inline: auto; }
  .hs-fa { left: 10px; bottom: -18px; }
  .hs-fb { right: 10px; top: -18px; }
  .hslider--home .hslider__nav { justify-content: center; }
}
@media (max-width: 640px) {
  .page-hero--slider { padding: 40px 0 50px; }
  .hslide__visual, .hslide__visual--home { height: 220px; }
  .hslider__progress { width: 60px; }
  .hslider__count { display: none; }
  .hslide__btns .btn { flex: 1 1 auto; }
}
.hs-fa, .hs-fb { max-width: 270px; }
.hslide__visual { text-align: left; }

/* =========================================================
   E-LIBRARY - DYNAMIC LIBRARY CSS
   ========================================================= */

.elib__list {
    width: 100%;
}

.elib__list .book {
    position: relative;
    width: 100%;
}

.elib__list .book__body {
    min-width: 0;
}

.elib__list .book__body h4 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.elib__list .book__body small {
    display: block;
}

.elib__list .book__dl {
    text-decoration: none;
    cursor: pointer;
    flex-shrink: 0;
}

.elib__list .book__dl:hover {
    text-decoration: none;
}


/* Search No Result */

.elib-search-empty {
    width: 100%;
    padding: 35px 20px;
    text-align: center;
    border-radius: 14px;
    background: #f7fafb;
    border: 1px solid rgba(15, 94, 107, 0.08);
}

.elib-search-empty strong {
    display: block;
    margin-bottom: 6px;
    color: #26333b;
    font-size: 16px;
    font-weight: 700;
}

.elib-search-empty span {
    display: block;
    color: #7a8492;
    font-size: 14px;
}


/* Empty Library */

.elib__empty {
    width: 100%;
    margin: 0;
    padding: 35px 20px;
    text-align: center;
    color: #7a8492;
    font-size: 14px;
    background: #f7fafb;
    border-radius: 14px;
    border: 1px solid rgba(15, 94, 107, 0.08);
}


/* Category Buttons */

.elib__cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.elib__cats .cat {
    cursor: pointer;
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.elib__cats .cat:hover {
    transform: translateY(-1px);
}

.elib__cats .cat.active {
    cursor: default;
}


/* Search Input */

.elib__search input {
    width: 100%;
    outline: none;
}

.elib__search input:focus {
    outline: none;
}


/* Download Button */

.elib__list .book__dl {
    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}

.elib__list .book__dl:hover {
    transform: translateY(-2px);
}


    .donation-success-page {
        min-height: 70vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 70px 20px;
    }

    .donation-success-card {
        width: 100%;
        max-width: 620px;
        padding: 45px 35px;
        text-align: center;
        background: #fff;
        border-radius: 18px;
        box-shadow: 0 12px 40px rgba(15, 23, 42, .08);
        border: 1px solid #edf1f5;
    }

    .donation-success-icon {
        width: 72px;
        height: 72px;
        margin: 0 auto 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: #ecfdf3;
        color: #15803d;
        font-size: 32px;
        font-weight: 700;
    }

    .donation-success-card h1 {
        margin-bottom: 10px;
        font-size: 28px;
        font-weight: 700;
        color: #172b4d;
    }

    .donation-success-card p {
        color: #718096;
        line-height: 1.7;
        margin-bottom: 25px;
    }

    .donation-success-amount {
        margin-bottom: 25px;
        color: #176b4d;
        font-size: 25px;
        font-weight: 700;
    }

    .donation-reference {
        padding: 15px;
        margin-bottom: 25px;
        border-radius: 10px;
        background: #f8fafc;
        border: 1px solid #e5eaf0;
    }

    .donation-reference span {
        display: block;
        margin-bottom: 5px;
        color: #8a97a8;
        font-size: 12px;
    }

    .donation-reference strong {
        color: #172b4d;
        font-size: 16px;
    }

    .donation-back-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 12px 22px;
        border-radius: 8px;
        background: #176b4d;
        color: #fff !important;
        text-decoration: none;
        font-size: 14px;
        font-weight: 600;
    }

    .donation-back-btn:hover {
        background: #12583f;
        color: #fff !important;
    }




/* Mobile */

@media (max-width: 768px) {

    .elib__cats {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 6px;
        scrollbar-width: thin;
    }

    .elib__cats .cat {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .elib__list .book__body h4 {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }

}


/* Small Mobile */

@media (max-width: 480px) {

    .elib-search-empty {
        padding: 28px 15px;
    }

    .elib__empty {
        padding: 28px 15px;
    }

}
.footer__brand .logo__mark {
    width: 190px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  
}

.footer__brand .logo__mark img {
    width: 190px;
    height: 75px;
    max-width: none;
    object-fit: contain;
   
}
.map-wrapper {
    width: 100%;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
/* =========================================
   E-LIBRARY RESPONSIVE FIX
   Add at the END of your CSS file
========================================= */

/* Prevent horizontal overflow */
.elib,
.elib * {
    box-sizing: border-box;
}

.elib {
    width: 100%;
    overflow-x: clip;
}

.elib .container {
    width: min(1200px, 100% - 40px);
    max-width: 100%;
    margin-inline: auto;
}

.elib__grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
    gap: 32px;
    align-items: start;
    width: 100%;
    min-width: 0;
}

.elib__intro,
.elib__list {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.elib__intro {
    position: sticky;
    top: 100px;
}

.elib__search,
.elib__search input {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.elib__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.elib__list .book {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 14px;
    margin: 0;
}

.elib__list .book__cover {
    flex: 0 0 58px;
    width: 58px;
    height: 76px;
}

.elib__list .book__body {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
}

.elib__list .book__body h4 {
    margin: 0 0 4px;
    font-size: 16px;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.elib__list .book__body small {
    display: block;
    font-size: 12px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.elib__list .book__dl {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
}

/* Tablet and smaller laptops */
@media (max-width: 1024px) {
    .elib__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .elib__intro {
        position: static;
    }

    .elib__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */
@media (max-width: 767px) {
    .elib {
        padding-block: 55px;
    }

    .elib .container {
        width: 100%;
        padding-inline: 16px;
    }

    .elib__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }

    .elib__intro {
        position: static;
        min-width: 0;
    }

    .elib__intro .title {
        font-size: clamp(28px, 7vw, 38px);
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .elib__intro > p {
        font-size: 15px;
        line-height: 1.6;
    }

    .elib__cats {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 2px 2px 10px;
        margin-bottom: 18px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .elib__cats .cat {
        flex: 0 0 auto;
        white-space: nowrap;
        font-size: 13px;
        padding: 8px 13px;
    }

    .elib__list {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .elib__list .book {
        width: 100%;
        min-width: 0;
        padding: 12px;
        gap: 12px;
        border-radius: 14px;
        transform: none;
    }

    .elib__list .book__cover {
        flex: 0 0 48px;
        width: 48px;
        height: 62px;
        border-radius: 7px;
    }

    .elib__list .book__cover svg {
        width: 23px;
        height: 23px;
    }

    .elib__list .book__body h4 {
        font-size: 14px;
        line-height: 1.35;
        margin-bottom: 4px;
        overflow-wrap: anywhere;
        -webkit-line-clamp: 2;
    }

    .elib__list .book__body small {
        font-size: 11px;
        line-height: 1.4;
    }

    .elib__list .book__dl {
        flex: 0 0 34px;
        width: 34px;
        height: 34px;
    }

    .elib__list .book__dl .ic {
        width: 16px;
        height: 16px;
    }
}

/* Small phones */
@media (max-width: 380px) {
    .elib .container {
        padding-inline: 12px;
    }

    .elib__list .book {
        gap: 8px;
        padding: 9px;
    }

    .elib__list .book__cover {
        flex-basis: 40px;
        width: 40px;
        height: 54px;
    }

    .elib__list .book__body h4 {
        font-size: 12px;
    }

    .elib__list .book__body small {
        font-size: 10px;
    }

    .elib__list .book__dl {
        flex-basis: 29px;
        width: 29px;
        height: 29px;
    }
}

@media (max-width: 600px) {
    .elib__cats {
        display: flex !important;
        flex-wrap: wrap !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        gap: 8px !important;
        padding: 0 !important;
    }

    .elib__cats .cat {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: 100% !important;
        white-space: nowrap !important;
        margin: 0 !important;
    }
}

/* ---------- Team Section ---------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
}

/* Tablet */
@media (max-width: 992px) {
    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.footer-logo {
    width: 190px;
    height: 75px;
    object-fit: contain;
    object-position: left center;
    display: block;
    max-width: 100%;
}

@media (max-width: 576px) {
    .footer-logo {
        width: 160px;
        height: 65px;
    }
}
/* Footer brand: vertical alignment */
.footer__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

/* Logo */
.footer__brand .logo {
    display: block;
    margin: 0;
    padding: 0;
}

/* Address */
.footer__contact {
    margin: 0;
    padding: 0;
    width: 100%;
}

.footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

/* Social icons */
.footer__social {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin: 0;
    padding: 0;
}

/* Remove extra spacing */
.footer__brand p {
    margin-bottom: 0;
}

/* Mobile responsive */
@media (max-width: 576px) {
    .footer__brand {
        gap: 10px;
    }

    .footer__social {
        gap: 8px;
    }
}
/* ==========================================================
   GLR HEADER + MOBILE MENU — single source of truth
   ----------------------------------------------------------
   Purane 5 "header fix" blocks hata diye gaye hain.
   Header / logo / hamburger ka saara CSS sirf yahin hai.
   Breakpoint: 991.98px (script.js mein bhi yahi hai).
   ========================================================== */

:root { --header-h: 85px; }

/* ---------- Logo (all screens) ---------- */
#header .header__inner { min-width: 0; }

#header .logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 1 auto;
    min-width: 0;
    margin: 0;
}

#header .logo__mark {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 62px;
    height: 62px;
    margin: 0;
}

#header .logo__mark img {
    display: block;
    width: 62px !important;
    height: 62px !important;
    max-width: none;
    object-fit: contain;
}

#header .logo__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.12;
    white-space: nowrap;
}

#header .logo__text strong { font-size: 24px; line-height: 1.05; }
#header .logo__text small  { display: block; font-size: 11px; line-height: 1.2; }

/* Overlay is created by script.js — hidden on desktop */
.nav-overlay { display: none; }

/* ==========================================================
   TABLET + MOBILE  (≤ 991.98px)
   ========================================================== */
@media (max-width: 991.98px) {

    :root { --header-h: 72px; }

    /* Header bar. No backdrop-filter / transform here — they would
       trap the fixed menu panel inside the header box. */
    #header {
        position: sticky;
        top: 0;
        z-index: 1000;
        background: #fff;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        transform: none !important;
        filter: none !important;
    }

    #header .header__inner {
        height: var(--header-h);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    #header .logo { gap: 6px; max-width: calc(100% - 54px); }

    #header .logo__mark,
    #header .logo__mark img {
        width: 50px !important;
        height: 50px !important;
    }

    #header .logo__text strong { font-size: 20px; }
    #header .logo__text small  { font-size: 10px; }

    /* ---------- Hamburger ---------- */
    #header #burger {
        display: block !important;
        position: relative;
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        margin-left: auto;
        padding: 0;
        border: 0;
        border-radius: 12px;
        background: var(--teal-soft, #e6f2f2);
        cursor: pointer;
        z-index: 1003;
        -webkit-tap-highlight-color: transparent;
    }

    #header #burger span {
        position: absolute;
        left: 11px;
        right: 11px;
        width: auto;
        height: 2.5px;
        margin: 0;
        border-radius: 2px;
        background: var(--teal, #0f5e6b);
        transform: none;
        opacity: 1;
        transition: top .3s ease, transform .3s ease, opacity .2s ease;
    }

    #header #burger span:nth-child(1) { top: 14px; }
    #header #burger span:nth-child(2) { top: 21px; }
    #header #burger span:nth-child(3) { top: 28px; }

    #header #burger.is-active span:nth-child(1) { top: 21px; transform: rotate(45deg); }
    #header #burger.is-active span:nth-child(2) { opacity: 0; }
    #header #burger.is-active span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

    /* ---------- Slide-in panel ---------- */
    #header #nav {
        display: flex !important;
        position: fixed !important;
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        width: min(360px, 88vw);
        max-width: none;
        height: 100vh;
        height: 100dvh;
        max-height: none;
        margin: 0;
        padding: calc(var(--header-h) + 8px) 18px 24px;
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        background: #fff;
        border: 0;
        border-radius: 0;
        box-shadow: -18px 0 50px -20px rgba(10, 61, 70, .35);
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        transform: translateX(105%) !important;
        visibility: hidden !important;
        transition: transform .35s ease, visibility 0s linear .35s;
        z-index: 1001;
    }

    #header #nav.is-open {
        transform: translateX(0) !important;
        visibility: visible !important;
        transition: transform .35s ease, visibility 0s;
    }

    /* ---------- Links ---------- */
    #header #nav .nav__list {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        width: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    #header #nav .nav__list > li {
        width: 100%;
        opacity: 1;
        transform: none;
    }

    #header #nav .nav__link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        width: 100%;
        min-height: 46px;
        padding: 12px 12px;
        border-radius: 8px;
        font-size: 16px;
        font-weight: 700;
        color: var(--ink, #1a2b33);
        white-space: normal;
    }

    #header #nav .nav__link::after { display: none; }

    #header #nav .nav__link:hover,
    #header #nav .nav__link.active,
    #header #nav .nav__link.current,
    #header #nav .nav__drop.is-open > .nav__link {
        background: var(--teal-soft, #e6f2f2);
        color: var(--teal, #0f5e6b);
    }

    #header #nav .nav__link .ic {
        transform: none;
        transition: transform .25s ease;
    }

    #header #nav .nav__drop.is-open > .nav__link .ic {
        transform: rotate(180deg);
    }

    /* ---------- Dropdowns -> accordion ---------- */
    #header #nav .mega,
    #header #nav .mega--sm {
        display: none !important;
        position: static;
        inset: auto;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        max-height: none;
        margin: 4px 0 8px;
        padding: 8px 10px 10px;
        grid-template-columns: 1fr;
        gap: 8px;
        overflow: visible;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: #f8fbf9;
        border: 1px solid var(--line, #dce7e8);
        border-radius: 10px;
        box-shadow: none;
    }

    #header #nav .mega::before { display: none; }

    #header #nav .nav__drop.is-open > .mega {
        display: block !important;
    }

    #header #nav .mega__col { display: block; margin-bottom: 6px; }

    #header #nav .mega__col h4 {
        margin: 8px 8px 4px;
        padding: 0 0 4px;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: .06em;
    }

    #header #nav .mega a {
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 42px;
        margin: 0;
        padding: 9px 8px;
        border-radius: 6px;
        font-size: 14px;
        color: var(--ink, #1a2b33);
        background: transparent;
        white-space: normal;
    }

    #header #nav .mega a:hover,
    #header #nav .mega a.current { background: #eaf4ef; color: var(--teal, #0f5e6b); padding-left: 8px; }

    #header #nav .mega .mega__all {
        justify-content: center;
        margin: 8px 0 0 !important;
        padding: 11px !important;
        background: var(--teal-soft, #e6f2f2);
        color: var(--teal, #0f5e6b) !important;
        font-weight: 700;
    }

    /* ---------- Donate button ---------- */
    #header #nav .nav__cta {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 48px;
        margin: 0;
        flex-shrink: 0;
    }

    /* ---------- Dim background ---------- */
    .nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(10, 30, 35, .5);
        opacity: 0;
        visibility: hidden;
        transition: opacity .3s ease, visibility .3s ease;
        z-index: 999;
    }

    .nav-overlay.show { opacity: 1; visibility: visible; }

    body.menu-open { overflow: hidden; touch-action: auto; }
}

@media (max-width: 380px) {
    #header .logo__mark,
    #header .logo__mark img { width: 44px !important; height: 44px !important; }
    #header .logo__text strong { font-size: 18px; }
    #header .logo__text small  { font-size: 9.5px; }
}

@media (prefers-reduced-motion: reduce) {
    #header #nav,
    #header #burger span,
    .nav-overlay { transition: none !important; }
}

/* ==========================================================
   HEADER LOGO — round icon image + real text (always sharp)
   Markup: a.logo.logo--brand > img.logo__icon + span.logo__words
   ========================================================== */
#header .logo--brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 1 auto;
    min-width: 0;
    max-width: calc(100% - 60px);
    margin: 0;
    padding: 0;
    text-decoration: none;
}

#header .logo--brand .logo__icon {
    display: block;
    flex: 0 0 auto;
    width: 58px !important;
    height: 58px !important;
    max-width: none !important;
    object-fit: contain;
}

#header .logo--brand .logo__words {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding-left: 12px;
    border-left: 2px solid #b9c7cb;
    line-height: 1;
    white-space: nowrap;
}

#header .logo--brand .logo__words strong {
    font-family: "Manrope", "Segoe UI", sans-serif;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1;
    color: #0b4a52;
}

#header .logo--brand .logo__words small {
    display: block;
    margin-top: 4px;
    font-family: "Manrope", "Segoe UI", sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.2;
    color: #4a5a60;
}

@media (max-width: 991.98px) {
    #header .logo--brand { gap: 9px; }
    #header .logo--brand .logo__icon { width: 46px !important; height: 46px !important; }
    #header .logo--brand .logo__words { padding-left: 9px; }
    #header .logo--brand .logo__words strong { font-size: 24px; }
    #header .logo--brand .logo__words small { font-size: 12px; margin-top: 3px; }
}

@media (max-width: 360px) {
    #header .logo--brand .logo__icon { width: 40px !important; height: 40px !important; }
    #header .logo--brand .logo__words strong { font-size: 21px; }
    #header .logo--brand .logo__words small { font-size: 11px; }
}





/* AI & Agriculture Programme Cards */
.program-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
    background: #ffffff;
    border: 1px solid #e0e7e5;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(15, 61, 70, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(15, 61, 70, 0.10);
}

.program-card__image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.program-card__body {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.program-card__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #e6f3f2;
    color: #0f5e6b;
    margin-bottom: 12px;
}

.program-card__category {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: #0f8a9d;
}

.program-card h3 {
    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;
    color: #173b46;
    margin: 0 0 10px;
}

.program-card p {
    font-size: 14px;
    line-height: 1.8;
    color: #617783;
    margin-bottom: 16px;
}

.program-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    color: #07889b;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.program-card__link:hover {
    text-decoration: underline;
}

@media (max-width: 767px) {
    .program-card__image {
        height: 200px;
    }

    .program-card__body {
        padding: 18px;
    }
}