/* ==========================================================================
   VectorGrid-Africa Corporate Design System (design2_aspirations)
   Vibrant Light-Mode Corporate Aesthetic
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,600&display=swap');

:root {
  /* Color Palette - Vibrant Light Corporate */
  --bg-primary: #FAFCFD;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F1F5F9;
  --bg-accent-soft: #E0F2FE;
  
  --text-main: #0F172A;
  --text-muted: #475569;
  --text-light: #64748B;
  
  --brand-navy: #0B2545;
  --brand-navy-dark: #06172B;
  --brand-teal: #0D9488;
  --brand-teal-light: #14B8A6;
  --brand-cyan: #0EA5E9;
  --brand-cyan-hover: #0284C7;
  
  --border-color: #E2E8F0;
  --border-focus: #38BDF8;
  --border-hover: #CBD5E1;
  
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 40px -15px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 25px rgba(168, 83, 40, 0.22);
  
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent: 'Caveat', cursive;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;
}

/* Caveat Accent Eyebrow Headers */
.eyebrow-text {
  font-family: var(--font-accent);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
}

/* No Scrollbar Utility for Smooth Carousel Tracks */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

/* Executive Corporate Top Header & Clean Links */
.header-glass-bar {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.04);
}

/* Dark Navy Consortium Top Header & Tokens */
.header-dark-navy {
  background: #0B2545;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(11, 37, 69, 0.25);
}

.nav-link-dark {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8125rem;
  color: #CBD5E1;
  padding: 8px 14px;
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.nav-link-dark:hover {
  color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.12);
}

.nav-link-dark.active {
  color: #FFFFFF;
  font-weight: 700;
  background-color: #0B2545;
  box-shadow: 0 2px 10px rgba(14, 165, 233, 0.35);
}

.nav-item-clean {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  color: #475569;
  padding: 26px 4px;
  position: relative;
  transition: color 0.2s ease;
  display: inline-flex;
  items-center: center;
}

.nav-item-clean::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background-color: #0B2545;
  border-radius: 9999px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-item-clean:hover {
  color: #0B2545;
}

.nav-item-clean:hover::after {
  transform: scaleX(1);
}

.nav-item-clean.active {
  color: #0B2545;
  font-weight: 700;
}

.nav-item-clean.active::after {
  transform: scaleX(1);
  background-color: #0B2545;
}

.glass-nav {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-md);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px -5px rgba(168, 83, 40, 0.22), var(--shadow-glow);
  border-color: #CBD5E1;
}

.glass-pill {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

/* --------------------------------------------------------------------------
   FULL-WIDTH HERO SLIDER & ANIMATIONS
   -------------------------------------------------------------------------- */
.hero-container {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 600px;
  max-height: 880px;
  overflow: hidden;
  background-color: var(--brand-navy-dark);
}

.hero-slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.0s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.0s ease;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.0);
  transition: transform 0.6s ease-out;
}

.hero-slide.active .hero-slide-bg {
  transform: scale(1.07);
  transition: transform 7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hero Overlay Gradients for High Light-Visibility Text */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.82) 42%,
    rgba(255, 255, 255, 0.25) 75%,
    rgba(255, 255, 255, 0.05) 100%
  );
  z-index: 2;
}

@media (max-width: 768px) {
  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.96) 0%,
      rgba(255, 255, 255, 0.88) 60%,
      rgba(255, 255, 255, 0.4) 100%
    );
  }
}

.hero-content {
  position: relative;
  z-index: 10;
}

.hero-slide .hero-animate {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slide.active .hero-animate-1 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.hero-slide.active .hero-animate-2 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

.hero-slide.active .hero-animate-3 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s;
}

/* Slider Controls & Indicators */
.slider-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  color: var(--brand-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-md);
}

.slider-btn:hover {
  background: #FFFFFF;
  color: var(--brand-cyan);
  transform: scale(1.08);
  box-shadow: var(--shadow-lg);
}

.slider-dots {
  display: flex;
  gap: 10px;
  align-items: center;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.25);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  width: 38px;
  border-radius: 20px;
  background: var(--brand-cyan);
}

/* Floating Stat Badge */
.floating-stat-badge {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
}

/* --------------------------------------------------------------------------
   PROGRAMME PILLARS INTERACTIVE CARDS
   -------------------------------------------------------------------------- */
.pillar-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.35s ease;
}

.pillar-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 12px 28px -6px rgba(168, 83, 40, 0.22);
  transform: translateY(-5px);
}

.pillar-badge {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--brand-navy);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* Interactive Tabs */
.tab-btn {
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}

.tab-btn.active {
  background: var(--brand-navy);
  color: #FFFFFF;
  border-color: var(--brand-navy);
  box-shadow: var(--shadow-md);
}

.tab-btn:hover:not(.active) {
  background: var(--bg-subtle);
  color: var(--text-main);
}

/* --------------------------------------------------------------------------
   INTERACTIVE MAP WIDGET
   -------------------------------------------------------------------------- */
.map-container {
  position: relative;
  background: radial-gradient(circle at center, #F8FAFC 0%, #E2E8F0 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.map-node {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 10;
}

.map-pin {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-cyan);
  border: 3px solid #FFFFFF;
  box-shadow: var(--shadow-md);
  transition: all 0.25s ease;
}

.map-node:hover .map-pin, .map-node.active .map-pin {
  transform: scale(1.35);
  background: var(--brand-teal);
  box-shadow: var(--shadow-glow);
}

.map-ping {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.4);
  animation: mapPulse 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes mapPulse {
  75%, 100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.map-tooltip-box {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  width: 220px;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 20;
}

.map-node:hover .map-tooltip-box, .map-node.active .map-tooltip-box {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* --------------------------------------------------------------------------
   GLOBAL SEARCH MODAL
   -------------------------------------------------------------------------- */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.search-modal.active {
  opacity: 1;
  visibility: visible;
}

.search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
}

.search-box {
  position: relative;
  width: 90%;
  max-width: 640px;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  overflow: hidden;
  z-index: 101;
}

/* --------------------------------------------------------------------------
   INTERACTIVE ACCORDIONS
   -------------------------------------------------------------------------- */
.accordion-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #FFFFFF;
  overflow: hidden;
  transition: all 0.25s ease;
}

.accordion-header {
  width: 100%;
  padding: 18px 24px;
  display: flex;
  items-center;
  justify-content: space-between;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--brand-navy);
  background: transparent;
  border: none;
  cursor: pointer;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1), padding 0.35s ease;
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.accordion-item.active .accordion-content {
  max-height: 500px;
  padding: 0 24px 20px 24px;
  transition: max-height 0.5s ease-in-out;
}

.accordion-icon {
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
  color: var(--brand-cyan);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* Subtle animations */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.animate-float {
  animation: floatSlow 5s ease-in-out infinite;
}

@keyframes pulseLight {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.animate-pulse-light {
  animation: pulseLight 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
