/* =========================
   Variables
   ========================= */
:root {
  --uaqe-blue:   #1E50D6;
  --bg-stripe:   #f4f6f9;
  --card-border: #dce1e5;

  /* Layout metrics */
  --nav-h:    60px;  
  --footer-h: 50px;  
  --max-w:    1200px;
}

/* =========================
   Page shell
   ========================= */
html, body { 
  height: 100%; 
  margin: 0; 
  background: var(--bg-stripe); 
}

.content-stripe {
  min-height: calc(100vh - var(--nav-h) - var(--footer-h));
  display: flex;
}

.content-container { 
  max-width: var(--max-w); 
  margin: 0 auto; 
}

/* =========================
   Navbar
   ========================= */
.navbar { background: var(--uaqe-blue) !important; }
.navbar .navbar-brand,
.navbar .nav-link { color: #fff !important; }
.navbar .nav-link.active {
  background: #fff !important;
  color: var(--uaqe-blue) !important;
  border-radius: 6px;
}

/* =========================
   Cards
   ========================= */
.card {
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
}
.card-header { background: #f7f9fb; font-weight: 600; }
.content-card { padding: 24px !important; }

/* =========================
   Sidebar
   ========================= */
.sidebar-panel {
  border: 1px solid var(--card-border);
  border-radius: 10px;
  background: #fff;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  height: calc(100vh - var(--nav-h) - 48px);
  overflow: auto;
}
 .sidebar-title { font-weight: 700; color: #1f2c38; } 
/* .sidebar-title {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
} */
.sidebar-nav { gap: 6px; }

.side-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #2f3e50; font-weight: 500; text-decoration: none;
}
.side-link:hover { background: #f3f6ff; color: var(--uaqe-blue); }
.sidebar-nav .nav-link.active.side-link {
  background: #e9f1ff;
  color: var(--uaqe-blue);
  font-weight: 600;
}

/* =========================
   Footer
   ========================= */
.site-footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 14px 0;
  width: 100%;
}

/* =========================
   Utilities
   ========================= */
.map-placeholder {
  height: 460px;
  border: 1px dashed #cfd7de;
  display: flex; align-items: center; justify-content: center;
  background: #f8f9fa; color: #6c757d; font-size: 18px;
}

.legend-gradient {
  height: 40px; border-radius: 8px;
  background: linear-gradient(90deg, #e74c3c 0%, #b9c2cc 50%, var(--uaqe-blue) 100%);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px; color: #fff; font-weight: 600; font-size: 13px;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 991px) {
  .sidebar-panel { position: static; height: auto; overflow: visible; }
  .content-container { padding: 0 12px; }
}

@media (max-width: 576px) {
  .content-card { padding: 16px !important; }
  .map-placeholder { height: 300px; font-size: 16px; }
}

/* =========================
   Toggle Buttons (Pill Segmented Control)
   ========================= */

.version-toggle {
  display: inline-flex;   
}

.version-toggle .btn {
  margin: 0 !important;        
  border-radius: 0 !important; 
  box-shadow: none !important;
}


.version-toggle .btn:first-child {
  border-top-left-radius: 20px !important;
  border-bottom-left-radius: 20px !important;
}
.version-toggle .btn:last-child {
  border-top-right-radius: 20px !important;
  border-bottom-right-radius: 20px !important;
}

/* active (primary) */
.version-toggle .btn-primary {
  background-color: #1E50D6 !important; 
  border-color: #1E50D6 !important;
  color: #fff !important;
}


.version-toggle .btn-secondary {
  background-color: #e9ecef !important;
  border: 1px solid #ced4da !important;
  color: #000 !important;
}

/* ==== Overview Hero with Video (updated) ==== */
/* Fullscreen, full-bleed hero */
.hero--fullscreen {
  /* fill viewport minus navbar */
  min-height: calc(100vh - var(--nav-h));
}
@supports (height: 100svh) {
  .hero--fullscreen { min-height: calc(100svh - var(--nav-h)); }
}

.overview-hero {
  /* Break out of centered container */
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
}

/* Layering: video (0) < overlay (1) < text (2) */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.maplibregl-ctrl-attrib,
.mapboxgl-ctrl-attrib {
  display: none !important;
}

/* Background video */
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;           /* keep clicks on CTA */
  filter: saturate(1.05) contrast(1.03) brightness(0.85);
  backface-visibility: hidden;   /* rendering stability */
  transform: translateZ(0);       /* hw accel hint */
  will-change: transform;         /* smoother on mobile */
}

/* If your layout includes <div class="hero-overlay"></div> */
.hero-overlay {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(120% 70% at 50% 50%, rgba(0,0,0,0.10), rgba(0,0,0,0.38)),
    linear-gradient(180deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.48) 100%);
}

/* Keep ::after for compatibility even if hero-overlay exists */
.hero::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,.00), rgba(0,0,0,.22)),
    linear-gradient(to bottom, rgba(0,0,0,.08) 0%, rgba(0,0,0,.25) 70%, rgba(0,0,0,.35) 100%);
}

/* Foreground content */
.hero-inner { position: relative; z-index: 2; max-width: 900px; padding: 2rem 1rem; }
.hero-title  { font-size: clamp(32px, 4.2vw, 56px); font-weight: 800; letter-spacing: .2px; text-shadow: 0 2px 16px rgba(0,0,0,.35); }
.hero-subtitle { margin-top: .75rem; font-size: clamp(14px, 1.6vw, 16px); opacity: .95; text-shadow: 0 2px 12px rgba(0,0,0,.30); }

/* CTA sizing preserved */
.btn-cta-lg { padding: 12px 22px; border-radius: 999px; font-weight: 600; margin-top: 18px; }

/* Mobile height tweak */
@media (max-width: 768px) {
  .hero--fullscreen { min-height: calc(70vh - var(--nav-h)); }
}

/* Respect reduced motion (keep video visible but avoid extra effects) */
@media (prefers-reduced-motion: reduce) {
  .hero-video { filter: brightness(0.9); transform: none; }
}

/* ---- Overview section cards (match mock) ---- */

/* tighter vertical spacing between sections */
.section-stack { margin: 26px 0 18px; }
.section-spacer { margin: 18px 0; }

/* centered, narrow white cards with soft shadow */
.card.section-card-wrap {
  border: 1px solid #e5eaf0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(28, 35, 45, .06);
  max-width: 900px;      /* center column width like mock */
  margin-left: auto;
  margin-right: auto;
}

.section-card { padding: 22px 26px; }

/* blue, centered section titles */
.section-title {
  text-align: center;
  color: #1E50D6;
  font-weight: 700;
  font-size: 20px;
  margin: 6px 0 14px;
}

/* bullet items = label (blue) + muted text */
.bullet-title {
  display: block;
  color: #1E50D6;
  font-weight: 600;
  font-size: 13.5px;
  margin-bottom: 2px;
  letter-spacing: .1px;
}

.bullet-text {
  color: #5b6470;
  font-size: 13.5px;
  line-height: 1.45;
  margin-bottom: 10px;
}

/* list styling like mock: subtle bullets, no big indent */
.lead-muted { list-style: none; padding: 0; margin: 0; }
.lead-muted > li { position: relative; padding-left: 16px; margin: 10px 0; }
.lead-muted > li::before {
  content: "•";
  position: absolute; left: 0; top: 0.1em;
  color: #6a7a8c;
  font-size: 16px;
  line-height: 1;
}

/* mission block: centered muted text */
.section-card.text-center p {
  margin: 0 auto 10px;
  max-width: 740px;
  color: #5b6470;
  font-size: 14px;
}

/* CTA like mock */
.btn-cta-lg {
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
}

/* OPTIONAL: make Challenges labels red like the mock.
   Add class "section--challenges" on that card. */
.section--challenges .bullet-title { color: #D64B4B; }



#home-left {
  display: flex;
  align-self: stretch;           /* match the height of the row */
}

/* 2) Sidebar fills the column, is sticky, and scrolls if taller than the viewport */
#home-left .sidebar-panel {
  flex: 1 1 auto;                /* fill the column */
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  min-height: calc(100dvh - var(--nav-h) - 48px);
  max-height: calc(100dvh - var(--nav-h) - 48px);
  overflow: auto;
}

#home-left, #home-right {
  align-self: stretch;
}

/* Sidebar fills its column and stays sticky */
#home-left {
  display: flex;
}
#home-left .sidebar-panel {
  flex: 1 1 auto;
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  min-height: calc(100dvh - var(--nav-h) - 40px);
  max-height: calc(100dvh - var(--nav-h) - 40px);
  overflow-y: auto;
  border-radius: 10px;
}

/* Prevent right column overflow (fixes shrink issue) */
#home-right {
  min-width: 0;
}

/* Mobile behavior: remove sticky and allow natural collapse */
@media (max-width: 991px) {
  #home-left { display: block; }
  #home-left .sidebar-panel {
    position: static;
    min-height: auto;
    max-height: none;
    overflow: visible;
  }
}


.content-container {
  padding-left: 12px !important;
  padding-right: 12px !important;
  max-width: 98% !important;
}


.sidebar-panel {
  padding: 12px;
}


.content-card {
  border-radius: 10px;
}