/* =========================================================
   FAPBS — front-end prototype
   All brand colours live in :root below. Replace them with the
   official logo colours when available.
   ========================================================= */

:root {
  /* Brand — official palette (logo blue #174991, orange #ec6627, grey #4b4b4b, light #e0dcdb) */
  --primary: #174991;
  --primary-dark: #0f3266;
  --primary-light: #e7eef8;
  --sky: #2a8fd4;            /* light blue of the logo figure */
  --accent: #ec6627;         /* brand orange: icons, lines, large text */
  --accent-strong: #c94f18;  /* darker orange behind white text (WCAG AA 4.5:1) */
  --accent-dark: #a8410f;
  --yellow: #fdb933;
  --green: #3a9d5d;

  /* Neutrals */
  --ink: #3b3b3b;
  --muted: #5f5f5f;
  --line: #e0dcdb;
  --bg: #ffffff;
  --bg-soft: #f6f4f3;
  --white: #ffffff;

  /* Type: same families as the reference (Droid Arabic Kufi → Noto Kufi Arabic) */
  --font: "Noto Kufi Arabic", "Open Sans", Tahoma, Arial, sans-serif;
  --fs-scale: 1;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 6px 24px rgba(18, 40, 70, .08);
  --shadow-lg: 0 14px 40px rgba(18, 40, 70, .14);
  --container: 1220px;
  --t: .25s ease;
}

/* High-contrast mode (toggled from the accessibility toolbar) */
html.hc {
  --primary: #002b5c;
  --primary-dark: #001833;
  --primary-light: #ffffff;
  --accent: #ffd400;
  --accent-strong: #ffd400;
  --accent-dark: #ffd400;
  --ink: #000;
  --muted: #000;
  --line: #000;
  --bg-soft: #fff;
}
html.hc .btn--accent, html.hc .nav__donate { color: #000 !important; }
html.hc a:not(.btn) { text-decoration: underline; }
html.hc img { filter: grayscale(1) contrast(1.1); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* The hidden attribute must win over component display rules (gallery filter, tabs, panels) */
[hidden] { display: none !important; }
html { font-size: calc(16px * var(--fs-scale)); scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: .95rem;
  line-height: 1.9;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
html[dir="ltr"] body { line-height: 1.7; }
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4 { line-height: 1.5; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
/* Grid/flex children may shrink below their content width (prevents sideways overflow on phones) */
.layout > *, .contact-grid > *, .footer__top > *, .form-grid > *, .media-grid > *, .about > *, .grid-2 > *, .grid-3 > * { min-width: 0; }
input, select, textarea { max-width: 100%; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; inset-inline-start: 1rem; top: -100px; z-index: 1000;
  background: var(--yellow); color: #000; padding: .6rem 1rem; border-radius: var(--radius-sm);
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .65rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: .9rem; line-height: 1.4; transition: all var(--t);
  white-space: nowrap;
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); color: #fff; }
.btn--accent { background: var(--accent-strong); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); color: #fff; }
.btn--outline { border-color: currentColor; color: var(--primary); background: transparent; }
.btn--outline:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn--light { background: #fff; color: var(--primary); }
.btn--light:hover { background: var(--accent-strong); color: #fff; }
.btn--ghost-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--primary); }
.btn--sm { padding: .45rem 1rem; font-size: .82rem; }
.btn--block { width: 100%; }

/* ---------- Demo ribbon ---------- */
.demo-ribbon {
  background: #fff4e5; color: #8a4b00; text-align: center; font-size: .8rem;
  padding: .3rem 1rem; border-bottom: 1px solid #ffd9a8;
}

/* ---------- Top bar ---------- */
.topbar { background: var(--primary-dark); color: #dbe6f3; font-size: .8rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 42px; flex-wrap: wrap; }
.topbar a { color: #dbe6f3; }
.topbar a:hover { color: #fff; }
.topbar__contact { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.topbar__contact i { margin-inline-end: .4rem; color: var(--accent); }
.topbar__tools { display: flex; align-items: center; gap: 1rem; }
.a11y { display: flex; gap: .25rem; }
.a11y button {
  background: rgba(255,255,255,.1); color: #fff; border: 0; border-radius: 6px;
  min-width: 30px; height: 28px; font-size: .78rem; font-family: "Open Sans", sans-serif; font-weight: 700;
}
.a11y button:hover, .a11y button[aria-pressed="true"] { background: var(--accent); color: #000; }
.lang { font-family: "Open Sans", sans-serif; font-weight: 700; border: 1px solid rgba(255,255,255,.3); border-radius: 6px; padding: 0 .6rem; line-height: 26px; }
.social { display: flex; gap: .3rem; }
.social a {
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(255,255,255,.1); color: #fff; font-size: .85rem;
}
.social a:hover { background: var(--accent-strong); color: #fff; }

/* ---------- Header ---------- */
.header { background: #fff; border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: .6rem; }
.brand { display: flex; align-items: center; gap: .9rem; color: var(--ink); }
/* Header logo = text part + mascot part (two SVGs, same height, no gap: together they form the exact logo).
   Left-to-right order keeps the Arabic layout: text | mascot. Only the mascot animates, so the text stays sharp. */
.header .brand { gap: 0; direction: ltr; }
/* Logo slot: holds an icon until the official logo is added as <img> */
.logo-slot {
  width: 72px; height: 72px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary-light); color: var(--primary); font-size: 2rem; border: 2px dashed var(--primary);
}
.brand img, .brand__logo { width: auto; height: 104px; max-width: 100%; flex: none; display: block; overflow: visible; }
.brand__text { display: flex; flex-direction: column; line-height: 1.6; }
.brand__text strong { font-size: 1.05rem; color: var(--primary); }
.brand__text small { font-size: .82rem; color: var(--muted); }
.brand__text em { font-style: normal; font-family: "Open Sans", sans-serif; font-size: .7rem; color: var(--accent-dark); font-weight: 700; letter-spacing: .08em; }
.header__end { display: flex; align-items: center; gap: 1.4rem; }
.header__call { display: flex; align-items: center; gap: .7rem; color: var(--ink); }
.header__call i {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  background: var(--primary-light); color: var(--primary); font-size: 1.1rem;
}
.header__call b { display: block; font-size: .8rem; color: var(--muted); font-weight: 400; }
.header__call span span { font-family: "Open Sans", sans-serif; font-weight: 700; color: var(--primary); }
.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 10px; border: 0;
  background: var(--primary); color: #fff; font-size: 1.2rem;
}

/* ---------- Main navigation ---------- */
.nav { background: var(--primary); position: sticky; top: 0; z-index: 50; transition: box-shadow var(--t); }
.nav.is-stuck { box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.nav__menu { display: flex; align-items: stretch; flex-wrap: wrap; }
.nav__menu > li { position: relative; }
.nav__menu > li > a, .nav__menu > li > button {
  display: flex; align-items: center; gap: .45rem; height: 56px; padding-inline: 1rem;
  color: #fff; background: none; border: 0; font-size: .88rem; font-weight: 700;
  transition: background var(--t);
}
.nav__menu > li > a i:first-child { opacity: .85; }
.nav__menu > li > button .fa-angle-down { font-size: .75rem; transition: transform var(--t); }
.nav__menu > li:hover > a, .nav__menu > li:hover > button,
.nav__menu > li > a[aria-current="page"], .nav__menu > li.is-current > button { background: var(--primary-dark); }
.nav__menu > li > a[aria-current="page"] { box-shadow: inset 0 -4px 0 var(--accent); }
.nav__donate { margin-inline-start: auto; }
.nav__menu > li.nav__donate > a { background: var(--accent-strong); }
.nav__menu > li.nav__donate > a:hover { background: var(--accent-dark); }

.sub {
  position: absolute; top: 100%; inset-inline-start: 0; min-width: 240px; z-index: 60;
  background: #fff; border-radius: 0 0 var(--radius-sm) var(--radius-sm); box-shadow: var(--shadow-lg);
  padding: .5rem 0; border-top: 3px solid var(--accent);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all var(--t);
}
.sub a { display: block; padding: .55rem 1.2rem; color: var(--ink); font-size: .86rem; }
.sub a:hover, .sub a:focus-visible { background: var(--bg-soft); color: var(--primary); padding-inline-start: 1.5rem; }
@media (min-width: 1081px) {
  .has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.is-open > .sub { opacity: 1; visibility: visible; transform: none; }
  .has-sub:hover > button .fa-angle-down { transform: rotate(180deg); }
}
.nav__mobile-head { display: none; }

/* ---------- Section heading (title + subtitle, centred) ---------- */
.section { padding-block: 4.5rem; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--primary-dark); color: #fff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.6rem; }
.section-head h2 { font-size: 1.75rem; color: var(--primary); margin-bottom: .3rem; position: relative; padding-bottom: .8rem; }
.section-head h2::after {
  content: ""; position: absolute; bottom: 0; inset-inline-start: 50%; transform: translateX(50%);
  width: 64px; height: 4px; border-radius: 4px; background: var(--accent);
}
html[dir="ltr"] .section-head h2::after { transform: translateX(-50%); }
.section-head p { color: var(--muted); margin: .6rem 0 0; }
.section--dark .section-head h2 { color: #fff; }
.section--dark .section-head p { color: #c9d8ea; }
.section-foot { text-align: center; margin-top: 2.4rem; display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Hero slider ---------- */
.hero { position: relative; height: clamp(420px, 62vh, 620px); overflow: hidden; background: var(--primary-dark); }
.hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; }
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to left, rgba(15,50,102,.92) 0%, rgba(15,50,102,.65) 45%, rgba(15,50,102,.15) 100%);
}
html[dir="ltr"] .hero__slide::after { background: linear-gradient(to right, rgba(15,50,102,.92) 0%, rgba(15,50,102,.65) 45%, rgba(15,50,102,.15) 100%); }
.hero__content { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; }
.hero__text { max-width: 600px; color: #fff; }
.hero__tag { display: inline-block; background: var(--accent-strong); color: #fff; font-size: .8rem; font-weight: 700; padding: .2rem .9rem; border-radius: 999px; margin-bottom: 1rem; }
.hero__text h1, .hero__text h2 { font-size: clamp(1.5rem, 3.4vw, 2.4rem); margin-bottom: .8rem; color: #fff; }
.hero__text p { font-size: 1rem; color: #e3ecf6; margin-bottom: 1.6rem; }
.hero__btns { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero__controls { position: absolute; bottom: 1.6rem; inset-inline: 0; z-index: 3; }
.hero__controls .container { display: flex; align-items: center; gap: .8rem; }
.hero__dots { display: flex; gap: .5rem; }
.hero__dots button { width: 12px; height: 12px; border-radius: 999px; border: 0; background: rgba(255,255,255,.5); padding: 0; transition: all var(--t); }
.hero__dots button[aria-current="true"] { width: 34px; background: var(--accent); }
.hero__arrow, .hero__pause {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5);
  background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center;
}
.hero__arrow:hover, .hero__pause:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.hero__arrows { display: flex; gap: .5rem; margin-inline-start: auto; }

/* ---------- Achievements badges strip ---------- */
.badges { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.2rem; }
.badge {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1rem; text-align: center; transition: all var(--t);
}
.badge:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.badge i { font-size: 2rem; color: var(--primary); margin-bottom: .7rem; display: block; }
.badge b { display: block; font-size: .88rem; }
.badge small { color: var(--muted); font-size: .76rem; }

/* ---------- Carousel (scroll-snap) ---------- */
.carousel { position: relative; }
.carousel__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 1.5rem) / 4);
  gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: .4rem .2rem 1.2rem; scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; }
.carousel--5 .carousel__track { grid-auto-columns: calc((100% - 4 * 1.5rem) / 5); }
.carousel--3 .carousel__track { grid-auto-columns: calc((100% - 2 * 1.5rem) / 3); }
.carousel__nav { display: flex; justify-content: center; gap: .6rem; margin-top: .6rem; }
.carousel__btn {
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line); background: #fff;
  color: var(--primary); display: grid; place-items: center; transition: all var(--t);
}
.carousel__btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.section--dark .carousel__btn { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }

/* ---------- News card ---------- */
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform var(--t), box-shadow var(--t); color: var(--ink);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: var(--ink); }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.06); }
.card__overlay {
  position: absolute; inset: 0; display: grid; place-items: center; background: rgba(15,50,102,.7);
  color: #fff; font-weight: 700; opacity: 0; transition: opacity var(--t);
}
.card__overlay span { border: 2px solid #fff; border-radius: 999px; padding: .35rem 1.2rem; font-size: .85rem; }
.card:hover .card__overlay, .card:focus-visible .card__overlay { opacity: 1; }
.card__body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card__body h3 { font-size: .98rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__body p { color: var(--muted); font-size: .85rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__date { color: var(--muted); font-size: .78rem; margin-top: auto; }
.card__date i { color: var(--accent); margin-inline-end: .35rem; }
.card__cat {
  position: absolute; top: .8rem; inset-inline-start: .8rem; z-index: 1; background: var(--accent-strong); color: #fff;
  font-size: .72rem; font-weight: 700; padding: .1rem .7rem; border-radius: 999px;
}

/* ---------- Counters band ---------- */
.counters { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.2rem; }
.counter {
  text-align: center; padding: 1.6rem 1rem; border-radius: var(--radius);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
}
.counter i { font-size: 2rem; color: var(--accent); margin-bottom: .6rem; display: block; }
.counter__label { display: block; font-size: .85rem; color: #c9d8ea; }
.counter__num { display: block; font-family: "Open Sans", sans-serif; font-size: 2.3rem; font-weight: 700; color: #fff; line-height: 1.3; }
.counter__unit { font-size: .8rem; color: #c9d8ea; }

/* ---------- Events grid (image tiles) ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.tile { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; display: block; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tile:hover img { transform: scale(1.07); }
.tile__caption {
  position: absolute; inset: auto 0 0 0; padding: 2.4rem 1.2rem 1rem; color: #fff; font-weight: 700;
  background: linear-gradient(to top, rgba(10,25,45,.85), transparent);
}
.tile__caption small { display: block; font-weight: 400; font-size: .78rem; color: #dbe6f3; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.service {
  background: #fff; border-radius: var(--radius); padding: 1.8rem 1.4rem; text-align: center;
  border: 1px solid var(--line); transition: all var(--t); position: relative; overflow: hidden;
}
.service::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--accent);
  transform: scaleX(0); transition: transform var(--t);
}
.service:hover { box-shadow: var(--shadow-lg); border-color: transparent; transform: translateY(-4px); }
.service:hover::before { transform: scaleX(1); }
.service__icon {
  width: 72px; height: 72px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary-light); color: var(--primary); font-size: 1.7rem; transition: all var(--t);
}
.service:hover .service__icon { background: var(--primary); color: #fff; }
.service h3 { font-size: 1rem; }
.service p { color: var(--muted); font-size: .84rem; margin: 0; }

/* ---------- Project / donation cards ---------- */
.project {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.project__media { aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.project__media img { width: 100%; height: 100%; object-fit: cover; }
.project__body { padding: 1.2rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.project__body h3 { font-size: 1rem; margin: 0; }
.project__body p { font-size: .84rem; color: var(--muted); margin: 0; }
.progress { height: 8px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--accent)); border-radius: 999px; }
.project__meta { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); }
.project__meta b { color: var(--ink); font-family: "Open Sans", sans-serif; }
.amount-row { display: flex; gap: .5rem; margin-top: auto; }
.amount-row label { flex: 1; position: relative; }
.amount-row input {
  width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 999px; padding-inline: 1rem 3rem;
  font: inherit; font-family: "Open Sans", sans-serif;
}
.amount-row label span { position: absolute; inset-inline-end: 1rem; top: 50%; transform: translateY(-50%); font-size: .78rem; color: var(--muted); }

/* ---------- Centers ---------- */
.centers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: 2.6rem; }
.center { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.center__media { aspect-ratio: 16 / 9; position: relative; }
.center__media img { width: 100%; height: 100%; object-fit: cover; }
.center__city {
  position: absolute; bottom: -18px; inset-inline-start: 1.2rem; background: var(--primary); color: #fff;
  padding: .3rem 1rem; border-radius: 999px; font-size: .82rem; font-weight: 700; box-shadow: var(--shadow);
}
.center__body { padding: 1.8rem 1.2rem 1.3rem; }
.center__body h3 { font-size: 1.02rem; }
.center__body li { display: flex; gap: .6rem; font-size: .84rem; color: var(--muted); padding-block: .2rem; }
.center__body li i { color: var(--accent); width: 16px; margin-top: .45rem; flex: none; }

/* ---------- Media centre ---------- */
.media-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.6rem; }
.media-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.2rem; }
.media-box h3 { font-size: 1.05rem; color: var(--primary); display: flex; align-items: center; gap: .5rem; }
.media-box h3 i { color: var(--accent); }
.gallery__main { position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 16 / 10; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__main figcaption {
  position: absolute; inset: auto 0 0 0; color: #fff; padding: 2rem 1rem .8rem; font-size: .88rem;
  background: linear-gradient(to top, rgba(10,25,45,.85), transparent);
}
.gallery__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; margin-top: .6rem; }
.gallery__thumbs button { padding: 0; border: 3px solid transparent; border-radius: 8px; overflow: hidden; aspect-ratio: 1; background: none; opacity: .65; transition: all var(--t); }
.gallery__thumbs button[aria-pressed="true"], .gallery__thumbs button:hover { border-color: var(--accent); opacity: 1; }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.videos { display: flex; flex-direction: column; gap: .8rem; }
.video { display: flex; gap: .8rem; align-items: center; color: var(--ink); padding: .4rem; border-radius: var(--radius-sm); }
.video:hover { background: var(--bg-soft); color: var(--ink); }
.video__thumb { position: relative; width: 120px; flex: none; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; }
.video__thumb img { width: 100%; height: 100%; object-fit: cover; }
.video__thumb i {
  position: absolute; inset: 0; margin: auto; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(242,140,40,.95); color: #fff; display: grid; place-items: center; font-size: .8rem;
}
.video b { font-size: .86rem; display: block; line-height: 1.6; }
.video small { color: var(--muted); font-size: .75rem; }

/* ---------- Partners ---------- */
.partner {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem;
  display: flex; flex-direction: column; align-items: center; gap: .6rem; text-align: center; transition: all var(--t);
}
.partner:hover { box-shadow: var(--shadow); border-color: transparent; }
.partner img { width: 100%; max-width: 140px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; filter: grayscale(1); opacity: .8; transition: all var(--t); }
.partner:hover img { filter: none; opacity: 1; }
.partner b { font-size: .82rem; color: var(--muted); }

/* ---------- Testimonials ---------- */
.quote {
  background: #fff; border-radius: var(--radius); padding: 1.8rem 1.5rem; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 1rem; height: 100%;
}
.quote > i { font-size: 1.8rem; color: var(--accent); }
.quote p { color: var(--muted); font-size: .9rem; margin: 0; flex: 1; }
.quote__who { display: flex; align-items: center; gap: .8rem; }
.quote__who img, .avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar { display: grid; place-items: center; background: var(--primary-light); color: var(--primary); font-size: 1.2rem; }
.quote__who b { display: block; font-size: .9rem; }
.quote__who small { color: var(--muted); font-size: .78rem; }

/* ---------- Donation opportunities ---------- */
.donate-card {
  background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 1.6rem 1.3rem;
  display: flex; flex-direction: column; gap: .8rem; text-align: center; transition: all var(--t); height: 100%;
}
.donate-card:hover { box-shadow: var(--shadow-lg); border-color: transparent; }
.donate-card__icon { width: 64px; height: 64px; margin-inline: auto; border-radius: 18px; display: grid; place-items: center; background: #fdeee6; color: var(--accent-strong); font-size: 1.6rem; }
.donate-card h3 { font-size: .98rem; margin: 0; }
.donate-card p { font-size: .84rem; color: var(--muted); margin: 0; flex: 1; }
.donate-card .price { font-family: "Open Sans", sans-serif; font-weight: 700; color: var(--primary); font-size: 1.15rem; }
.donate-card .price small { font-family: var(--font); font-size: .75rem; color: var(--muted); font-weight: 400; }

/* ---------- CTA band ---------- */
.cta { background: linear-gradient(120deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; border-radius: var(--radius); padding: 2.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cta h2 { color: #fff; font-size: 1.4rem; margin: 0 0 .3rem; }
.cta p { margin: 0; color: #dbe6f3; }
.cta__btns { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ---------- About intro ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about__media { position: relative; }
.about__media img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.about__since {
  position: absolute; bottom: -1.4rem; inset-inline-end: -1rem; background: var(--accent-strong); color: #fff;
  border-radius: var(--radius); padding: 1rem 1.4rem; text-align: center; box-shadow: var(--shadow-lg);
}
.about__since b { display: block; font-family: "Open Sans", sans-serif; font-size: 2rem; line-height: 1.1; }
.about__since small { font-size: .78rem; }
.about__text h2 { color: var(--primary); font-size: 1.6rem; }
.about__text .lead { color: var(--muted); }
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1rem; margin-block: 1.2rem 1.6rem; }
.checklist li { display: flex; gap: .5rem; font-size: .88rem; }
.checklist i { color: var(--green); margin-top: .45rem; }

/* ---------- Footer ---------- */
.footer { background: #0c2547; color: #c3cfdd; font-size: .86rem; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.4rem; padding-block: 3.6rem 2.4rem; }
.footer h3 { color: #fff; font-size: 1rem; margin-bottom: 1.1rem; position: relative; padding-bottom: .6rem; }
.footer h3::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 36px; height: 3px; background: var(--accent); border-radius: 3px; }
.footer a { color: #c3cfdd; }
.footer a:hover { color: #fff; }
.footer__brand { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.footer__brand img { width: auto; height: 150px; }
.footer__brand b { color: #fff; font-size: .92rem; line-height: 1.6; }
.footer__links li { padding-block: .25rem; }
.footer__links a::before { content: "\f104"; font-family: "Font Awesome 6 Free"; font-weight: 900; margin-inline-end: .5rem; color: var(--accent); font-size: .75rem; }
html[dir="ltr"] .footer__links a::before { content: "\f105"; }
.footer__contact li { display: flex; gap: .7rem; padding-block: .35rem; }
.footer__contact i { color: var(--accent); margin-top: .4rem; width: 16px; flex: none; }
.newsletter { display: flex; margin-top: .8rem; background: rgba(255,255,255,.08); border-radius: 999px; padding: .25rem; }
.newsletter input { flex: 1; min-width: 0; width: 100%; background: none; border: 0; color: #fff; padding-inline: 1rem; font: inherit; }
.newsletter input::placeholder { color: #8ea2ba; }
.newsletter button { border: 0; border-radius: 999px; background: var(--accent-strong); color: #fff; padding: .5rem 1rem; font-weight: 700; }
.footer .social { margin-top: 1.2rem; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding-block: 1.1rem; }
.footer__bottom .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .8rem; }
.visitors { display: inline-flex; align-items: center; gap: .4rem; }
.visitors b { font-family: "Open Sans", sans-serif; color: #fff; }

/* ---------- Floating buttons ---------- */
.to-top {
  position: fixed; bottom: 1.2rem; inset-inline-start: 1.2rem; z-index: 40; width: 46px; height: 46px; border-radius: 50%;
  background: var(--primary); color: #fff; border: 0; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transition: all var(--t);
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--accent-strong); }

/* ---------- Inner pages ---------- */
.page-hero { background: linear-gradient(120deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; padding-block: 3rem; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset-inline-end: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; border: 40px solid rgba(255,255,255,.05); }
.page-hero h1 { font-size: 1.8rem; color: #fff; margin: 0 0 .4rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .84rem; color: #c9d8ea; }
.breadcrumb a { color: #fff; }
.breadcrumb li + li::before { content: "/"; margin-inline-end: .4rem; opacity: .6; }
.layout { display: grid; grid-template-columns: 1fr 300px; gap: 2.4rem; align-items: start; }
.prose { font-size: .95rem; }
.prose h2 { color: var(--primary); font-size: 1.3rem; margin-top: 1.6rem; }
.prose h3 { font-size: 1.05rem; margin-top: 1.2rem; }
.prose ul, .prose ol { padding-inline-start: 1.4rem; margin-bottom: 1em; }
.prose ul { list-style: disc; }
.prose li { margin-bottom: .3rem; }
.prose .checklist, .prose .docs { list-style: none; padding: 0; }
.prose img { border-radius: var(--radius); margin-block: 1rem; }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-block: 1.4rem; }
.mv div { background: var(--bg-soft); border-radius: var(--radius); padding: 1.3rem; border-inline-start: 4px solid var(--accent); }
.mv h3 { color: var(--primary); margin-top: 0; }
.mv p { margin: 0; color: var(--muted); font-size: .88rem; }
.sidebar { display: flex; flex-direction: column; gap: 1.4rem; position: sticky; top: 76px; }
.side-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.side-box h3 { background: var(--primary); color: #fff; font-size: .95rem; margin: 0; padding: .8rem 1.1rem; }
.side-menu a { display: flex; justify-content: space-between; align-items: center; padding: .65rem 1.1rem; border-bottom: 1px solid var(--line); color: var(--ink); font-size: .86rem; }
.side-menu li:last-child a { border-bottom: 0; }
.side-menu a:hover, .side-menu a[aria-current="page"] { background: var(--bg-soft); color: var(--primary); font-weight: 700; }
.side-menu a i { font-size: .7rem; color: var(--accent); }
.side-donate { background: linear-gradient(140deg, var(--accent-strong) 0%, var(--accent-dark) 100%); color: #fff; border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.side-donate i { font-size: 2.2rem; margin-bottom: .6rem; }
.side-donate h3 { color: #fff; font-size: 1.05rem; }
.side-donate p { font-size: .84rem; color: #fff3e6; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.breadcrumb { list-style: none; margin: 0; padding: 0; }
.docs { display: grid; gap: .7rem; margin-bottom: 1rem; }
.doc {
  display: flex; align-items: center; gap: 1rem; padding: .9rem 1.1rem; border: 1px solid var(--line);
  border-radius: var(--radius-sm); color: var(--ink); background: #fff; transition: all var(--t);
}
.doc:hover { border-color: var(--primary); box-shadow: var(--shadow); color: var(--ink); }
.doc > i:first-child { font-size: 1.6rem; color: #c62828; }
.doc span { flex: 1; }
.doc b { display: block; font-size: .92rem; }
.doc small { color: var(--muted); font-family: "Open Sans", sans-serif; font-size: .75rem; }
.doc > i:last-child { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-light); color: var(--primary); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.chips button { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: .3rem 1rem; font-size: .84rem; }
.chips button[aria-pressed="true"], .chips button:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.search { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.search input { border: 0; padding: .45rem 1rem; font: inherit; font-size: .86rem; width: 220px; min-width: 0; flex: 1; }
.search button { border: 0; background: var(--primary); color: #fff; padding-inline: 1rem; }
.pagination { display: flex; justify-content: center; gap: .4rem; margin-top: 2.4rem; }
.pagination a, .pagination span {
  min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line);
  color: var(--ink); font-family: "Open Sans", sans-serif; font-weight: 700;
}
.pagination a:hover, .pagination [aria-current="page"] { background: var(--primary); color: #fff; border-color: var(--primary); }

.article__meta { display: flex; gap: 1.2rem; flex-wrap: wrap; color: var(--muted); font-size: .82rem; margin-bottom: 1.2rem; }
.article__meta i { color: var(--accent); margin-inline-end: .3rem; }
.article__cover { border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; margin-bottom: 1.6rem; }
.share { display: flex; align-items: center; gap: .5rem; margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
.share a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-soft); color: var(--primary); }
.share a:hover { background: var(--primary); color: #fff; }
.side-news a { display: flex; gap: .7rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line); color: var(--ink); }
.side-news img { width: 70px; height: 56px; object-fit: cover; border-radius: 8px; flex: none; }
.side-news b { font-size: .82rem; line-height: 1.6; display: block; }
.side-news small { color: var(--muted); font-size: .72rem; }

/* Forms */
.form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .86rem; font-weight: 700; }
.field label .req { color: #c62828; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .9rem; border: 1px solid #cfd8e3; border-radius: 10px; padding: .65rem .9rem; background: #fff; color: var(--ink);
  transition: border-color var(--t), box-shadow var(--t);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(23,73,145,.18); }
.form-note { font-size: .8rem; color: var(--muted); }
.form-msg { display: none; margin-top: 1rem; padding: .8rem 1rem; border-radius: 10px; background: #e8f5ec; color: #1e6b3a; font-size: .88rem; }
.form-msg.is-visible { display: block; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 1.8rem; align-items: start; }
.info-list { display: flex; flex-direction: column; gap: 1rem; }
.info-item { display: flex; gap: 1rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.2rem; }
.info-item > i { width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--primary-light); color: var(--primary); font-size: 1.1rem; }
.info-item b { display: block; font-size: .92rem; }
.info-item span, .info-item a { font-size: .86rem; color: var(--muted); }
.map-ph { border-radius: var(--radius); overflow: hidden; aspect-ratio: 21 / 8; margin-top: 2.4rem; position: relative; }
.map-ph img { width: 100%; height: 100%; object-fit: cover; }
.map-ph span { position: absolute; inset: 0; display: grid; place-items: center; color: var(--primary); font-weight: 700; }

.bank {
  background: linear-gradient(140deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff;
  border-radius: var(--radius); padding: 1.8rem; display: grid; gap: .8rem;
}
.bank h3 { color: #fff; margin: 0; }
.bank dl { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.2rem; margin: 0; font-size: .9rem; }
.bank dt { color: #c9d8ea; }
.bank dd { margin: 0; font-weight: 700; }
.bank .rib { font-family: "Open Sans", sans-serif; letter-spacing: .05em; direction: ltr; text-align: start; }
.copy-btn { justify-self: start; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav__menu > li > a, .nav__menu > li > button { padding-inline: .7rem; font-size: .82rem; }
}
@media (max-width: 1080px) {
  .nav-toggle { display: grid; place-items: center; }
  .header__call { display: none; }
  .nav {
    position: fixed; inset-block: 0; inset-inline-start: 0; width: min(86vw, 340px); z-index: 200;
    transform: translateX(100%); transition: transform .3s ease; overflow-y: auto; box-shadow: var(--shadow-lg);
  }
  html[dir="ltr"] .nav { transform: translateX(-100%); }
  .nav.is-open { transform: none !important; }
  .nav .container { width: 100%; }
  .nav__mobile-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem; border-bottom: 1px solid rgba(255,255,255,.15); }
  .nav__mobile-head img { width: auto; height: 58px; background: #fff; border-radius: 10px; padding: 4px 8px; }
  .nav__close { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 1.1rem; }
  .nav__menu { flex-direction: column; }
  .nav__menu > li > a, .nav__menu > li > button { height: auto; padding: .9rem 1.2rem; width: 100%; justify-content: flex-start; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav__menu > li > button .fa-angle-down { margin-inline-start: auto; }
  .has-sub.is-open > button .fa-angle-down { transform: rotate(180deg); }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-radius: 0; background: rgba(0,0,0,.15); display: none; padding: 0; }
  .has-sub.is-open > .sub { display: block; }
  .sub a { color: #e3ecf6; padding-inline-start: 2.4rem; }
  .sub a:hover { background: rgba(0,0,0,.15); color: #fff; }
  .nav__donate { margin: 1rem; }
  .nav__menu > li.nav__donate > a { border-radius: 999px; justify-content: center; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 150; opacity: 0; visibility: hidden; transition: all var(--t); }
  .nav-backdrop.is-visible { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }

  .carousel__track { grid-auto-columns: calc((100% - 2 * 1.5rem) / 3); }
  .carousel--5 .carousel__track { grid-auto-columns: calc((100% - 3 * 1.5rem) / 4); }
  .services, .centers { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
@media (max-width: 860px) {
  .tiles, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .region-map, .inclusive { grid-template-columns: 1fr; }
  .media-grid, .about, .contact-grid { grid-template-columns: 1fr; }
  .carousel__track, .carousel--3 .carousel__track { grid-auto-columns: calc((100% - 1.5rem) / 2); }
  .carousel--5 .carousel__track { grid-auto-columns: calc((100% - 2 * 1.5rem) / 3); }
  .about__since { inset-inline-end: 1rem; }
  .section { padding-block: 3.4rem; }
}
@media (max-width: 640px) {
  .topbar__contact li:nth-child(2) { display: none; }
  .topbar__inner { justify-content: center; padding-block: .4rem; }
  .topbar .social { display: none; }
  .brand .logo-slot { width: 56px; height: 56px; font-size: 1.6rem; }
  .brand img, .brand__logo { height: 70px; }
  .brand { min-width: 0; }
  .brand__text strong { font-size: .88rem; }
  .brand__text small { font-size: .74rem; }
  .header__end .btn { display: none; }
  .tiles, .centers, .grid-3, .grid-2, .services, .mv, .form-grid, .checklist { grid-template-columns: 1fr; }
  .carousel__track, .carousel--3 .carousel__track { grid-auto-columns: 86%; }
  .carousel--5 .carousel__track { grid-auto-columns: calc((100% - 1.5rem) / 2); }
  .footer__top { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 1.4rem; }
  .hero__arrows { display: none; }
  .gallery__thumbs { grid-template-columns: repeat(4, 1fr); }
  .gallery__thumbs button:nth-child(5) { display: none; }
  .cta { padding: 1.6rem; }
  .form-card { padding: 1.3rem; }
}

@media print {
  .topbar, .nav, .hero__controls, .to-top, .footer, .demo-ribbon { display: none !important; }
}


/* =========================================================
   Additions: real-content components
   ========================================================= */
.brand__text em { color: var(--accent-strong); letter-spacing: .02em; }
.footer__slogan { color: #fff; font-weight: 700; margin-bottom: 0; }
.footer__slogan span { font-family: "Open Sans", sans-serif; font-style: italic; font-weight: 400; color: #c3cfdd; }

/* Center cards (one colour per center, same as the map) */
.center { display: flex; flex-direction: column; border-top: 4px solid var(--c, var(--primary)); transition: box-shadow var(--t); }
.center[data-center="1"] { --c: #174991; }
.center[data-center="2"] { --c: #c94f18; }
.center[data-center="3"] { --c: #2f8a52; }
.center[data-center="4"] { --c: #6b4fa0; }
.center__city { background: var(--c, var(--primary)); }
.center__badge {
  position: absolute; top: .8rem; inset-inline-end: .8rem; background: #fff; color: var(--ink); border-radius: 12px;
  padding: .3rem .7rem; text-align: center; font-size: .72rem; line-height: 1.3; box-shadow: var(--shadow);
}
.center__badge b { display: block; font-family: "Open Sans", sans-serif; font-size: 1.2rem; color: var(--c, var(--primary)); }
.center__body { display: flex; flex-direction: column; flex: 1; }
.center__body h3 { font-size: .95rem; }
.center__body p { font-size: .84rem; color: var(--muted); }
.center__body li a { color: var(--muted); word-break: break-all; }
.center__body li a:hover { color: var(--primary); }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: auto; padding-top: .8rem; }
.tags span { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: .1rem .7rem; font-size: .74rem; color: var(--ink); }
.center.is-hl { box-shadow: 0 0 0 3px var(--c), var(--shadow-lg); }

/* Interactive region map */
.region-map { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2rem; align-items: center; }
.region-map__figure { position: relative; background: var(--bg-soft); border-radius: var(--radius); padding: 1.2rem; }
.region-map__svg { width: 100%; height: auto; display: block; }
.region-map__svg path { fill: #e0dcdb; stroke: #fff; stroke-width: 1.4; transition: fill .3s ease, opacity .3s ease; }
.region-map__svg path[data-center="1"] { fill: #174991; }
.region-map__svg path[data-center="2"] { fill: #ec6627; }
.region-map__svg path[data-center="3"] { fill: #3a9d5d; }
.region-map__svg path[data-center="4"] { fill: #755b9d; }
.region-map__svg path[data-center] { cursor: pointer; }
.region-map.has-focus .region-map__svg path[data-center] { opacity: .28; }
.region-map.has-focus .region-map__svg path.is-on { opacity: 1; }
.region-map__svg path.is-hover { opacity: 1 !important; filter: brightness(1.15); }
.region-map__tip {
  position: absolute; pointer-events: none; background: #222; color: #fff; font-size: .78rem; padding: .25rem .7rem;
  border-radius: 8px; white-space: nowrap; opacity: 0; transform: translate(-50%, -130%); transition: opacity .15s ease;
}
.region-map__tip.is-visible { opacity: 1; }
.region-map__legend { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.region-map__legend li {
  display: flex; gap: .9rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: .9rem 1rem; cursor: pointer; transition: all var(--t); border-inline-start: 5px solid var(--lc);
}
.region-map__legend li[data-center="1"] { --lc: #174991; }
.region-map__legend li[data-center="2"] { --lc: #c94f18; }
.region-map__legend li[data-center="3"] { --lc: #2f8a52; }
.region-map__legend li[data-center="4"] { --lc: #6b4fa0; }
.region-map__legend li:hover, .region-map__legend li:focus-visible, .region-map__legend li.is-on { box-shadow: var(--shadow); transform: translateX(-4px); }
html[dir="ltr"] .region-map__legend li:hover, html[dir="ltr"] .region-map__legend li.is-on { transform: translateX(4px); }
.region-map__num { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--lc); color: #fff; font-family: "Open Sans", sans-serif; font-weight: 700; }
.region-map__legend b { display: block; font-size: .9rem; }
.region-map__legend small { color: var(--muted); font-size: .78rem; }

/* Inclusive education */
.inclusive { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; align-items: center; }
.inclusive > * { min-width: 0; }
.inclusive__icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--primary); color: #fff; font-size: 1.6rem; margin-bottom: 1rem; }
.inclusive h2 { color: var(--primary); font-size: 1.6rem; }
.inclusive p { color: var(--muted); }
.inclusive__contact li { display: flex; gap: .6rem; align-items: center; padding-block: .2rem; font-size: .88rem; }
.inclusive__contact i { color: var(--accent); }
.schools { display: grid; gap: .9rem; }
.schools li { display: flex; align-items: center; gap: 1rem; background: #fff; border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); }
.schools li > i { width: 50px; height: 50px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #fdeee6; color: var(--accent-strong); font-size: 1.2rem; }
.schools b { display: block; font-size: .92rem; }
.schools small { color: var(--muted); font-size: .78rem; }

.about__sub { font-size: 1rem; color: var(--primary); margin-top: 1rem; }

/* Admission steps (register page) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-bottom: 2.4rem; }
.step { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.4rem 1.2rem; text-align: center; }
.step__n { width: 46px; height: 46px; margin: 0 auto .7rem; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font-family: "Open Sans", sans-serif; font-weight: 700; font-size: 1.1rem; box-shadow: 0 0 0 6px var(--primary-light); }
.step h3 { font-size: .95rem; margin-bottom: .3rem; }
.step p { font-size: .82rem; color: var(--muted); margin: 0; }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }

/* =========================================================
   Scroll reveal (same feeling as AOS on the reference site)
   ========================================================= */
.js-reveal [data-reveal] {
  opacity: 0;
  transition: opacity .9s cubic-bezier(.22,.61,.36,1), transform .9s cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--rd, 0s);
}
.js-reveal [data-reveal="fade-up"] { transform: translate3d(0, 40px, 0); }
.js-reveal [data-reveal="fade-down"] { transform: translate3d(0, -30px, 0); }
.js-reveal [data-reveal="zoom-in"] { transform: scale(.88); }
.js-reveal [data-reveal="fade-start"] { transform: translate3d(40px, 0, 0); }
.js-reveal [data-reveal="fade-end"] { transform: translate3d(-40px, 0, 0); }
html[dir="ltr"].js-reveal [data-reveal="fade-start"] { transform: translate3d(-40px, 0, 0); }
html[dir="ltr"].js-reveal [data-reveal="fade-end"] { transform: translate3d(40px, 0, 0); }
.js-reveal [data-reveal].is-revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* Lenis smooth scrolling */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; } /* Lenis does the smoothing; native smooth would fight it */
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Responsive rules for the components above (must come after their base rules) */
@media (max-width: 860px) {
  .region-map, .inclusive { grid-template-columns: 1fr; }
}
/* Side-sliding reveal animations must never create a horizontal scrollbar */
main { overflow-x: clip; }


/* =========================================================
   Logo mascot intro animation — plays when the mouse is over
   the header logo (or it gets keyboard focus)
   ========================================================= */
.brand__logo .mascot path { transform-box: fill-box; }
.brand:hover .mascot .w1, .brand:focus-visible .mascot .w1 { transform-origin: 0% 60%; animation: lg-sweep .8s cubic-bezier(.22,.61,.36,1) both; }
.brand:hover .mascot .w2, .brand:focus-visible .mascot .w2 { transform-origin: 0% 50%; animation: lg-sweep .6s .2s cubic-bezier(.22,.61,.36,1) both; }
.brand:hover .mascot .ob, .brand:focus-visible .mascot .ob { transform-origin: 50% 100%; animation: lg-rise .75s .15s cubic-bezier(.34,1.56,.64,1) both; }
.brand:hover .mascot .oa, .brand:focus-visible .mascot .oa { transform-origin: 80% 100%; animation: lg-rise .75s .15s cubic-bezier(.34,1.56,.64,1) both, lg-arm .7s .9s ease-in-out; }
.brand:hover .mascot .oh, .brand:focus-visible .mascot .oh { transform-origin: 50% 50%; animation: lg-pop .55s .45s cubic-bezier(.34,1.56,.64,1) both; }
.brand:hover .mascot .bb, .brand:focus-visible .mascot .bb,
.brand:hover .mascot .bc, .brand:focus-visible .mascot .bc { transform-origin: 50% 100%; animation: lg-rise .75s .3s cubic-bezier(.34,1.56,.64,1) both; }
.brand:hover .mascot .ba, .brand:focus-visible .mascot .ba { transform-origin: 0% 100%; animation: lg-rise .75s .3s cubic-bezier(.34,1.56,.64,1) both, lg-arm .7s 1.05s ease-in-out; }
.brand:hover .mascot .bh, .brand:focus-visible .mascot .bh { transform-origin: 50% 50%; animation: lg-pop .55s .6s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes lg-sweep { from { transform: scaleX(0); opacity: 0; } 40% { opacity: 1; } to { transform: scaleX(1); opacity: 1; } }
@keyframes lg-rise  { from { transform: translateY(40%) scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lg-pop   { 0% { transform: scale(0); opacity: 0; } 65% { transform: scale(1.3); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes lg-arm   { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-14deg); } 65% { transform: rotate(9deg); } }
.brand:focus-visible { outline-offset: 6px; }


/* Service cards with a real photo on top */
.service:has(.service__img) { padding: 0 0 1.6rem; }
.service__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.service__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.service:hover .service__img img { transform: scale(1.06); }
.service__img + .service__icon { margin: -36px auto .9rem; position: relative; border: 4px solid #fff; box-shadow: var(--shadow); }
.service:has(.service__img) h3, .service:has(.service__img) p { padding-inline: 1.2rem; }

/* Partner cards: real logo, or an icon when no logo is available */
.partner img { object-fit: contain; filter: none; opacity: 1; background: #fff; }
.partner__icon { width: 100%; max-width: 140px; aspect-ratio: 3 / 2; display: grid; place-items: center; border-radius: 6px; background: var(--bg-soft); color: var(--primary); font-size: 2.2rem; }
.partner b { color: var(--ink); line-height: 1.6; }

/* Photo gallery page */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .9rem; }
.photo-grid a { position: relative; display: block; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-soft); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.photo-grid a:hover img, .photo-grid a:focus-visible img { transform: scale(1.07); }
.photo-grid a span { position: absolute; inset: auto 0 0 0; padding: 1.4rem .7rem .5rem; font-size: .78rem; color: #fff; background: linear-gradient(to top, rgba(10,25,45,.8), transparent); opacity: 0; transition: opacity var(--t); }
.photo-grid a:hover span, .photo-grid a:focus-visible span { opacity: 1; }
.photo-count { color: var(--muted); font-size: .85rem; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(5, 12, 25, .92); }
.lightbox__inner { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 3.5rem 4.5rem; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 8rem); border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox figcaption { color: #e3ecf6; text-align: center; margin-top: .8rem; font-size: .9rem; }
.lightbox button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 1.1rem; }
.lightbox button:hover { background: var(--accent-strong); }
.lightbox__close { top: 1rem; inset-inline-end: 1rem; }
.lightbox__prev { top: 50%; inset-inline-start: 1rem; transform: translateY(-50%); }
.lightbox__next { top: 50%; inset-inline-end: 1rem; transform: translateY(-50%); }
@media (max-width: 640px) { .lightbox__inner { padding: 3.5rem .8rem 5rem; } .lightbox__prev, .lightbox__next { top: auto; bottom: 1rem; transform: none; } }

/* =========================================================
   Contact speed-dial (WhatsApp / phone / e-mail)
   ========================================================= */
.fab { position: fixed; bottom: 1.2rem; inset-inline-end: 1.2rem; z-index: 60; display: flex; flex-direction: column; align-items: center; gap: .7rem; }
.fab__list { display: flex; flex-direction: column; gap: .7rem; list-style: none; margin: 0; padding: 0; }
.fab__item {
  position: relative; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary-dark); color: #fff; font-size: 1.3rem; box-shadow: 0 8px 22px rgba(10, 30, 60, .3);
  opacity: 0; visibility: hidden; transform: translateY(18px) scale(.5);
  transition: opacity .3s ease, transform .35s cubic-bezier(.34,1.56,.64,1), visibility .3s, background var(--t);
}
.fab__item:hover, .fab__item:focus-visible { background: var(--accent-strong); color: #fff; }
.fab__item--wa:hover, .fab__item--wa:focus-visible { background: #0f7d43; }
.fab.is-open .fab__item { opacity: 1; visibility: visible; transform: none; }
.fab.is-open li:nth-child(3) .fab__item { transition-delay: 0s; }
.fab.is-open li:nth-child(2) .fab__item { transition-delay: .06s; }
.fab.is-open li:nth-child(1) .fab__item { transition-delay: .12s; }
.fab__tip {
  position: absolute; inset-inline-end: calc(100% + 12px); top: 50%; transform: translateY(-50%);
  white-space: nowrap; background: #fff; color: var(--ink); font-size: .8rem; font-weight: 700; padding: .3rem .8rem;
  border-radius: 8px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity var(--t);
}
.fab__item:hover .fab__tip, .fab__item:focus-visible .fab__tip { opacity: 1; }
.fab__toggle {
  position: relative; width: 60px; height: 60px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: var(--primary-dark); color: #fff; font-size: 1.45rem; box-shadow: 0 10px 28px rgba(10, 30, 60, .35);
  transition: background .3s ease, transform .3s ease;
}
.fab__toggle::before {
  content: ""; position: absolute; inset: -7px; border-radius: 50%; background: rgba(15, 50, 102, .18);
  animation: fab-halo 2.6s ease-in-out infinite;
}
.fab__toggle i { position: absolute; transition: transform .35s ease, opacity .25s ease; }
.fab__ico-close { opacity: 0; transform: rotate(-90deg) scale(.6); }
.fab.is-open .fab__toggle { background: #8a94a3; }
.fab.is-open .fab__toggle::before { animation: none; opacity: 0; }
.fab.is-open .fab__ico-open { opacity: 0; transform: rotate(90deg) scale(.6); }
.fab.is-open .fab__ico-close { opacity: 1; transform: none; }
.fab__toggle:hover { transform: scale(1.06); }
@keyframes fab-halo { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.12); opacity: .55; } }
@media print { .fab { display: none; } }

.footer__tz { font-family: "Noto Sans Tifinagh", sans-serif; color: #c3cfdd; font-size: .9rem; margin: .3rem 0 0; }

/* Live Google map (contact page) */
.map-box { margin-top: 2.4rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.2rem; }
.map-box__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.map-box__head h2 { color: var(--primary); font-size: 1.2rem; margin: 0; }
.map-box__head h2 i { color: var(--accent); }
.map-box__frame { width: 100%; aspect-ratio: 21 / 9; min-height: 320px; border: 0; border-radius: var(--radius-sm); display: block; background: var(--bg-soft); }
.map-box .form-note { margin: .8rem 0 0; }

/* Region map: commune names + center pins */
.map-labels text {
  font-family: var(--font); font-size: 13px; font-weight: 700; text-anchor: middle; dominant-baseline: middle;
  fill: #6b6b6b; paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; pointer-events: none;
}
.map-labels text.is-served { fill: #1d1d1d; font-size: 14px; }
.map-pin { cursor: pointer; }
.map-pin path { stroke: #fff; stroke-width: 2.5px; filter: drop-shadow(0 3px 3px rgba(0,0,0,.35)); transition: transform .2s ease; transform-box: fill-box; transform-origin: 50% 100%; }
.map-pin[data-center="1"] path { fill: #0f3266; }
.map-pin[data-center="2"] path { fill: #a8410f; }
.map-pin[data-center="3"] path { fill: #1f6b3d; }
.map-pin[data-center="4"] path { fill: #563f85; }
.map-pin text { fill: #fff; font-family: "Open Sans", sans-serif; font-size: 13px; font-weight: 700; text-anchor: middle; dominant-baseline: middle; pointer-events: none; }
.map-pin:hover path, .map-pin.is-on path { transform: scale(1.15); }
.region-map.has-focus .map-pin { opacity: .35; }
.region-map.has-focus .map-pin.is-on { opacity: 1; }
.region-map__svg path:not([data-center]):not([data-label]) { cursor: default; }
.region-map__svg path[data-label]:not([data-center]) { cursor: help; }
.region-map__side { display: grid; gap: .9rem; }
.region-map__note { font-size: .78rem; color: var(--muted); margin: 0; }

/* =========================================================
   Text-only news cards, archive, article banner
   ========================================================= */
.card--text .card__head {
  position: relative; height: 120px; display: flex; align-items: flex-end; padding: 1rem 1.2rem; overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff;
}
.card--text .card__head > i { position: absolute; inset-inline-end: -10px; top: -14px; font-size: 6.5rem; opacity: .14; transition: transform .5s ease; }
.card--text:hover .card__head > i { transform: rotate(-8deg) scale(1.06); }
.card--text .card__cat { position: static; }
.card--text .card__body p { -webkit-line-clamp: 3; }
.archive { margin-top: 3.4rem; }
.archive h2 { color: var(--primary); font-size: 1.3rem; }
.archive h2 i { color: var(--accent); }
.archive details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .4rem 1.2rem; }
.archive summary { cursor: pointer; font-weight: 700; padding: .6rem 0; font-family: "Open Sans", var(--font); }
.archive summary small { color: var(--muted); font-weight: 400; }
.archive ol { list-style: none; margin: 0 0 .8rem; padding: 0; }
.archive li a { display: flex; gap: 1rem; padding: .55rem 0; border-top: 1px solid var(--line); color: var(--ink); }
.archive li a:hover { color: var(--primary); }
.archive li span { color: var(--muted); font-size: .82rem; min-width: 120px; }
.article__banner { display: flex; align-items: center; gap: 1rem; padding: 1.4rem 1.6rem; border-radius: var(--radius); margin-bottom: 1.4rem; color: #fff; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); }
.article__banner i { font-size: 2.2rem; color: var(--yellow); }
.article__banner span { font-weight: 700; }
.side-news__ico { width: 56px; height: 48px; flex: none; border-radius: 8px; display: grid; place-items: center; background: var(--primary-light); color: var(--primary); }

/* Fields of action, org chart, president */
.fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; margin-block: 1rem 1.6rem; }
.field-card { background: var(--bg-soft); border-radius: var(--radius); padding: 1.1rem; display: flex; flex-direction: column; gap: .3rem; border-inline-start: 4px solid var(--accent); }
.field-card i { color: var(--primary); font-size: 1.4rem; }
.field-card b { font-size: .92rem; }
.field-card small { color: var(--muted); font-size: .74rem; font-family: "Open Sans", sans-serif; }
.org { display: flex; flex-direction: column; align-items: center; margin-block: 1.2rem 1.6rem; }
.org__node { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1.2rem; text-align: center; box-shadow: var(--shadow); min-width: 260px; display: flex; flex-direction: column; align-items: center; gap: .15rem; }
.org__node i { color: var(--accent); font-size: 1.3rem; }
.org__node b { font-size: .95rem; }
.org__node small { color: var(--muted); font-size: .76rem; }
.org__node--ga { background: var(--primary); border-color: var(--primary); color: #fff; }
.org__node--ga small, .org__node--ga i { color: #dbe6f3; }
.org__node--board { border: 2px solid var(--primary); }
.org__line { width: 2px; height: 22px; background: var(--line); }
.org__row { display: grid; grid-template-columns: repeat(5, 1fr); gap: .6rem; width: 100%; position: relative; padding-top: 14px; border-top: 2px solid var(--line); }
.org__node--unit { min-width: 0; padding: .7rem .5rem; box-shadow: none; border-top: 4px solid var(--c, var(--accent)); }
.org__node--unit[data-center="1"] { --c: #174991; } .org__node--unit[data-center="2"] { --c: #c94f18; }
.org__node--unit[data-center="3"] { --c: #2f8a52; } .org__node--unit[data-center="4"] { --c: #6b4fa0; }
.president { display: flex; align-items: center; gap: 1rem; background: var(--bg-soft); border-radius: var(--radius); padding: 1rem 1.2rem; }
.president b { display: block; } .president small { color: var(--muted); }

/* Projects */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
/* Project card: image on top at a fixed ratio (never stretched to the card height), details as full-width rows */
.proj { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.proj__media { background: var(--bg-soft); aspect-ratio: 16 / 9; overflow: hidden; }
.proj__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.proj__media--icon { display: grid; place-items: center; aspect-ratio: 16 / 6; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; font-size: 2.6rem; }
.proj__body { padding: 1.2rem 1.4rem 1.4rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.proj__body h3 { font-size: 1.08rem; line-height: 1.6; margin: 0; color: var(--primary); }
.proj__body p { font-size: .93rem; line-height: 1.9; color: var(--muted); margin: 0; }
.proj dl { display: grid; grid-template-columns: minmax(7.5rem, 36%) 1fr; margin: .4rem 0 0; font-size: .86rem; background: var(--bg-soft); border-radius: var(--radius-sm); padding: .3rem .9rem; }
.proj dt, .proj dd { padding: .5rem 0; border-top: 1px solid rgba(0, 0, 0, .06); line-height: 1.7; }
.proj dt:first-of-type, .proj dt:first-of-type + dd { border-top: 0; }
.proj dt { font-weight: 700; color: var(--ink); padding-inline-end: .8rem; }
.proj dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.proj__status { align-self: flex-start; display: inline-flex; align-items: center; gap: .35rem; font-size: .74rem; font-weight: 700; padding: .15rem .7rem; border-radius: 999px; }
.proj__status--ongoing { background: #e6f1ea; color: #1f6b3d; }
.proj__status--done { background: var(--primary-light); color: var(--primary); }
.proj__status--future { background: #fdeee6; color: var(--accent-dark); }

/* =========================================================
   Statistics (single-hue charts, tooltips, table views)
   ========================================================= */
.tiles-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: .9rem; margin-block: 1rem 2rem; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; display: flex; flex-direction: column; gap: .3rem; }
.stat__label { font-size: .78rem; color: var(--muted); line-height: 1.6; }
.stat__value { font-family: "Open Sans", sans-serif; font-weight: 700; font-size: 1.9rem; color: var(--ink); line-height: 1.1; text-align: start; }
.charts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.chart { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.chart--wide { grid-column: 1 / -1; }
.chart figcaption h2 { font-size: 1.05rem; margin: 0; color: var(--ink); }
.chart figcaption p { font-size: .8rem; color: var(--muted); margin: .2rem 0 1rem; }
.tip { position: absolute; bottom: calc(100% + 8px); inset-inline-start: 50%; transform: translateX(50%); white-space: nowrap; background: #1d1d1d; color: #fff; font-size: .76rem; padding: .25rem .6rem; border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity .15s ease; z-index: 2; }
html[dir="ltr"] .tip { transform: translateX(-50%); }
/* column chart */
.colchart { display: grid; grid-template-columns: auto 1fr; gap: .6rem; height: 280px; }
.colchart__axis { list-style: none; margin: 0; padding: 0 0 26px; display: flex; flex-direction: column; justify-content: space-between; font-size: .72rem; color: var(--muted); font-family: "Open Sans", sans-serif; text-align: end; }
.colchart__axis li { line-height: 0; }
.colchart__plot { list-style: none; margin: 0; padding: 0 0 26px; display: flex; justify-content: space-around; align-items: flex-end; position: relative;
  background: repeating-linear-gradient(to top, #ece9e8 0 1px, transparent 1px 25%); background-origin: content-box; background-clip: content-box; }
.col { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; position: relative; }
.col__bar { position: relative; width: 24px; height: calc(var(--v) / 400 * (100% - 0px)); background: var(--primary); border-radius: 4px 4px 0 0; outline-offset: 3px; transition: filter var(--t); }
.col__bar:hover, .col__bar:focus-visible { filter: brightness(1.25); }
.col__bar:hover .tip, .col__bar:focus-visible .tip, .hbar__bar:hover .tip, .hbar__bar:focus-visible .tip { opacity: 1; }
.col__val { position: absolute; bottom: calc(100% + 4px); inset-inline-start: 50%; transform: translateX(50%); font-family: "Open Sans", sans-serif; font-weight: 700; font-size: .8rem; color: var(--ink); }
html[dir="ltr"] .col__val { transform: translateX(-50%); }
.col__year { position: absolute; bottom: -22px; font-size: .74rem; color: var(--muted); font-family: "Open Sans", sans-serif; }
/* horizontal bars */
.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.hbar { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: .8rem; font-size: .82rem; }
.hbar__name { color: var(--ink); }
.hbar__track { display: flex; align-items: center; gap: .5rem; }
.hbar__bar { position: relative; height: 16px; width: var(--p); min-width: 3px; background: var(--primary); border-start-end-radius: 4px; border-end-end-radius: 4px; transition: filter var(--t); }
.hbar__bar:hover, .hbar__bar:focus-visible { filter: brightness(1.25); }
.hbar__val { font-family: "Open Sans", sans-serif; font-weight: 700; color: var(--ink); font-size: .8rem; }
/* segmented bar */
.segbar { display: flex; gap: 2px; height: 28px; margin-top: .4rem; }
.segbar__part { width: var(--w); border-radius: 4px; display: flex; align-items: center; padding-inline: .6rem; font-family: "Open Sans", sans-serif; font-weight: 700; font-size: .8rem; }
.segbar__part--a { background: var(--primary); color: #fff; }
.segbar__part--b { background: #e0dcdb; color: #1d1d1d; }
.legend { list-style: none; margin: .8rem 0 0; padding: 0; display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: .8rem; color: var(--ink); }
.legend li { display: flex; align-items: center; gap: .4rem; }
.sw { width: 12px; height: 12px; border-radius: 3px; }
.sw--a { background: var(--primary); } .sw--b { background: #e0dcdb; }
/* table view */
.chart__table { margin-top: 1rem; font-size: .8rem; }
.chart__table summary { cursor: pointer; color: var(--primary); font-weight: 700; }
.chart__table table { width: 100%; border-collapse: collapse; margin-top: .6rem; }
.chart__table caption { text-align: start; color: var(--muted); padding-bottom: .3rem; }
.chart__table th, .chart__table td { border-bottom: 1px solid var(--line); padding: .35rem .4rem; text-align: start; }
.chart__table td { font-family: "Open Sans", sans-serif; }

@media (max-width: 1080px) {
  .tiles-stats { grid-template-columns: repeat(3, 1fr); }
  .projects { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .charts { grid-template-columns: 1fr; }
  .fields { grid-template-columns: repeat(2, 1fr); }
  .org__row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .tiles-stats { grid-template-columns: repeat(2, 1fr); }
  .fields { grid-template-columns: 1fr; }
  .proj { grid-template-columns: 1fr; }
  .proj__media { aspect-ratio: 16 / 9; }
  .hbar { grid-template-columns: 110px 1fr; }
  .org__node { min-width: 0; width: 100%; }
}

/* Facebook page feed (media centre) */
.media-box--fb { display: flex; flex-direction: column; }
.fb-feed { width: 100%; flex: 1; min-height: 520px; border: 0; border-radius: var(--radius-sm); background: var(--bg-soft); }

/* Newsletter: one rounded focus ring around the whole pill (instead of a square outline on the field) */
.newsletter input:focus, .newsletter input:focus-visible { outline: none; }
.newsletter:focus-within { box-shadow: 0 0 0 3px var(--accent); }
.newsletter button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* =========================================================
   Floating accessibility panel
   ========================================================= */
.a11y-widget { position: fixed; top: 42%; inset-inline-start: 0; z-index: 70; display: flex; align-items: flex-start; }
.a11y-widget__toggle {
  width: 50px; height: 50px; border: 0; display: grid; place-items: center; font-size: 1.6rem; color: #fff;
  background: var(--primary); border-start-end-radius: 12px; border-end-end-radius: 12px; box-shadow: 0 8px 22px rgba(10, 30, 60, .3);
  transition: background var(--t), width var(--t);
}
.a11y-widget__toggle:hover, .a11y-widget__toggle:focus-visible, .a11y-widget.is-open .a11y-widget__toggle { background: var(--accent-strong); width: 56px; }
.a11y-widget__panel {
  width: min(320px, calc(100vw - 70px)); max-height: 78vh; overflow-y: auto; background: #fff; color: var(--ink);
  border-radius: var(--radius); box-shadow: 0 18px 50px rgba(10, 30, 60, .3); padding: 1rem;
  position: fixed; top: 50%; transform: translateY(-50%); inset-inline-start: 62px; max-height: 88vh;
}
.a11y-widget__panel[hidden] { display: none; }
.a11y-widget__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8rem; }
.a11y-widget__head h2 { font-size: 1rem; margin: 0; color: var(--primary); }
.a11y-widget__close { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--bg-soft); color: var(--ink); }
.a11y-size { display: flex; align-items: center; gap: .5rem; background: var(--bg-soft); border-radius: 10px; padding: .5rem .7rem; margin-bottom: .7rem; font-size: .85rem; }
.a11y-size span { flex: 1; font-weight: 700; }
.a11y-size button { width: 40px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-family: "Open Sans", sans-serif; font-weight: 700; color: var(--primary); }
.a11y-size button:hover { background: var(--primary); color: #fff; }
.a11y-size__val { min-width: 48px; text-align: center; font-family: "Open Sans", sans-serif; font-weight: 700; }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.a11y-grid button {
  display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: .8rem .4rem; border-radius: 10px;
  border: 2px solid var(--line); background: #fff; color: var(--ink); font-size: .8rem; font-weight: 700; transition: all var(--t);
}
.a11y-grid button i { font-size: 1.25rem; color: var(--primary); }
.a11y-grid button:hover { border-color: var(--primary); }
.a11y-grid button[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.a11y-grid button[aria-pressed="true"] i { color: #fff; }
.a11y-reset { width: 100%; margin-top: .7rem; padding: .6rem; border-radius: 10px; border: 0; background: var(--bg-soft); color: var(--ink); font-weight: 700; }
.a11y-reset:hover { background: var(--accent-strong); color: #fff; }
.a11y-note { text-align: center; font-size: .75rem; margin: .6rem 0 0; }

/* Effects */
html.a11y-gray body > *:not(.a11y-widget):not(.reading-guide) { filter: grayscale(1); }
html.a11y-links a:not(.btn) { text-decoration: underline !important; text-underline-offset: 3px; }
html.a11y-links a { outline: 2px dashed var(--accent-strong); outline-offset: 2px; }
html.a11y-readable body, html.a11y-readable button, html.a11y-readable input, html.a11y-readable select, html.a11y-readable textarea { font-family: Tahoma, "Segoe UI", Arial, sans-serif !important; }
html.a11y-readable body { word-spacing: .14em; }
html.a11y-spacing body, html.a11y-spacing p, html.a11y-spacing li { line-height: 2.3 !important; }
html.a11y-spacing p { margin-bottom: 1.6em; }
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-still [data-reveal] { opacity: 1 !important; transform: none !important; }
.reading-guide { display: none; position: fixed; inset-inline: 0; height: 36px; z-index: 65; pointer-events: none;
  background: rgba(253, 185, 51, .18); border-block: 2px solid rgba(236, 102, 39, .7); }
html.a11y-guide .reading-guide { display: block; }
html.a11y-cursor, html.a11y-cursor * {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'><path d='M6 4 L6 40 L16 30 L23 45 L30 42 L23 27 L38 27 Z' fill='%23000' stroke='%23fff' stroke-width='3' stroke-linejoin='round'/></svg>") 6 4, auto !important;
}
@media print { .a11y-widget, .reading-guide { display: none !important; } }

/* Donation page */
.donate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.donate-card.is-chosen { border-color: var(--accent-strong); box-shadow: 0 0 0 3px rgba(201, 79, 24, .25), var(--shadow); }
.donate-form { max-width: 860px; margin-inline: auto; }
@media (max-width: 860px) { .donate-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .donate-grid { grid-template-columns: 1fr; } }

/* Join-us call to action */
.join { position: relative; min-height: 420px; display: flex; align-items: center; overflow: hidden; color: #fff; }
.join > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.join::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, rgba(15,50,102,.94) 0%, rgba(15,50,102,.75) 50%, rgba(15,50,102,.35) 100%); }
html[dir="ltr"] .join::after { background: linear-gradient(to right, rgba(15,50,102,.94) 0%, rgba(15,50,102,.75) 50%, rgba(15,50,102,.35) 100%); }
.join__inner { position: relative; z-index: 1; padding-block: 4rem; }
.join__text { max-width: 620px; }
.join__text h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 2rem); }
.join__text p { color: #e3ecf6; font-size: 1rem; }
/* footer credit, 404 */
.credit { font-size: .76rem; opacity: .8; }
.nf { text-align: center; max-width: 640px; }
.nf__code { display: block; font-family: "Open Sans", sans-serif; font-size: clamp(5rem, 14vw, 8rem); font-weight: 700; line-height: 1; color: var(--primary-light); -webkit-text-stroke: 2px var(--primary); }
.nf h1 { color: var(--primary); }
.nf p { color: var(--muted); }

/* =========================================================
   Multi-colour accents (same family as the centers map) + readability
   Each hue is dark enough for white text (WCAG AA) and has a light tint.
   ========================================================= */
:root {
  --ink: #262626;            /* darker body text */
  --muted: #4b4b4b;          /* brand grey for secondary text (8.6:1 on white) */
  --h-blue: #174991;   --t-blue: #e7eef8;   --l-blue: #8fb7ef;
  --h-orange: #c94f18; --t-orange: #fdeee6; --l-orange: #f5a06d;
  --h-green: #1f7a46;  --t-green: #e3f2e8;  --l-green: #7fd4a1;
  --h-purple: #6b4fa0; --t-purple: #efeaf7; --l-purple: #c2adeb;
}
body { font-size: 1rem; }

/* rotate the four hues through card lists */
:is(.services, .badges, .donate-grid, .fields, .tiles-stats, .schools, .counters, .carousel__track) > :nth-child(4n+1) { --h: var(--h-blue);   --ht: var(--t-blue);   --hl: var(--l-blue); }
:is(.services, .badges, .donate-grid, .fields, .tiles-stats, .schools, .counters, .carousel__track) > :nth-child(4n+2) { --h: var(--h-green);  --ht: var(--t-green);  --hl: var(--l-green); }
:is(.services, .badges, .donate-grid, .fields, .tiles-stats, .schools, .counters, .carousel__track) > :nth-child(4n+3) { --h: var(--h-purple); --ht: var(--t-purple); --hl: var(--l-purple); }
:is(.services, .badges, .donate-grid, .fields, .tiles-stats, .schools, .counters, .carousel__track) > :nth-child(4n+4) { --h: var(--h-orange); --ht: var(--t-orange); --hl: var(--l-orange); }

.service__icon { background: var(--ht, var(--primary-light)); color: var(--h, var(--primary)); }
.service:hover .service__icon { background: var(--h, var(--primary)); color: #fff; }
.service::before { background: var(--h, var(--accent)); }
.badge { border-top: 4px solid var(--h, var(--primary)); }
.badge i { color: var(--h, var(--primary)); }
.donate-card { border-top: 4px solid var(--h, var(--accent)); }
.donate-card__icon { background: var(--ht, #fdeee6); color: var(--h, var(--accent-strong)); }
.donate-card .price { color: var(--h, var(--primary)); }
.donate-card .btn--accent, .project .btn--accent { background: var(--h, var(--accent-strong)); }
.donate-card .btn--accent:hover, .project .btn--accent:hover { background: var(--ink); }
.project { border-top: 4px solid var(--h, var(--primary)); }
.progress { background: var(--ht, var(--bg-soft)); height: 10px; }
.progress span { background: var(--h, var(--primary)); }
.project__meta b { color: var(--h, var(--ink)); }
.field-card { border-inline-start-color: var(--h, var(--accent)); background: var(--ht, var(--bg-soft)); }
.field-card i { color: var(--h, var(--primary)); }
.stat { border-top: 4px solid var(--h, var(--primary)); }
.schools li > i { background: var(--ht, #fdeee6); color: var(--h, var(--accent-strong)); }
.counter i { color: var(--hl, var(--accent)); }
.counter { border-top: 3px solid var(--hl, transparent); }

/* news cards: one colour per activity type */
.card--text[data-cat="edu"] .card__head   { background: linear-gradient(135deg, #1f7a46, #13502d); }
.card--text[data-cat="cap"] .card__head   { background: linear-gradient(135deg, #174991, #0f3266); }
.card--text[data-cat="intl"] .card__head  { background: linear-gradient(135deg, #1d6fa5, #124a70); }
.card--text[data-cat="sport"] .card__head { background: linear-gradient(135deg, #c94f18, #8f3510); }
.card--text[data-cat="aware"] .card__head { background: linear-gradient(135deg, #6b4fa0, #48336f); }
.card--text[data-cat="fed"] .card__head   { background: linear-gradient(135deg, #3b3b3b, #1f1f1f); }
.card--text .card__cat { background: rgba(255,255,255,.2); color: #fff; backdrop-filter: blur(2px); }

/* readability: larger small texts */
.section-head p { font-size: 1.02rem; color: var(--muted); }
.card__body h3 { font-size: 1.02rem; }
.card__body p, .project__body p, .donate-card p, .service p, .center__body p, .center__body li, .proj__body p, .quote p { font-size: .93rem; }
.card__date, .badge small, .tags span, .hbar, .proj dl, .stat__label, .form-note, .photo-count, .region-map__legend small, .region-map__note { font-size: .86rem; }
.topbar, .breadcrumb { font-size: .88rem; }
.footer { font-size: .92rem; }
.footer__links li, .footer__contact li { padding-block: .3rem; }
.tile__caption { font-size: 1rem; }
.tile__caption small { font-size: .84rem; }
.field label { font-size: .92rem; }
.nav__menu > li > a, .nav__menu > li > button { font-size: .92rem; }
@media (max-width: 1180px) { .nav__menu > li > a, .nav__menu > li > button { font-size: .85rem; } }

/* ===== Centre cards (summary) + centre page (/centers/{key}) ===== */
.center__media { display: block; }
.center__body { display: flex; flex-direction: column; flex: 1; }
.center__body h3 a { color: inherit; text-decoration: none; }
.center__body h3 a:hover { color: var(--c, var(--primary)); }
.center__summary { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.center__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: .9rem; }
.center__actions .btn i { margin-inline-start: .4rem; }
.center-page { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2.2rem; align-items: start; }
.center-page__media { position: relative; margin: 0 0 1.4rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; aspect-ratio: 16 / 9; }
.center-page__media img, .center-page__media video, .center-page__media iframe { display: block; width: 100%; height: 100%; object-fit: cover; border: 0; }
.center-page__media .center__city { position: absolute; inset-block-start: 1rem; inset-inline-start: 1rem; }
.center-page__facts { list-style: none; padding: 0; margin: 0 0 1.8rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .9rem; }
.center-page__facts li { background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 1rem; text-align: center; border-top: 3px solid var(--c, var(--primary)); }
.center-page__facts i { display: block; font-size: 1.4rem; color: var(--c, var(--primary)); margin-bottom: .4rem; }
.center-page__facts b { display: block; font-size: 1.45rem; color: var(--ink); line-height: 1.3; }
.center-page__facts span { font-size: .86rem; color: var(--muted); }
.center-page[data-center="1"] { --c: #174991; } .center-page[data-center="2"] { --c: #c94f18; }
.center-page[data-center="3"] { --c: #1f7a46; } .center-page[data-center="4"] { --c: #6b4fa0; }
.center-page__main h2 { font-size: 1.25rem; color: var(--primary); margin: 1.8rem 0 .8rem; }
.center-page__text { font-size: 1.02rem; line-height: 2; color: var(--ink); }
.center-page__services { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .6rem; }
.center-page__services li { display: flex; gap: .6rem; align-items: baseline; background: var(--bg-soft); border-radius: var(--radius-sm); padding: .65rem .9rem; }
.center-page__services i { color: var(--c, var(--primary)); }
.center-page__more { display: grid; grid-template-columns: minmax(8rem, 30%) 1fr; margin: 1.4rem 0 0; background: var(--bg-soft); border-radius: var(--radius-sm); padding: .4rem 1rem; }
.center-page__more dt, .center-page__more dd { margin: 0; padding: .55rem 0; }
.center-page__more dt { font-weight: 700; }
.center-page__photos a { aspect-ratio: 16 / 9; }
.center-page__album { margin-top: .8rem; }
.center-page__aside { position: sticky; top: 90px; display: grid; gap: 1.2rem; }
.center-page__card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.3rem 1.4rem; border-top: 4px solid var(--c, var(--primary)); }
.center-page__card h2 { font-size: 1.08rem; margin: 0 0 .9rem; color: var(--primary); }
.center-page__card ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.center-page__card li { display: flex; gap: .7rem; padding: .45rem 0; border-bottom: 1px solid rgba(0, 0, 0, .06); font-size: .95rem; overflow-wrap: anywhere; }
.center-page__card li:last-child { border-bottom: 0; }
.center-page__card li > i { color: var(--accent); width: 18px; flex: none; margin-top: .35rem; }
.center-page__card .btn { width: 100%; justify-content: center; }
.center-page__others li { padding: 0; }
.center-page__others a { display: flex; align-items: center; gap: .8rem; padding: .5rem 0; color: var(--ink); text-decoration: none; font-weight: 600; }
.center-page__others a:hover { color: var(--primary); }
.center-page__others img { width: 64px; height: 44px; object-fit: cover; border-radius: 8px; flex: none; }
.center-page__back { font-size: .9rem; }
@media (max-width: 980px) {
  .center-page { grid-template-columns: 1fr; }
  .center-page__aside { position: static; }
}
.center-page__news { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .9rem; }
.center-page__post { display: flex; gap: .8rem; align-items: center; background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: .6rem; color: var(--ink); text-decoration: none; transition: box-shadow var(--t); }
.center-page__post:hover { box-shadow: var(--shadow-lg, 0 8px 24px rgba(0,0,0,.12)); color: var(--primary); }
.center-page__post img, .center-page__post-icon { width: 96px; height: 68px; object-fit: cover; border-radius: 8px; flex: none; }
.center-page__post-icon { display: grid; place-items: center; background: var(--bg-soft); color: var(--c, var(--primary)); font-size: 1.4rem; }
.center-page__post small { display: block; color: var(--muted); font-size: .8rem; margin-bottom: .2rem; }
.center-page__post small i { margin-inline-end: .3rem; }
.center-page__post b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .92rem; line-height: 1.6; }
