/* Modern CSS Variables for Post-Modern Design */
:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --dark-bg: #0a0a0a;
  --card-bg: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.1);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.92);
  --text-muted: rgba(255, 255, 255, 0.6);
  --section-gap: clamp(9px, 1.5vw, 21px);
  --border-radius: 20px;
  --border-radius-lg: 30px;
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 40px rgba(102, 126, 234, 0.3);
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Backdrop overlay for mobile menu */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  z-index: 900;
}
body.nav-open .nav-overlay {
  opacity: 1;
  visibility: visible;
}

/* Consistent vertical spacing between major sections */
.header-section + .main-nav { margin-top: 8px; }
.main-nav + .hero-single { margin-top: var(--section-gap); }
.hero-single + .about-section { margin-top: var(--section-gap); }
.about-section + .impact-section { margin-top: var(--section-gap); }
.impact-section + .leadership-section { margin-top: var(--section-gap); }
.leadership-section + .main-footer { margin-top: var(--section-gap); }

/* Our Impact in Mara Region Section */
.hero-single {
  position: relative;
  max-height: 70vh;
  overflow: hidden;
  background: var(--dark-bg);
}

.hero-single .hero-image img {
  width: 100%;
  height: clamp(260px, 55vh, 520px);
  object-fit: cover;
  display: block;
}

.hero-single .hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.45) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-single .hero-overlay h1 {
  color: #ffffff;
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin: 0 0 20px 0;
  font-weight: 800;
  -webkit-text-fill-color: currentColor;
  background: none;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 0, 0, 0.4);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero-single .hero-overlay p {
  color: var(--text-secondary);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  margin: 0 0 30px 0;
  font-weight: 400;
  max-width: 600px;
  line-height: 1.6;
}

.hero-single .hero-overlay a {
  display: inline-block;
  background: var(--accent-gradient);
  color: var(--text-primary);
  padding: 16px 32px;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
}

.hero-single .hero-overlay a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.hero-single .hero-overlay a:hover::before {
  left: 100%;
}

.hero-single .hero-overlay a:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-glow);
}

/* Header logo + text alignment */
.header-section .logo-section {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-section .logo-section .company-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
@media (max-width: 768px) {
  :root { --section-gap: 28px; }
  .header-section .logo-section { gap: 8px; }
}

/* Main Header (page-specific high-contrast overrides) */
.header-section .header-content {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 16px;
}

.header-section .company-name {
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.header-section .company-tagline {
  color: rgba(255,255,255,0.9) !important;
}

.header-section .search-input {
  color: #ffffff;
  background: rgba(255,255,255,0.06);
}

.header-section .user-actions .btn-outline {
  border-color: rgba(255,255,255,0.7);
  color: #ffffff;
}
.header-section .user-actions .btn-outline:hover {
  background: rgba(255,255,255,0.12);
  color: #ffffff;
}

/* Call Bar alignment and vibrant text */
.call-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  line-height: 1;
}

.call-bar .call-bar-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.call-bar .contact-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.2px;
}

.call-bar .contact-info i {
  color: #00e1ff;
  filter: drop-shadow(0 0 4px rgba(0, 225, 255, 0.6));
}

.call-bar .contact-info a {
  color: #ffffff;
  text-decoration: none;
}

.call-bar .contact-info a:hover {
  color: #00e1ff;
  text-shadow: 0 0 6px rgba(0, 225, 255, 0.6);
}

.about-section {
  padding: 36px 0 48px 0;
  background: var(--dark-bg);
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(245, 87, 108, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* Subtle dividers between sections */
.about-section::after,
.impact-section::after,
.leadership-section::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.12), rgba(255,255,255,0));
  pointer-events: none;
}

.about-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.about-section .history-container {
  display: grid;
  grid-template-columns: 1fr 460px; /* text | image */
  align-items: start;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.about-section .history-text {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.about-section .history-text::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-gradient);
}

.about-section .history-text p,
.about-section .history-text li,
.about-section .history-text div {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.about-section .history-text strong {
  color: var(--text-primary);
  font-weight: 700;
}

.about-section .history-text em,
.about-section .history-text span,
.about-section .history-text a {
  font-size: inherit;
}

/* Normalize inline and list text sizes inside Our Story copy */
.about-section .history-text p,
.about-section .history-text a,
.about-section .history-text strong,
.about-section .history-text em,
.about-section .history-text span,
.about-section .history-text li {
  font-size: 16px !important;
  line-height: 1.8;
}

/* High-contrast, accessible links in story text */
.about-section .history-text a {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.about-section .history-text a:hover {
  color: #a5d8ff;
}

.about-section .history-image {
  width: 100%;
  position: relative;
}

.about-section .history-image img {
  width: 100%;
  height: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--border-radius);
  display: block;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
  position: relative;
  z-index: 1;
}

.about-section .history-image::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: -20px;
  bottom: -20px;
  background: var(--accent-gradient);
  border-radius: var(--border-radius);
  z-index: 0;
  opacity: 0.3;
  transition: var(--transition-smooth);
}

.about-section .history-image:hover::before {
  opacity: 0.6;
  transform: translate(10px, 10px);
}

.about-section .history-image:hover img {
  transform: translate(-10px, -10px);
}

@media (max-width: 992px) {
  .about-section .history-container {
    grid-template-columns: 1fr; /* stack */
  }
  .about-section .history-image img {
    max-height: 360px;
  }
}

.about-section .section-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.about-section .section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  color: var(--text-primary);
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  position: relative;
}

.about-section .section-header h2 span {
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

.about-section .section-header p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.about-section .history-text p + p {
  margin-top: 12px;
}

/* Enhanced counters with animations */
.about-section .history-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
  position: relative;
  z-index: 1;
}

.about-section .history-metrics .metric {
  text-align: center;
  padding: 40px 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-bounce);
  min-width: 120px;
  position: relative;
  overflow: hidden;
}

.about-section .history-metrics .metric::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.about-section .history-metrics .metric:hover::before {
  transform: scaleX(1);
}

.about-section .history-metrics .metric:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-glow);
  border-color: rgba(102, 126, 234, 0.3);
}

.about-section .history-metrics .metric > div:first-child {
  font-size: 3rem;
  font-weight: 900;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 15px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
  line-height: 1;
}

.about-section .history-metrics .metric > div:last-child {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.4;
}

/* Counter animation when in view */
.about-section .history-metrics .metric.animate > div:first-child {
  opacity: 1;
  transform: translateY(0);
}

/* Counter number animation */
@keyframes countUp {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

.about-section .history-metrics .metric.animate > div:first-child {
  animation: countUp 0.8s ease-out;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  /* Hero Section Mobile */
  .hero-single { 
    max-height: 45vh; 
    margin-top: 0;
  }
  .hero-single .hero-image img { 
    height: clamp(200px, 45vh, 400px); 
  }
  .hero-single .hero-overlay {
    padding: 15px;
  }
  .hero-single .hero-overlay h1 {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    margin-bottom: 8px;
  }
  .hero-single .hero-overlay p {
    font-size: clamp(0.85rem, 2.5vw, 1rem);
    margin-bottom: 12px;
  }
  .hero-single .hero-overlay a {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  /* Call Bar Mobile */
  .call-bar {
    padding: 6px 0;
    font-size: 0.8rem;
  }
  .call-bar .call-bar-content {
    gap: 15px;
    flex-wrap: wrap;
  }
  .call-bar .contact-info {
    font-size: 0.8rem;
    gap: 6px;
  }

  /* Header Mobile */
  .header-section .header-content {
    flex-direction: column;
    gap: 15px;
    text-align: center;
    position: relative; /* allow absolute-positioned burger */
    padding-right: 56px; /* space for burger on right */
  }
  .header-section .logo-section {
    justify-content: center;
  }
  .header-section .header-actions {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .header-section .search-container {
    width: 75%;
    max-width: 260px;
    margin-right: 0;
  }
  .header-section .search-input {
    width: 100%;
    padding: 6px 8px;
    font-size: 0.9rem;
  }
  .header-section .user-actions {
    justify-content: center;
  }

  /* About Section Mobile */
  .about-section {
    padding: 20px 0 50px 0;
  }
  .about-section .history-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .about-section .history-image img {
    max-height: 250px;
  }
  .about-section .section-header h2 {
    font-size: 1.4rem;
    text-align: center;
  }
  .about-section .section-header p {
    font-size: 0.9rem;
    text-align: center;
  }

  /* Metrics Mobile */
  .about-section .history-metrics {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }
  .about-section .history-metrics .metric {
    min-width: auto;
    padding: 30px 20px;
  }
  .about-section .history-metrics .metric > div:first-child {
    font-size: 2.5rem;
  }
  .about-section .history-metrics .metric > div:last-child {
    font-size: 13px;
  }

  /* Impact Section Mobile */
  .impact-section {
    padding: 60px 0;
  }
  .impact-section .section-header {
    margin-bottom: 50px;
  }
  .impact-section .section-header h2 {
    font-size: 1.8rem;
  }
  .impact-section .section-header p {
    font-size: 16px;
  }
  .impact-section .impact-carousel-slider {
    padding: 20px 0;
    gap: 20px;
  }
  .impact-section .impact-carousel-slider .impact-item {
    flex: 0 0 90%;
    max-width: 90%;
  }
  .impact-section .impact-content {
    padding: 30px 20px;
  }
  .impact-section .impact-content h3 {
    font-size: 18px;
  }

  /* Leadership Section Mobile */
  .leadership-section {
    padding: 60px 0;
  }
  .leadership-section .section-header {
    margin-bottom: 50px;
  }
  .leadership-section .section-header h2 {
    font-size: 1.8rem;
  }
  .leadership-section .section-header p {
    font-size: 16px;
  }
  .leadership-section .leadership-carousel-slider .team-member {
    margin: 10px;
  }
  .leadership-section .member-image {
    height: 220px;
  }
  .leadership-section .member-info {
    padding: 30px 20px;
  }
  .leadership-section .member-info h3 {
    font-size: 18px;
  }

  /* Navigation Mobile */
  .main-nav {
    position: relative;
  }
  .main-nav .nav-list {
    display: none;
    position: fixed; /* float from top-right of viewport */
    top: 12px;
    right: 12px; /* float to right */
    left: auto;
    width: min(86vw, 320px);
    max-height: calc(100vh - 24px);
    overflow: auto;
    background: rgba(13, 17, 23, 0.7);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 14px 40px rgba(0,0,0,0.35);
    flex-direction: column;
    padding: 20px 20px 28px; /* extra bottom space for scrolling */
    z-index: 1000;
    transform-origin: top right;
    transform: translate(8px, -8px) scale(0.98);
    opacity: 0;
    transition: opacity .25s ease, transform .25s ease;
    border-radius: 12px;
  }
  .main-nav .nav-list.show {
    display: flex;
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  .main-nav .nav-list .nav-link {
    padding: 12px 16px;
    font-size: 0.9rem;
    border-bottom: 1px solid #eee;
    width: 100%;
    text-align: left;
    color: #e6edf3;
  }
  .main-nav .nav-list .nav-link:hover {
    background: rgba(255,255,255,0.06);
  }
  .main-nav .nav-list .separator {
    display: none;
  }
  .main-nav .nav-list .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    background: rgba(255,255,255,0.05);
    margin: 0;
    padding: 0;
    text-align: right; /* right align submenu items */
  }
  .main-nav .nav-list .dropdown:hover .dropdown-menu { display: block; }
  /* Mobile: show submenu when parent has .open */
  @media (max-width: 768px) {
    .main-nav .nav-list {
      max-height: calc(100vh - 24px);
      overflow: auto;
      align-items: stretch; /* make children fill width */
    }
    .main-nav .nav-list > li { width: 100%; }
    .main-nav .nav-list .dropdown { position: static; }
    .main-nav .nav-list .dropdown:hover .dropdown-menu { display: none; }
    .main-nav .nav-list .dropdown.open > .dropdown-menu {
      position: relative;
      display: block;
      margin: 0; /* flush under toggle */
      padding: 6px 0;
      border: 1px solid rgba(255,255,255,0.08);
      border-top: 0; /* remove seam at top */
      border-radius: 0 0 8px 8px;
      background: rgba(255,255,255,0.06);
      width: 100%;
    }
    /* Tighten spacing between dropdown heading and its submenu */
    .main-nav .nav-list .dropdown.open > .dropdown-toggle {
      border-bottom: none;          /* avoid double divider */
      padding-bottom: 8px;          /* slightly tighter bottom padding */
    }
    /* Slightly reduce overall padding on mobile links for a denser menu */
    .main-nav .nav-list .nav-link {
      padding: 10px 14px;
    }
    /* Force flow layout for all submenus on mobile; prevent overlay */
    .main-nav .nav-list .dropdown-menu {
      position: static !important;
      left: auto !important;
      right: auto !important;
      top: auto !important;
      width: 100% !important;
      z-index: auto !important;
      text-align: left; /* align content to left */
      margin: 0; /* prevent side gaps */
    }
    /* Add space after an open dropdown so following items don't overlap visually */
    .main-nav .nav-list .dropdown.open { margin-bottom: 8px; }
    .main-nav .nav-list .dropdown-menu li a {
      display: block;
      padding: 10px 14px;
      border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .main-nav .nav-list .dropdown-menu li:last-child a { border-bottom: none; }
    /* Make dropdown toggle occupy full width and align left */
    .main-nav .nav-list .dropdown > .dropdown-toggle {
      display: block;
      width: 100%;
      text-align: left;
      padding-left: 14px;
      padding-right: 14px;
    }
  }
  .main-nav .nav-list .dropdown-menu li a {
    padding: 10px 20px;
    font-size: 0.9rem;
    color: #e6edf3;
    text-align: right;
  }

  /* Prevent body scroll when menu is open */
  body.nav-open { overflow: hidden; }

  /* Mobile Navigation Toggle Button */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: absolute;
    top: 8px;
    right: 12px;
    z-index: 1200; /* ensure clickable above overlays */
  }
  .nav-toggle span {
    width: 25px;
    height: 3px;
    background: #004f9e;
    transition: all 0.3s ease;
  }
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  /* Footer Mobile */
  .main-footer {
    padding: 40px 0 15px;
    text-align: center;
  }
  .main-footer .social-icons {
    margin-top: 20px;
  }
  .main-footer .social-icons a {
    font-size: 1.2rem;
    margin: 0 10px;
  }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
  .hero-single { max-height: 40vh; }
  .hero-single .hero-image img { height: clamp(180px, 40vh, 350px); }
  
  .about-section .history-metrics .metric > div:first-child {
    font-size: 1.6rem;
  }
  
  .impact-section .impact-carousel-slider .impact-item,
  .leadership-section .leadership-carousel-slider .team-member {
    flex: 0 0 95%;
    max-width: 95%;
  }
  
  .call-bar .call-bar-content {
    flex-direction: column;
    gap: 8px;
  }
}
.impact-section {
  padding: 48px 0;
  background: var(--dark-bg);
  position: relative;
  overflow: hidden;
}

.impact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(245, 87, 108, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.impact-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.impact-section .section-header {
  text-align: center;
  margin-bottom: 80px;
  position: relative;
  z-index: 1;
}

.impact-section .section-header h2 {
  color: var(--text-primary);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.impact-section .section-header h2 span {
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

.impact-section .section-header p {
  color: var(--text-secondary);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.impact-section .impact-grid {
    display: none; /* Hide the grid layout when carousel is active */
  }

  .impact-section .impact-carousel-slider {
    display: flex; /* Always use flex for the carousel */
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 30px; /* Consistent gap for carousel items */
    padding: 20px 0;
    margin: 0 auto;
    max-width: 1200px;
  }

  .impact-section .impact-carousel-slider .impact-item {
    flex: 0 0 calc(33.333% - 20px); /* 3 items on PC, adjust for gap */
    max-width: calc(33.333% - 20px);
    scroll-snap-align: start;
  }

@media (max-width: 1024px) {
  .impact-section .impact-carousel-slider .impact-item {
    flex: 0 0 calc(50% - 15px); /* 2 columns on medium screens */
    max-width: calc(50% - 15px);
  }
}

@media (max-width: 768px) {
  .impact-section .impact-carousel-slider .impact-item {
    flex: 0 0 85%; /* Carousel item width for mobile */
    max-width: 85%;
  }
}

/* Original impact-grid styles, now only for non-carousel display if needed */
.impact-section .impact-grid {
  display: grid; /* Use grid for larger screens */
  grid-template-columns: repeat(3, 1fr); /* 3 columns by default */
  gap: 30px;
  margin: 0 auto;
  max-width: 1200px;
}

@media (max-width: 1024px) {
  .impact-section .impact-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on medium screens */
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .impact-section .impact-grid {
    display: none; /* Hide grid on mobile when carousel is active */
  }
}

.impact-section .impact-item {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-bounce);
  margin: 15px;
  position: relative;
}

.impact-section .impact-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.impact-section .impact-item:hover::before {
  transform: scaleX(1);
}

.impact-section .impact-item:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: var(--shadow-glow);
  border-color: rgba(102, 126, 234, 0.3);
}

.impact-section .impact-icon {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.impact-section .impact-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.2) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.impact-section .impact-icon i {
  font-size: 3rem;
  color: var(--text-primary);
  transition: var(--transition-smooth);
  position: relative;
  z-index: 1;
}

.impact-section .impact-item:hover .impact-icon::before {
  opacity: 1;
}

.impact-section .impact-item:hover .impact-icon i {
  transform: scale(1.1) rotate(5deg);
}

.impact-section .impact-content {
  padding: 40px 30px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
}

.impact-section .impact-content h3 {
  color: var(--text-primary);
  font-size: 22px;
  margin-bottom: 20px;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.impact-section .impact-content p {
  color: var(--text-secondary);
  margin-bottom: 25px;
  font-size: inherit;
  line-height: 1.8;
}

.impact-section .impact-content strong {
  color: var(--text-primary);
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.impact-section .impact-content .learn-more {
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: var(--transition-smooth);
  font-size: 16px;
  background: var(--accent-gradient);
  padding: 12px 24px;
  border-radius: var(--border-radius);
  position: relative;
  overflow: hidden;
}

.impact-section .impact-content .learn-more::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.impact-section .impact-content .learn-more:hover::before {
  left: 100%;
}

.impact-section .impact-content .learn-more i {
  margin-left: 10px;
  font-size: 14px;
  transition: var(--transition-smooth);
}

.impact-section .impact-content .learn-more:hover i {
  transform: translateX(5px);
}

/* Ensure inline elements inherit normalized size */
.impact-section .impact-content strong,
.impact-section .impact-content em,
.impact-section .impact-content span,
.impact-section .impact-content a {
  font-size: inherit;
}

.impact-section .impact-content .learn-more:hover {
  color: #007a4d;
}

/* Leadership Section */
.leadership-section {
  padding: 48px 0;
  background: var(--dark-bg);
  position: relative;
  overflow: hidden;
}

.leadership-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(102, 126, 234, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.leadership-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.leadership-section .section-header {
  text-align: center;
  margin-bottom: 80px;
  position: relative;
  z-index: 1;
}

.leadership-section .section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-primary);
  margin-bottom: 20px;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.leadership-section .section-header h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

.leadership-section .section-header p {
  color: var(--text-secondary);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Removed duplicate .impact-item styling */

.impact-icon {
  transition: background 0.3s ease;
}

.impact-item:hover .impact-icon {
  background: #d0eeff;
}

.impact-icon i {
  transition: color 0.3s ease;
}

.impact-item:hover .impact-icon i {
  color: #003366;
}

.learn-more {
  transition: color 0.3s ease;
}

.learn-more:hover {
  color: #007a4d;
}

.leadership-section .team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.leadership-section .team-member {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-bounce);
  margin: 15px;
  position: relative;
}

.leadership-section .team-member::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.leadership-section .team-member:hover::before {
  transform: scaleX(1);
}

.leadership-section .team-member:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: var(--shadow-glow);
  border-color: rgba(102, 126, 234, 0.3);
}

.leadership-section .member-image {
  height: 280px;
  overflow: hidden;
  position: relative;
}

.leadership-section .member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.leadership-section .team-member:hover .member-image img {
  transform: scale(1.05);
}

.leadership-section .member-info {
  padding: 40px 30px;
  position: relative;
  z-index: 1;
}

.leadership-section .member-info h3 {
  font-size: 22px;
  color: var(--text-primary);
  margin-bottom: 10px;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.leadership-section .member-info p:nth-of-type(1) {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 16px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.leadership-section .member-info p:nth-of-type(2) {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 0;
  line-height: 1.7;
}

@media (max-width: 768px) {
    .about-content-container {
        grid-template-columns: 1fr; /* Stacks items vertically on small screens */
    }

    .impact-section .impact-grid .impact-item {
        flex: 0 0 auto; /* Prevent items from shrinking */
        width: 80%; /* Adjust width for carousel effect */
        scroll-snap-align: start; /* Snap to the start of each item */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        scroll-snap-type: x mandatory; /* Snap to items */
        gap: 20px; /* Space between items */
        padding-bottom: 10px; /* Prevent scrollbar from overlapping content */
    }

    .leadership-section .team-grid {
        grid-template-columns: 1fr; /* Stacks items vertically on small screens */
    }
}

/* ------------------------------
   Modern Typography Scale for About page
   ------------------------------ */

/* Base/body size for entire About page */
body { 
  font-size: 16px; 
  line-height: 1.7; 
  font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-primary);
  background: var(--dark-bg);
}

/* All sections inherit base size */
.about-section,
.impact-section,
.leadership-section,
.hero-single,
.main-nav,
.main-footer { 
  font-size: 16px; 
  line-height: 1.7; 
  color: var(--text-primary);
}

/* Small text */
.about-section small,
.impact-section small { 
  font-size: 14px; 
  color: var(--text-muted);
}

/* Lead/intro text under section headers */
.about-section .section-header p,
.impact-section .section-header p { 
  font-size: 18px; 
  color: var(--text-secondary);
}

/* Headings with modern typography */
.hero-single .hero-overlay h1 { 
  font-size: clamp(2.5rem, 5vw, 4rem); 
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.about-section .section-header h2,
.impact-section .section-header h2 { 
  font-size: clamp(2rem, 4vw, 3rem); 
  line-height: 1.2; 
  font-weight: 800;
}

.impact-section .impact-content h3,
.leadership-section .member-info h3 { 
  font-size: 22px; 
  font-weight: 700;
}

/* All paragraphs and text elements */
p, .history-text, .impact-content, .member-info,
.section-header p, .hero-overlay p { 
  font-size: 16px; 
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Ensure inline elements inherit size */
* { 
  font-size: inherit; 
  color: inherit;
}

/* Metrics with modern styling */
.about-section .history-metrics .metric > div:first-child { 
  font-size: 3rem; 
  font-weight: 900; 
  line-height: 1;
}

.about-section .history-metrics .metric > div:last-child { 
  font-size: 14px; 
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Mobile typography adjustments */
@media (max-width: 768px) {
  body { 
    font-size: 15px; 
  }
  
  .about-section,
  .impact-section,
  .leadership-section,
  .hero-single,
  .main-nav,
  .main-footer { 
    font-size: 15px; 
  }
  
  .about-section .section-header h2,
  .impact-section .section-header h2 { 
    font-size: 1.8rem; 
  }
  
  .impact-section .impact-content h3 { 
    font-size: 18px; 
  }
  
  .about-section .history-metrics .metric > div:first-child {
    font-size: 2.5rem;
  }
}