
/* ── Card entrance animation (CSS-only, no JavaScript) ── */
.anim-card {
  opacity: 1;
  animation: anim-card-in 0.75s ease both;
}
@keyframes anim-card-in {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim-card:nth-child(2)  { animation-delay: 0.08s; }
.anim-card:nth-child(3)  { animation-delay: 0.16s; }
.anim-card:nth-child(4)  { animation-delay: 0.24s; }
.anim-card:nth-child(5)  { animation-delay: 0.32s; }
.anim-card:nth-child(6)  { animation-delay: 0.40s; }
.anim-card:nth-child(7)  { animation-delay: 0.48s; }
.anim-card:nth-child(n+8) { animation-delay: 0.56s; }

@media (prefers-reduced-motion: reduce) {
  .anim-card { animation: none; }
}

/* ── NewGlobe RME — Shared Stylesheet ── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #233578;
  --navy-dark: #1A2654;
  --navy-deep: #0F1633;
  --teal:      #00BABF;
  --warm:      #FFBC7D;
  --light:     #F1F7FC;
  --muted:     #8390A4;
  --dark:      #1A1919;
  --white:     #ffffff;
  --border:    #D8E4F0;
}

body {
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 15px;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--teal); }

/* ── Nav ──
   !important is used defensively throughout: some pages (e.g. the JigawaUNITE
   assessment pages) carry their own leftover/dead CSS that happens to reuse these
   same class names for unrelated elements. Without !important, any property
   shared.css doesn't already declare (e.g. position/left/transform) would pass
   through unopposed regardless of selector specificity. */
#nav {
  position: fixed !important; top: 0 !important; left: 0 !important; right: 0 !important;
  z-index: 1000 !important;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: 90px !important;
  display: flex !important; align-items: center !important;
}
#nav .nav-inner {
  max-width: 1200px; width: 100%;
  margin: 0 auto; padding: 0 24px 0 8px;
  display: flex !important; align-items: center !important; justify-content: space-between !important;
}
#nav .nav-logo {
  display: flex !important; align-items: center !important; gap: 10px;
  font-weight: 700; font-size: 15px; color: var(--navy); text-decoration: none;
  position: static !important;
}
#nav .nav-logo-mark {
  width: auto; height: 60px;
  display: flex !important; align-items: center !important; flex-shrink: 0;
}
#nav .nav-logo-mark img { height: 60px; width: auto; display: block; }
#nav .nav-links {
  display: flex !important; align-items: center !important; gap: 2px; list-style: none;
  position: static !important; top: auto !important; left: auto !important; right: auto !important;
  transform: none !important; height: auto !important; justify-content: flex-start !important;
}
#nav .nav-links > li { position: relative !important; }
#nav .nav-links > li > a {
  font-size: 13px; font-weight: 600; color: var(--dark);
  padding: 6px 9px; border-radius: 4px;
  display: flex; align-items: center; gap: 4px; transition: color 0.15s;
}
#nav .nav-links > li > a:hover,
#nav .nav-links > li > a.active { color: var(--navy); background: var(--light); }
#nav .nav-links > li > a .caret { font-size: 9px; color: var(--muted); transition: transform 0.15s; }
#nav .nav-links > li:hover > a .caret { transform: rotate(180deg); }

#nav .nav-dropdown {
  display: none; position: absolute; top: calc(100% + 4px); left: 0;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 6px; box-shadow: 0 8px 32px rgba(35,53,120,0.12);
  z-index: 200; min-width: 220px; padding: 8px 0; list-style: none;
}
#nav .nav-dropdown.nav-dropdown-wide { min-width: 600px; padding: 16px; display: none; }
#nav .nav-links > li:hover > .nav-dropdown { display: block; }
#nav .nav-links > li:hover > .nav-dropdown.nav-dropdown-wide { display: flex; flex-wrap: wrap; gap: 0; }
#nav .nav-dropdown li a {
  display: block; padding: 8px 16px; font-size: 13px; font-weight: 600;
  color: var(--dark); transition: background 0.1s; white-space: nowrap;
}
#nav .nav-dropdown li a:hover { background: var(--light); color: var(--navy); }
#nav .nav-dropdown-divider { height: 1px; background: var(--border); margin: 6px 0; }
#nav .dropdown-col { flex: 0 0 50%; padding: 0 8px; }
#nav .dropdown-col-title {
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--muted); padding: 6px 8px 4px;
}
#nav .dropdown-col li a { padding: 6px 8px; font-size: 13px; border-radius: 4px; }
#nav .nav-cta {
  background: var(--navy); color: var(--white) !important;
  padding: 8px 18px; border-radius: 4px;
  font-size: 13px !important; font-weight: 600 !important; margin-left: 8px;
  transition: background 0.15s !important;
}
#nav .nav-cta:hover { background: var(--navy-dark) !important; color: var(--white) !important; }

#nav .dropdown-col li.has-submenu { position: relative; }
#nav .dropdown-col li.has-submenu > a { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
#nav .dropdown-col li.has-submenu > a .caret { font-size: 9px; color: var(--muted); transition: transform 0.15s; }
#nav .dropdown-col li.has-submenu.submenu-open > a .caret { transform: rotate(90deg); }
#nav .dropdown-submenu {
  display: none; position: static; margin: 4px 0 6px 12px;
  padding-left: 8px; border-left: 2px solid var(--border); list-style: none;
}
#nav .dropdown-col li.has-submenu.submenu-open > .dropdown-submenu { display: block; }
#nav .dropdown-submenu li a { display: block; padding: 6px 8px; font-size: 13px; font-weight: 600; color: var(--dark); border-radius: 4px; }
#nav .dropdown-submenu li a:hover { background: var(--light); color: var(--navy); }

/* ── Page hero ── */
.page-hero { margin-top: 90px; background: var(--navy); padding: 52px 0 48px; }
.page-hero-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.page-hero-label {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--teal); margin-bottom: 10px;
}
.page-hero-title { font-size: 34px; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.page-hero-sub { font-size: 15px; color: rgba(255,255,255,0.6); max-width: 600px; }

/* Photo hero */
.photo-hero {
  margin-top: 90px; height: 380px; position: relative; overflow: hidden;
  background: var(--navy-deep);
}
.photo-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(15,22,51,0.85) 0%, rgba(15,22,51,0.3) 60%);
}
.photo-hero-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 0 40px 0;
}
.photo-hero-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.photo-hero-breadcrumb { font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 10px; }
.photo-hero-breadcrumb a { color: rgba(255,255,255,0.5); }
.photo-hero-breadcrumb a:hover { color: var(--teal); }
.photo-hero-title { font-size: 40px; font-weight: 700; color: var(--white); line-height: 1.15; }
.photo-hero-sub { font-size: 16px; color: rgba(255,255,255,0.65); margin-top: 8px; }

/* ── Sections ── */
.section { padding: 56px 0; }
.section-light { background: var(--light); }
.section-navy { background: var(--navy); }
.section-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 28px;
}
.section-title { font-size: 22px; font-weight: 700; color: var(--navy); }
.section-title-white { font-size: 22px; font-weight: 700; color: var(--white); }
.section-link { font-size: 13px; font-weight: 600; color: var(--teal); }
.section-link:hover { color: var(--navy); }

/* ── Stats strip ── */
.stats-strip {
  background: var(--white); border-bottom: 1px solid var(--border); padding: 28px 0;
}
.stats-strip-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; gap: 0;
}
.stat-item { flex: 1; text-align: center; padding: 8px 16px; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-number { font-size: 30px; font-weight: 700; color: var(--navy); line-height: 1; }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ── Badges ── */
.badge {
  display: inline-block; font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 3px;
  text-transform: uppercase; letter-spacing: 0.3px;
}
.badge-type { background: rgba(35,53,120,0.08); color: var(--navy); }
.badge-country { background: rgba(0,186,191,0.1); color: #007a7e; }
.badge-year { background: var(--light); color: var(--muted); }
.badge-program { background: rgba(255,188,125,0.2); color: #9a5f00; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; padding: 10px 20px;
  border-radius: 4px; cursor: pointer; transition: all 0.15s;
  font-family: inherit; border: none;
}
.btn-navy { background: var(--navy); color: white; }
.btn-navy:hover { background: var(--navy-dark); color: white; }
.btn-teal { background: var(--teal); color: white; }
.btn-teal:hover { background: #00a5aa; color: white; }
.btn-outline { border: 1px solid var(--border) !important; background: white; color: var(--navy); }
.btn-outline:hover { border-color: var(--navy) !important; }
.btn-sm { padding: 7px 14px; font-size: 12px; }

/* ── Cards ── */
.card {
  border: 1px solid var(--border); border-radius: 6px;
  overflow: hidden; transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: 0 6px 24px rgba(35,53,120,0.1); transform: translateY(-2px); }
.card-body { padding: 20px; }

/* Research card */
.research-card {
  border: 1px solid var(--border); border-radius: 6px; padding: 22px;
  display: flex; flex-direction: column; gap: 10px;
  transition: box-shadow 0.2s;
}
.research-card:hover { box-shadow: 0 4px 16px rgba(35,53,120,0.1); }
.research-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.research-title { font-size: 15px; font-weight: 700; color: var(--navy); line-height: 1.35; }
.research-excerpt { font-size: 13px; color: var(--muted); line-height: 1.55; flex: 1; }
.research-actions { display: flex; gap: 10px; margin-top: 4px; }

/* Program card */
.program-card {
  border: 1px solid var(--border); border-radius: 6px; padding: 20px 22px;
  display: flex; flex-direction: column; gap: 10px;
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none; color: inherit;
}
.program-card:hover { box-shadow: 0 6px 20px rgba(35,53,120,0.1); transform: translateY(-2px); }
.program-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.program-card-name { font-size: 16px; font-weight: 700; color: var(--navy); }
.program-card-state { font-size: 12px; color: var(--muted); }
.program-card-since { font-size: 11px; color: var(--teal); font-weight: 700; background: rgba(0,186,191,0.1); padding: 3px 8px; border-radius: 3px; white-space: nowrap; }
.program-card-desc { font-size: 13px; color: var(--muted); line-height: 1.55; }
.program-card-link { font-size: 13px; font-weight: 700; color: var(--teal); margin-top: auto; }

/* Download card */
.download-card {
  border: 1px solid var(--border); border-radius: 6px; padding: 18px 20px;
  display: flex; align-items: center; gap: 16px;
  transition: box-shadow 0.15s, border-color 0.15s;
  text-decoration: none; color: inherit;
}
.download-card:hover { box-shadow: 0 4px 16px rgba(35,53,120,0.08); border-color: var(--navy); }
.download-icon {
  width: 44px; height: 44px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.download-icon-pdf { background: rgba(220,53,69,0.1); }
.download-icon-csv { background: rgba(0,186,191,0.1); }
.download-icon-stata { background: rgba(35,53,120,0.08); }
.download-info { flex: 1; }
.download-title { font-size: 14px; font-weight: 700; color: var(--navy); }
.download-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.download-btn {
  font-size: 12px; font-weight: 700; color: var(--teal);
  white-space: nowrap; flex-shrink: 0;
}

/* Grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ── Footer ── */
#footer { background: var(--navy-deep); padding: 48px 0 28px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 32px; padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand { color: white; font-weight: 700; font-size: 15px; }
.footer-brand-sub { color: rgba(255,255,255,0.4); font-size: 13px; margin-top: 4px; }
.footer-links { display: flex; gap: 48px; }
.footer-col-title {
  color: white; font-size: 11px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px;
}
.footer-col-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col-links a { color: rgba(255,255,255,0.45); font-size: 13px; transition: color 0.15s; }
.footer-col-links a:hover { color: rgba(255,255,255,0.9); }
.footer-bottom { font-size: 12px; color: rgba(255,255,255,0.25); }
