/* ═══════════════════════════════════════════════════════
   BRIDGE Research & Innovation — Award-Winning Styles
   Premium design with noise texture, shimmer, spotlight,
   mix-blend-mode, and cinematic depth effects.
   ═══════════════════════════════════════════════════════ */

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; }

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 300;
  background-color: #0A1628;
  color: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
button,
.navbar-menu a,
.navbar-cta,
.section-label,
.section-title,
.hero-badge,
.hero-kicker,
.hero-route-label,
.hero-slide-dot,
.hero-briefing-label,
.feature-label,
.timeline-step,
.timeline-year,
.team-card-name,
.team-card-role,
.work-card-title,
.digest-card-title,
.footer-col h4,
strong,
b {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

::selection {
  background: rgba(196, 138, 92, 0.3);
  color: #fff;
}

/* ═══════════════════════════════════════════════════════
   NOISE / FILM GRAIN OVERLAY
   ═══════════════════════════════════════════════════════ */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
  mix-blend-mode: overlay;
}

/* ═══════════════════════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0A1628; }
::-webkit-scrollbar-thumb { background: rgba(142, 184, 229, 0.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(142, 184, 229, 0.4); }

/* ─── Container ─── */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 1024px) { .container { padding: 0 3rem; } }

/* ═══════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  /* Only animate paint-cheap properties on state change. `transition: all`
     used to animate background/border/box-shadow at 700ms, which competed
     with continued scrolling and produced visible flicker. */
  transition: background-color 0.32s ease, border-color 0.32s ease, box-shadow 0.32s ease;
  height: 64px;
}

.navbar.scrolled {
  /* While the hero is still in view, the navbar sits over animating /
     scrubbed content. backdrop-filter re-samples and re-blurs its backdrop
     on every frame the underlying pixels move — that re-sample was the
     dominant source of hero-area jitter. So in this phase we use a near-
     opaque solid fill (no blur), which the compositor draws essentially
     for free. The blur is re-enabled by `.past-hero` below. */
  background: rgba(10, 22, 40, 0.96);
  border-bottom: 1px solid rgba(142, 184, 229, 0.08);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(142, 184, 229, 0.04);
}

.navbar.scrolled.past-hero {
  /* Past the hero, we used to re-enable backdrop-filter blur. In practice
     other elements (cards, popups, hover transforms) keep moving behind the
     nav and the blur re-samples on every frame — visible flicker. Use a
     near-opaque solid instead (paint-cheap, no GPU sampling). The chrome
     reads "navbar over content" perfectly well at 0.94 alpha. */
  background: rgba(10, 22, 40, 0.94);
}

.navbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
@media (min-width: 1024px) { .navbar-inner { padding: 0 3rem; } }

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.navbar-logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
}

.navbar-brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  line-height: 1;
}

.navbar-brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  line-height: 1;
}

.navbar-brand-sub {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(233, 142, 84, 0.92);
  line-height: 1;
}

@media (max-width: 540px) {
  .navbar-logo img { height: 32px; }
  .navbar-brand-name { font-size: 0.92rem; }
  .navbar-brand-sub { font-size: 0.56rem; letter-spacing: 0.18em; }
}

.navbar-links {
  display: none;
  align-items: center;
  gap: 2.25rem;
}
@media (min-width: 1024px) { .navbar-links { display: flex; } }

.navbar-item {
  position: relative;
}

.navbar-link-group {
  display: flex;
  align-items: center;
  gap: 0.42rem;
}

.navbar-links a,
.navbar-link-trigger,
.navbar-link-plain {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
}

.navbar-link-trigger {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.9rem;
  height: 0.9rem;
  font-size: 0.9rem;
  line-height: 1;
  color: rgba(233, 142, 84, 0.95);
}

.navbar-links a::after,
.navbar-link-trigger::after,
.navbar-link-plain::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 1px;
  background: #C48A5C;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  transform: translateX(-50%);
}

.navbar-links a:hover,
.navbar-item.is-open > .navbar-link-group .navbar-parent-link,
.navbar-item.is-open > .navbar-link-group .navbar-link-trigger,
.navbar-link-plain:hover {
  color: #fff;
}

.navbar-links a:hover::after,
.navbar-item.is-open > .navbar-link-group .navbar-parent-link::after,
.navbar-link-plain:hover::after {
  width: 100%;
}

.navbar-link-trigger::after {
  display: none;
}

/* ----- Mega menu (desktop dropdowns) -------------------------------------
   Editorial think-tank aesthetic: rich type hierarchy, restrained motion,
   warm-toned glass surface. Each nav item with `.has-menu` shows a panel
   below the navbar containing grouped sub-links and an optional feature
   panel that anchors a contextual highlight.

   Variants:
   - `.navbar-menu`            base, ~22rem single column
   - `.navbar-menu-wide`       ~36rem two columns
   - `.navbar-menu-mega`       ~46rem two columns + feature panel

   Edge-aware positioning: leftmost item anchors to its left edge,
   rightmost to its right edge, middle items center under their parent.
   A JS clamp in site-nav.js (clampOpenMenu) provides a viewport-overflow
   safety net for any case the static rules miss. */

/* Full-width mega menu: every dropdown spans the full viewport width and
   sits flush below the navbar (which is 64px tall). The actual content
   is constrained to the same max-width as the navbar inner (1400px) and
   centered, so the visual columns align with the page's content rhythm. */

.navbar-menu {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  width: 100vw;
  min-width: 0;
  padding: 0;
  display: block;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transform-origin: top center;
  transition:
    opacity 0.32s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
  /* Brown band gradient — matches the section "tone 3" used elsewhere on
     inner pages. Layered: subtle top warm highlight, brand-orange edge
     glow on the left, cool counterpoint on the right, deep brown body. */
  background:
    radial-gradient(ellipse 35% 110% at 8% -10%, rgba(233, 142, 84, 0.18), transparent 50%),
    radial-gradient(ellipse 30% 110% at 92% -10%, rgba(201, 150, 114, 0.14), transparent 55%),
    linear-gradient(180deg, rgba(96, 58, 40, 0.96) 0%, rgba(74, 44, 30, 0.97) 50%, rgba(48, 28, 18, 0.98) 100%);
  border-top: 1px solid rgba(233, 142, 84, 0.4);
  border-bottom: 1px solid rgba(60, 35, 24, 0.6);
  border-radius: 0;
  box-shadow:
    0 24px 80px rgba(20, 10, 5, 0.55),
    0 8px 30px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 220, 190, 0.08);
  backdrop-filter: blur(32px) saturate(160%);
  -webkit-backdrop-filter: blur(32px) saturate(160%);
  z-index: 99;
  overflow: hidden;
}

/* Warm editorial halo — orange wash top-left, golden glow top-right.
   Layered above the body gradient to add depth and saturation variation. */
.navbar-menu::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 40% 100% at 18% -20%, rgba(233, 142, 84, 0.22), transparent 55%),
    radial-gradient(ellipse 35% 100% at 82% 110%, rgba(96, 58, 40, 0.4), transparent 60%);
  opacity: 0.9;
  mix-blend-mode: screen;
}

/* Inner content wrapper — centered, max-width matched to navbar */
.navbar-menu-inner {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 3rem 2.2rem;
  display: grid;
  gap: 2.5rem;
  z-index: 1;
}

/* Decorative left rail — subtle vertical peach accent on the inner content,
   echoing the editorial "section divider" feel. */
.navbar-menu-inner::before {
  content: '';
  position: absolute;
  top: 1.5rem;
  bottom: 1.5rem;
  left: 1.4rem;
  width: 1px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(255, 198, 142, 0.45) 20%,
    rgba(255, 198, 142, 0.45) 80%,
    transparent 100%);
  pointer-events: none;
}

.navbar-menu a {
  position: relative;
  display: grid;
  grid-template-columns: 2px 1fr auto;
  align-items: baseline;
  gap: 0 0.7rem;
  padding: 0.55rem 0.7rem 0.55rem 0.9rem;
  margin: 0 -0.4rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.35;
  /* Warm cream — picks up the brown surface tone better than plain white */
  color: rgba(255, 240, 222, 0.88);
  text-transform: none;
  border-radius: 0.5rem;
  transition:
    color 0.22s ease,
    background 0.22s ease,
    transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Vertical indicator that slides in on hover — bright orange tab on the left */
.navbar-menu a::before {
  content: '';
  width: 2px;
  align-self: stretch;
  background: rgba(255, 178, 110, 1);
  border-radius: 1px;
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 0 8px rgba(255, 178, 110, 0.6);
}

/* Right-side arrow indicator that fades in on hover */
.navbar-menu a::after {
  content: '→';
  display: inline-block;
  grid-column: 3;
  font-family: ui-sans-serif, sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255, 178, 110, 1);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  /* Override any inherited underline/decoration */
  background: none;
  letter-spacing: 0;
  text-transform: none;
  position: static;
  bottom: auto;
  left: auto;
  right: auto;
  height: auto;
  width: auto;
}

.navbar-menu a:hover {
  color: rgba(255, 252, 245, 1);
  background: rgba(255, 220, 180, 0.08);
}

.navbar-menu a:hover::before {
  transform: scaleY(1);
}

.navbar-menu a:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.navbar-item.is-open > .navbar-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ---- Inner grid (full-width content layout) ----------------------------- */

/* Default inner layout: a single column of links, centered with breathing room */
.navbar-menu .navbar-menu-inner {
  grid-template-columns: minmax(0, 1fr);
  max-width: 800px;
}

/* Wide variant — two equal columns */
.navbar-menu-wide .navbar-menu-inner {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1100px;
}

/* Mega variant — two link columns + larger feature panel */
.navbar-menu-mega .navbar-menu-inner {
  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1fr)
    minmax(0, 1.3fr);
  max-width: 1400px;
  gap: 3rem;
}

/* ---- Group columns ------------------------------------------------------ */

.navbar-menu-group {
  display: grid;
  gap: 0.1rem;
  align-content: start;
}

.navbar-menu-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  /* Brighter peach-orange reads cleanly on the brown surface */
  color: rgba(255, 198, 142, 1);
  padding: 0 0.5rem 0.6rem;
  margin: 0 0 0.35rem;
  border-bottom: 1px solid rgba(255, 198, 142, 0.28);
}

/* Hairline accent before label text — small editorial flourish */
.navbar-menu-label::before {
  content: '';
  width: 0.6rem;
  height: 1px;
  background: rgba(255, 198, 142, 1);
  flex-shrink: 0;
}

/* ---- Featured panel (rightmost column in mega menus) -------------------- */

.navbar-menu-feature {
  position: relative;
  display: grid;
  align-content: space-between;
  gap: 0.7rem;
  padding: 1.2rem 1.25rem 1.1rem;
  border-radius: 0.85rem;
  /* Subtle lighter inset on the brown surface — warm cream wash */
  background:
    linear-gradient(155deg,
      rgba(255, 220, 180, 0.14) 0%,
      rgba(233, 142, 84, 0.1) 50%,
      rgba(60, 35, 24, 0.4) 100%);
  border: 1px solid rgba(255, 198, 142, 0.28);
  overflow: hidden;
  isolation: isolate;
  box-shadow: inset 0 1px 0 rgba(255, 230, 200, 0.1);
}

/* Glow pool top-right — warm peach light source */
.navbar-menu-feature::before {
  content: '';
  position: absolute;
  top: -55%;
  right: -25%;
  width: 110%;
  height: 160%;
  background: radial-gradient(circle, rgba(255, 178, 110, 0.34) 0%, transparent 55%);
  pointer-events: none;
  z-index: -1;
}

/* Editorial corner mark — small detail in top-left */
.navbar-menu-feature::after {
  content: '';
  position: absolute;
  top: 0.95rem;
  left: 0.95rem;
  width: 1.4rem;
  height: 1px;
  background: rgba(255, 198, 142, 0.85);
  pointer-events: none;
}

.navbar-menu-feature-kicker {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 198, 142, 1);
  margin-top: 0.5rem;
}

.navbar-menu-feature-title {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.18;
  color: rgba(255, 250, 240, 1);
  letter-spacing: -0.015em;
}

.navbar-menu-feature-desc {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.74rem;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
  color: rgba(255, 240, 222, 0.78);
}

.navbar-menu-feature-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
  margin: 0 !important;
  padding: 0 !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 0.66rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  color: rgba(255, 198, 142, 1) !important;
  background: transparent !important;
  border-radius: 0 !important;
  text-decoration: none;
  width: max-content;
}

/* Override base navbar-menu a styles */
.navbar-menu-feature .navbar-menu-feature-link::before {
  display: none !important;
  content: none !important;
}

.navbar-menu-feature-link::after {
  content: '→' !important;
  display: inline-block !important;
  font-size: 0.95rem !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  color: rgba(255, 198, 142, 1) !important;
  opacity: 1 !important;
  transform: translateX(0) !important;
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
  background: none !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
}

.navbar-menu-feature-link:hover {
  color: rgba(255, 252, 245, 1) !important;
}

.navbar-menu-feature-link:hover::after {
  transform: translateX(4px) !important;
  color: rgba(255, 252, 245, 1) !important;
}

/* ---- Stagger reveal animation ------------------------------------------- */

@keyframes navbar-menu-fade-up {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.navbar-item.is-open > .navbar-menu .navbar-menu-group,
.navbar-item.is-open > .navbar-menu .navbar-menu-feature {
  animation: navbar-menu-fade-up 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

.navbar-item.is-open > .navbar-menu .navbar-menu-group:nth-child(1) { animation-delay: 0.06s; }
.navbar-item.is-open > .navbar-menu .navbar-menu-group:nth-child(2) { animation-delay: 0.12s; }
.navbar-item.is-open > .navbar-menu .navbar-menu-group:nth-child(3) { animation-delay: 0.18s; }
.navbar-item.is-open > .navbar-menu .navbar-menu-feature { animation-delay: 0.18s; }

/* Single-column menus shouldn't stagger (only one child) */
.navbar-item.is-open > .navbar-menu:not(.navbar-menu-mega):not(.navbar-menu-wide) .navbar-menu-group {
  animation: none;
}

/* Reduced motion — straight fade only */
@media (prefers-reduced-motion: reduce) {
  .navbar-menu,
  .navbar-item.is-open > .navbar-menu .navbar-menu-group,
  .navbar-item.is-open > .navbar-menu .navbar-menu-feature {
    transition: opacity 0.18s ease;
    animation: none !important;
    transform: translateY(0) !important;
  }
}

.navbar-cta,
.hero-cta-btn,
.btn-accent,
.btn-submit {
  background: #e98e54;
  color: #fff;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

.navbar-cta:hover,
.hero-cta-btn:hover,
.btn-accent:hover,
.btn-submit:hover {
  background: #ef9b68;
  box-shadow: 0 14px 36px rgba(233, 142, 84, 0.26);
}

.navbar-cta {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  position: relative;
  overflow: hidden;
}

/* ----- COP 32 nav link (text-only, leaf icon, climate green) ------------ */
.navbar-cop32 {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #4ea668;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.navbar-cop32 svg {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
  color: #6cc585;
  transition: color 0.25s ease, transform 0.4s ease;
}

.navbar-cop32:hover {
  color: #6cc585;
}

.navbar-cop32:hover svg {
  color: #8fd9a3;
  transform: rotate(-12deg);
}

.mobile-drawer .navbar-cop32 {
  margin-top: 0.5rem;
  padding: 0.45rem 0;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
}

/* Mobile toggle */
.mobile-toggle {
  display: block;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 0.25rem;
  z-index: 10;
}
@media (min-width: 1024px) { .mobile-toggle { display: none; } }
.mobile-toggle svg { width: 22px; height: 22px; }

.mobile-drawer {
  display: none;
  background: rgba(10, 22, 40, 0.97);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border-top: 1px solid rgba(142, 184, 229, 0.08);
  padding: 2rem 1.5rem;
  flex-direction: column;
  gap: 1.25rem;
}
.mobile-drawer.open { display: flex; }
.mobile-drawer a,
.mobile-nav-parent,
.mobile-nav-toggle {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.92);
  padding: 0.25rem 0;
  transition: color 0.3s ease;
}

.mobile-nav-group {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
}

.mobile-nav-group:first-child {
  border-top: 0;
  padding-top: 0;
}

.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-parent {
  position: relative;
}

.mobile-nav-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.25rem;
  line-height: 1;
  color: rgba(233, 142, 84, 0.95);
  /* 44px minimum tap target on touch devices */
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.mobile-nav-toggle:hover,
.mobile-nav-toggle:active {
  background: rgba(233, 142, 84, 0.12);
}

.mobile-nav-group.is-open .mobile-nav-toggle {
  transform: rotate(45deg);
  background: rgba(233, 142, 84, 0.18);
}

.mobile-nav-group .mobile-nav-links {
  display: none;
}

.mobile-nav-group.is-open .mobile-nav-links {
  display: grid;
}

.mobile-nav-links {
  margin-top: 0.8rem;
  gap: 0.65rem;
  padding-left: 0.9rem;
}

.mobile-nav-links a {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.82);
}

.mobile-drawer a:hover,
.mobile-nav-parent:hover,
.mobile-nav-toggle:hover { color: rgba(233, 142, 84, 1); }

.mobile-drawer .navbar-cta {
  margin-top: 0.5rem;
  padding: 0.75rem 1.25rem;
  text-align: center;
  display: block;
}

@media (max-width: 767px) {
  .navbar-link-trigger::before,
  .navbar-menu {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════
   SHIMMER / LIQUID BUTTON EFFECT
   ═══════════════════════════════════════════════════════ */
.btn-shimmer {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-shimmer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0.15),
    transparent
  );
  transition: none;
  z-index: -1;
}

.btn-shimmer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #C48A5C, #D49A6C, #E0B080, #D49A6C, #C48A5C);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -2;
  border-radius: inherit;
}

.btn-shimmer:hover::after {
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════
   HERO — Editorial Landing
   ═══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: #0a1628;
}

.hero-bg {
  position: absolute;
  inset: 0;
  will-change: transform;
  /* Force a dedicated GPU layer + isolate compositing. Stops flicker caused
     by the navbar's backdrop-filter sampling parallax pixels mid-frame. */
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  contain: paint;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: saturate(1.08) contrast(1.06);
  will-change: transform, opacity;
  transition: opacity 2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide.active {
  opacity: 0.72;
}

.hero-slide.transitioning-out {
  opacity: 0;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 10, 26, 0.96) 0%, rgba(5, 16, 38, 0.82) 18%, rgba(7, 19, 43, 0.42) 36%, rgba(8, 13, 22, 0) 52%),
    linear-gradient(90deg, rgba(8, 13, 22, 0.64) 0%, rgba(8, 13, 22, 0.18) 38%, rgba(8, 13, 22, 0.03) 72%, rgba(8, 13, 22, 0) 100%);
  z-index: 1;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.hero-particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(233, 142, 84, 0.28);
  animation: particle-float linear infinite;
  will-change: transform, opacity;
}

.hero-particles.paused .hero-particle {
  animation-play-state: paused;
}

.hero-particle:nth-child(odd) {
  background: rgba(255, 255, 255, 0.14);
}

@keyframes particle-float {
  0% {
    transform: translateY(100vh) translateX(0) scale(0);
    opacity: 0;
  }
  12% {
    opacity: 1;
    transform: translateY(88vh) translateX(8px) scale(1);
  }
  100% {
    transform: translateY(-10vh) translateX(-18px) scale(0.35);
    opacity: 0;
  }
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.12;
}

.hero-grid-line {
  position: absolute;
  background: rgba(255, 255, 255, 0.14);
}

.hero-grid-line:nth-child(1) {
  top: 5.5rem;
  left: 3rem;
  right: 3rem;
  height: 1px;
}

.hero-grid-line:nth-child(2) {
  top: 0;
  bottom: 0;
  right: 18%;
  width: 1px;
}

.hero-grid-line:nth-child(3) {
  left: 3rem;
  right: 3rem;
  bottom: 3.5rem;
  height: 1px;
}

.ghost-text {
  position: absolute;
  left: 4.5rem;
  right: 4.5rem;
  bottom: 37rem;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
  will-change: transform;
  z-index: 3;
  opacity: 0;
}

.ghost-text span {
  font-size: clamp(5rem, 13vw, 14rem);
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.06);
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.14);
}

/* The right-side hero slide dots (vertical 01-04 indicator) have been
   hidden — kept in the DOM in case the labels are useful later, but no
   longer rendered to keep the right margin clean. */
.hero-slide-dots {
  display: none !important;
}

.hero-slide-dots-legacy {
  position: absolute;
  right: 3rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  opacity: 0;
}

@media (min-width: 1024px) {
  .hero-slide-dots-legacy {
    display: flex;
  }
}

.hero-slide-dot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.hero-slide-dot::before {
  content: attr(data-label);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.26em;
}

.hero-slide-dot::after {
  content: '';
  /* Fixed at the active width (5rem); inactive state shrinks via scaleX
     instead of animating `width`. `width` triggers layout every frame;
     `transform: scaleX` is a composite-only property — GPU-cheap. */
  width: 5rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
  transform: scaleX(0.38);
  transform-origin: right center;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.hero-slide-dot-text {
  display: none;
}

.hero-slide-dot.active {
  color: #fff;
}

.hero-slide-dot.active::before {
  font-size: 2.1rem;
  letter-spacing: 0.08em;
  line-height: 1;
}

.hero-slide-dot.active::after {
  transform: scaleX(1);
  background: rgba(233, 142, 84, 0.8);
}

.hero-content {
  position: relative;
  z-index: 10;
  flex: 1;
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 5.5rem 1.5rem 5rem;
  box-sizing: border-box;
  will-change: transform;
}

@media (min-width: 768px) {
  .hero-content {
    padding: 5.5rem 3rem 6rem;
  }
}

/* ── Compact hero for short-viewport laptops (e.g. Dell 1366×768, 1280×800) ── */
@media (min-width: 1024px) and (max-height: 820px) {
  .hero-content {
    padding-top: 3.5rem;
    padding-bottom: 2rem;
  }
  .hero-frame {
    gap: 1rem;
  }
  .hero-main {
    gap: 1.5rem;
  }
  .hero h1 .line-light,
  .hero h1 .line-bold {
    font-size: clamp(3rem, 8vw, 5.5rem);
  }
  .hero-acronym {
    font-size: 0.88rem;
    margin-bottom: 0.6rem;
  }
  .hero-desc {
    font-size: 0.82rem;
    margin-bottom: 1rem;
  }
  .hero-briefings {
    margin-top: 0.75rem;
  }
  .feature-card {
    min-height: 8.5rem;
    padding: 1rem 0.9rem;
  }
  .feature-card-label {
    margin-top: 0.5rem;
    font-size: 0.88rem;
  }
  .feature-card-sub {
    margin-top: 0.3rem;
    font-size: 0.7rem;
  }
}

.hero-spacer {
  display: none;
}

.hero-frame {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.25rem;
  padding-top: 0;
}

.hero-topbar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .hero-topbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  width: fit-content;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  opacity: 0;
  transform: translateY(30px);
}

.hero-badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #e98e54;
  box-shadow: 0 0 18px rgba(233, 142, 84, 0.45);
}

.hero-kicker {
  font-size: 0.58rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.hero-main {
  display: grid;
  gap: 2rem;
  align-items: end;
}

@media (min-width: 1024px) {
  .hero-main {
    grid-template-columns: minmax(0, 1fr) 12rem;
    gap: 3rem;
  }
}

.hero-copy {
  max-width: 42rem;
}

.hero-route {
  margin-bottom: 1rem;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  opacity: 0;
  transform: translateY(24px);
}

.hero h1 {
  margin-bottom: 0.65rem;
  color: #fff;
}

.hero h1 .line-light,
.hero h1 .line-bold {
  display: block;
  font-size: clamp(3.9rem, 11vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(40px);
}

.hero h1 .line-light {
  font-weight: 700;
}

.hero h1 .line-bold {
  font-weight: 800;
  color: rgba(255, 255, 255, 0.96);
}

.hero-acronym {
  max-width: 34rem;
  margin-bottom: 1.1rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(30px);
}

.hero-acronym-line {
  display: block;
}

.hero-acronym-initial {
  color: #e98e54;
  font-weight: 800;
}

@media (min-width: 768px) {
  .hero-acronym {
    font-size: 1.08rem;
    max-width: 42rem;
  }
}

.hero-desc {
  max-width: 31rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(30px);
}

@media (min-width: 768px) {
  .hero-desc {
    max-width: 38rem;
  }
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  opacity: 0;
  transform: translateY(30px);
}

.hero-cta-btn,
.hero-cta-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 12rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero-cta-ghost {
  color: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.35s ease, background-color 0.35s ease;
}

.hero-cta-ghost:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.07);
}

.hero-aside {
  display: none;
  opacity: 0;
  transform: translateX(24px);
  justify-self: start;
  text-align: left;
}

@media (min-width: 1024px) {
  .hero-aside {
    display: block;
    position: relative;
    left: -12rem;
    margin-right: 0;
    width: 12rem;
  }
}

.hero-aside-label {
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.hero-aside-stat {
  margin-top: 0.85rem;
  font-size: 4.5rem;
  line-height: 0.9;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.98);
}

.social-pane {
  position: fixed;
  top: 5rem;
  right: 1.5rem;
  z-index: 95;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 0.75rem;
  border-radius: 999px;
  background: rgba(10, 22, 40, 0.5);
  border: 1px solid rgba(142, 184, 229, 0.12);
}

@media (min-width: 1024px) {
  .social-pane {
    display: flex;
  }
}

.social-pane-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.social-pane-links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.social-pane-link {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.58);
}

.social-pane-link:hover {
  color: #C48A5C;
}

.social-pane-link svg {
  width: 0.9rem;
  height: 0.9rem;
}

.hero-aside-line {
  width: 5rem;
  height: 1px;
  margin: 1rem 0;
  background: linear-gradient(to right, rgba(233, 142, 84, 0), rgba(233, 142, 84, 0.85));
}

.hero-aside-copy {
  max-width: 12rem;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.75rem;
  line-height: 1.7;
}

.feature-cards {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .feature-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.feature-card {
  min-height: 11rem;
  padding: 1.25rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  text-align: left;
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.12) 0%, rgba(10, 22, 40, 0.76) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(60px);
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: none;
  display: none;
}

.feature-card-label {
  margin-top: 0.85rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
}

.feature-card-sub {
  margin-top: 0.45rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  line-height: 1.65;
}

.hero-briefings {
  position: relative;
  z-index: 12;
  padding-top: 0;
  margin-top: 1.5rem;
}

.hero-briefing-card {
  border: 0;
  box-shadow: none;
}

.hero-briefing-card .feature-card-sub {
  color: rgba(255, 255, 255, 0.78);
}

.hero-briefing-card .hero-briefing-link {
  color: rgba(255, 255, 255, 0.94);
}

.hero-briefing-card:nth-child(1) {
  background:
    linear-gradient(180deg, rgba(2, 8, 20, 0.66) 0%, rgba(3, 10, 24, 0.58) 42%, rgba(3, 10, 24, 0.88) 100%),
    linear-gradient(90deg, rgba(2, 8, 20, 0.62) 0%, rgba(2, 8, 20, 0.34) 58%, rgba(2, 8, 20, 0.12) 100%),
    url('images/afrika.jpg') center/cover;
}

.hero-briefing-card:nth-child(2) {
  background:
    linear-gradient(180deg, rgba(2, 8, 20, 0.68) 0%, rgba(3, 10, 24, 0.6) 42%, rgba(3, 10, 24, 0.9) 100%),
    linear-gradient(90deg, rgba(2, 8, 20, 0.64) 0%, rgba(2, 8, 20, 0.36) 58%, rgba(2, 8, 20, 0.14) 100%),
    url('images/SNNPR-meeting.jpg') center/cover;
}

.hero-briefing-card:nth-child(3) {
  background:
    linear-gradient(180deg, rgba(2, 8, 20, 0.68) 0%, rgba(3, 10, 24, 0.6) 42%, rgba(3, 10, 24, 0.9) 100%),
    linear-gradient(90deg, rgba(2, 8, 20, 0.64) 0%, rgba(2, 8, 20, 0.36) 58%, rgba(2, 8, 20, 0.14) 100%),
    url('images/igad-image.png') center/cover;
}

.hero-briefing-index {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(233, 142, 84, 0.9);
}

.hero-briefing-link {
  margin-top: 1rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

.hero-briefing-link::after {
  content: ' \2192';
}

@media (max-width: 767px) {
  .hero {
    height: auto;
    min-height: clamp(42rem, 88svh, 50rem);
  }

  .hero-gradient {
    background:
      linear-gradient(180deg, rgba(8, 13, 22, 0.18) 0%, rgba(8, 13, 22, 0.34) 24%, rgba(8, 13, 22, 0.68) 56%, rgba(8, 13, 22, 0.88) 100%),
      linear-gradient(90deg, rgba(8, 13, 22, 0.72) 0%, rgba(8, 13, 22, 0.22) 48%, rgba(8, 13, 22, 0.08) 100%);
  }

  .hero-particles,
  .ghost-text {
    display: none;
  }

  .hero-grid-line:nth-child(1),
  .hero-grid-line:nth-child(3) {
    left: 1.5rem;
    right: 1.5rem;
  }

  .hero-grid-line:nth-child(2) {
    display: none;
  }

  .hero-content {
    padding: 8rem 1.25rem 2.2rem;
  }

  .hero-frame {
    gap: 1.35rem;
  }

  .hero-frame {
    min-height: 0;
  }

  .hero-main {
    gap: 1.25rem;
  }

  .hero-copy {
    max-width: 100%;
    margin-top: 10rem;
  }

  .hero-route {
    margin-bottom: 0.75rem;
    font-size: 0.58rem;
    letter-spacing: 0.28em;
  }

  .hero h1 .line-light,
  .hero h1 .line-bold {
    font-size: clamp(3rem, 16vw, 4.4rem);
    line-height: 0.92;
  }

  .hero-acronym {
    max-width: 19rem;
    margin-bottom: 0.8rem;
    font-size: 0.78rem;
    line-height: 1.42;
    letter-spacing: 0.045em;
  }

  .hero-desc {
    max-width: 19rem;
    margin-bottom: 1.15rem;
    font-size: 0.84rem;
    line-height: 1.55;
  }

  .hero-cta-row {
    gap: 0.65rem;
  }

  .hero-cta-btn,
  .hero-cta-ghost {
    width: 100%;
    min-width: 0;
    padding: 0.82rem 1rem;
    font-size: 0.58rem;
    letter-spacing: 0.18em;
  }

  .feature-cards {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .hero-briefings {
    margin-top: 2rem;
  }

  .hero-briefing-card:nth-child(1) {
    transform: none;
  }

  .feature-card {
    min-height: 8.75rem;
    padding: 1rem 0.95rem 0.95rem;
  }

  .feature-card-label {
    margin-top: 0.55rem;
    font-size: 0.9rem;
  }

  .feature-card-sub {
    margin-top: 0.32rem;
    font-size: 0.7rem;
    line-height: 1.45;
  }

  .hero-briefing-link {
    margin-top: 0.7rem;
    font-size: 0.56rem;
  }

  .section-header {
    margin-bottom: 3rem;
  }

  .faq-section .section-desc {
    max-width: 21rem;
    color: rgba(255, 255, 255, 0.82);
  }

  .faq-layout {
    gap: 1rem;
  }

  .faq-item {
    border-radius: 1rem;
  }

  .faq-question {
    padding: 1rem 1rem;
    font-size: 0.92rem;
  }

  .faq-answer {
    padding: 0 1rem 1rem;
  }

  .faq-answer p {
    font-size: 0.86rem;
    line-height: 1.6;
  }

  .faq-side {
    padding: 1.2rem;
    gap: 0.8rem;
  }

  .faq-side-title {
    font-size: 1.2rem;
  }

  .faq-side-copy {
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.84rem;
    line-height: 1.65;
  }

  #contact .container {
    position: relative;
    z-index: 10;
  }

  .contact-bg img {
    opacity: 0.4;
  }

  .contact-bg::after {
    background: linear-gradient(to top, rgba(7, 11, 18, 0.56), rgba(9, 14, 22, 0.36), rgba(12, 18, 26, 0.16));
  }

  .contact-wrapper {
    max-width: 100%;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-subscribe-card {
    padding: 1.35rem;
    background: rgba(9, 16, 28, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .contact-form-card {
    padding: 1.35rem;
    background: rgba(9, 16, 28, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
  }

  .form-group label {
    color: rgba(233, 142, 84, 0.92);
  }

  .input-bottom {
    border-bottom-color: rgba(255, 255, 255, 0.32);
    color: rgba(255, 255, 255, 0.95);
  }

  .input-bottom::placeholder {
    color: rgba(255, 255, 255, 0.56);
  }

  .contact-details {
    margin-top: 1.5rem;
    gap: 1rem;
  }

  .contact-details-item {
    justify-content: center;
    color: rgba(255, 255, 255, 0.72);
  }

  .scroll-top {
    width: 2.15rem;
    height: 2.15rem;
    right: 1rem;
    bottom: 1rem;
  }

  .scroll-top svg {
    width: 0.85rem;
    height: 0.85rem;
  }
}

/* ═══════════════════════════════════════════════════════
   SECTIONS COMMON
   ═══════════════════════════════════════════════════════ */
.section {
  position: relative;
  padding: 7rem 0;
  overflow: hidden;
}
@media (min-width: 768px) { .section { padding: 10rem 0; } }

.section-alt { background: #0E1A2E; }

.section-divider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(142, 184, 229, 0.1), transparent);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateY(40px);
}
@media (min-width: 768px) { .section-header { margin-bottom: 6rem; } }

.section-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: rgba(233, 142, 84, 0.95);
  font-weight: 500;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: #fff;
  margin-top: 1rem;
  letter-spacing: -0.02em;
}
@media (min-width: 768px) { .section-title { font-size: 3rem; } }
@media (min-width: 1024px) { .section-title { font-size: 3.75rem; } }

.section-desc {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  max-width: 32rem;
  margin: 1.5rem auto 0;
  line-height: 1.7;
}
@media (min-width: 768px) { .section-desc { font-size: 1rem; } }

.accent-line {
  height: 1px;
  width: 5rem;
  margin: 2rem auto 0;
  background: linear-gradient(90deg, transparent, rgba(196, 138, 92, 0.5), transparent);
}

/* ═══════════════════════════════════════════════════════
   GLASS UTILITIES
   ═══════════════════════════════════════════════════════ */
.glass {
  background: rgba(142, 184, 229, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(142, 184, 229, 0.1);
}

.glass-strong {
  background: rgba(142, 184, 229, 0.07);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(142, 184, 229, 0.12);
}

.glass-button {
  background: rgba(142, 184, 229, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(142, 184, 229, 0.12);
  transition: background-color 0.4s cubic-bezier(0.23, 1, 0.32, 1),
    border-color 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.glass-button:hover {
  background: rgba(142, 184, 229, 0.15);
  border-color: rgba(142, 184, 229, 0.2);
}

/* Card hover */
.glass-card {
  transition: box-shadow 0.6s cubic-bezier(0.23, 1, 0.32, 1),
    border-color 0.4s ease;
}
.glass-card:hover {
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(196, 138, 92, 0.15);
  border-color: rgba(196, 138, 92, 0.2);
}

/* ═══════════════════════════════════════════════════════
   MOUSE-FOLLOW SPOTLIGHT EFFECT
   ═══════════════════════════════════════════════════════ */
[data-spotlight] {
  position: relative;
}

[data-spotlight]::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(196, 138, 92, 0.08),
    transparent 60%
  );
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

/* ═══════════════════════════════════════════════════════
   ABOUT — TIMELINE
   ═══════════════════════════════════════════════════════ */
.about-section {
  margin-top: 0;
  padding-top: 9rem;
  padding-bottom: 10rem;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 13, 22, 0.92) 0%, rgba(8, 13, 22, 0.96) 12%, #05080f 34%, #05080f 72%, rgba(6, 10, 18, 0.9) 100%),
    linear-gradient(180deg, rgba(233, 142, 84, 0.06) 0%, rgba(233, 142, 84, 0) 16%),
    #05080f;
}

.about-section .section-divider {
  display: none;
}

.about-section-backdrop {
  position: absolute;
  inset: -12% 0;
  background:
    linear-gradient(180deg, rgba(5, 8, 15, 0.86) 0%, rgba(5, 8, 15, 0.8) 24%, rgba(5, 8, 15, 0.72) 55%, rgba(5, 8, 15, 0.9) 100%),
    url('images/parliament-image.png') center center / cover;
  opacity: 0.18;
  pointer-events: none;
  will-change: transform;
}

.about-shell {
  position: relative;
  z-index: 1;
}

.about-heading {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(40px);
}

.about-heading-line {
  height: 1px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.3));
}

.about-heading-line:last-child {
  background: linear-gradient(to left, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.3));
}

.about-heading-title {
  font-size: clamp(2rem, 5vw, 3.6rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
}

.about-layout {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .about-layout {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    align-items: start;
  }
}

.about-copy {
  display: grid;
  gap: 4rem;
  padding-top: 0.5rem;
}

.about-copy-block {
  max-width: 21rem;
  opacity: 0;
  transform: translateY(40px);
}

.about-copy-lead,
.about-copy-text {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  line-height: 1.55;
}

.about-copy-lead {
  margin-bottom: 1rem;
}

.about-journey {
  position: relative;
  max-width: 40rem;
  min-height: 34rem;
  margin-left: auto;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 1rem;
  bottom: 1rem;
  width: 2px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.16));
  transform: translateX(-50%) scaleY(0);
  transform-origin: top center;
}

.timeline-item {
  position: relative;
  min-height: 7.25rem;
  margin-bottom: 2.25rem;
  opacity: 0;
  transform: translateY(40px);
  /* Reveal transition for the IntersectionObserver in home-modules.js.
     GSAP's ScrollTrigger handles the static markup version; this CSS
     path handles the JS-rendered news timeline (script.js's selector
     scan runs before our async fetch resolves). */
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.timeline-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-node {
  position: absolute;
  left: 50%;
  top: 0.35rem;
  transform: translateX(-50%);
  z-index: 4;
}

.timeline-node-dot {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: #fff;
  border: 4px solid #05080f;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3);
  transform: scale(0);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-item.visible .timeline-node-dot {
  transform: scale(1);
}

.timeline-content,
.timeline-image {
  width: calc(50% - 2.6rem);
}

.timeline-content {
  position: relative;
  z-index: 3;
}

.timeline-item.right .timeline-content {
  margin-right: auto;
  text-align: right;
}

.timeline-item.left .timeline-content {
  margin-left: auto;
  text-align: left;
}

.timeline-date {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.64);
}

.timeline-title {
  font-size: 1.45rem;
  line-height: 1.05;
  color: #fff;
  font-weight: 600;
  letter-spacing: -0.03em;
}

/* Clickable timeline title — color-only hover. The CTA pill, cursor,
   and image zoom carry the affordance; a heavy underline under a 1.45rem
   headline was visually noisy. Keep focus-visible outline for keyboard
   users (Tab navigation) since they don't get a hover signal. */
.timeline-title-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.22s ease;
}
.timeline-title-link:hover {
  color: rgba(233, 142, 84, 1);
}
.timeline-title-link:focus-visible {
  color: rgba(233, 142, 84, 1);
  outline: 2px solid rgba(233, 142, 84, 0.6);
  outline-offset: 4px;
  border-radius: 2px;
}

/* Secondary CTA — small "Read more →" pill that gives explicit invitation
   to click. Sits below the description in the timeline-content. */
.timeline-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(233, 142, 84, 0.95);
  text-decoration: none;
  transition: gap 0.22s ease, color 0.22s ease;
}
.timeline-cta:hover,
.timeline-cta:focus-visible {
  color: rgba(255, 198, 142, 1);
  gap: 0.7rem;
}
.timeline-cta span {
  display: inline-block;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.timeline-cta:hover span,
.timeline-cta:focus-visible span {
  transform: translateX(3px);
}

/* Clickable image wrapper — subtle scale + brighter image on hover so
   the visual half of the card feels tactile too. Keeps the underlying
   .timeline-image positioning intact. */
.timeline-image-link {
  display: block;
  cursor: pointer;
  overflow: hidden;
  border-radius: 0.5rem;
}
.timeline-image-link img {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), filter 0.32s ease;
}
.timeline-image-link:hover img,
.timeline-image-link:focus-visible img {
  transform: scale(1.045);
  filter: brightness(1.08);
}
/* Title + image link the same target — hovering the image also tints the
   title for unified feedback. Implemented in JS-free CSS by chaining
   within the shared .timeline-item parent. */
.timeline-item:hover .timeline-title-link {
  color: rgba(233, 142, 84, 1);
}

.timeline-desc {
  margin-top: 0.45rem;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.82rem;
  line-height: 1.55;
}

.timeline-image {
  position: absolute;
  top: -0.15rem;
}

.timeline-item.right .timeline-image {
  right: 0;
}

.timeline-item.left .timeline-image {
  left: 0;
}

.timeline-image img {
  width: clamp(7rem, 14vw, 10rem);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1),
    transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.timeline-item.visible .timeline-image img {
  opacity: 0.96;
  transform: scale(1);
}

.timeline-item[data-side="right"] .timeline-image img {
  margin-left: auto;
  transform: translateX(40px) scale(0.92);
}

.timeline-item[data-side="left"] .timeline-image img {
  transform: translateX(-40px) scale(0.92);
}

.timeline-item.visible[data-side="right"] .timeline-image img,
.timeline-item.visible[data-side="left"] .timeline-image img {
  transform: translateX(0) scale(1);
}

.about-includes {
  display: grid;
  gap: 1rem;
  margin-top: 9rem;
  opacity: 0.92;
}

@media (min-width: 768px) {
  .about-includes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .about-includes {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.about-include-card {
  padding: 1.5rem;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateY(50px);
}

.about-include-card:nth-child(1) {
  background: linear-gradient(180deg, rgba(13, 45, 105, 0.22) 0%, rgba(13, 45, 105, 0.08) 100%);
  border-color: rgba(147, 178, 214, 0.16);
}

.about-include-card:nth-child(2) {
  background: linear-gradient(180deg, rgba(147, 178, 214, 0.18) 0%, rgba(147, 178, 214, 0.06) 100%);
  border-color: rgba(147, 178, 214, 0.18);
}

.about-include-card:nth-child(3) {
  background: linear-gradient(180deg, rgba(175, 114, 84, 0.2) 0%, rgba(175, 114, 84, 0.06) 100%);
  border-color: rgba(175, 114, 84, 0.18);
}

.about-include-card:nth-child(4) {
  background: linear-gradient(180deg, rgba(224, 210, 189, 0.16) 0%, rgba(224, 210, 189, 0.05) 100%);
  border-color: rgba(224, 210, 189, 0.16);
}

.about-include-card h3 {
  margin-bottom: 0.8rem;
  font-size: 1rem;
  color: #fff;
}

.about-include-card p {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
  line-height: 1.55;
}

@media (max-width: 1023px) {
  .about-section {
    margin-top: 0;
    padding-top: 7rem;
    padding-bottom: 7rem;
  }

  .about-section-backdrop {
    inset: 0;
    opacity: 0.14;
  }

  .about-heading {
    margin-bottom: 2.5rem;
  }

  .about-copy {
    gap: 2rem;
  }

  .about-copy-block {
    max-width: none;
  }

  .about-journey {
    max-width: none;
    min-height: 0;
    padding-left: 0;
  }

  .timeline-line {
    left: 0.65rem;
    transform: scaleY(0);
  }

  .timeline-item {
    padding-left: 2.5rem;
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 11rem;
    align-items: start;
    gap: 0.9rem;
  }

  .timeline-node {
    left: 0.65rem;
    transform: translateX(-50%);
  }

  .timeline-content,
  .timeline-image {
    width: auto;
  }

  .timeline-content,
  .timeline-item.right .timeline-content,
  .timeline-item.left .timeline-content {
    margin: 0;
    text-align: left;
  }

  .timeline-item.right .timeline-content {
    grid-column: 1;
    grid-row: 1;
  }

  .timeline-item.right .timeline-image {
    grid-column: 2;
    grid-row: 1;
  }

  .timeline-item.left .timeline-image {
    grid-column: 1;
    grid-row: 1;
  }

  .timeline-item.left .timeline-content {
    grid-column: 2;
    grid-row: 1;
  }

  .timeline-image,
  .timeline-item.right .timeline-image,
  .timeline-item.left .timeline-image {
    position: relative;
    left: auto;
    right: auto;
    width: 11rem;
  }

  .timeline-item.right .timeline-image {
    justify-self: end;
  }

  .timeline-item.left .timeline-image {
    justify-self: start;
  }

  .timeline-image img,
  .timeline-item[data-side="right"] .timeline-image img,
  .timeline-item[data-side="left"] .timeline-image img {
    width: 100%;
    margin: 0;
  }

  .timeline-title {
    font-size: 1.15rem;
    line-height: 1.08;
  }

  .timeline-desc {
    font-size: 0.78rem;
    line-height: 1.45;
  }
}

@media (max-width: 540px) {
  .timeline-item {
    grid-template-columns: 1fr;
    padding-left: 0;
  }
  .timeline-node { display: none; }
  .timeline-line  { display: none; }

  /* Image always on top */
  .timeline-image,
  .timeline-item.right .timeline-image,
  .timeline-item.left  .timeline-image {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    position: relative;
    left: auto; right: auto;
    justify-self: stretch;
  }

  /* Content always below image */
  .timeline-content,
  .timeline-item.right .timeline-content,
  .timeline-item.left  .timeline-content {
    grid-column: 1;
    grid-row: 2;
    text-align: left;
    margin: 0;
  }

  /* Image fills full width in 16:9 landscape ratio */
  .timeline-image img,
  .timeline-item[data-side="right"] .timeline-image img,
  .timeline-item[data-side="left"]  .timeline-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 0.6rem;
    margin: 0;
  }
}

/* ═══════════════════════════════════════════════════════
   TEAM (homepage only — inner-page team styles live in pages.css)
   All rules below are scoped to body:not(.inner-page) so they don't
   clobber the chromeless team grid used on About/Research/etc.
   ═══════════════════════════════════════════════════════ */
body:not(.inner-page) .team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  body:not(.inner-page) .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}
@media (min-width: 1024px) {
  body:not(.inner-page) .team-grid { grid-template-columns: repeat(4, 1fr); }
}

#team {
  position: relative;
  isolation: isolate;
}

#team::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top left, rgba(147, 178, 214, 0.1), transparent 34%),
    linear-gradient(rgba(147, 178, 214, 0.1) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(90deg, rgba(224, 210, 189, 0.08) 1px, transparent 1px) 0 0 / 34px 34px,
    radial-gradient(circle, rgba(255, 255, 255, 0.1) 0 1.2px, transparent 1.3px) 0 0 / 34px 34px;
  opacity: 0.72;
  z-index: 0;
}

#team .container {
  position: relative;
  z-index: 1;
}

body:not(.inner-page) .team-card {
  border-radius: 1rem;
  overflow: hidden;
  cursor: default;
  opacity: 0;
  transform: translateY(50px);
}

body:not(.inner-page) .team-card-portrait {
  position: relative;
  height: 16rem;
  overflow: hidden;
}

body:not(.inner-page) .team-card-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0.96;
  transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}
body:not(.inner-page) .team-card:hover .team-card-portrait img {
  opacity: 1;
}

body:not(.inner-page) .team-card-portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 26, 46, 0.28), rgba(14, 26, 46, 0.02) 52%, transparent 78%);
}

body:not(.inner-page) .team-card-info {
  padding: 1.25rem;
  margin-top: 0;
  position: relative;
}

body:not(.inner-page) .team-card-name {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}

body:not(.inner-page) .team-card-role {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(233, 142, 84, 0.95);
  font-weight: 500;
}

body:not(.inner-page) .team-card-bio {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.625;
  margin-top: 0.75rem;
}

.team-cta { margin-top: 3.5rem; text-align: center; opacity: 0; transform: translateY(30px); }

/* ═══════════════════════════════════════════════════════
   WHAT WE DO
   ═══════════════════════════════════════════════════════ */
#work {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(5, 10, 18, 0.74) 0%, rgba(6, 12, 22, 0.66) 30%, rgba(5, 10, 18, 0.82) 100%),
    url('images/afrika.jpg') center center / cover no-repeat,
    linear-gradient(180deg, #08111e 0%, #091523 32%, #07111c 100%);
}

#work::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4, 10, 18, 0.56) 0%, rgba(4, 10, 18, 0.18) 26%, rgba(4, 10, 18, 0.18) 74%, rgba(4, 10, 18, 0.56) 100%),
    linear-gradient(180deg, rgba(4, 10, 18, 0.08) 0%, rgba(4, 10, 18, 0.34) 100%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0, rgba(255, 255, 255, 0.05) 1px, transparent 1px, transparent 36px) 0 0 / 36px 36px,
    linear-gradient(45deg, rgba(255, 255, 255, 0.025) 0, rgba(255, 255, 255, 0.025) 1px, transparent 1px, transparent 36px) 0 0 / 36px 36px,
    radial-gradient(circle at 22% 72%, rgba(224, 210, 189, 0.14) 0 1px, transparent 1.6px) 0 0 / 46px 46px;
  opacity: 0.72;
  z-index: 0;
}

#work::after {
  content: '';
  position: absolute;
  inset: 8% 5% 10%;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 2rem;
  box-shadow: inset 0 0 0 1px rgba(147, 178, 214, 0.04);
  opacity: 0.7;
  z-index: 0;
}

#work .container {
  position: relative;
  z-index: 1;
}

.work-section-desc {
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
  position: relative;
}
@media (min-width: 768px) {
  .work-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.work-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: 1.5rem;
  padding: 1.75rem;
  cursor: default;
  opacity: 0;
  transform: translateY(50px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
    rgba(6, 12, 23, 0.78);
  box-shadow: 0 30px 80px rgba(4, 11, 22, 0.34);
}
@media (min-width: 768px) { .work-card { padding: 2.25rem; } }

@media (min-width: 768px) {
  .work-card { grid-column: span 6; }
  .work-card-featured,
  .work-card-publications { grid-column: span 7; }
  .work-card-igad,
  .work-card-training { grid-column: span 5; }
}

.work-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), transparent 45%),
    linear-gradient(180deg, transparent 60%, rgba(255, 255, 255, 0.03) 100%);
  opacity: 0.95;
  pointer-events: none;
}

.work-card::after {
  content: '';
  position: absolute;
  inset: auto -12% -24% auto;
  width: 17rem;
  height: 17rem;
  border-radius: 999px;
  background: var(--work-accent, rgba(147, 178, 214, 0.12));
  filter: blur(34px);
  opacity: 1;
  pointer-events: none;
}

.work-card-top,
.work-card-kicker,
.work-card h3,
.work-card-desc,
.work-card-divider,
.work-card-list {
  position: relative;
  z-index: 1;
}

.work-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.work-card-index {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.work-card-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 1rem;
}

.work-card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: rgba(142, 184, 229, 0.1);
  border: 1px solid rgba(142, 184, 229, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.4s cubic-bezier(0.23, 1, 0.32, 1),
    border-color 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.work-card:hover .work-card-icon {
  background: rgba(196, 138, 92, 0.12);
  border-color: rgba(196, 138, 92, 0.25);
}

.work-card-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: rgba(142, 184, 229, 0.6);
}

.work-card:hover .work-card-icon svg { color: rgba(196, 138, 92, 0.8); }

.work-card h3 {
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.85rem;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.work-card-featured h3 {
  font-size: clamp(1.75rem, 2vw, 2.35rem);
}

.work-card-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
  margin-bottom: 1.15rem;
}

.work-card-divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02));
  margin-bottom: 1.15rem;
}

.work-card-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.work-card-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.3s ease;
}

.work-card:hover .work-card-list li { color: rgba(255, 255, 255, 0.88); }

.work-card-list li svg {
  width: 0.75rem;
  height: 0.75rem;
  color: rgba(233, 142, 84, 0.95);
  flex-shrink: 0;
}

.work-card-parliament {
  --work-accent: rgba(147, 178, 214, 0.16);
}

.work-card-igad {
  --work-accent: rgba(224, 210, 189, 0.16);
}

.work-card-training {
  --work-accent: rgba(175, 114, 84, 0.16);
}

.work-card-publications {
  --work-accent: rgba(118, 148, 194, 0.18);
}

.work-card-featured {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05)),
    linear-gradient(140deg, rgba(147, 178, 214, 0.2), rgba(13, 45, 105, 0.08) 58%),
    rgba(7, 14, 26, 0.82);
}

/* ═══════════════════════════════════════════════════════
   PUBLICATIONS
   ═══════════════════════════════════════════════════════ */
.digests-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 56rem;
  margin: 0 auto;
}
@media (min-width: 768px) { .digests-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }

.digest-card {
  border-radius: 1rem;
  padding: 1.5rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(50px);
}
.digest-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (min-width: 768px) { .digest-card { padding: 1.75rem; } }

.digest-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.digest-tag {
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(233, 142, 84, 0.95);
  font-weight: 600;
  background: rgba(196, 138, 92, 0.08);
  border: 1px solid rgba(196, 138, 92, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.digest-date { font-size: 0.68rem; color: rgba(255, 255, 255, 0.62); letter-spacing: 0.04em; }

.digest-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.625rem;
  line-height: 1.5;
  transition: color 0.4s ease;
  letter-spacing: -0.01em;
}
.digest-card:hover h3 { color: #fff; }

.digest-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.digest-card .read-more {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(233, 142, 84, 0.95);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.digest-card:hover .read-more { color: rgba(196, 138, 92, 0.9); }
.digest-card .read-more svg { width: 0.75rem; height: 0.75rem; }

/* ── Homepage horizontal publications scroll ── */
.home-pubs-scroll {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(196, 138, 92, 0.4) transparent;
  padding-bottom: 0.75rem;
  margin: 0 -0.25rem;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}
.home-pubs-scroll::-webkit-scrollbar { height: 3px; }
.home-pubs-scroll::-webkit-scrollbar-track { background: transparent; }
.home-pubs-scroll::-webkit-scrollbar-thumb { background: rgba(196, 138, 92, 0.4); border-radius: 9999px; }

.home-pubs-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
  padding: 0.5rem 0 0.25rem;
}

/* ── Card shell ── */
.home-pub-card {
  --card-accent: #e98e54;
  flex: 0 0 min(78vw, 270px);
  display: flex;
  flex-direction: column;
  border-radius: 0.75rem;
  overflow: hidden;
  background: linear-gradient(175deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 2px 12px rgba(0,0,0,0.28);
  transition: transform 0.28s cubic-bezier(0.23,1,0.32,1),
              box-shadow 0.28s cubic-bezier(0.23,1,0.32,1);
  position: relative;
}
.home-pub-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2.5px;
  background: var(--card-accent);
  opacity: 0.9;
  z-index: 1;
  border-radius: 0.75rem 0.75rem 0 0;
}
.home-pub-card:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 10px 28px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.09);
}
@media (min-width: 480px)  { .home-pub-card { flex: 0 0 min(60vw, 265px); } }
@media (min-width: 700px)  { .home-pub-card { flex: 0 0 min(42vw, 268px); } }
@media (min-width: 960px)  { .home-pub-card { flex: 0 0 min(29vw, 272px); } }
@media (min-width: 1200px) { .home-pub-card { flex: 0 0 min(24vw, 278px); } }

/* ── Cover — tall book-thumbnail ratio ── */
.home-pub-card__cover {
  width: 100%;
  aspect-ratio: 7/7;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(0,0,0,0.3);
  position: relative;
}
.home-pub-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  transition: transform 0.4s cubic-bezier(0.23,1,0.32,1);
}
.home-pub-card:hover .home-pub-card__cover img { transform: scale(1.04); }
.home-pub-card__cover::after {
  content: '';
  position: absolute;
  inset: 60% 0 0 0;
  background: linear-gradient(to bottom, transparent, rgba(6,14,24,0.6));
  pointer-events: none;
}

/* ── Body ── */
.home-pub-card__body {
  padding: 0.55rem 0.6rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

.home-pub-card__top {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  row-gap: 0.2rem;
}

.home-pub-card__tag {
  font-size: 0.44rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--card-accent);
  background: color-mix(in srgb, var(--card-accent) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--card-accent) 28%, transparent);
  padding: 0.16rem 0.48rem;
  border-radius: 9999px;
  white-space: nowrap;
  line-height: 1.4;
}

.home-pub-card__date {
  font-size: 0.56rem;
  color: rgba(255,255,255,0.38);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.home-pub-card__title {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  line-height: 1.38;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Summary hidden on small cards — revealed on wider breakpoint */
.home-pub-card__summary { display: none; }

.home-pub-card__actions {
  margin-top: auto;
  padding-top: 0.4rem;
  display: flex;
}

/* ── CTA buttons ── */
.pub-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.6rem;
  font-weight: 700;
  border-radius: 9999px;
  padding: 0.28rem 0.7rem;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  width: 100%;
  justify-content: center;
}

/* Read PDF — solid accent fill */
.pub-cta--pdf {
  color: #fff;
  background: var(--card-accent, #e98e54);
  border: none;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--card-accent, #e98e54) 45%, transparent);
}
.pub-cta--pdf:hover {
  filter: brightness(1.12);
  box-shadow: 0 3px 12px color-mix(in srgb, var(--card-accent, #e98e54) 55%, transparent);
}

/* View — soft glass outline */
.pub-cta--view {
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
}
.pub-cta--view:hover {
  background: rgba(255,255,255,0.13);
  color: #fff;
  border-color: rgba(255,255,255,0.28);
}

/* On wider cards (tablet+) show summary, make button inline */
@media (min-width: 700px) {
  .home-pub-card__body { gap: 0.35rem; }
  .home-pub-card__title { font-size: 0.75rem; }
  .home-pub-card__summary {
    display: -webkit-box;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.48);
    line-height: 1.55;
    margin: 0;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .pub-cta { width: auto; justify-content: flex-start; }
}

.home-pubs-footer {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.upcoming-session {
  margin-top: 3.5rem;
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  transform: translateY(30px);
}
@media (min-width: 768px) {
  .upcoming-session { flex-direction: row; justify-content: space-between; padding: 2rem; }
}

.upcoming-session-info { display: flex; align-items: center; gap: 1rem; }

.upcoming-session-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: rgba(196, 138, 92, 0.08);
  border: 1px solid rgba(196, 138, 92, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.upcoming-session-icon svg { width: 1.25rem; height: 1.25rem; color: rgba(196, 138, 92, 0.6); }

.upcoming-session h3 { font-size: 1rem; font-weight: 600; color: rgba(255, 255, 255, 0.75); }
.upcoming-session p { font-size: 0.9rem; color: rgba(255, 255, 255, 0.78); }

.btn-accent {
  padding: 0.625rem 1.5rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: background-color 0.4s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* ═══════════════════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════════════════ */
.testimonials-section {
  background:
    linear-gradient(180deg, rgba(76, 44, 30, 0.96) 0%, rgba(58, 33, 23, 0.97) 100%),
    #4c2c1e;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 60rem;
  margin: 0 auto;
}
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }

.testimonial-card {
  border-radius: 1rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(50px);
}

.testimonial-quote-mark {
  font-size: 4rem;
  line-height: 1;
  color: rgba(196, 138, 92, 0.15);
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.testimonial-text {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1.5rem;
}

.testimonial-footer {
  border-top: 1px solid rgba(142, 184, 229, 0.08);
  padding-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(196, 138, 92, 0.1);
  border: 1px solid rgba(196, 138, 92, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.testimonial-avatar svg { width: 0.875rem; height: 0.875rem; color: rgba(196, 138, 92, 0.5); }

.testimonial-name { font-size: 0.875rem; font-weight: 500; color: rgba(255, 255, 255, 0.7); }
.testimonial-org { font-size: 0.7rem; color: rgba(255, 255, 255, 0.66); }

/* ═══════════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════════ */
.faq-section {
  background:
    linear-gradient(180deg, rgba(9, 16, 28, 0.98) 0%, rgba(11, 23, 40, 0.98) 100%),
    #0b1728;
}

.faq-layout {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .faq-layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(18rem, 0.8fr);
    align-items: start;
  }
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-item {
  padding: 0;
  border-radius: 1.25rem;
  overflow: hidden;
}

.faq-question {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 1.35rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  width: 1rem;
  height: 1rem;
  position: relative;
  flex: 0 0 auto;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 1.5px;
  background: rgba(233, 142, 84, 0.9);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-icon::after {
  opacity: 0;
}

.faq-answer {
  padding: 0 1.35rem 1.35rem;
}

.faq-answer p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
  line-height: 1.75;
}

.faq-side {
  padding: 1.5rem;
  border-radius: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-side-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(233, 142, 84, 0.76);
}

.faq-side-title {
  font-size: 1.5rem;
  line-height: 1.15;
  color: #fff;
}

.faq-side-copy {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  line-height: 1.8;
}

/* ═══════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════ */
.contact-bg { position: absolute; inset: 0; }
.contact-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.34; }
.contact-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 11, 18, 0.66), rgba(9, 14, 22, 0.42), rgba(12, 18, 26, 0.18));
}

.contact-wrapper {
  max-width: 64rem;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(40px);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.contact-subscribe-card {
  border-radius: 1.5rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  background: linear-gradient(155deg, rgba(233, 142, 84, 0.08), rgba(13, 45, 105, 0.12));
  border: 1px solid rgba(142, 184, 229, 0.16);
}
@media (min-width: 768px) {
  .contact-subscribe-card {
    padding: 2.5rem;
  }
}

.contact-subscribe-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-subscribe-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(233, 142, 84, 0.92);
}

.contact-subscribe-title {
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
  margin: 0;
}

.contact-subscribe-card .sender-form-field {
  margin-top: 0.5rem;
}

.contact-form-card { border-radius: 1.5rem; padding: 2rem; }
@media (min-width: 768px) { .contact-form-card { padding: 2.5rem; } }

.contact-form-success { display: none; flex-direction: column; align-items: center; padding: 2.5rem 0; text-align: center; }
.contact-form-success.show { display: flex; }
.contact-form-success.hide { display: none; }

.contact-form-success-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: rgba(196, 138, 92, 0.1);
  border: 1px solid rgba(196, 138, 92, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.contact-form-success-icon svg { width: 1.5rem; height: 1.5rem; color: #C48A5C; }

.contact-form-success h3 { font-size: 1.25rem; font-weight: 600; color: #fff; margin-bottom: 0.5rem; }
.contact-form-success p { font-size: 0.9rem; color: rgba(255, 255, 255, 0.82); }

.contact-form { display: flex; flex-direction: column; gap: 1.75rem; }

.contact-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}
@media (min-width: 640px) { .contact-row { grid-template-columns: repeat(2, 1fr); } }

.form-group label {
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(233, 142, 84, 0.92);
  margin-bottom: 0.75rem;
}

.input-bottom {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(142, 184, 229, 0.32);
  border-radius: 0;
  padding: 0.75rem 0;
  color: #F2E5D2;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  width: 100%;
}
.input-bottom::placeholder { color: rgba(170, 200, 235, 0.55); }
.input-bottom:focus { border-bottom-color: rgba(233, 142, 84, 0.95); }
textarea.input-bottom { resize: none; min-height: 80px; }

.btn-submit {
  width: 100%;
  padding: 0.875rem;
  border: none;
  border-radius: 9999px;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-submit svg { width: 0.875rem; height: 0.875rem; }

.contact-details {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  text-align: center;
}

.contact-details-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.82);
}
.contact-details-item svg { width: 0.95rem; height: 0.95rem; color: rgba(233, 142, 84, 0.95); flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
.footer { background: #070F1C; border-top: 1px solid rgba(142, 184, 229, 0.08); }
.footer-divider { height: 1px; background: linear-gradient(to right, transparent, rgba(142, 184, 229, 0.1), transparent); }

.footer-inner { max-width: 1400px; margin: 0 auto; padding: 4rem 1.5rem; }
@media (min-width: 1024px) { .footer-inner { padding: 4rem 3rem; } }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.5fr repeat(4, 1fr); gap: 2rem; } }

.footer-brand { grid-column: span 2; margin-bottom: 1rem; }
@media (min-width: 768px) { .footer-brand { grid-column: span 3; margin-bottom: 0; } }
@media (min-width: 1024px) { .footer-brand { grid-column: span 1; } }

.footer-logo { display: flex; align-items: center; gap: 0.625rem; margin-bottom: 1.25rem; }
.footer-logo img { height: 2rem; width: auto; object-fit: contain; border-radius: 4px; }

.footer-brand-desc { font-size: 0.78rem; color: rgba(255, 255, 255, 0.72); line-height: 1.7; margin-bottom: 1.25rem; }

.footer-socials { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.footer-social-link {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease, background 0.3s ease;
}
.footer-social-link:hover { color: rgba(233, 142, 84, 1); background: rgba(233, 142, 84, 0.12); }
.footer-social-link svg { width: 0.95rem; height: 0.95rem; }

.footer-col h4 { font-size: 0.66rem; font-weight: 700; color: rgba(233, 142, 84, 0.92); text-transform: uppercase; letter-spacing: 0.22em; margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { font-size: 0.82rem; color: rgba(255, 255, 255, 0.78); transition: color 0.3s ease; }
.footer-col a:hover { color: rgba(233, 142, 84, 1); }

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(142, 184, 229, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }

.footer-bottom p { font-size: 0.66rem; color: rgba(255, 255, 255, 0.58); text-transform: uppercase; letter-spacing: 0.15em; }
.footer-bottom .footer-location { color: rgba(255, 255, 255, 0.62); text-transform: none; letter-spacing: 0.02em; font-size: 0.74rem; }
.footer-bottom .footer-madeby { color: rgba(255, 255, 255, 0.42); text-transform: none; letter-spacing: 0.02em; font-size: 0.72rem; }
.footer-bottom .footer-madeby a { color: rgba(233, 196, 84, 0.9); text-decoration: none; }
.footer-bottom .footer-madeby a:hover { color: #e9c454; text-decoration: underline; }

/* Body-copy readability boost.
   Tier: primary body text → 0.78 opacity white (≈ 5.4:1 on #0A1628, passes AA). */
.section-desc,
.hero-desc,
.feature-card-sub,
.about-copy-lead,
.about-copy-text,
.about-include-card p,
.timeline-copy,
.team-card-bio,
.work-card-desc,
.work-card-list li,
.digest-card p,
.upcoming-session p,
.testimonial-text,
.contact-info-text,
.contact-form-success p {
  color: rgba(255, 255, 255, 0.82);
}

/* ═══════════════════════════════════════════════════════
   SCROLL TO TOP
   ═══════════════════════════════════════════════════════ */
.scroll-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.4);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8) translateY(20px);
  transition: color 0.5s cubic-bezier(0.23, 1, 0.32, 1),
    opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1),
    transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.scroll-top.visible { opacity: 1; pointer-events: auto; transform: scale(1) translateY(0); }
.scroll-top:hover { color: #C48A5C; }
.scroll-top svg { width: 1rem; height: 1rem; }

@media (max-width: 767px) {
  #contact .section-header {
    margin-bottom: 2rem;
  }

  #contact .section-desc {
    color: rgba(255, 255, 255, 0.82);
  }

  .contact-bg img {
    opacity: 0.44;
  }

  .contact-bg::after {
    background: linear-gradient(to top, rgba(7, 11, 18, 0.56), rgba(9, 14, 22, 0.34), rgba(12, 18, 26, 0.14));
  }

  .contact-form-card.glass-strong {
    background: rgba(9, 16, 28, 0.84);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
  }

  .contact-details-item {
    color: rgba(255, 255, 255, 0.78);
  }

  .scroll-top {
    width: 2.15rem;
    height: 2.15rem;
    right: 1rem;
    bottom: 1rem;
  }

  .scroll-top svg {
    width: 0.85rem;
    height: 0.85rem;
  }
}

/* ============================================================
   Footer additions — contact list, Sender.net subscribe form,
   and active-page nav highlight. Appended for revision round
   2026-05-25 (see docs/superpowers/specs/...).
   ============================================================ */

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
}
.footer-contact li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}
.footer-contact-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(233, 142, 84, 0.85);
  padding-top: 0.15rem;
}
.footer-contact a {
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.3s ease;
}
.footer-contact a:hover {
  color: rgba(233, 142, 84, 1);
}

.footer-subscribe {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(142, 184, 229, 0.08);
}
.footer-subscribe-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(233, 142, 84, 0.92);
}
.footer-subscribe-row {
  display: flex;
  gap: 0.5rem;
}
.footer-subscribe input[type="email"] {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(142, 184, 229, 0.18);
  border-radius: 0.5rem;
  padding: 0.55rem 0.75rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.8rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.footer-subscribe input[type="email"]:focus {
  border-color: rgba(233, 142, 84, 0.62);
  background: rgba(255, 255, 255, 0.07);
}
.footer-subscribe input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.45);
}
.footer-subscribe button {
  background: rgba(233, 142, 84, 0.92);
  color: #0c1a30;
  font-weight: 600;
  font-size: 0.78rem;
  padding: 0.55rem 0.95rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  font-family: inherit;
}
.footer-subscribe button:hover {
  background: rgba(233, 142, 84, 1);
}
.footer-subscribe button:active {
  transform: translateY(1px);
}
.footer-subscribe-status {
  font-size: 0.72rem;
  margin: 0.3rem 0 0;
  padding: 0.4rem 0.55rem;
  border-radius: 0.4rem;
}
.footer-subscribe-status.is-ok {
  background: rgba(120, 200, 130, 0.12);
  color: rgba(180, 230, 190, 0.95);
}
.footer-subscribe-status.is-error {
  background: rgba(220, 80, 80, 0.12);
  color: rgba(255, 170, 170, 0.95);
}

/* Active page highlight in primary nav. The nav item that matches the
   current pathname gets .is-current via site-nav.js. */
.navbar-item.is-current > .navbar-link-group > .navbar-parent-link,
.navbar-cop32.is-current,
.navbar-cta.is-current {
  color: rgba(233, 142, 84, 1);
}
.navbar-item.is-current > .navbar-link-group > .navbar-parent-link::after {
  content: '';
  display: block;
  height: 2px;
  margin-top: 4px;
  border-radius: 2px;
  background: rgba(233, 142, 84, 0.85);
}

/* ============================================================
   Homepage additions: Resource Hub, Partners carousel,
   horizontal logo, book popup, timeline news link.
   ============================================================ */

/* Resource Hub */
.resource-hub-section .section-header { margin-bottom: 1.5rem; }
.resource-hub-map {
  padding: 1.5rem;
  border-radius: 1rem;
  min-height: 360px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.resource-hub-map #interactiveMap {
  flex: 1;
  min-height: 320px;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.resource-hub-map #interactiveMap::before {
  content: '';
  position: absolute; inset: 0;
  background: url('images/igad/igad-map-full.jpg') center center / cover;
  opacity: 0.5;
  filter: saturate(0.85) brightness(0.85);
}
.resource-hub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-start;
}

/* Horizontal logo strip */
.partners-section { padding-bottom: 4rem; }
.partners-section-header { margin-top: 1.5rem; }
.horizontal-logo-row {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}
.horizontal-logo-img {
  max-height: 88px;
  width: auto;
  filter: brightness(1.05);
  opacity: 0.95;
}

/* Partners arc */
.partners-arc {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}
.partners-arc-dots,
.partners-arc-baseline,
.partners-arc-caption {
  display: none;
}
.partner-orbit {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}
.partner-orbit:hover,
.partner-orbit:focus-visible {
  transform: translateY(-5px);
}
.partner-logo-disc {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  transition: transform 0.3s ease;
}
.partner-logo-disc::before {
  display: none;
}
.partner-logo-disc img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
}
.partner-orbit:hover .partner-logo-disc,
.partner-orbit:focus-visible .partner-logo-disc {
  transform: scale(1.1);
}
.partner-name {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: normal;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  line-height: 1.4;
  font-weight: 500;
  margin: 0;
}
.partner-orbit-1,
.partner-orbit-2,
.partner-orbit-3,
.partner-orbit-4,
.partner-orbit-5,
.partner-orbit-6,
.partner-orbit-7 {
  position: relative;
  left: auto;
  top: auto;
  width: auto;
  min-height: auto;
  transform: none;
  animation: none;
}

@media (max-width: 820px) {
  .partners-arc {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem 0;
  }
  .partner-logo-disc {
    width: 100px;
    height: 100px;
  }
  .partner-name {
    font-size: 0.75rem;
  }
}

@media (max-width: 600px) {
  .partners-arc {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .partner-logo-disc {
    width: 90px;
    height: 90px;
  }
  .partner-name {
    font-size: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .partner-orbit {
    animation: none;
  }
  .partner-orbit:hover {
    transform: none;
  }
}

/* Book popup */
#bookPopupMount {
  position: fixed;
  inset: 0;
  z-index: 9999;
  /* Soft popup — the mount fills the viewport for positioning but does
     NOT capture clicks. Only the corner .book-popup card itself is
     interactive (it re-enables pointer-events below). This lets the user
     keep scrolling and clicking the page underneath while the card is up. */
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.32s ease;
}
#bookPopupMount.is-visible {
  opacity: 1;
  /* Stays pointer-events: none so background remains interactive. */
}
/* While the mobile drawer is open, hide the popup to avoid z-index stacking
   on top of the nav. The popup reappears as soon as the drawer closes. */
body.mobile-drawer-open #bookPopupMount {
  opacity: 0;
}
/* The backdrop is intentionally invisible — a soft popup must not dim or
   blur the page behind it. Kept in the DOM as a no-op so we don't have to
   touch book-popup.js. */
.book-popup-backdrop {
  display: none;
}
/* Compact corner card: a book cover that leans out of a slim glass panel.
   Cover is the hero element (portrait, 3D-tilted, spine + drop shadow);
   text is reduced to a kicker + title + one CTA. */
.book-popup {
  position: absolute;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 18.5rem;
  padding: 1.4rem 1.5rem 1.5rem;
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(233, 142, 84, 0.14), transparent 55%),
    linear-gradient(165deg, rgba(20, 32, 54, 0.98), rgba(11, 19, 32, 0.98));
  border: 1px solid rgba(142, 184, 229, 0.16);
  border-radius: 1.1rem;
  box-shadow:
    0 30px 70px -20px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: translateY(24px) scale(0.97);
  opacity: 0;
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.42s ease;
  pointer-events: auto;
}
#bookPopupMount.is-visible .book-popup {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.book-popup-close {
  position: absolute;
  top: 0.65rem; right: 0.7rem;
  background: rgba(255, 255, 255, 0.07);
  border: none;
  border-radius: 999px;
  width: 1.7rem; height: 1.7rem;
  font-size: 1.15rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  z-index: 2;
}
.book-popup-close:hover {
  background: rgba(233, 142, 84, 0.9);
  color: #0c1a30;
  transform: rotate(90deg);
}

/* The cover rendered as a physical book: portrait, perspective tilt, a dark
   "spine" gradient on the left edge, and a soft cast shadow beneath. */
.book-popup-cover {
  position: relative;
  width: 8.5rem;
  aspect-ratio: 5 / 7;
  margin: 0.25rem 0 1.25rem;
  border-radius: 0.2rem 0.5rem 0.5rem 0.2rem;
  overflow: hidden;
  transform: perspective(900px) rotateY(-14deg) rotateX(2deg);
  transform-origin: left center;
  box-shadow:
    0 22px 36px -12px rgba(0, 0, 0, 0.75),
    -1px 0 0 rgba(0, 0, 0, 0.4);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.book-popup-cover::before {
  /* Spine shadow on the binding edge */
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 14px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.12) 60%, transparent);
  z-index: 2;
}
.book-popup-cover::after {
  /* Page-edge highlight on the right */
  content: '';
  position: absolute;
  top: 2%; bottom: 2%; right: 0;
  width: 3px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22));
  z-index: 2;
}
.book-popup:hover .book-popup-cover {
  transform: perspective(900px) rotateY(-6deg) rotateX(1deg) translateY(-3px);
}
.book-popup-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.book-popup-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}
.book-popup-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(233, 142, 84, 0.95);
}
.book-popup-kicker::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(233, 142, 84, 1);
  box-shadow: 0 0 0 3px rgba(233, 142, 84, 0.2);
}
.book-popup-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.book-popup-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.2rem;
  background: rgba(233, 142, 84, 0.95);
  color: #0c1a30;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  transition: background 0.2s ease, gap 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 22px -8px rgba(233, 142, 84, 0.6);
}
.book-popup-cta svg { width: 0.85rem; height: 0.85rem; }
.book-popup-cta:hover {
  background: rgba(233, 142, 84, 1);
  gap: 0.75rem;
  box-shadow: 0 10px 28px -8px rgba(233, 142, 84, 0.8);
}

/* Hide book popup on mobile devices */
@media (max-width: 767px) {
  #bookPopupMount {
    display: none !important;
  }
}

@media (max-width: 520px) {
  .book-popup {
    right: 1rem; left: 1rem; bottom: 1rem;
    width: auto;
  }
}

@media (max-width: 560px) {
  .book-popup {
    left: 1rem; right: 1rem;
    bottom: 1rem;
    max-width: none;
    grid-template-columns: 5.5rem 1fr;
  }
}

/* News-driven timeline (about section). Inherits the existing .timeline /
   .timeline-item styles; we only add small adjustments for clickable titles. */
.about-journey .timeline-title-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.about-journey .timeline-title-link:hover {
  color: rgba(233, 142, 84, 1);
}
.about-journey .timeline-desc-am {
  margin-top: 0.45rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
  line-height: 1.55;
}

/* ═══════════════════════════════════════════════════════
   LATEST NEWS SECTION (homepage)
   ═══════════════════════════════════════════════════════ */
.news-section {
  background:
    linear-gradient(180deg, rgba(9, 16, 28, 0.98) 0%, rgba(11, 23, 40, 0.98) 100%),
    #0b1728;
}

.news-section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 64rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .news-section-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .news-section-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.news-section-card {
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  opacity: 0;
  transform: translateY(40px);
  animation: news-card-fade-in 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-section-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(196, 138, 92, 0.15);
  border-color: rgba(196, 138, 92, 0.2);
}

.news-section-card:nth-child(1) { animation-delay: 0.05s; }
.news-section-card:nth-child(2) { animation-delay: 0.15s; }
.news-section-card:nth-child(3) { animation-delay: 0.25s; }

@keyframes news-card-fade-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.news-section-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}

.news-section-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-section-card:hover .news-section-card-img img {
  transform: scale(1.05);
}

.news-section-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.news-section-card-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.news-section-card-badge {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  padding: 0.15rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.news-section-card-date {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(233, 142, 84, 0.85);
  padding: 0.2rem 0.6rem;
  border: 1px solid rgba(233, 142, 84, 0.2);
  border-radius: 999px;
  width: fit-content;
}

.news-section-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-section-card-excerpt {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.55;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-section-card-link {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(233, 142, 84, 0.95);
  margin-top: 0.5rem;
  transition: gap 0.2s ease;
}

.news-section-card:hover .news-section-card-link {
  color: rgba(255, 198, 142, 1);
}

.news-section-footer {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

/* ═══════════════════════════════════════════════════════
   MOBILE RESPONSIVE FIXES FOR 4 SECTIONS
   ═══════════════════════════════════════════════════════ */

/* 1. PUBLICATIONS TIMELINE - Mobile Optimization */
@media (max-width: 767px) {
  .timeline-item {
    padding-left: 1.5rem;
    margin-bottom: 2rem;
  }

  .timeline-image {
    width: 100%;
    max-width: 280px;
    height: auto;
    margin-bottom: 1rem;
  }

  .timeline-content {
    padding: 0;
  }

  .timeline-title {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
  }

  .timeline-desc {
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
  }

  .timeline-cta {
    font-size: 0.875rem;
    padding: 0.65rem 1.25rem;
  }
}

/* 2. TEAM SECTION - Single Column on Mobile */
@media (max-width: 767px) {
  body:not(.inner-page) .team-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 400px;
    margin: 0 auto;
  }

  .team-card {
    max-width: 100%;
  }

  .team-card-portrait {
    height: 14rem;
  }

  .team-card-info {
    padding: 1rem;
  }

  .team-card-name {
    font-size: 1.15rem;
  }

  .team-card-role {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
  }

  .team-card-bio {
    font-size: 0.85rem;
    line-height: 1.5;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  body:not(.inner-page) .team-grid {
    gap: 1rem;
  }

  .team-card-portrait {
    height: 12rem;
  }

  .team-card-name {
    font-size: 1.05rem;
  }

  .team-card-bio {
    font-size: 0.8rem;
  }
}

/* 3. REGIONAL MAP - Enhanced Mobile Styles */
@media (max-width: 767px) {
  .resource-hub-map {
    padding: 1rem;
  }

  .atlas-card {
    padding: 1rem;
  }

  .atlas-toolbar {
    margin-bottom: 1rem;
  }

  .atlas-toggle__btn {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .atlas-map {
    min-height: 300px;
  }

  .atlas-panel {
    padding: 1rem;
  }

  .atlas-panel-title {
    font-size: 1.25rem;
  }

  .atlas-stat-value {
    font-size: 1.75rem;
  }

  .atlas-stat-label {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .atlas-card {
    padding: 0.75rem;
  }

  .atlas-toggle__btn {
    font-size: 10px;
    padding: 10px 12px;
  }

  .atlas-map {
    min-height: 250px;
  }
}

/* 4. TRAINING PROGRAMS & PUBLICATIONS CARDS - Mobile Optimization */
@media (max-width: 767px) {
  .work-card {
    padding: 1.5rem;
  }

  .work-card-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.75rem;
  }

  .work-card-number {
    font-size: 2.5rem;
  }

  .work-card-title {
    font-size: 1.15rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
  }

  .work-card-desc {
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
  }

  .work-card-list {
    gap: 0.5rem;
  }

  .work-card-list li {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
  }

  /* Digests Grid */
  .digests-grid {
    gap: 1rem;
  }

  .digest-card {
    padding: 1.25rem;
  }

  .digest-card-title {
    font-size: 1rem;
    line-height: 1.4;
  }

  .digest-card-desc {
    font-size: 0.85rem;
    line-height: 1.5;
  }
}

@media (max-width: 480px) {
  .work-card {
    padding: 1.25rem;
  }

  .work-card-number {
    font-size: 2rem;
  }

  .work-card-title {
    font-size: 1.05rem;
  }

  .work-card-desc {
    font-size: 0.825rem;
  }

  .work-card-list li {
    font-size: 0.75rem;
    padding: 0.45rem 0.65rem;
  }

  .digest-card {
    padding: 1rem;
  }

  .digest-card-title {
    font-size: 0.95rem;
  }

  .digest-card-desc {
    font-size: 0.8rem;
  }
}

/* ═══════════════════════════════════════════════════════
   FOOTER MOBILE FIXES FOR SMALL SCREENS
   ═══════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .footer-inner {
    padding: 2.5rem 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: span 1;
    margin-bottom: 1.5rem;
  }

  .footer-contact {
    gap: 0.75rem;
  }

  .footer-contact li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .footer-contact-label {
    font-size: 0.65rem;
  }

  .footer-subscribe-row {
    flex-direction: column;
    gap: 0.75rem;
  }

  .footer-subscribe input[type="email"] {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }

  .footer-subscribe button {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* Extra small screens (≤400px) */
@media (max-width: 400px) {
  .container {
    padding: 0 1rem;
  }

  .footer-inner {
    padding: 2rem 0.75rem;
  }

  .footer-contact li {
    font-size: 0.75rem;
  }

  .footer-contact-label {
    font-size: 0.6rem;
  }

  .footer-subscribe input[type="email"],
  .footer-subscribe button {
    padding: 0.65rem 0.85rem;
    font-size: 0.8rem;
  }

  .footer-col h4 {
    font-size: 0.6rem;
  }

  .footer-col a {
    font-size: 0.75rem;
  }

  .footer-bottom p,
  .footer-bottom .footer-location {
    font-size: 0.6rem;
  }
}

/* Mobile viewport adjustments */
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  .section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .section-desc {
    font-size: 0.9rem;
  }
}

.about-journey .timeline-image a { display: block; }
