/* ============================================
   Uganda SDG Secretariat — Government Theme
   IBM Carbon Gray 10 inspired (boxy, spacing, forms)
   But distinctly government/institutional identity
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&family=Merriweather:wght@400;700;900&display=swap');

/* ---- Design Tokens ---- */
:root {
  /* Carbon g10 Backgrounds */
  --cds-background: #f4f4f4;
  --cds-layer: #ffffff;
  --cds-layer-accent: #e0e0e0;
  --cds-layer-accent-hover: #d1d1d1;
  --cds-field: #ffffff;

  /* Carbon g10 Borders */
  --cds-border-subtle: #e0e0e0;
  --cds-border-strong: #8d8d8d;

  /* Carbon g10 Text */
  --cds-text-primary: #161616;
  --cds-text-secondary: #525252;
  --cds-text-placeholder: #a8a8a8;
  --cds-text-on-color: #ffffff;
  --cds-text-inverse: #ffffff;

  /* Carbon g10 Interactive */
  --cds-interactive: #0f62fe;
  --cds-interactive-hover: #0353e9;
  --cds-link-primary: #0f62fe;
  --cds-link-primary-hover: #0043ce;
  --cds-focus: #0f62fe;

  /* Carbon g10 Support */
  --cds-support-success: #198038;
  --cds-support-warning: #f1c21b;
  --cds-support-error: #da1e28;
  --cds-support-info: #0043ce;

  /* Uganda National */
  --ug-black: #1a1a1a;
  --ug-yellow: #FCDC04;
  --ug-red: #D90000;
  --ug-gold: #C5960C;
  --ug-cream: #FFF9E6;
  --ug-dark: #0D1117;

  /* Government-specific */
  --gov-navy: #1B2A4A;
  --gov-navy-light: #263B5E;
  --gov-gold: #C5960C;
  --gov-gold-light: #E8B827;
  --gov-green: #1A6B3C;

  /* Spacing (8px grid) */
  --spacing-01: 2px;
  --spacing-02: 4px;
  --spacing-03: 8px;
  --spacing-04: 12px;
  --spacing-05: 16px;
  --spacing-06: 24px;
  --spacing-07: 32px;
  --spacing-08: 40px;
  --spacing-09: 48px;
  --spacing-10: 64px;
  --spacing-11: 80px;
  --spacing-12: 96px;
  --spacing-13: 160px;

  /* Typography */
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Merriweather', Georgia, 'Times New Roman', serif;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);

  /* Layout */
  --max-width: 1280px;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--cds-text-primary);
  background-color: var(--cds-background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cds-link-primary); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--cds-link-primary-hover); text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--cds-focus); outline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; line-height: 1.3; color: var(--cds-text-primary); }
h4, h5, h6 { font-family: var(--font-body); font-weight: 600; line-height: 1.3; }

/* ---- Utilities ---- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--spacing-06); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.section-padding { padding: var(--spacing-11) 0; }
.text-center { text-align: center; }

/* ============================================
   GOVERNMENT MASTHEAD — Institutional Identity
   ============================================ */

/* Top institutional bar */
.gov-masthead {
  background: var(--gov-navy);
  color: #fff;
  padding: var(--spacing-05) 0;
}

.gov-masthead .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-06);
}

.gov-masthead__left {
  display: flex;
  align-items: center;
  gap: var(--spacing-06);
}

/* Coat of Arms */
.coat-of-arms {
  flex-shrink: 0;
}

.coat-of-arms svg {
  width: 56px;
  height: 56px;
}

.gov-masthead__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gov-masthead__country {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--gov-gold-light);
}

.gov-masthead__office {
  font-size: 0.8125rem;
  font-weight: 300;
  opacity: 0.85;
  letter-spacing: 0.3px;
}

/* Right side logos */
.gov-masthead__logos {
  display: flex;
  align-items: center;
  gap: var(--spacing-06);
}

.logo-badge {
  display: flex;
  align-items: center;
  gap: var(--spacing-03);
  padding: var(--spacing-02) var(--spacing-04);
  border-left: 1px solid rgba(255,255,255,0.15);
}

.logo-badge:first-child {
  border-left: none;
}

.logo-badge svg {
  width: 36px;
  height: 36px;
}

.logo-badge__text {
  font-size: 0.6875rem;
  font-weight: 400;
  opacity: 0.8;
  line-height: 1.3;
  white-space: nowrap;
}

/* Uganda flag stripe */
.ug-flag-stripe {
  display: flex;
  height: 5px;
}

.ug-flag-stripe span { flex: 1; }
.ug-flag-stripe .fs-black { background: #000; }
.ug-flag-stripe .fs-yellow { background: var(--ug-yellow); }
.ug-flag-stripe .fs-red { background: var(--ug-red); }

/* ============================================
   MAIN NAVIGATION — Government Portal Style
   ============================================ */

.main-nav {
  background: var(--cds-layer);
  border-bottom: 1px solid var(--cds-border-subtle);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.main-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
}

/* Site identity in nav */
.site-identity {
  display: flex;
  align-items: center;
  gap: var(--spacing-04);
  text-decoration: none;
  color: var(--cds-text-primary);
  padding: var(--spacing-03) 0;
}

.site-identity:hover { text-decoration: none; color: var(--cds-text-primary); }

.site-identity__icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* SDG Colour Wheel (simplified) */
.sdg-wheel {
  width: 36px;
  height: 36px;
}

.site-identity__text {
  display: flex;
  flex-direction: column;
}

.site-identity__title {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--gov-navy);
  line-height: 1.2;
}

.site-identity__subtitle {
  font-size: 0.6875rem;
  color: var(--cds-text-secondary);
  letter-spacing: 0.16px;
}

/* Nav links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-menu a {
  display: flex;
  align-items: center;
  padding: var(--spacing-05) var(--spacing-05);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--cds-text-secondary);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
  letter-spacing: 0.16px;
}

.nav-menu a:hover {
  color: var(--gov-navy);
  background: rgba(27,42,74,0.04);
  border-bottom-color: var(--gov-gold);
  text-decoration: none;
}

.nav-menu a.active {
  color: var(--gov-navy);
  font-weight: 600;
  border-bottom-color: var(--gov-navy);
  background: rgba(27,42,74,0.03);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--cds-border-subtle);
  border-radius: 4px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--gov-navy);
}

.nav-toggle svg { width: 20px; height: 20px; }

/* ============================================
   HERO — Government Announcement Style
   ============================================ */

.hero {
  background: linear-gradient(135deg, var(--gov-navy) 0%, var(--gov-navy-light) 60%, #2C4A7C 100%);
  color: #fff;
  padding: var(--spacing-12) 0;
  position: relative;
  overflow: hidden;
}

/* Subtle pattern overlay */
.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(197,150,12,0.12) 0%, transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(252,220,4,0.06) 0%, transparent 40%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--spacing-10);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-03);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gov-gold-light);
  margin-bottom: var(--spacing-06);
  padding: var(--spacing-02) var(--spacing-04);
  border: 1px solid rgba(197,150,12,0.3);
  border-radius: 2px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: var(--spacing-06);
  color: #fff;
}

.hero__description {
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: var(--spacing-08);
  opacity: 0.9;
  max-width: 580px;
}

.hero__cta-group {
  display: flex;
  gap: var(--spacing-05);
  flex-wrap: wrap;
}

/* Hero side card */
.hero__aside {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 2px;
  padding: var(--spacing-07);
}

.hero__aside-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--spacing-05);
  color: var(--gov-gold-light);
}

.hero__aside-stat {
  display: flex;
  align-items: baseline;
  gap: var(--spacing-03);
  margin-bottom: var(--spacing-05);
  padding-bottom: var(--spacing-05);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.hero__aside-stat:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.hero__aside-number {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-body);
  color: var(--gov-gold-light);
}

.hero__aside-label {
  font-size: 0.8125rem;
  opacity: 0.8;
}

/* ============================================
   BUTTONS — Boxy Carbon-inspired but gov colours
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-03);
  padding: 14px var(--spacing-06);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.32px;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  text-transform: uppercase;
}

.btn:hover { text-decoration: none; }
.btn:focus-visible { outline: 2px solid var(--cds-focus); outline-offset: 2px; }

.btn--primary {
  background: var(--gov-gold);
  color: var(--gov-navy);
}
.btn--primary:hover {
  background: var(--gov-gold-light);
  color: var(--gov-navy);
}

.btn--secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
}
.btn--secondary:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--gov-navy);
  border: 2px solid var(--gov-navy);
}
.btn--outline:hover {
  background: var(--gov-navy);
  color: #fff;
}

.btn--blue {
  background: var(--cds-interactive);
  color: #fff;
}
.btn--blue:hover {
  background: var(--cds-interactive-hover);
  color: #fff;
}

.btn__icon { width: 16px; height: 16px; }

/* ============================================
   STATS STRIP
   ============================================ */

.stats-strip {
  background: var(--cds-layer);
  border-bottom: 1px solid var(--cds-border-subtle);
  padding: var(--spacing-09) 0;
}

.stats-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--cds-border-subtle);
}

.stat-card {
  background: var(--cds-layer);
  padding: var(--spacing-07) var(--spacing-06);
  text-align: center;
}

.stat-card__number {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: var(--font-body);
  color: var(--gov-navy);
  line-height: 1;
  margin-bottom: var(--spacing-02);
}

.stat-card__label {
  font-size: 0.8125rem;
  color: var(--cds-text-secondary);
  letter-spacing: 0.16px;
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-header { margin-bottom: var(--spacing-09); }

.section-header__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gov-gold);
  margin-bottom: var(--spacing-03);
}

.section-header__title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--spacing-04);
}

.section-header__description {
  font-size: 1rem;
  color: var(--cds-text-secondary);
  max-width: 640px;
  line-height: 1.7;
}

.section-header__rule {
  width: 48px;
  height: 3px;
  background: var(--gov-gold);
  border: none;
  margin-top: var(--spacing-05);
}

/* ============================================
   SDG GRID — Official UN colours
   ============================================ */

.sdg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: var(--spacing-03);
}

.sdg-card {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--spacing-04);
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
  overflow: hidden;
}

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

.sdg-card__number {
  position: absolute;
  top: var(--spacing-03);
  left: var(--spacing-04);
  font-size: 2.5rem;
  font-weight: 800;
  opacity: 0.3;
  line-height: 1;
}

.sdg-card__title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.3;
  position: relative;
}

/* ============================================
   BOXY CARDS — Carbon-inspired
   ============================================ */

.card {
  background: var(--cds-layer);
  border: 1px solid var(--cds-border-subtle);
  transition: box-shadow 0.15s;
}
.card:hover { box-shadow: var(--shadow-md); }

.card__image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--cds-layer-accent) 0%, #d1d1d1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cds-text-placeholder);
  font-size: 0.8125rem;
}

.card__body { padding: var(--spacing-06); }

.card__eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--gov-gold);
  margin-bottom: var(--spacing-03);
}

.card__title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: var(--spacing-04);
}

.card__text {
  font-size: 0.875rem;
  color: var(--cds-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--spacing-05);
}

.card__link {
  font-size: 0.8125rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-03);
  color: var(--gov-navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card__link:hover { color: var(--cds-interactive); }
.card__link svg { width: 14px; height: 14px; transition: transform 0.15s; }
.card__link:hover svg { transform: translateX(4px); }

/* News grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-06);
}

/* ============================================
   ABOUT PREVIEW
   ============================================ */

.about-preview {
  background: var(--cds-layer);
  border-top: 1px solid var(--cds-border-subtle);
}

.about-preview .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-10);
  align-items: center;
}

.about-preview__image {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, var(--gov-navy) 0%, var(--gov-navy-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
}

.about-preview__text p {
  color: var(--cds-text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: var(--spacing-06);
}

/* ============================================
   PARTNERS
   ============================================ */

.partners {
  background: var(--cds-layer);
  border-top: 1px solid var(--cds-border-subtle);
  border-bottom: 1px solid var(--cds-border-subtle);
  padding: var(--spacing-09) 0;
}

.partners__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-09);
  flex-wrap: wrap;
}

.partner-logo {
  width: 110px;
  height: 56px;
  background: var(--cds-background);
  border: 1px solid var(--cds-border-subtle);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  color: var(--cds-text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================
   CONTENT SECTIONS / FEATURE CARDS
   ============================================ */

.content-section { padding: var(--spacing-11) 0; }

.content-section--alt {
  background: var(--cds-layer);
  border-top: 1px solid var(--cds-border-subtle);
  border-bottom: 1px solid var(--cds-border-subtle);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-10);
  align-items: start;
}

.content-grid--3 { grid-template-columns: repeat(3, 1fr); }
.content-grid--4 { grid-template-columns: repeat(4, 1fr); }

.feature-card {
  padding: var(--spacing-07);
  background: var(--cds-layer);
  border-left: 4px solid var(--gov-navy);
  border-top: 1px solid var(--cds-border-subtle);
  border-right: 1px solid var(--cds-border-subtle);
  border-bottom: 1px solid var(--cds-border-subtle);
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  background: var(--gov-navy);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: var(--spacing-05);
}

.feature-card__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--spacing-04);
}

.feature-card__text {
  font-size: 0.875rem;
  color: var(--cds-text-secondary);
  line-height: 1.6;
}

/* Timeline */
.timeline { position: relative; padding-left: var(--spacing-08); }

.timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 0; bottom: 0;
  width: 2px;
  background: var(--cds-border-subtle);
}

.timeline__item { position: relative; padding-bottom: var(--spacing-08); }

.timeline__item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--spacing-08) + 4px);
  top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gov-navy);
  border: 3px solid var(--gov-gold);
}

.timeline__year {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gov-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--spacing-02);
}

.timeline__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--spacing-03);
}

.timeline__text { font-size: 0.875rem; color: var(--cds-text-secondary); line-height: 1.6; }

/* ============================================
   PROGRESS BARS / DATA TABLE / BADGES
   ============================================ */

.progress-bar { margin-bottom: var(--spacing-06); }
.progress-bar__header { display: flex; justify-content: space-between; margin-bottom: var(--spacing-03); }
.progress-bar__label { font-size: 0.875rem; }
.progress-bar__value { font-size: 0.875rem; font-weight: 700; color: var(--gov-navy); }
.progress-bar__track { height: 8px; background: var(--cds-layer-accent); overflow: hidden; }
.progress-bar__fill { height: 100%; transition: width 0.6s ease; }
.progress-bar__fill--success { background: var(--cds-support-success); }
.progress-bar__fill--warning { background: var(--cds-support-warning); }
.progress-bar__fill--error { background: var(--cds-support-error); }

.data-table { width: 100%; border-collapse: collapse; background: var(--cds-layer); font-size: 0.875rem; }
.data-table thead { background: var(--gov-navy); color: #fff; }
.data-table th { text-align: left; padding: var(--spacing-05); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; }
.data-table td { padding: var(--spacing-05); border-bottom: 1px solid var(--cds-border-subtle); }
.data-table tbody tr:hover { background: var(--cds-layer-accent); }

.badge { display: inline-block; padding: 3px 10px; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.3px; text-transform: uppercase; }
.badge--on-track { background: #defbe6; color: var(--cds-support-success); }
.badge--needs-attention { background: #fff8e1; color: #8a6d3b; }
.badge--off-track { background: #fff1f1; color: var(--cds-support-error); }

/* ============================================
   TEAM GRID
   ============================================ */

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--spacing-06); }

.team-card {
  text-align: center;
  padding: var(--spacing-07);
  background: var(--cds-layer);
  border: 1px solid var(--cds-border-subtle);
}

.team-card__avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--gov-navy);
  margin: 0 auto var(--spacing-05);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
  color: rgba(255,255,255,0.5);
}

.team-card__name { font-family: var(--font-heading); font-size: 0.9375rem; font-weight: 700; margin-bottom: var(--spacing-02); }
.team-card__role { font-size: 0.75rem; color: var(--cds-text-secondary); }

/* ============================================
   FORMS — Carbon-inspired boxy fields
   ============================================ */

.form-group { margin-bottom: var(--spacing-06); }

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.32px;
  color: var(--cds-text-primary);
  margin-bottom: var(--spacing-03);
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--spacing-04) var(--spacing-05);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--cds-text-primary);
  background: var(--cds-field);
  border: none;
  border-bottom: 2px solid var(--cds-border-strong);
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--cds-focus);
  outline-offset: -2px;
  border-bottom-color: var(--gov-navy);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--cds-text-placeholder); }
.form-group textarea { min-height: 120px; resize: vertical; }

/* Contact info sidebar */
.contact-info { padding: var(--spacing-07); background: var(--cds-layer); border: 1px solid var(--cds-border-subtle); }
.contact-info__item { display: flex; gap: var(--spacing-05); margin-bottom: var(--spacing-06); }
.contact-info__icon { width: 36px; height: 36px; background: var(--gov-navy); border-radius: 2px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.875rem; flex-shrink: 0; }
.contact-info__text h4 { font-size: 0.875rem; font-weight: 600; margin-bottom: var(--spacing-02); }
.contact-info__text p { font-size: 0.875rem; color: var(--cds-text-secondary); line-height: 1.6; }

.map-placeholder {
  width: 100%; height: 300px;
  background: var(--cds-layer-accent);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--cds-text-placeholder); font-size: 0.875rem;
  border: 1px solid var(--cds-border-subtle);
}

/* ============================================
   RESOURCE CARDS
   ============================================ */

.resource-card {
  display: flex;
  gap: var(--spacing-05);
  padding: var(--spacing-06);
  background: var(--cds-layer);
  border: 1px solid var(--cds-border-subtle);
  margin-bottom: var(--spacing-05);
  transition: box-shadow 0.15s;
}

.resource-card:hover { box-shadow: var(--shadow-md); }

.resource-card__icon {
  width: 48px; height: 48px;
  background: var(--gov-navy);
  display: flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0;
  font-size: 0.6875rem; font-weight: 800;
  letter-spacing: 0.5px;
}

.resource-card__content { flex: 1; }
.resource-card__title { font-family: var(--font-heading); font-size: 0.9375rem; font-weight: 700; margin-bottom: var(--spacing-02); }
.resource-card__meta { font-size: 0.6875rem; color: var(--cds-text-secondary); margin-bottom: var(--spacing-03); text-transform: uppercase; letter-spacing: 0.3px; }
.resource-card__text { font-size: 0.875rem; color: var(--cds-text-secondary); line-height: 1.6; }

/* Filter Tabs */
.filter-tabs { display: flex; gap: 0; margin-bottom: var(--spacing-07); border-bottom: 2px solid var(--cds-border-subtle); }

.filter-tab {
  padding: var(--spacing-04) var(--spacing-06);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--cds-text-secondary);
  background: none; border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: -2px;
}

.filter-tab:hover { color: var(--gov-navy); background: var(--cds-layer-accent); }
.filter-tab.active { color: var(--gov-navy); border-bottom-color: var(--gov-navy); font-weight: 700; }

/* Notification */
.notification { padding: var(--spacing-05); display: flex; gap: var(--spacing-05); align-items: flex-start; }
.notification--info { background: #edf5ff; border-left: 4px solid var(--cds-support-info); }
.notification--success { background: #defbe6; border-left: 4px solid var(--cds-support-success); }
.notification--warning { background: #fff8e1; border-left: 4px solid var(--cds-support-warning); }

/* SDG Detail Cards */
.sdg-detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--spacing-06); }

.sdg-detail-card { background: var(--cds-layer); border: 1px solid var(--cds-border-subtle); overflow: hidden; transition: box-shadow 0.15s; }
.sdg-detail-card:hover { box-shadow: var(--shadow-md); }

.sdg-detail-card__header { padding: var(--spacing-06); color: #fff; display: flex; align-items: center; gap: var(--spacing-05); }
.sdg-detail-card__number { font-size: 2rem; font-weight: 800; opacity: 0.7; }
.sdg-detail-card__name { font-size: 0.9375rem; font-weight: 700; }
.sdg-detail-card__body { padding: var(--spacing-06); }
.sdg-detail-card__text { font-size: 0.875rem; color: var(--cds-text-secondary); line-height: 1.6; margin-bottom: var(--spacing-05); }

/* ============================================
   PAGE HERO
   ============================================ */

.page-hero {
  background: linear-gradient(135deg, var(--gov-navy) 0%, var(--gov-navy-light) 100%);
  color: #fff;
  padding: var(--spacing-12) 0 var(--spacing-11);
  position: relative;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(to right, #000 0%, #000 33.33%, var(--ug-yellow) 33.33%, var(--ug-yellow) 66.66%, var(--ug-red) 66.66%, var(--ug-red) 100%);
}

.page-hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gov-gold-light);
  margin-bottom: var(--spacing-04);
}

.page-hero__title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: var(--spacing-05);
}

.page-hero__description {
  font-size: 1.125rem;
  font-weight: 300;
  opacity: 0.9;
  max-width: 640px;
  line-height: 1.7;
}

/* ============================================
   FOOTER — Government Institutional
   ============================================ */

.footer {
  background: var(--gov-navy);
  color: #c6c6c6;
}

/* Footer top logos bar */
.footer__logos-bar {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: var(--spacing-07) 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-10);
}

.footer__logo-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-04);
  color: rgba(255,255,255,0.7);
  font-size: 0.75rem;
  font-weight: 500;
}

.footer__logo-item svg {
  width: 40px;
  height: 40px;
  opacity: 0.8;
}

.footer__main {
  padding: var(--spacing-10) 0 var(--spacing-07);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--spacing-07);
  margin-bottom: var(--spacing-09);
}

.footer__brand-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--spacing-05);
}

.footer__brand-text { font-size: 0.875rem; line-height: 1.8; color: #a8a8a8; margin-bottom: var(--spacing-05); }

.footer__heading {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gov-gold-light);
  margin-bottom: var(--spacing-05);
}

.footer__links li { margin-bottom: var(--spacing-03); }
.footer__links a { font-size: 0.875rem; color: #a8a8a8; }
.footer__links a:hover { color: #fff; text-decoration: none; }

.footer__social { display: flex; gap: var(--spacing-04); margin-top: var(--spacing-05); }

.footer__social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  color: #c6c6c6; font-size: 0.75rem; font-weight: 700;
  transition: all 0.15s;
}

.footer__social a:hover { background: var(--gov-gold); color: var(--gov-navy); border-color: var(--gov-gold); text-decoration: none; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--spacing-07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #6f6f6f;
}

.footer__bottom a { color: #a8a8a8; }
.footer__bottom a:hover { color: #fff; }

/* ============================================
   PRINT
   ============================================ */

@media print {
  .gov-masthead, .ug-flag-stripe, .main-nav, .footer, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  .hero, .page-hero { background: #e0e0e0 !important; color: #000 !important; padding: 24pt 0; }
  .hero__title, .page-hero__title { color: #000 !important; }
  a { color: #000; text-decoration: underline; }
}