/* ==========================================================================
   HEQUITY Project — Global Stylesheet
   Official brand direction: a single blue family (#1070B7 / #5592C9 /
   #D2DDEF / #FFFFFF), Fraunces display serif for headings, Plus Jakarta
   Sans for body text, soft elevation, glass navigation, motion on scroll.
   ========================================================================== */

:root {
  --brand-primary: #1070B7;
  --brand-secondary: #5592C9;
  --brand-tint: #D2DDEF;
  --brand-white: #FFFFFF;

  --bg: #F6F9FC;
  --surface: #FFFFFF;
  --surface-tint: #EBF1F9;
  --ink: #0B2942;
  --ink-soft: #4C6480;
  --ink-faint: #7C93AC;
  --border: #E1E9F5;
  --border-strong: #C9D6EA;

  --primary: #1070B7;
  --primary-dark: #0B4C78;
  --primary-soft: #E4EDF8;
  --accent: #5592C9;
  --gradient: linear-gradient(135deg, #0B4C78 0%, #1070B7 55%, #5592C9 100%);
  --gradient-soft: linear-gradient(135deg, rgba(16,112,183,0.10), rgba(85,146,201,0.12));

  --c-blue: #0B4C78;      --c-blue-soft: #E1EAF4;
  --c-teal: #1070B7;      --c-teal-soft: #E3EEF9;
  --c-purple: #16609E;    --c-purple-soft: #E5EEF8;
  --c-coral: #2C86BE;     --c-coral-soft: #E7F0F9;
  --c-amber: #5592C9;     --c-amber-soft: #EAF1FA;
  --c-green: #3E7CA6;     --c-green-soft: #E6EFF8;
  --c-pink: #7FAED6;      --c-pink-soft: #EEF4FB;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(21, 22, 43, 0.05), 0 1px 1px rgba(21, 22, 43, 0.03);
  --shadow: 0 8px 24px rgba(21, 22, 43, 0.07), 0 2px 6px rgba(21, 22, 43, 0.04);
  --shadow-lg: 0 24px 60px rgba(21, 22, 43, 0.14), 0 6px 16px rgba(21, 22, 43, 0.06);

  --font-serif: "Fraunces", Georgia, "Iowan Old Style", serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 16px;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.35rem; }

p { margin: 0 0 16px; color: var(--ink-soft); }

.muted { color: var(--ink-faint); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
  display: inline-block;
}

.eyebrow-light { color: rgba(255,255,255,0.92); }
.eyebrow-light::before { background: linear-gradient(135deg, #ffffff, #BFD6EC); }

.section-title { margin-bottom: 8px; }

.section-intro {
  color: var(--ink-soft);
  max-width: 720px;
  margin-bottom: 48px;
  font-size: 1.08rem;
}

/* ---------------------------------------------------------------------
   Buttons & links
   --------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 10px 24px rgba(16, 112, 183, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(16, 112, 183, 0.36);
}

.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: gap 0.15s ease;
}

.card-link:hover { gap: 10px; }

/* ---------------------------------------------------------------------
   Header / navigation
   --------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 20px rgba(21, 22, 43, 0.05);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--gradient);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 16px rgba(16, 112, 183, 0.3);
}

.logo-image {
  height: 40px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.footer-brand .logo-image { height: 36px; }

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.main-nav > ul > li { position: relative; }

.main-nav a, .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.main-nav a:hover, .dropdown-toggle:hover { background: var(--surface-tint); color: var(--ink); }

.main-nav a.active, .dropdown-toggle.active {
  color: var(--primary);
  background: var(--primary-soft);
}

.dropdown-caret { font-size: 0.6rem; opacity: 0.7; transition: transform 0.15s ease; }
.has-dropdown.open .dropdown-caret { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  list-style: none;
  margin: 0;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}

.has-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------------------
   Hero slider (homepage)
   --------------------------------------------------------------------- */

.hero-slider {
  position: relative;
  padding: 0;
  height: min(620px, 86vh);
  min-height: 460px;
  overflow: hidden;
  background: var(--ink);
}

.hero-slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #0B2942;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease;
}

.hero-slide.active { opacity: 1; visibility: visible; z-index: 1; }

.hero-slide-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(9, 32, 54, 0.90) 0%, rgba(11, 76, 120, 0.75) 45%, rgba(16, 112, 183, 0.40) 100%);
}

.hero-slide-inner {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
}

.hero-slide-copy {
  max-width: 780px;
  color: #fff;
}

.hero-slide-copy h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.1rem);
  margin-bottom: 18px;
}

.hero-slide-copy p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.1rem;
  max-width: 540px;
  margin-bottom: 30px;
}

.hero-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease, transform 0.15s ease;
}

.hero-slider-arrow:hover { background: rgba(255, 255, 255, 0.24); }
.hero-slider-arrow.prev { left: 24px; }
.hero-slider-arrow.next { right: 24px; }

.hero-slider-dots {
  position: absolute;
  z-index: 2;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.hero-slider-dot {
  width: 28px;
  height: 4px;
  border-radius: 4px;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, width 0.2s ease;
}

.hero-slider-dot.active { background: #fff; width: 42px; }

/* ---------------------------------------------------------------------
   Stats band (homepage)
   --------------------------------------------------------------------- */

.stats-band {
  padding: 0;
  background: var(--gradient);
  color: #fff;
}

.stats-band-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 40px 24px;
}

.stats-band-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.stats-band-item:last-child { border-right: none; }

.stats-band-num {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
}

.stats-band-label {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* ---------------------------------------------------------------------
   Event countdown (homepage)
   --------------------------------------------------------------------- */

.event-countdown {
  padding: 40px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.event-countdown-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.event-countdown-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}

.event-countdown-info h3 { margin-bottom: 6px; }
.event-countdown-info p { margin: 0 0 14px; color: var(--ink-soft); font-size: 0.94rem; }
.event-countdown-btn { padding: 9px 20px; font-size: 0.85rem; }

.event-countdown-timer { display: flex; gap: 12px; flex-shrink: 0; }

.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 20px rgba(16, 112, 183, 0.25);
}

.cd-value { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.cd-unit-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.85; margin-top: 4px; }

/* ---------------------------------------------------------------------
   Card grid (homepage "About the project")
   --------------------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--gradient-soft);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

/* ---------------------------------------------------------------------
   Partner strip (homepage)
   --------------------------------------------------------------------- */

.partner-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.partner-strip-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.partner-strip-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.partner-strip-item img { width: 26px; height: 26px; object-fit: contain; }

/* ---------------------------------------------------------------------
   Stats row (about page) & quote block
   --------------------------------------------------------------------- */

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 40px 0;
}

.stat-box {
  text-align: center;
  padding: 28px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.quote-block {
  margin: 40px 0 0;
  padding: 36px 40px;
  border-left: 4px solid transparent;
  border-image: var(--gradient) 1;
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

/* ---------------------------------------------------------------------
   Badges & color tints (shared across partners / objectives / WPs / activities)
   --------------------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge-blue   { background: var(--c-blue-soft);   color: var(--c-blue); }
.badge-teal   { background: var(--c-teal-soft);   color: var(--c-teal); }
.badge-purple { background: var(--c-purple-soft); color: var(--c-purple); }
.badge-coral  { background: var(--c-coral-soft);  color: var(--c-coral); }
.badge-amber  { background: var(--c-amber-soft);  color: var(--c-amber); }
.badge-green  { background: var(--c-green-soft);  color: var(--c-green); }
.badge-pink   { background: var(--c-pink-soft);   color: var(--c-pink); }

.tint-blue   { background: var(--c-blue-soft);   color: var(--c-blue); }
.tint-teal   { background: var(--c-teal-soft);   color: var(--c-teal); }
.tint-purple { background: var(--c-purple-soft); color: var(--c-purple); }
.tint-coral  { background: var(--c-coral-soft);  color: var(--c-coral); }
.tint-amber  { background: var(--c-amber-soft);  color: var(--c-amber); }
.tint-green  { background: var(--c-green-soft);  color: var(--c-green); }
.tint-pink   { background: var(--c-pink-soft);   color: var(--c-pink); }

.border-blue   { border-top-color: var(--c-blue); }
.border-teal   { border-top-color: var(--c-teal); }
.border-purple { border-top-color: var(--c-purple); }
.border-coral  { border-top-color: var(--c-coral); }
.border-amber  { border-top-color: var(--c-amber); }
.border-green  { border-top-color: var(--c-green); }
.border-pink   { border-top-color: var(--c-pink); }

/* ---------------------------------------------------------------------
   Partners page
   --------------------------------------------------------------------- */

.partners-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.partner-card {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.partner-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.partner-card.coordinator {
  border-color: var(--primary);
  background: linear-gradient(180deg, var(--primary-soft) 0%, var(--surface) 18%);
}

.partner-logo {
  width: 84px;
  height: 84px;
  object-fit: contain;
  padding: 12px;
  background: var(--surface-tint);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.partner-info { flex: 1; }

.partner-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.partner-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--ink);
}

.partner-name:hover { color: var(--primary); }

.partner-country { font-size: 0.9rem; color: var(--ink-soft); }

.partner-info p { margin: 0; }

/* ---------------------------------------------------------------------
   Objectives page
   --------------------------------------------------------------------- */

.objectives-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.objective-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.objective-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.objective-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 14px;
}

.objective-emoji {
  font-size: 2.1rem;
  margin-bottom: 14px;
}

/* ---------------------------------------------------------------------
   Work packages page
   --------------------------------------------------------------------- */

.wp-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.wp-card {
  display: flex;
  gap: 24px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.wp-number-box {
  flex-shrink: 0;
  width: 76px;
  height: 76px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
}

.wp-body { flex: 1; }
.wp-desc { margin-bottom: 16px; }

.wp-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.wp-date { font-size: 0.88rem; color: var(--ink-faint); }

/* ---------------------------------------------------------------------
   Activities page
   --------------------------------------------------------------------- */

.activities-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.activity-card {
  display: flex;
  gap: 24px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.activity-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.activity-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
}

.activity-body { flex: 1; }

.activity-led {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.led-label {
  font-size: 0.85rem;
  color: var(--ink-faint);
  font-weight: 600;
}

/* ---------------------------------------------------------------------
   News page: slider + grid
   --------------------------------------------------------------------- */

.news-label {
  margin-top: 8px;
  margin-bottom: 28px;
}

.slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 64px;
}

.slider-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.slide {
  position: relative;
  display: block;
  flex: 0 0 100%;
  height: min(440px, 60vw);
  min-height: 300px;
  text-decoration: none;
  color: inherit;
}

.slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px;
  background: linear-gradient(0deg, rgba(9, 32, 54, 0.92) 0%, rgba(9, 32, 54, 0.5) 55%, transparent 100%);
  color: #fff;
}

.slide-caption h3 { color: #fff; margin: 10px 0 8px; font-size: 1.6rem; }
.slide-caption p { color: rgba(255, 255, 255, 0.85); max-width: 560px; margin: 0; }

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.slider-arrow:hover { background: rgba(255, 255, 255, 0.28); }
.slider-arrow.prev { left: 16px; }
.slider-arrow.next { right: 16px; }

.slider-dots {
  position: absolute;
  z-index: 2;
  bottom: 18px;
  left: 40px;
  display: flex;
  gap: 8px;
}

.slider-dot {
  width: 24px;
  height: 4px;
  border-radius: 4px;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, width 0.2s ease;
}

.slider-dot.active { background: #fff; width: 34px; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.news-card img { width: 100%; height: 170px; object-fit: cover; }

.news-card-body { padding: 22px; }

.news-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-top: 14px;
}

/* ---------------------------------------------------------------------
   News article (single post) view
   --------------------------------------------------------------------- */

.article-wrap { max-width: 760px; margin: 0 auto; }

.article-header { padding: 56px 0 32px; }

.article-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 20px;
  row-gap: 8px;
  margin-bottom: 22px;
}

.article-topline .eyebrow { margin-bottom: 0; }

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
  text-decoration: none;
}

.article-back:hover { gap: 10px; }

.article-title { margin-top: 16px; margin-bottom: 24px; }

.article-byline { display: flex; align-items: center; gap: 12px; }

.article-avatar {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gradient);
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
}

.article-byline-text { display: flex; flex-direction: column; gap: 2px; font-size: 0.9rem; }
.article-byline-text strong { color: var(--ink); }
.article-byline-text span { color: var(--ink-faint); }

.article-cover {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin: 0 0 40px;
}

.article-body-section { padding: 0 0 88px; }

.article-body {
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--ink);
}

.article-body h2 { font-size: 1.6rem; margin-top: 1.4em; }
.article-body h3 { font-size: 1.25rem; margin-top: 1.2em; }
.article-body p { color: var(--ink); }
.article-body a { color: var(--primary); text-decoration: underline; }

.article-body blockquote {
  margin: 28px 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--primary);
  color: var(--ink-soft);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
}

.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 16px; }
.article-body img { border-radius: var(--radius-sm); margin: 16px 0; }

.related-news { padding: 64px 0 88px; border-top: 1px solid var(--border); }

/* ---------------------------------------------------------------------
   Resources page
   --------------------------------------------------------------------- */

.resources-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.resource-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.resource-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.resource-info p { margin: 8px 0 0; }

/* ---------------------------------------------------------------------
   Contact page
   --------------------------------------------------------------------- */

.contact-wrap { max-width: 640px; margin: 0 auto; text-align: center; }

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 32px;
  box-shadow: var(--shadow-sm);
  text-align: left;
  margin-bottom: 32px;
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.contact-row:last-child { border-bottom: none; }

.contact-row .label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
}

.contact-row a { color: var(--primary); text-decoration: none; font-weight: 600; }

.legal-note {
  padding: 20px 24px;
  background: var(--surface-tint);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--ink-faint);
  text-align: left;
}

/* ---------------------------------------------------------------------
   Contact form
   --------------------------------------------------------------------- */

.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 32px;
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.contact-form-title { font-size: 1.3rem; margin-bottom: 20px; }

.contact-form { display: flex; flex-direction: column; gap: 18px; }

.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.88rem; font-weight: 700; color: var(--ink); }

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  padding: 12px 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
}

.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { align-self: flex-start; }

.contact-form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 0.9rem; }
.form-alert p { margin: 0; }
.form-alert p + p { margin-top: 6px; }
.form-alert-success { background: var(--c-green-soft); color: var(--c-green); }
.form-alert-error { background: #FBEAED; color: #C22B3E; }

/* ---------------------------------------------------------------------
   Events page
   --------------------------------------------------------------------- */

.events-list { display: flex; flex-direction: column; gap: 16px; }

.event-card {
  display: flex;
  gap: 24px;
  padding: 26px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.event-card-past { opacity: 0.72; }
.event-card-past:hover { transform: none; box-shadow: var(--shadow-sm); }

.event-card-date {
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  border-radius: var(--radius-sm);
  background: var(--gradient);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.event-card-day { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; line-height: 1; }
.event-card-month { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }

.event-card-body { flex: 1; }
.event-card-meta { font-size: 0.88rem; color: var(--ink-faint); margin-bottom: 10px; }

/* ---------------------------------------------------------------------
   Gallery page
   --------------------------------------------------------------------- */

.album-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.album-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.album-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.album-card img { width: 100%; height: 190px; object-fit: cover; }

.album-card-placeholder {
  width: 100%;
  height: 190px;
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  background: var(--surface-tint);
  color: var(--ink-faint);
}

.album-card-body { padding: 18px 20px; }
.album-card-body h3 { margin-bottom: 4px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-thumb {
  position: relative;
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-sm);
}

.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.gallery-thumb:hover img { transform: scale(1.06); }

.gallery-thumb-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 8px 10px;
  font-size: 0.78rem;
  color: #fff;
  background: linear-gradient(0deg, rgba(9,32,54,0.85), transparent);
}

/* Lightbox (gallery full-screen viewer) */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: rgba(9, 32, 54, 0.92);
  padding: 40px;
}

.lightbox.open { display: flex; }

.lightbox-image { max-width: min(90vw, 1100px); max-height: 78vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.4); }

.lightbox-caption { color: rgba(255,255,255,0.85); margin: 16px 0 0; font-size: 0.9rem; }

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* ---------------------------------------------------------------------
   404
   --------------------------------------------------------------------- */

.error-page { text-align: center; padding: 140px 0; }
.error-page h1 {
  font-size: 6rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0;
}
.error-page h2 { margin-top: 8px; }
.error-page p { margin-bottom: 32px; }

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding-top: 56px;
}

.footer-disclaimer {
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-disclaimer p { font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); margin: 0; }

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding: 40px 0;
}

.footer-brand .logo { color: #fff; }
.footer-brand .logo-mark { box-shadow: none; }
.footer-brand p { max-width: 320px; font-size: 0.9rem; margin-top: 14px; }

.footer-cofund-logo {
  display: block;
  width: 220px;
  height: auto;
  margin-top: 16px;
  padding: 10px 14px;
  background: #fff;
  border-radius: 8px;
}

.footer-nav ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 10px 40px;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  transition: color 0.15s ease;
}

.footer-nav a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  flex-wrap: wrap;
}

.footer-bottom a { color: rgba(255, 255, 255, 0.72); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

.footer-bottom-right { display: flex; align-items: center; gap: 18px; }

/* ---------------------------------------------------------------------
   Reveal-on-scroll
   --------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */

@media (max-width: 960px) {
  .card-grid, .card-grid-2, .objectives-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .menu-toggle { display: flex; }

  .main-nav {
    position: fixed;
    z-index: 90;
    top: 76px;
    left: 0;
    right: 0;
    /* height (not "bottom: 0") on purpose: .site-header uses backdrop-filter,
       which makes it the containing block for this fixed-position element,
       so "bottom: 0" would resolve against the header's own ~76px box
       instead of the viewport and collapse the panel to almost nothing. */
    height: calc(100vh - 76px);
    background: var(--surface);
    padding: 20px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    overflow-y: auto;
  }

  .main-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }

  .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav a, .dropdown-toggle { width: 100%; justify-content: space-between; padding: 14px 16px; }
  .main-nav .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    padding-left: 12px;
  }
  .main-nav .has-dropdown.open .dropdown-menu { display: block; }

  h1 { font-size: 2.2rem; }
  section { padding: 56px 0; }

  .hero-slide-copy h1 { font-size: 2rem; }
  .hero-slider-arrow { display: none; }

  .article-header { padding: 40px 0 24px; }
  .article-cover { height: 220px; }
  .article-body-section { padding-bottom: 56px; }
  .related-news { padding: 48px 0 56px; }
  .stats-band-grid { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .stats-band-item { border-right: none; }

  .card-grid, .card-grid-2, .objectives-grid, .news-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }

  .partner-card, .wp-card, .activity-card { flex-direction: column; }
  .resource-card { flex-direction: column; align-items: flex-start; }
  .event-card { flex-direction: column; }
  .album-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .lightbox { padding: 20px; }
  .lightbox-arrow { width: 40px; height: 40px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }

  .footer-top { flex-direction: column; gap: 28px; }
  .footer-disclaimer { flex-direction: column; text-align: center; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .event-countdown-inner { flex-direction: column; align-items: flex-start; }
  .event-countdown-timer { align-self: stretch; justify-content: space-between; }
  .cd-unit { width: 22%; height: 60px; }
  .cd-value { font-size: 1.25rem; }
}
