* {
  box-sizing: border-box;
}

:root {
  --primary: #001486;
  --accent: #0D9488;
  --bg: #07125a;
  --bg-soft: #0d1d7a;
  --panel: #ffffff;
  --panel-soft: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --border: #dbe4f0;
  --shadow: 0 10px 24px rgba(0, 0, 0, 0.22);

  --green-bg: #ecfdf5;
  --green-border: #10b981;

  --amber-bg: #fffbeb;
  --amber-border: #f59e0b;

  --red-bg: #fef2f2;
  --red-border: #ef4444;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, var(--primary), var(--bg));
  color: white;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================
   SHARED HEADER / NAV
========================= */

.site-header {
  padding: 20px 0;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo-link,
.brand,
.brand-row {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-logo,
.brand-logo {
  height: 88px;
  width: auto;
  display: block;
}

.site-nav,
.main-nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link,
.main-nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 999px;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.main-nav a:hover,
.main-nav a.active {
  background: rgba(255, 255, 255, 0.12);
}

/* =========================
   SHARED BUTTONS
========================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: #0b7f76;
}

.btn-secondary {
  background: #ffffff;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: #eef2ff;
}

/* =========================
   SHARED TYPOGRAPHY / SECTIONS
========================= */

.section-block,
.content-section {
  padding: 64px 0;
}

.hero-block,
.page-hero {
  padding-top: 48px;
}

.section-light,
.light-section {
  background: #f4f7fb;
  color: var(--text);
}

.section-dark-alt,
.dark-section {
  background: rgba(255, 255, 255, 0.04);
}

.cta-section {
  background: #0a1f8f;
}

.section-divider {
  padding: 0;
}

.divider-line {
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.divider-light {
  background: rgba(0, 20, 134, 0.12);
}

.eyebrow,
.section-eyebrow {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0d9488;
}

.section-title,
.section-heading h2,
.importance-text h2,
.reports-preview-text h2,
.advisor-text h2 {
  margin: 0 0 18px;
  font-size: 2.35rem;
  line-height: 1.15;
  font-weight: 800;
  color: #071133;
}

.section-title-light {
  color: #ffffff;
}

.section-text,
.section-heading p,
.importance-text p,
.reports-preview-text p,
.advisor-copy {
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 0 18px;
}

.section-text {
  color: #13213f;
}

.section-text-light,
.advisor-copy,
.importance-text p {
  color: rgba(255, 255, 255, 0.92);
}

.section-text-wide {
  max-width: 980px;
}

.section-heading {
  max-width: 900px;
  margin-bottom: 28px;
}

.dark-text h2,
.dark-text p {
  color: var(--text);
}

.dark-text .eyebrow,
.dark-text .section-eyebrow {
  color: var(--accent);
}

/* =========================
   SHARED CARDS / GRIDS
========================= */

.feature-grid {
  display: grid;
  gap: 24px;
  margin-top: 38px;
}

.four-grid {
  grid-template-columns: repeat(4, 1fr);
}

.three-grid {
  grid-template-columns: repeat(3, 1fr);
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.info-card,
.role-card,
.point-card,
.report-mini-card {
  background: #ffffff;
  color: var(--text);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.10);
  border: 1px solid rgba(13, 148, 136, 0.10);
}

.info-card h3,
.role-card h3 {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 1.05rem;
  line-height: 1.35;
}

.info-card p,
.role-card p,
.point-card span {
  margin: 0;
  color: #1f2d4d;
  line-height: 1.7;
}

.point-card strong,
.report-mini-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 18px;
  line-height: 1.5;
}

.report-mini-label,
.hero-stat-label,
.snapshot-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

/* =========================
   HOME PAGE
========================= */

.hero {
  padding: 36px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 28px;
  align-items: stretch;
}

.hero-text h1 {
  margin: 0 0 18px;
  font-size: 52px;
  line-height: 1.08;
  max-width: 900px;
}

.hero-copy {
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.6;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-stat {
  background: white;
  color: var(--text);
  border-radius: 18px;
  padding: 18px;
}

.hero-stat strong {
  font-size: 18px;
  line-height: 1.4;
}

.importance-grid,
.reports-preview-grid {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 24px;
  align-items: start;
}

.importance-points,
.reports-preview-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* =========================
   DASHBOARD
========================= */

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 24px;
}

.site-topbar {
  align-items: flex-start;
}

.topbar-left {
  flex: 0 0 auto;
}

.topbar-right {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.header-right {
  display: flex;
  align-items: stretch;
  gap: 18px;
  flex-wrap: wrap;
}

.status-badge,
.date-box {
  min-height: 96px;
  min-width: 220px;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.status-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 24px;
  font-weight: 700;
  font-size: 16px;
  text-align: center;
}

.status-green {
  background: var(--green-bg);
  color: #047857;
}

.status-amber {
  background: var(--amber-bg);
  color: #b45309;
}

.status-red {
  background: var(--red-bg);
  color: #b91c1c;
}

.date-box {
  background: var(--panel);
  color: var(--text);
  padding: 16px 22px;
  border-top: 4px solid var(--accent);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.date-box span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.date-box strong {
  font-size: 18px;
  color: var(--primary);
}

.panel {
  background: var(--panel);
  color: var(--text);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.panel h2 {
  margin: 0;
  font-size: 20px;
  color: var(--primary);
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.summary-panel {
  border-top: 5px solid var(--accent);
  min-height: 170px;
}

.summary-panel p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
}

.alerts-panel {
  margin-bottom: 24px;
}

.alerts-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.alert-card {
  border-radius: 16px;
  padding: 16px 18px;
  border-left: 6px solid;
}

.alert-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.alert-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
}

.alert-green {
  background: var(--green-bg);
  border-color: var(--green-border);
}

.alert-amber {
  background: var(--amber-bg);
  border-color: var(--amber-border);
}

.alert-red {
  background: var(--red-bg);
  border-color: var(--red-border);
}

.map-snapshot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
  align-items: stretch;
}

.map-panel {
  min-height: 560px;
}

.map-subtitle,
.snapshot-subtitle,
.utility-note {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}

#somaliaMap {
  width: 100%;
  height: 500px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.leaflet-container {
  font-family: inherit;
}

.snapshot-panel {
  min-height: 560px;
  display: flex;
  flex-direction: column;
}

.snapshot-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.snapshot-item {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.snapshot-item-highlight {
  background: #eef6ff;
  border-left: 5px solid var(--accent);
}

.snapshot-item strong {
  font-size: 18px;
  color: var(--primary);
  line-height: 1.4;
}

.snapshot-note {
  margin-top: auto;
  padding: 16px;
  background: #f8fafc;
  border: 1px dashed var(--border);
  border-radius: 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 24px 0;
}

.kpi-card {
  background: var(--panel);
  color: var(--text);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 5px solid #cbd5e1;
}

.kpi-card.good {
  border-top-color: var(--accent);
}

.kpi-card.warn {
  border-top-color: #f59e0b;
}

.kpi-card.bad {
  border-top-color: #ef4444;
}

.kpi-label {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
}

.kpi-value {
  display: block;
  font-size: 34px;
  margin-bottom: 6px;
  color: var(--primary);
}

.kpi-unit {
  font-size: 13px;
  color: var(--muted);
}

.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.charts-grid-top {
  margin-top: 4px;
  margin-bottom: 20px;
}

.charts-grid-bottom {
  margin-bottom: 24px;
}

.chart-panel {
  min-height: 400px;
}

canvas {
  width: 100% !important;
  height: 310px !important;
}

.utility-panel {
  margin-bottom: 24px;
}

.utility-header {
  gap: 16px;
  flex-wrap: wrap;
}

.tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tab-button {
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--primary);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
}

.tab-button.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.utility-table-wrapper {
  overflow-x: auto;
}

.utility-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

.utility-table th,
.utility-table td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text);
}

.utility-table th {
  color: var(--primary);
  background: #f8fafc;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.status-pill.green {
  background: var(--green-bg);
  color: #047857;
}

.status-pill.amber {
  background: var(--amber-bg);
  color: #b45309;
}

.status-pill.red {
  background: var(--red-bg);
  color: #b91c1c;
}

/* =========================
   ABOUT PAGE
========================= */

.page-title {
  max-width: 920px;
  font-size: 3rem;
  line-height: 1.08;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 24px;
}

.page-subtitle {
  max-width: 880px;
  font-size: 1.08rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
}

.advisor-section {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 30px;
  align-items: start;
}

.advisor-text-block {
  padding-top: 6px;
}

.advisor-profile-card {
  background: #ffffff;
  border-radius: 28px;
  padding: 22px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
  max-width: 460px;
}

.advisor-image {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 18px;
  margin: 0 auto 18px;
}

.advisor-profile-content {
  color: #13213f;
}

.advisor-name {
  margin: 0 0 6px;
  font-size: 1.55rem;
  line-height: 1.2;
  font-weight: 800;
  color: #001486;
}

.advisor-role {
  margin: 0 0 14px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #0d9488;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.advisor-profile-content p {
  margin: 0 0 14px;
  font-size: 0.98rem;
  line-height: 1.65;
  color: #1f2d4d;
}

.cta-card {
  background: #ffffff;
  border-radius: 28px;
  padding: 36px;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
}

.cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* =========================
   FOOTER
========================= */

.site-footer {
  padding: 28px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 0;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.footer-wrap p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.8);
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: white;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1200px) {
  .four-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .three-grid,
  .advisor-section,
  .hero-grid,
  .importance-grid,
  .reports-preview-grid,
  .map-snapshot-grid,
  .summary-grid,
  .charts-grid {
    grid-template-columns: 1fr;
  }

  .snapshot-panel,
  .map-panel {
    min-height: auto;
  }

  .role-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 980px) {
  .site-topbar,
  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-right {
    width: 100%;
    align-items: flex-start;
  }

  .site-nav,
  .main-nav {
    justify-content: flex-start;
  }

  .header-right {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .nav-wrap,
  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .role-grid,
  .four-grid,
  .three-grid,
  .importance-grid,
  .reports-preview-grid {
    grid-template-columns: 1fr;
  }

  .hero-text h1 {
    font-size: 38px;
  }

  .page-title {
    font-size: 2.2rem;
  }

  .section-title,
  .section-heading h2,
  .importance-text h2,
  .reports-preview-text h2,
  .advisor-text h2 {
    font-size: 1.9rem;
  }

  .content-section,
  .section-block {
    padding: 48px 0;
  }

  .site-logo,
  .brand-logo {
    height: 72px;
  }

  .status-badge,
  .date-box {
    min-width: 100%;
  }

  .kpi-grid {
    grid-template-columns: 1fr;
  }

  #somaliaMap {
    height: 400px;
  }

  .cta-card {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* CONTACT PAGE */
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: start;
}

.contact-info-card,
.contact-form-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.10);
  border: 1px solid rgba(13, 148, 136, 0.10);
}

.contact-item {
  margin-bottom: 22px;
}

.contact-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}

.contact-value {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #1f2d4d;
}

.contact-note {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #f8fafc;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.96rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row label {
  font-weight: 700;
  color: #13213f;
  font-size: 0.98rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid #d7e1ee;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 1rem;
  font-family: Arial, Helvetica, sans-serif;
  color: #13213f;
  background: #ffffff;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

@media (max-width: 980px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}