/* ==========================================================================
   LIPACE, Liberia Institute for the Promotion of Academic Excellence
   Theme aligned to the SiBI family visual language (navy + gold, Inter /
   Plus Jakarta Sans / Playfair Display). Original design/code.
   ========================================================================== */

:root {
  --ink: #1a1a2e;            /* headings / primary text (navy-charcoal)    */
  --ink-soft: #3f4a5c;        /* secondary text / nav links                  */
  --paper: #ffffff;           /* card & page surface                         */
  --cream: #f6f8fc;           /* light tinted section background            */
  --sand: #eef2f8;            /* alt tint / placeholder media background     */
  --primary: #1e3a5f;         /* deep navy (SiBI primary)                    */
  --primary-light: #3b6cb4;   /* brighter navy / focus & links              */
  --accent: #c4934a;          /* gold accent                                 */
  --gold: #b8862d;            /* deep gold                                   */
  --grad: linear-gradient(135deg, #1e3a5f, #3b6cb4);
  --grad-text: linear-gradient(135deg, #c4934a, #b8862d);
  --muted: #4a5568;
  --line: #e5e9f0;            /* hairline border                              */
  --shadow-sm: 0 1px 2px rgba(30,58,95,.05), 0 4px 12px rgba(30,58,95,.05);
  --shadow-md: 0 2px 6px rgba(30,58,95,.07), 0 14px 34px rgba(30,58,95,.11);
  --radius: 12px;
  --radius-lg: 16px;
  --maxw: 1180px;
  --font-sans: "Inter", sans-serif;
  --font-display: "Plus Jakarta Sans", sans-serif;
  --font-serif: "Playfair Display", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 16.5px;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary-light); text-decoration: none; }
a:hover { color: var(--primary); }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.55rem); }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--cream { background: var(--cream); }
.section--sand { background: var(--sand); }
.section--ink { background: var(--grad); color: #e8eef7; }
.section--ink h2, .section--ink h3 { color: #ffffff; }
.eyebrow {
  display: inline-block; font-size: .72rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
  padding: 6px 18px; border-radius: 20px; margin-bottom: 18px;
  border: 1px solid rgba(196,147,74,.25); background: rgba(196,147,74,.06);
}
.lede { font-size: 1.16rem; color: var(--muted); max-width: 720px; }
.lede--center { margin-left: auto; margin-right: auto; text-align: center; }
.center { text-align: center; }
.maxw { max-width: 760px; }
.mx { margin-left: auto; margin-right: auto; }
.gradient-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* Buttons: navy gradient primary echoing SiBI */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: var(--radius); font-weight: 600; font-size: .92rem;
  cursor: pointer; border: 1.5px solid transparent; transition: all .2s ease;
  text-decoration: none; letter-spacing: .01em;
}
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 4px 15px rgba(30,58,95,.25); }
.btn--primary:hover { background: var(--grad); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 25px rgba(30,58,95,.35); }
.btn--teal { background: var(--grad); color: #fff; box-shadow: 0 4px 15px rgba(30,58,95,.25); }
.btn--teal:hover { background: var(--grad); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 25px rgba(30,58,95,.35); }
.btn--ghost { background: transparent; color: var(--primary); border-color: rgba(30,58,95,.25); }
.btn--ghost:hover { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn--ghost-light:hover { background: rgba(255,255,255,.08); border-color: #fff; color: #fff; }
.btn--sm { padding: 11px 20px; font-size: .85rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn-row--center { justify-content: center; }

/* ===== Top bar / navigation ===== */
.topbar {
  position: sticky; top: 0; z-index: 900;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 96px; }
.brand { display: flex; align-items: center; line-height: 0; }
.brand__logo {
  display: block; height: 66px; width: auto;
  object-fit: contain; object-position: left center;
}
@media (max-width: 560px) {
  .brand__logo { height: 50px; }
  .topbar__inner { height: 82px; }
}
.nav { display: flex; align-items: center; gap: 2px; }
.nav a.nav__link {
  /* slate-blue nav inspired by the reference header */
  color: #38518f; font-weight: 500; font-size: .9rem;
  padding: 9px 12px; border-radius: 8px; position: relative;
  transition: color .15s ease, background .15s ease;
}
.nav a.nav__link:hover { color: var(--primary); background: var(--cream); }
.nav a.nav__link.active { color: var(--primary); }
.nav__link.has-drop { display:flex; align-items:center; gap:5px; }
.nav__link .caret { font-size:.7rem; opacity:.7; transition: transform .18s; }
.has-drop.open .caret { transform: rotate(180deg); }
.dropdown { position: relative; }
.dropdown__menu {
  position: absolute; top: 100%; left: 0; min-width: 250px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: all .18s ease; z-index: 950;
}
.dropdown.open .dropdown__menu { opacity: 1; visibility: visible; transform: translateY(4px); }
.dropdown__menu a {
  display: block; padding: 10px 14px; border-radius: 8px; color: var(--ink-soft);
  font-weight: 500; font-size: .9rem;
}
.dropdown__menu a:hover { background: var(--cream); color: var(--primary); }

.nav-toggle { display:none; background:none; border:none; font-size:1.6rem; color: var(--ink); cursor:pointer; padding:6px; }

/* Mobile nav panel */
.mobile-nav {
  display:none; background:#fff; border-top:1px solid var(--line);
  padding: 8px 24px 24px; max-height: calc(100vh - 72px); overflow:auto;
}
.mobile-nav a { display:block; padding:12px 4px; font-weight:500; color:var(--ink-soft); border-bottom:1px solid var(--line); }
.mobile-nav .mgroup-title { font-size:.74rem; letter-spacing:.14em; text-transform:uppercase; color:var(--muted); margin-top:14px; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; background: var(--primary); color:#fff; }
.hero__media { position:absolute; inset:0; }
.hero__media img, .hero__media video { width:100%; height:100%; object-fit:cover; opacity:.30; }
.hero__media video { opacity:.9; }
.hero__media::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(18,38,66,.60), rgba(18,38,66,.84)); }
.hero__inner { position:relative; z-index:2; max-width: var(--maxw); margin:0 auto; padding: 120px 24px; }
.hero--compact .hero__inner { padding: 84px 24px; }
.hero--band { background:#0b1a2e; }
.hero--band .hero__media img { opacity:1; object-position:top center; }
.hero--band .hero__media::after { display:none; }
@media (min-width: 760px) { .hero--band { min-height: 420px; } }
.hero__inner h1 { color:#fff; max-width: 820px; }
.hero__inner .lede { color: rgba(255,255,255,.88); }
.hero__inner .eyebrow { color: var(--accent); border-color: rgba(196,147,74,.4); background: rgba(196,147,74,.12); }
.hero .btn-row { margin-top: 28px; }

/* ===== Cards / grids ===== */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background:#fff; border-radius: var(--radius-lg); border:1px solid rgba(0,0,0,.05);
  overflow:hidden; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(196,147,74,.18); }
.card__media { aspect-ratio: 16/10; overflow:hidden; background: var(--sand); }
.card__media img { width:100%; height:100%; object-fit:cover; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 22px 24px 26px; }

/* Programme / pillar cards */
.pillar { text-align:center; display:flex; flex-direction:column; }
.pillar__body { padding: 28px 26px 30px; display:flex; flex-direction:column; flex:1; }
.pillar h3 { font-size: 1.25rem; margin-top:0; }
.pillar h3 a { color: var(--ink); text-decoration: none; }
.pillar h3 a:hover { color: var(--primary); }
.pillar p { color: var(--muted); }
.pillar a { font-weight:600; margin-top:auto; }

/* Stat blocks */
.stat-grid { display:grid; gap:24px; }
.stat { text-align:center; padding: 10px; }
.stat__num { font-family: var(--font-display); font-size: clamp(2.4rem,4.5vw,3.4rem); font-weight:800; color: var(--primary-light); line-height:1; }
.section--ink .stat__num { background: var(--grad-text); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.stat__label { color: var(--muted); margin-top: 8px; font-weight:600; }
.section--ink .stat__label { color: rgba(255,255,255,.82); }

/* Approach / values */
.value { padding: 28px; border-left: 3px solid var(--accent); background:#fff; border-radius: 0 var(--radius-lg) var(--radius-lg) 0; box-shadow: var(--shadow-sm); }
.value h3 { font-size: 1.25rem; line-height:1.3; margin:0 0 .5em; color: var(--ink); }
.value p { color: var(--muted); font-size: .98rem; line-height:1.7; margin-bottom:0; }

/* Story / split feature */
.split { display:grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items:center; }
.split__media { border-radius: var(--radius-lg); overflow:hidden; box-shadow: var(--shadow-md); }
.split__media img { width:100%; height:100%; object-fit:cover; }
.split__media--tall { aspect-ratio: 4/5; }
.split__media--hub { aspect-ratio: 16/11; }
.split__media--wide { aspect-ratio: 4/3; }
.map-wrap { margin-top: 44px; display:flex; justify-content:center; }
.map-wrap img { width:100%; max-width:560px; height:auto; border-radius: var(--radius-lg); }
.story-box { background:#fff; border:1px solid rgba(0,0,0,.06); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 44px 48px; }
.story-box p.lede { text-align: justify; text-justify: inter-word; }
@media (max-width: 640px) { .story-box { padding: 26px 22px; } }
.hub-slider { position: relative; background: var(--sand); }
.hub-slide { position:absolute; inset:0; width:100%; height:100%; margin:0; padding:0; border:0; background:none; cursor: zoom-in; opacity:0; visibility:hidden; pointer-events:none; transition: opacity .8s ease; display:block; overflow:hidden; }
.hub-slide.is-active { opacity:1; visibility:visible; pointer-events:auto; }
.hub-slide img { width:100%; height:100%; object-fit:contain; display:block; }
.hub-slider__dots { position:absolute; left:0; right:0; bottom:14px; display:flex; gap:8px; justify-content:center; z-index:2; }
.hub-slider__dots button { width:9px; height:9px; padding:0; border-radius:50%; border:0; cursor:pointer; background:rgba(255,255,255,.55); box-shadow:0 0 0 1px rgba(0,0,0,.15); transition: background .2s ease, transform .2s ease; }
.hub-slider__dots button.is-active { background:#fff; transform: scale(1.25); }
.split--reverse .split__media { order: 2; }
.split--top { align-items:start; }
.decade-sec .center > p, .decade-sec .center > p.lede { font-size:1.16rem; line-height:1.75; color: var(--muted); text-align:center; margin:0 auto 18px; }
.subtopic { font-size:1.15rem; font-weight:600; color:var(--primary); letter-spacing:.01em; margin:-6px 0 18px; text-align:center; }
.sl-p { font-size:1.16rem; line-height:1.75; color:var(--muted); text-align:justify; margin:0 0 18px; }
.es-p { font-size:1.16rem; line-height:1.75; color:var(--muted); text-align:justify; margin:0 0 18px; }
.section--ink .es-p { color:rgba(255,255,255,.85); }
.section--ink .sl-p { color:rgba(255,255,255,.85); }
.split--top > div > p { font-size:1.16rem; line-height:1.75; color: var(--muted); margin:0 0 18px; text-align:justify; }
.split__col-media { padding-top:40px; }
.quote__inline { margin:26px 0 0; padding:18px 0 18px 22px; border-left:4px solid var(--gold); font-size:1.16rem; line-height:1.6; font-style:italic; color:var(--primary); font-weight:600; }

.quote { font-family: var(--font-serif); font-size: 1.5rem; font-style: italic; font-weight:400; line-height:1.4; color: var(--ink); margin: 18px 0; padding-left: 22px; border-left: 3px solid var(--gold); }

/* Stories of Change (home) */
.grid--stories { align-items: stretch; }
.story-card__title a { color: inherit; text-decoration: none; }
.story-card__title a:hover { color: var(--accent); }
.story-card > .story-card__body > p > strong { color: var(--ink); font-weight: 700; }
.story-card {
  display:flex; flex-direction:column; background:#fff;
  border:1px solid rgba(30,58,95,.08); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow:hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.story-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.story-card__media { aspect-ratio:16/10; overflow:hidden; background: var(--sand); }
.story-card__media img { width:100%; height:100%; object-fit:cover; transition: transform .4s ease; }
.story-card:hover .story-card__media img { transform: scale(1.05); }
.story-card__body { padding: 26px 26px 28px; display:flex; flex-direction:column; flex:1; }
.story-card__title { font-size:1.2rem; line-height:1.35; margin:0 0 14px; }
.story-card__body p { color: var(--muted); margin:0 0 20px; }
.story-card__link { margin-top:auto; align-self:flex-start; font-weight:600; color: var(--accent); text-decoration:none; }
.story-card__link:hover { text-decoration:underline; }

/* Tag chip */
.chip {
  display:inline-block; font-size:.72rem; font-weight:600; letter-spacing:.1em;
  text-transform: uppercase; padding: 4px 12px; border-radius: 999px;
  background: rgba(196,147,74,.08); color: var(--gold); border:1px solid rgba(196,147,74,.2);
}

/* Team */
.person { text-align: left; }
.person__media { aspect-ratio: 3/3.4; border-radius: var(--radius); overflow:hidden; background:var(--sand); }
.person__media img { width:100%; height:100%; object-fit:cover; }
.story__media { aspect-ratio: 16/10; overflow:hidden; background: var(--sand); }
.story__media img { width:100%; height:100%; object-fit:cover; display:block; }
.person__name { font-weight:700; font-size:1.02rem; margin:14px 0 2px; }
.person__role { color: var(--muted); font-size:.9rem; }
.person__photo { display:block; width:100%; padding:0; border:0; background:none; cursor:pointer; line-height:0; border-radius:var(--radius); overflow:hidden; }
.person__photo img { width:100%; height:auto; display:block; object-fit:contain; border-radius:var(--radius); transition:transform .3s ease; }
.person__photo:hover img, .person__photo:focus-visible img { transform:scale(1.03); }
.person__photo--lead { max-width:340px; margin:0 auto; }
.person__photo--lead img { box-shadow:0 12px 30px rgba(0,0,0,.12); }

/* Timeline / cycle */
.cycle { display:flex; flex-direction:column; gap:0; }
.cycle__step { display:flex; gap:16px; position:relative; padding: 0 0 22px 0; }
.cycle__dot { width:14px; height:14px; border-radius:50%; background:var(--accent); flex:0 0 14px; margin-top:6px; position:relative; z-index:2; border:2px solid #fff; box-shadow:0 0 0 2px rgba(196,147,74,.25); }
.cycle__step:not(:last-child)::before { content:""; position:absolute; left:6px; top:20px; bottom:0; width:2px; background:var(--line); }
.cycle__body h4 { margin:0 0 2px; font-size:1rem; font-family:var(--font-display); font-weight:700; }
.cycle__body span { color:var(--muted); font-size:.9rem; }

/* Accordion / tabs */
.acc { border:1px solid var(--line); border-radius: var(--radius-lg); overflow:hidden; background:#fff; box-shadow: var(--shadow-sm); }
.acc__item { border-bottom:1px solid var(--line); }
.acc__item:last-child { border-bottom:0; }
.acc__head {
  width:100%; text-align:left; background:none; border:none; cursor:pointer;
  padding: 20px 24px; font-family: var(--font-sans); font-weight:600; font-size:1.05rem;
  display:flex; align-items:center; justify-content:space-between; gap:16px; color:var(--ink);
}
.acc__head .acc__icon { font-size:1.4rem; color:var(--accent); transition: transform .2s; }
.acc__item.open .acc__icon { transform: rotate(45deg); }
.acc__body { max-height:0; overflow:hidden; transition: max-height .3s ease; }
.acc__item.open .acc__body { max-height: 2400px; }
.acc__content { padding: 0 24px 26px; color:var(--muted); }
.acc__content ul { margin:0 0 1em; padding-left:20px; }
.acc__content li { margin-bottom:6px; }

/* Tabs */
.tabs { display:flex; gap:6px; flex-wrap:wrap; margin-bottom: 24px; }
.tab-btn {
  padding: 11px 22px; border-radius:999px; border:1.5px solid var(--line); background:#fff;
  font-weight:600; cursor:pointer; font-size:.92rem; color:var(--ink-soft); transition:all .18s;
}
.tab-btn:hover { border-color: var(--accent); color: var(--accent); }
.tab-btn.active { background: var(--grad); color:#fff; border-color:transparent; box-shadow:0 2px 12px rgba(30,58,95,.2); }
.tab-panel { display:none; }
.tab-panel.active { display:block; }

/* ===== News ===== */
.news-grid { display:grid; grid-template-columns: repeat(3,1fr); gap:28px; }
.news-card { background:#fff; border-radius:var(--radius-lg); overflow:hidden; border:1px solid rgba(0,0,0,.05); box-shadow:var(--shadow-sm); display:flex; flex-direction:column; transition: all .2s ease; }
.news-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-md); border-color:rgba(196,147,74,.18); }
.news-card__media { aspect-ratio:16/10; overflow:hidden; background:var(--sand); }
.news-card__media img { width:100%; height:100%; object-fit:cover; transition: transform .4s; }
.news-card:hover .news-card__media img { transform: scale(1.05); }
.news-card__body { padding:20px 22px 24px; display:flex; flex-direction:column; flex:1; }
.news-card__meta { display:flex; align-items:center; gap:10px; font-size:.82rem; color:var(--muted); margin:10px 0 6px; }
.news-card h3 { font-size:1.2rem; margin:4px 0 8px; }
.news-card h3 a { color:var(--ink); }
.news-card h3 a:hover { color:var(--primary-light); }
.news-card p { color:var(--muted); font-size:.95rem; flex:1; }
.news-card .read-more { font-weight:600; font-size:.9rem; margin-top:14px; color:var(--primary-light); }

/* ===== Gallery / masonry ===== */
.masonry { columns: 4 280px; column-gap: 18px; }
.masonry .m-item { break-inside: avoid; margin-bottom: 18px; border-radius: var(--radius-lg); overflow:hidden; cursor:pointer; position:relative; background:var(--sand); box-shadow: var(--shadow-sm); }
.masonry .m-item img { width:100%; display:block; transition: transform .4s ease; }
.masonry .m-item:hover img { transform: scale(1.04); }
.masonry .m-item::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg, transparent 60%, rgba(22,41,74,.55)); opacity:0; transition:opacity .3s; }
.masonry .m-item:hover::after { opacity:1; }

/* Lightbox */
/* lightbox styles live in the Gallery lightbox block at the end of this file */

/* ===== Forms ===== */
.form-card { background:#fff; border-radius:var(--radius-lg); border:1px solid var(--line); box-shadow:var(--shadow-md); padding: 36px; max-width: 820px; margin:0 auto; }
.field { margin-bottom: 20px; }
.field label { display:block; font-weight:600; font-size:.92rem; margin-bottom:7px; }
.field label .req { color:var(--accent); }
.field input, .field select, .field textarea {
  width:100%; padding: 12px 14px; border:1.5px solid var(--line); border-radius:10px;
  font-family:var(--font-sans); font-size:.98rem; background:#fff; color:var(--ink);
  transition: border-color .18s, box-shadow .18s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline:none; border-color:var(--primary-light); box-shadow:0 0 0 3px rgba(59,108,180,.12); }
.field textarea { min-height: 110px; resize:vertical; }
.field .hint { font-size:.8rem; color:var(--muted); margin-top:5px; }
.field-row { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.form-section { margin: 34px 0 10px; padding-top: 26px; border-top: 1px solid var(--line); }
.form-section h3 { font-size:1.3rem; }
.check { display:flex; gap:10px; align-items:flex-start; }
.check input { width:auto; margin-top:4px; }
.check label { font-weight:500; color:var(--muted); }
.status-badge { display:inline-block; padding:6px 16px; border-radius:999px; font-weight:800; font-size:.82rem; letter-spacing:.06em; text-transform:uppercase; }
.status-badge--open { background:#e5f5ed; color:#0f7a4d; }
.status-badge--closed { background:#fdeaea; color:#b33a3a; }

/* ===== Reports table ===== */
.report-table { width:100%; border-collapse:collapse; background:#fff; border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow-sm); table-layout:auto; }
.report-table th, .report-table td { padding: 14px 14px; text-align:left; border-bottom:1px solid var(--line); white-space:nowrap; }
.report-table th:first-child, .report-table td:first-child { width:100%; }
.report-table th:last-child, .report-table td:last-child { text-align:right; }
.report-table td .btn--sm { padding:9px 14px; font-size:.8rem; white-space:nowrap; }
@media (max-width: 640px) { .report-table th, .report-table td { padding:12px 10px; font-size:.9rem; } .report-table td .btn--sm { padding:8px 10px; font-size:.72rem; } }
.report-table th { background: var(--grad); color:#fff; font-weight:700; font-size:.82rem; letter-spacing:.06em; text-transform:uppercase; }
.report-table tr:last-child td { border-bottom:0; }
.report-table__wrap { width:100%; }
.report-table td a { font-weight:600; color:var(--primary-light); }
.report-table td a:hover { color:var(--accent); }

/* Partner logos */
.partner-row { display:flex; flex-wrap:wrap; gap:20px; align-items:center; justify-content:center; }
.partner-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:24px; align-items:center; justify-items:stretch; }
.partner-logo { display:flex; align-items:center; justify-content:center; min-width:120px; height:120px; padding: 8px 20px; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.16); border-radius:12px; color:rgba(255,255,255,.72); font-weight:600; font-size:.9rem; }
.partner-logo img { max-width:100%; max-height:100%; width:auto; height:auto; object-fit:contain; display:block; }
@media (max-width:640px){ .partner-logo { height:100px; padding:8px 14px; } }

/* Income / feature logo placeholders */
.ph { display:flex; align-items:center; justify-content:center; background: var(--grad); color:#fff; font-family:var(--font-display); font-weight:700; }
.ph--ember { background: linear-gradient(135deg, var(--accent), var(--gold)); }
.ph--sand { background: linear-gradient(135deg, var(--cream), #dfe6f0); color:var(--ink); }

/* ===== Footer ===== */
.footer { background: var(--grad); color: #cbd6e6; padding: 72px 0 28px; }
.footer__grid { display:grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
.footer h4 { color:#fff; font-size:1.02rem; margin-bottom:16px; }
.footer a { color: #b3c2d8; display:block; padding: 4px 0; font-size:.95rem; }
.footer a:hover { color: #fff; }
.footer .social a { display:flex; }
.footer__brand { font-family:var(--font-display); font-size:1.15rem; font-weight:700; color:#fff; line-height:1.25; margin-bottom:12px; }
.footer__tagline { color:#a9bad2; font-size:.92rem; max-width:320px; margin-bottom:20px; }
.social { display:flex; gap:12px; }
.social a { width:40px; height:40px; border-radius:50%; background:rgba(255,255,255,.1); display:flex; align-items:center; justify-content:center; color:#fff; font-size:1.05rem; transition:all .2s; }
.social a:hover { background:var(--accent); transform:translateY(-2px); }
.newsletter { display:flex; gap:8px; max-width:360px; }
.newsletter input { flex:1; padding:12px 16px; border-radius:999px; border:1px solid rgba(255,255,255,.25); background:rgba(255,255,255,.08); color:#fff; font-family:var(--font-sans); }
.newsletter input::placeholder { color:#a9bad2; }
.newsletter button { padding:12px 22px; border-radius:999px; background:var(--accent); color:#fff; border:none; font-weight:700; cursor:pointer; transition:background .2s; }
.newsletter button:hover { background:var(--gold); }
.footer__bottom { margin-top:52px; padding-top:24px; border-top:1px solid rgba(255,255,255,.14); display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; font-size:.85rem; color:#a9bad2; }
.footer__brand-row { display:flex; align-items:center; gap:12px; margin-bottom:14px; }

/* ===== Contact page ===== */
.detail { margin-top: 22px; }
.detail h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--primary-light); margin-bottom: .35em; }
.detail p { margin: 0; color: var(--ink); }
.detail a { color: var(--primary-light); text-decoration: none; border-bottom: 1px solid transparent; }
.detail a:hover { border-bottom-color: var(--primary-light); }
.map-card { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line); background: #fff; }
.social--light { gap: 14px; }
.social--light a { background: var(--primary-light); color: #fff; box-shadow: var(--shadow-sm); }
.social--light a:hover { background: var(--accent); transform: translateY(-2px); }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2,1fr); }
  .news-grid { grid-template-columns: repeat(2,1fr); }
  .split { grid-template-columns: 1fr; gap:28px; }
  .split--reverse .split__media { order:0; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap:32px; }
  .nav { display:none; }
  .nav-toggle { display:block; }
}
@media (max-width: 600px) {
  .grid--2, .grid--3, .grid--4, .news-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hero__inner { padding: 84px 20px; }
  .form-card { padding: 24px 18px; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { justify-content:center; }
  .story-card__body { padding: 22px 20px 24px; }
}

/* ===== News article page ===== */
.article { padding: 56px 0 28px; }
.article__narrow { max-width: 760px; }
.article__back { margin: 0 0 18px; font-size: .9rem; font-weight: 600; }
.article__back a { color: var(--primary-light); text-decoration: none; }
.article__back a:hover { color: var(--accent); }
.article__title { font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.18; margin: 14px 0 18px; }
.article__lede { font-size: 1.18rem; line-height: 1.62; color: var(--muted); margin: 0 0 18px; }
.article__meta { font-size: .88rem; color: var(--muted); margin: 0; letter-spacing: .01em; }
.article__meta span { margin: 0 6px; }
.article__hero { margin: 34px 0 40px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--sand); }
.article__hero img { width: 100%; height: auto; max-height: 560px; object-fit: cover; display: block; }
.article__body p { font-size: 1.06rem; line-height: 1.78; color: var(--ink); margin: 0 0 1.35em; }
.article__quote { margin: 34px 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--gold); }
.article__quote p { font-family: var(--font-serif); font-size: 1.22rem; font-style: italic; line-height: 1.62; color: var(--ink); margin: 0 0 12px; }
.article__quote footer { font-size: .92rem; font-weight: 600; color: var(--muted); }
.article__quote cite { font-style: normal; }
.article__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 44px 0 8px; padding-top: 28px; border-top: 1px solid var(--line); }
@media (max-width: 600px) {
  .article { padding: 36px 0 20px; }
  .article__hero { margin: 26px 0 30px; border-radius: 12px; }
  .article__quote { padding-left: 18px; }
  .article__quote p { font-size: 1.1rem; }
}

/* ===== Gallery lightbox ===== */
.masonry .m-item.is-clickable { cursor: zoom-in; }
body.lightbox-open { overflow: hidden; }
.lightbox { position:fixed; inset:0; z-index:10000; display:none; align-items:center; justify-content:center; background:rgba(9,18,33,.92); padding:24px; }
.lightbox.is-open { display:flex; }
.lightbox[hidden] { display:none; }
.lightbox__frame { margin:0; max-width:min(1200px,94vw); max-height:90vh; display:flex; flex-direction:column; align-items:center; gap:12px; }
.lightbox__img { max-width:100%; max-height:82vh; width:auto; height:auto; object-fit:contain; border-radius:var(--radius-lg); box-shadow:0 24px 70px rgba(0,0,0,.55); background:#0b1524; padding:10px; }
.lightbox__caption { color:rgba(255,255,255,.82); font-size:.9rem; text-align:center; max-width:70ch; line-height:1.5; }
.lightbox__close { position:absolute; top:16px; right:20px; width:44px; height:44px; border:0; border-radius:50%; background:rgba(255,255,255,.12); color:#fff; font-size:1.6rem; line-height:1; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:background .2s; }
.lightbox__close:hover { background:rgba(255,255,255,.24); }
.lightbox__nav { position:absolute; top:50%; transform:translateY(-50%); width:48px; height:48px; border:0; border-radius:50%; background:rgba(255,255,255,.12); color:#fff; font-size:2rem; line-height:1; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:background .2s; }
.lightbox__nav:hover { background:rgba(255,255,255,.24); }
.lightbox__prev { left:16px; }
.lightbox__next { right:16px; }
@media (max-width:640px){
  .lightbox { padding:12px; }
  .lightbox__nav { width:40px; height:40px; font-size:1.6rem; }
  .lightbox__prev { left:6px; } .lightbox__next { right:6px; }
  .lightbox__close { top:8px; right:8px; width:40px; height:40px; }
  .lightbox__caption { font-size:.82rem; }
}

/* Logo watermark background (education-systems — Why Systems Matter) */
.section--logo-bg { position:relative; }
.logo-bg { position:absolute; inset:0; overflow:hidden; pointer-events:none; z-index:0; }
.logo-bg img {
  position:absolute;
  top:50%;
  left:0;
  width:62%;
  max-width:none;
  height:auto;
  transform:translate(-10%,-50%);
  opacity:.05;
  filter:grayscale(1);
}
.section--logo-bg > .container { position:relative; z-index:1; }

/* Story cards + modal (stories.html) */
.story-grid { display:grid; gap:30px; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); }
.story-card {
  display:flex; flex-direction:column; overflow:hidden;
  background:#fff; border:1px solid var(--line,#e6e6e6);
  border-radius:var(--radius,18px); box-shadow:0 10px 30px rgba(11,26,46,.07);
  cursor:pointer; transition:transform .25s ease, box-shadow .25s ease;
}
.story-card:hover, .story-card:focus-visible { transform:translateY(-4px); box-shadow:0 18px 40px rgba(11,26,46,.14); outline:none; }
.story-card__media { aspect-ratio:16/10; overflow:hidden; }
.story-card__media img { width:100%; height:100%; object-fit:cover; display:block; }
.story-card__body { padding:24px 26px 28px; display:flex; flex-direction:column; gap:10px; }
.story-card__body .eyebrow { margin-bottom:10px; }
.story-card__body h2 { margin-bottom:8px; }
.story-card__body h2 { font-size:1.35rem; margin:0; }
.story-card__name { margin:8px 0 0; font-size:1.02rem; font-weight:700; color:var(--accent); letter-spacing:.01em; }
.story-card__body p { margin:0; }
.story-card__more { margin-top:14px; font-weight:700; color:var(--accent); font-size:.95rem; }
.story-modal { align-items:flex-start; overflow-y:auto; padding:40px 16px; }
.story-modal__panel {
  position:relative; background:#fff; max-width:760px; width:100%; margin:auto;
  border-radius:var(--radius,18px); overflow:hidden; box-shadow:0 24px 60px rgba(0,0,0,.35);
}
.story-modal__media { aspect-ratio:16/9; overflow:hidden; }
.story-modal__media img { width:100%; height:100%; object-fit:cover; display:block; }
.story-modal__body { padding:26px 30px 34px; }
.story-modal__body .eyebrow { margin-bottom:12px; }
.story-modal__body h2 { margin:.3rem 0 10px; }
.story-modal__body .story-card__name { margin:0 0 18px; }
.story-modal__body p { margin:0 0 16px; }
.story-modal__body .quote { margin:8px 0 0; }
@media (max-width:600px){ .story-modal__body{padding:20px} }

/* ===== Application status badge (Student Support pages) ===== */
.status-badge {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 16px 0 6px; padding: 8px 16px;
  border-radius: 999px; font-weight: 700; font-size: .82rem;
  letter-spacing: .09em; text-transform: uppercase;
  background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.35);
}
.status-badge__dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(255,255,255,.15); }
.status-badge--open { background: rgba(31,138,76,.9); border-color: rgba(255,255,255,.4); color:#fff; }
.status-badge--open .status-badge__dot { background:#b8f5cf; }
.status-badge--closed { background: rgba(150,40,40,.85); border-color: rgba(255,255,255,.35); color:#fff; }
.status-badge--closed .status-badge__dot { background:#ffd0d0; }
.status-badge--upcoming { background: rgba(190,140,20,.9); border-color: rgba(255,255,255,.4); color:#fff; }
.status-badge--upcoming .status-badge__dot { background:#fff0c2; }

/* ===== Gallery slideshow (one large slideshow) ===== */
.gallery-slider { background: #0e1a18; border-radius: var(--radius-lg); overflow: hidden; }
.gallery-slider .hub-slider__stage { position: relative; width: 100%; aspect-ratio: 16 / 10; }
@media (max-width: 640px) { .gallery-slider .hub-slider__stage { aspect-ratio: 4 / 3; } }
.gallery-slider .hub-slide img { object-fit: contain; background: #0e1a18; }
.gallery-slider .hub-slider__dots { bottom: 18px; flex-wrap: wrap; padding: 0 56px; }
.gallery-slider .hub-slider__dots button { background: rgba(255,255,255,.35); }
.gallery-slider .hub-slider__dots button.is-active { background: #fff; }
.hub-slider__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.35);
  color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0 0 .3rem;
  transition: background .2s ease, border-color .2s ease;
}
.hub-slider__arrow:hover { background: rgba(0,0,0,.6); border-color: rgba(255,255,255,.6); }
.hub-slider__arrow--prev { left: 14px; }
.hub-slider__arrow--next { right: 14px; }
@media (max-width: 640px) {
  .hub-slider__arrow { width: 38px; height: 38px; font-size: 1.4rem; }
  .hub-slider__arrow--prev { left: 8px; }
  .hub-slider__arrow--next { right: 8px; }
  .gallery-slider .hub-slider__dots { padding: 0 44px; gap: 6px; }
  .gallery-slider .hub-slider__dots button { width: 7px; height: 7px; }
}

/* ===== Light shadow on content images =====
   Adds a soft, consistent lift to imagery that previously sat flat.
   NOTE: shadows must sit on the wrapper, because media wrappers use
   overflow:hidden (a shadow on the inner <img> would be clipped). */
:root { --shadow-img: 0 6px 18px rgba(30,58,95,.10), 0 1px 3px rgba(30,58,95,.06); }

/* Card imagery: wrapper is overflow:hidden, so lift the media box itself */
.card__media { box-shadow: var(--shadow-img); }

/* Portrait photos: lift the wrapper (img is clipped by overflow:hidden).
   Lead portrait keeps its stronger existing shadow. */
.person__photo { box-shadow: var(--shadow-img); }
.person__photo--lead { box-shadow: 0 12px 30px rgba(0,0,0,.12); }

/* Standalone content images (no wrapper clipping): give them a lift.
   Hero backgrounds, logos, partner marks and modal images are excluded below. */
.article img,
.value img,
.content-img,
.img-lift { box-shadow: var(--shadow-img); border-radius: var(--radius-lg); }

/* Any bare image inside a section that is not a hero background or a logo. */
.section img:not(.brand__logo):not([class*="logo"]):not(#story-modal-img) {
  box-shadow: var(--shadow-img);
  border-radius: var(--radius-lg);
}

/* Hero media images are full-bleed backgrounds: never shadow them. */
.hero__media img { box-shadow: none !important; border-radius: 0; }

/* Partner logos sit on white cards: no shadow on the mark itself. */
.partner-card img,
[class*="partner"] img { box-shadow: none !important; border-radius: 0; }

/* ===== Floating WhatsApp button (global) ===== */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 950;
  display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; padding: 0;
  background: #25D366; color: #fff; border-radius: 50%; text-decoration: none;
  box-shadow: 0 6px 22px rgba(37,211,102,.45); transition: transform .2s ease, box-shadow .2s ease;
}
.wa-float:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 10px 30px rgba(37,211,102,.55); color: #fff; }
.wa-float svg { width: 30px; height: 30px; flex: 0 0 auto; fill: #fff; }
.wa-float__label { display: none !important; }
@media (max-width: 640px) {
  .wa-float { right: 14px; bottom: 14px; width: 52px; height: 52px; }
  .wa-float svg { width: 27px; height: 27px; }
}
