/* --- CSS VARIABLES & RESET --- */
:root {
  --primary-green: #599553;
  --primary-hover: #487a42;
  --dark-text: #1a1a3a;
  --body-text: #5f5f86;
  --nav-text: #666666;
  --white: #ffffff;
  --bg-color: #f3f4ff;
  --font-main: "General Sans", sans-serif;
  --max-width: 1280px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--dark-text);
  overflow-x: hidden;
}

/* --- SCROLL-TRIGGERED ANIMATIONS --- */

/* Initial hidden state for scroll animations */
.scroll-hidden {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Animation states */
.scroll-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Slide in from left */
.scroll-left {
  transform: translateX(-50px);
}

.scroll-left.scroll-visible {
  transform: translateX(0);
}

/* Slide in from right */
.scroll-right {
  transform: translateX(50px);
}

.scroll-right.scroll-visible {
  transform: translateX(0);
}

/* Scale in animation */
.scroll-scale {
  transform: scale(0.8);
}

.scroll-scale.scroll-visible {
  transform: scale(1);
}

/* Staggered animations */
.scroll-stagger {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.scroll-stagger.scroll-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Different stagger delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* Initial states for animations */
.main-header {
  animation: fadeInDown 1s ease-out;
}

#hero .hero-content h1 {
  animation: fadeInLeft 1.2s ease-out 0.3s both;
}

#hero .hero-content p {
  animation: fadeInLeft 1.2s ease-out 0.5s both;
}

#hero .hero-buttons {
  animation: fadeInUp 1s ease-out 0.7s both;
}

#hero .hero-image {
  animation: fadeInRight 1.2s ease-out 0.4s both;
}

#who-are-we-new .who-header-center h2 {
  /* animation: fadeInUp 1s ease-out 0.3s both; */ /* Now handled by scroll observer */
}

#who-are-we-new .who-header-center p {
  /* animation: fadeInUp 1s ease-out 0.5s both; */ /* Now handled by scroll observer */
}

#who-are-we-new .gallery-item {
  /* animation: fadeInScale 0.8s ease-out both; */ /* Now handled by scroll observer */
}

#who-are-we-new .gallery-item:nth-child(1) { animation-delay: 0.2s; }
#who-are-we-new .gallery-item:nth-child(2) { animation-delay: 0.4s; }
#who-are-we-new .gallery-item:nth-child(3) { animation-delay: 0.6s; }
#who-are-we-new .gallery-item:nth-child(4) { animation-delay: 0.8s; }
#who-are-we-new .gallery-item:nth-child(5) { animation-delay: 1.0s; }

#who-are-we-new .who-footer-btn {
  /* animation: fadeInUp 1s ease-out 1.2s both; */ /* Now handled by scroll observer */
}

#enrichment h2 {
  /* animation: fadeInUp 1s ease-out 0.3s both; */ /* Now handled by scroll observer */
}

.feature-card {
  /* animation: fadeInUp 0.8s ease-out both; */ /* Now handled by scroll observer */
}

#mission .mission-content h2 {
  /* animation: fadeInLeft 1s ease-out 0.3s both; */ /* Now handled by scroll observer */
}

#mission .mission-content p {
  /* animation: fadeInLeft 1s ease-out 0.5s both; */ /* Now handled by scroll observer */
}

#mission .mission-image {
  /* animation: fadeInRight 1.2s ease-out 0.4s both; */ /* Now handled by scroll observer */
}

.stat-item {
  /* animation: fadeInUp 0.8s ease-out both; */ /* Now handled by scroll observer */
}

.stat-item:nth-child(1) { /* animation-delay: 0.2s; */ }
.stat-item:nth-child(2) { /* animation-delay: 0.4s; */ }
.stat-item:nth-child(3) { /* animation-delay: 0.6s; */ }
.stat-item:nth-child(4) { /* animation-delay: 0.8s; */ }

.values-pills-section .pill-row {
  /* animation: fadeInScale 1s ease-out both; */ /* Now handled by scroll observer */
}

.values-pills-section .row-left { /* animation-delay: 0.2s; */ }
.values-pills-section .row-center { /* animation-delay: 0.6s; */ }
.values-pills-section .row-right { /* animation-delay: 1.0s; */ }

/* Footer animations */
.footer-links-area {
  animation: fadeInUp 1s ease-out 0.3s both;
}

.footer-banner {
  animation: fadeInUp 1s ease-out 0.5s both;
}

/* Responsive animation adjustments */
@media (max-width: 768px) {
  /* Reduce animation intensity on mobile for better performance */
  .main-header {
    animation-duration: 0.8s;
  }
  
  #hero .hero-content h1,
  #hero .hero-content p,
  #hero .hero-buttons,
  #hero .hero-image {
    animation-duration: 0.8s;
  }
  
  .feature-card,
  .gallery-item,
  .stat-item {
    animation-duration: 0.6s;
  }
  
  /* Stagger animations less on mobile */
  /* .feature-card:nth-child(n+2) { animation-delay: 0.1s; } */ /* Now handled by scroll observer */
  /* .gallery-item:nth-child(n+2) { animation-delay: 0.1s; } */ /* Now handled by scroll observer */
  /* .stat-item:nth-child(n+2) { animation-delay: 0.1s; } */ /* Now handled by scroll observer */
}

/* Keyframe animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Smooth hover transitions */
.btn {
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(89, 149, 83, 0.3);
}

.feature-card {
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.gallery-item {
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
}

.stat-item {
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: scale(1.05);
}

.pill-box {
  transition: all 0.4s ease;
}

.pill-box:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(89, 149, 83, 0.2);
}

/* Subtle background animation */
body {
  animation: subtleFadeIn 1.5s ease-out;
}

@keyframes subtleFadeIn {
  from {
    opacity: 0.8;
  }
  to {
    opacity: 1;
  }
}

/* Image loading animation */
img {
  transition: opacity 0.3s ease;
}

img[alt] {
  opacity: 0;
  animation: imageLoad 0.6s ease-out 0.2s forwards;
}

@keyframes imageLoad {
  to {
    opacity: 1;
  }
}

/* Smooth text selection */
::selection {
  background-color: rgba(89, 149, 83, 0.2);
  color: var(--dark-text);
}

/* Professional focus states */
.btn:focus,
a:focus {
  outline: 2px solid var(--primary-green);
  outline-offset: 2px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- MOBILE MENU FUNCTIONALITY --- */
.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

.mobile-toggle span {
  transition: all 0.3s ease;
}

.mobile-donate {
  display: none;
}

/* Tablet & Mobile Menu Logic */
@media (max-width: 900px) {
  .main-nav {
    display: none !important;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 30px;
    z-index: 99;
  }

  .main-nav.active {
    display: flex !important;
    flex-direction: column;
    animation: slideDown 0.3s ease forwards;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }

  .main-nav a {
    font-size: 18px;
    font-weight: 500;
  }

  .header-box {
    position: relative;
  }

  /* Hide Desktop Nav Elements */
  .header-cta {
    display: none;
  }

  .mobile-donate {
    display: block;
    width: 100%;
    margin-top: 15px;
  }

  .mobile-donate .btn {
    width: 100%;
    display: block;
    text-align: center;
  }

  .mobile-toggle {
    display: flex !important;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- BUTTON STYLES --- */
.btn {
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  color: var(--Secondary-Deep-Violet, #1e0a52);
  font-style: normal;
  font-weight: 500;
  line-height: 100%;
}

.btn-primary {
  border-radius: 14px;
  background: linear-gradient(177deg, #34652c -13.59%, #6fab65 109.86%);
  color: var(--white);
  border: 1px solid;
}
.heading-button {
  display: flex;
  padding: 18px 24px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 14px;
  background: linear-gradient(177deg, #34652c -13.59%, #6fab65 109.86%);
}
.btn-outline {
  color: var(--dark-text);
  border-radius: 14px;
  border: 1px solid var(--Primary-Periwinkle, #cccce9);
  background: var(--Primary-White, #fff);
}

.btn-outline:hover {
  border-color: var(--primary-green);
  color: var(--primary-green);
  background-color: var(--white);
}

/* --- HEADER --- */
.main-header {
  background-color: transparent;
  padding-top: 25px;
  padding-bottom: 10px;
  position: relative;
  z-index: 1000;
}

.header-box {
  background-color: var(--white);
  border-radius: 16px;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  position: relative;
}

.logo-text {
  font-size: 22px;
  font-weight: 400;
  color: #222;
  letter-spacing: -0.5px;
}

.logo-green {
  color: #34652c;
  font-style: italic;
  font-weight: 600;
}

/* DESKTOP NAV - Ensure visible on desktop screens */
.main-nav {
  display: flex !important;
  align-items: center;
}

.main-nav ul {
  list-style: none;
  display: flex !important;
  gap: 35px;
}

.main-nav a {
  text-decoration: none;
  color: var(--nav-text);
  font-size: 15px;
  font-weight: 400;
  transition: color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary-green);
  font-weight: 500;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.mobile-toggle span {
  width: 25px;
  height: 3px;
  background-color: #333;
}

/* --- HERO SECTION --- */
#hero {
  position: relative;
  padding: 40px 0 20px;
  overflow: hidden;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 2;
  padding-top: 20px;
  padding-bottom: 20px;
}

.hero-content {
  flex: 1;
  max-width: 800px;
}

.hero-content h1 {
  margin-bottom: 24px;
  color: var(--Secondary-Deep-Violet, #1e0a52);
  font-size: 46px;
  font-style: normal;
  font-weight: 500;
  line-height: 56px;
  letter-spacing: -1.38px;
  /* On desktop, allowing width to overflow slightly for design */
  min-width: 120%;
}

.hero-content p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--body-text);
  margin-bottom: 40px;
  min-width: 110%;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-buttons a {
  text-decoration: none;
}
.hero-image {
  flex: 1.1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-image img {
  width: 135%;
  max-width: 750px;
  height: auto;
  object-fit: contain;
  transform: translateX(20px) scale(1.1);
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.08));
}

.bg-shape {
  position: absolute;
  top: 40%;
  right: -10%;
  width: 60%;
  height: 120%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(246, 247, 255, 0) 70%
  );
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}

/* --- HERO RESPONSIVE FIXES --- */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 36px;
    min-width: auto;
    /* Reset width to avoid scroll */
    line-height: 1.3;
  }

  .hero-content p {
    min-width: auto;
  }

  .hero-image img {
    width: 100%;
    transform: none;
  }

  .main-nav ul {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
    padding-top: 20px;
    padding-bottom: 40px;
  }

  .hero-content {
    max-width: 100%;
    width: 100%;
  }

  /* CRITICAL FIX FOR TEXT CUT OFF */
  .hero-content h1 {
    font-size: 25px;
    line-height: 1.3;
    min-width: 0;
    width: 100%;
  }

  .hero-content p {
    font-size: 16px;
    min-width: 0;
    width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    margin-top: 40px;
    width: 100%;
  }

  .hero-image img {
    width: 150%;
    height: 120%;
    transform: none;
    align-items: center;
    flex-direction: column;
    margin-right: 50px;
  }
}

/* --- WHO ARE WE SECTION --- */
/* =========================================
   WHO ARE WE (CENTERED DESIGN)
========================================== */
#who-are-we-new {
  padding: 60px 0 100px;
  background-color: var(--bg-color); /* Keeps page flow seamless */
}

/* The White Card Container */
.who-card-center {
  background-color: var(--white);
  border-radius: 50px;
  padding: 80px 60px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02); /* Very subtle shadow */
}

/* Header Text */
.who-header-center {
  max-width: 800px;
  margin: 0 auto 50px auto;
}

.who-header-center h2 {
  font-size: 48px;
  color: #1e0e4b; /* Brand Dark Purple */
  margin-bottom: 25px;
  font-weight: 500;
}

.who-header-center p {
  font-size: 16px;
  color: #6b7280; /* Grey Text */
  line-height: 1.7;
}

/* --- THE GALLERY LAYOUT --- */
.who-gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px; /* Space between images */
  margin-bottom: 50px;
}

/* Base Image Item */
.gallery-item {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  /* Default: 3 items per row (minus gap space) */
  width: calc(33.333% - 14px);
  height: 250px; /* Fixed height for consistency */
}

/* Image Fit */
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures images fill the box without stretching */
  transition: transform 0.4s ease;
}

/* Wide Items (For the bottom row of 2) */
.gallery-item.wide {
  /* 2 items per row */
  width: calc(50% - 10px);
}

/* Button Container */
.who-footer-btn {
  margin-top: 25px;
}
.more-btn {
  padding: 16px 19px;
}

#registrationModal {
  display: none;
}
#registrationModal.active {
  display: flex;
}


/* OVERLAY */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 0px 0px 12px;
} /* MODAL BOX */
.modal-box {
  background: #fff;
  width: 100%;
  max-width: 720px;
  border-radius: 20px;
  position: relative;
  padding: 5px 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
} /* MODAL CONTENT */
.modal-content {
  max-height: 90vh; /* 🔥 scroll only if needed */
  overflow-y: auto;
} /* CLOSE BUTTON */
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f3f4f6;
  border: none;
  font-size: 16px;
  cursor: pointer;
  transition: 0.2s;
}
.modal-close:hover {
  background: #ef4444;
  color: white;
  transform: rotate(90deg);
} /* HEADING */
.modal-card h2 {
  font-size: 22px;
  margin-bottom: 6px;
  text-align: center;
} /* FORM ROW */
.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 5;
} /* FORM GROUP */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group.full-width {
  grid-column: span 2;
} /* INPUTS */
.form-group input {
  padding: 12px 14px;
  font-size: 14px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  width: 100%;
} /* FOOTER */
.modal-footer {
  display: flex;
  justify-content: center;
  margin-top: 5px;
} /* BUTTON */
.submit-btn {
  padding: 12px 26px;
  font-size: 14px;
  border-radius: 10px;
} /* RESPONSIVE - MOBILE */
@media (max-width: 640px) {
  .modal-box {
    max-width: 95%;
    padding: 16px 18px;
  }
  .form-row {
    grid-template-columns: 1fr; /* single column mobile */
    gap: 10px;
  }
  .submit-btn {
    width: 100%;
  }
  .modal-card h2 {
    font-size: 20px;
    margin-bottom: 12px;
  }
  .form-group input {
    padding: 10px 12px;
    font-size: 13px;
  }
} /* MOBILE FIX */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
  }
  .modal-box {
    padding: 24px;
    border-radius: 20px;
  }
  .modal-card h2 {
    font-size: 28px;
    text-align: center;
  }
}
/* --- RESPONSIVE --- */

/* Tablet (Switch to 2 columns mostly) */
@media (max-width: 1024px) {
  .who-card-center {
    padding: 50px 30px;
  }

  .gallery-item {
    width: calc(50% - 10px); /* 2 per row */
    height: 220px;
  }

  .gallery-item.wide {
    width: 100%; /* Full width for bottom images on tablet */
  }
}

/* Mobile (Stack everything) */
@media (max-width: 768px) {
  .who-card-center {
    padding: 40px 20px;
    border-radius: 30px;
  }

  .who-header-center h2 {
    font-size: 32px;
  }

  .gallery-item,
  .gallery-item.wide {
    width: 100%; /* 1 per row */
    height: 200px;
  }
}

/* --- ENRICHMENT SECTION --- */
#enrichment {
  padding: 30px 0;
}

#enrichment h2 {
  color: var(--Secondary-Deep-Violet, #1e0a52);
  font-size: 66px;
  font-weight: 500;
  line-height: 84px;
  letter-spacing: -1.98px;
  margin-bottom: 50px;
  text-align: center;
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin: 5px;
}

.feature-card {
  background-color: var(--white);
  border-radius: 24px;
  padding: 25px 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  width: calc(33.333% - 16px);
  min-width: 300px;
  /* Reduced min-width to fit smaller phones */
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

/* --- ENRICHMENT ICONS UPDATE --- */

.icon-box {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  /* Ensure the icon is centered */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;

  /* Background color (Light Green to match design) */
  background-color: #f4f8f4;
}

/* Style the Font Awesome Icons */
.icon-box i {
  font-size: 28px; /* Adjust size of the icon */
  color: var(--primary-green); /* Use your green color variable */
}

.text-box h3 {
  font-size: 18px;
  font-weight: 500;
  color: #1e0e4b;
  margin-bottom: 6px;
}

.text-box p {
  font-size: 14px;
  color: var(--body-text);
  line-height: 160%;
  font-weight: 400;
}

/* Responsive Enrichment */
@media (max-width: 1024px) {
  .feature-card {
    width: calc(50% - 12px);
  }
}

@media (max-width: 768px) {
  #enrichment h2 {
    font-size: 36px;
    line-height: 1.2;
    text-align: center;
  }
  .hero-content h1 {
    padding: 5px;
  }
  .feature-card {
    width: 100%;
    min-width: auto;
  }
}

/* --- MISSION SECTION --- */
#mission {
  padding: 20px 0 20px;
}

.mission-card {
  background-color: var(--white);
  border-radius: 50px;
  padding: 60px;
  display: flex;
  align-items: center;
  gap: 60px;
}

.mission-image {
  flex: 1;
}

.mission-image img {
  width: 100%;
  height: auto;
  border-radius: 30px;
  object-fit: cover;
}

.mission-content {
  flex: 1;
}

.mission-content h2 {
  margin-bottom: 20px;
  color: #1e0a52;
  font-size: 50px;
  font-weight: 500;
  line-height: 100%;
  letter-spacing: -1px;
}

.mission-content p {
  font-size: 18px;
  color: var(--body-text);
  line-height: 27px;
  font-weight: 400;
  margin-bottom: 40px;
  max-width: 90%;
  letter-spacing: -0.076px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 90px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.stat-icon {
  width: 50px;
  height: 50px;
  background-color: #f0f4f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon img {
  width: 20px;
  height: auto;
  opacity: 0.8;
}

.stat-text {
  display: flex;
  flex-direction: column;
}

.stat-text strong {
  line-height: 1.2;
  color: #1e0a52;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.24px;
  text-transform: capitalize;
  padding-bottom: 12px;
}

.stat-text span {
  color: var(--Secondary-Twilight-Blue, #5f5f86);
  font-size: 18px;
  font-weight: 400;
  line-height: 30px;
}

/* Responsive Mission */
@media (max-width: 1024px) {
  .mission-card {
    padding: 40px;
    gap: 40px;
  }

  .mission-content h2 {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .mission-card {
    flex-direction: column;
    padding: 30px;
    border-radius: 24px;
  }

  .mission-content h2 {
    font-size: 32px;
  }

  .mission-content p {
    max-width: 100%;
    font-size: 16px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* --- REGISTRATION SECTION --- */
#registration {
  padding: 40px 0 40px;
}

.registration-card {
  background-color: var(--white);
  border-radius: 50px;
  padding: 60px 80px;
  max-width: 1100px;
  margin: 0 auto;
}

.registration-card h2 {
  margin-bottom: 32px;
  color: var(--Secondary-Deep-Violet, #1e0a52);
  font-size: 50px;
  font-weight: 500;
  line-height: 100%;
  letter-spacing: -1px;
}

.form-row {
  display: flex;
  gap: 30px;
  margin-bottom: 25px;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 25px;
}

.form-group.full-width {
  margin-bottom: 25px;
}

.form-group label {
  font-size: 16px;
  font-weight: 500;
  color: #1e0e4b;
}

.form-group input {
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid #dbeafe;
  font-size: 18px;
  font-family: var(--font-main);
  background-color: #fff;
  outline: none;
  transition: border-color 0.3s;
  color: #7a7782;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: -0.076px;
}

.form-group input::placeholder {
  color: #9ca3af;
}

.form-group input:focus {
  border-color: var(--primary-green);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper input {
  width: 100%;
}

.info-icon {
  position: absolute;
  right: 20px;
  width: 24px;
  height: 24px;
  background-color: #a3cba0;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: italic;
  font-family: serif;
  font-weight: bold;
  font-size: 14px;
  cursor: help;
}

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 20px;
}

.submit-btn {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: 13px;
}

.slack-cta {
  display: flex;
  align-items: center;
  gap: 15px;
}

.slack-cta span {
  color: var(--Secondary-Twilight-Blue, #5f5f86);
  font-size: 14px;
  font-weight: 400;
  line-height: 160%;
}

.slack-btn {
  padding: 12px 24px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  color: var(--Secondary-Deep-Violet, #1e0a52);
  font-size: 16px;
  font-weight: 500;
  line-height: 100%;
}

/* Responsive Registration */
@media (max-width: 1024px) {
  .registration-card {
    padding: 40px;
  }
}

@media (max-width: 768px) {
  .registration-card {
    padding: 30px;
    border-radius: 24px;
  }

  .registration-card h2 {
    font-size: 32px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .form-group input {
    font-size: 16px;
  }

  .form-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .submit-btn {
    width: 100%;
  }

  .slack-cta {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

/* --- LINKEDIN & VALUES SECTION --- */

#linkedin-connect {
  margin-top: 15px;
  padding: 0 40px; /* desktop default */
}

/* Tablets */
@media (max-width: 1024px) {
  #linkedin-connect {
    padding: 0 24px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  #linkedin-connect {
    padding: 0 16px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  #linkedin-connect {
    padding: 0 12px;
  }
}

.linkedin-banner {
  padding: 64px 20px;
  text-align: center;
  color: var(--white);
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
  border-radius: 50px;
  background: linear-gradient(122deg, #34652c -6.38%, #6fab65 109.39%);
}

.bg-lines {
  position: absolute;
  top: 0;
  height: 100%;
  width: auto;
  z-index: 1;
  pointer-events: none;
  opacity: 0.8;
}

.line-left {
  left: 0;
  object-position: left center;
}

.line-right {
  right: 0;
  object-position: right center;
}

/* .banner-content-wrapper {
	position: relative;
	z-index: 10;
} */
.banner-content-wrapper {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 10px;
}

.linkedin-banner h2 {
  font-size: 40px;
  font-weight: 500;
  margin-bottom: 15px;
}

.banner-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  font-size: 16px;
  font-weight: 300;
}

.info-tooltip {
  width: 20px;
  height: 20px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-family: serif;
  font-style: italic;
  cursor: help;
}

.btn-white {
  background-color: var(--white);
  color: var(--primary-green);
  padding: 14px 30px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-white {
  max-width: 100%;
  white-space: normal;
  text-align: center;
}
@media (max-width: 360px) {
  .btn-white {
    font-size: 14px;
    padding: 12px 16px;
  }
}

.btn-white:hover {
  background-color: #f0fdf4;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .linkedin-banner {
    border-radius: 24px;
    margin-bottom: 20px;
    /* padding: 40px 20px; */
  }

  .linkedin-banner h2 {
    font-size: 26px;
    line-height: 1.3;
  }

  .banner-info {
    font-size: 14px;
    flex-wrap: wrap;
    text-align: center;
  }

  .bg-lines {
    max-width: 60%;
    height: auto;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.15;
  }

  .info-tooltip {
    display: none;
  }
}

@media (max-width: 480px) {
  .bg-lines {
    display: none;
  }
}

/* =========================================
   VALUES SECTION (FULLY RESPONSIVE)
   ========================================= */
.values-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px; /* Reduced from 150px for better baseline behavior */
  flex-wrap: wrap;
  padding: 20px 20px; /* Added padding so it doesn't touch screen edges */
}

.value-pill {
  background-color: var(--white);
  padding: 15px 45px; /* Slightly tighter padding for better fit */
  border-radius: 50px;
  font-size: 18px;
  font-weight: 500;
  color: #1e0e4b;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); /* Slightly more visible shadow */
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap; /* Prevents text from breaking inside the pill */
  transition: transform 0.3s ease;
}

.value-pill:hover {
  transform: translateY(-3px);
}

.dot {
  color: #1e0e4b;
  font-size: 20px;
  line-height: 0;
}

/* Intermediate Tablet Screens (Small Laptops/Tablets) */
@media (max-width: 1024px) {
  .values-row {
    gap: 30px;
  }
  .value-pill {
    padding: 12px 35px;
    font-size: 16px;
  }
}

/* Mobile Screens (Phones) */
@media (max-width: 768px) {
  .values-row {
    gap: 15px;
    padding: 20px 15px;
  }

  .value-pill {
    /* On mobile, they stay small and side-by-side if they fit, 
           or wrap naturally. If you want them stacked, 
           uncomment 'width: 100%' and 'justify-content: center' below */

    /* width: 100%; */
    /* justify-content: center; */

    padding: 10px 25px;
    font-size: 15px;
  }

  .dot {
    font-size: 16px;
  }
}

/* Very Small Screens (Narrow Phones) */
@media (max-width: 480px) {
  .values-row {
    flex-direction: column; /* Stack vertically on very small phones */
    width: 100%;
  }
  .value-pill {
    width: 80%; /* Takes up most of the width */
    justify-content: center;
  }
}

/* =========================================
   FOOTER SECTION
========================================== */
footer {
  background-color: var(--white);
  padding: 40px 0 40px;
  margin-top: 40px;
  border-top: 1px solid #f0f0f0;
}

/* --- 1. LINKS SECTION (With Vertical Lines) --- */
.footer-top {
  margin-bottom: 60px;
}

.footer-links-area {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.link-col {
  flex: 1;
  text-align: center;
  padding: 0 20px;

  /* THE VERTICAL GREEN LINE */
  border-right: 1px solid #599553;
}

/* Remove the line from the last column */
.link-col:last-child {
  border-right: none;
}

.link-col h4 {
  color: var(--dark-text); /* Or Green if you prefer */
  font-size: 18px;
  margin-bottom: 30px;
  font-weight: 500;
}

.link-col ul {
  list-style: none;
  padding: 0;
}

.link-col ul li {
  margin-bottom: 18px;
}

.link-col a,
.contact-info li {
  text-decoration: none;
  color: var(--body-text);
  font-size: 16px;
  transition: color 0.2s;
}

.link-col a:hover {
  color: var(--primary-green);
}

/* Contact List Specifics */
.contact-info li {
  margin-bottom: 18px;
  display: block;
}

/* --- 2. BOTTOM GREEN BANNER (More Space) --- */
.footer-banner {
  position: relative;
  overflow: hidden;
  background-color: #4a8047; /* The exact green shade */
  border-radius: 50px;

  /* INCREASED PADDING (More Space) */
  padding: 80px 60px;

  color: #fff;
  margin-top: 40px;
}

/* Background Lines */
.footer-line {
  position: absolute;
  top: 0;
  height: 100%;
  width: auto;
  z-index: 1;
  pointer-events: none;
  opacity: 0.8;
}
.line-left {
  left: 0;
  object-position: left center;
}
.line-right {
  right: 0;
  object-position: right center;
}

/* Content Layout */
.banner-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center; /* Vertically center everything */
  justify-content: space-between;
  width: 100%;
}

/* Left: Copyright */
.copyright-text {
  flex: 1;
  font-size: 14px;
  opacity: 0.9;
  text-align: left;
}
.footer-lg-1 {
  color: #fff;
  text-align: center;
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}
.footer-lg-1 span {
  color: #fff;
  font-size: 24px;
  font-style: italic;
  font-weight: 600;
  line-height: normal;
}
/* Center: Brand Stack */
.brand-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px; /* Space between Logo and Socials */
}

.footer-logo-white {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  font-weight: 600;
}

.logo-icon {
  font-size: 32px;
  color: #fff;
}

/* Social Icons */
.banner-socials {
  display: flex;
  gap: 12px;
}

.social-circle {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: 0.3s;
  font-size: 16px;
  text-decoration: none;
}

.social-circle:hover {
  background-color: #fff;
  color: #4a8047;
  transform: translateY(-2px);
}

/* Right: Subscribe Form */
.subscribe-wrapper {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.banner-form {
  background: #fff;
  padding: 6px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 420px; /* Slightly wider */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.input-with-icon {
  display: flex;
  align-items: center;
  flex: 1;
  padding-left: 20px;
  gap: 12px;
}

.input-icon {
  color: #1e0e4b;
  font-size: 18px;
}

.banner-form input {
  border: none;
  outline: none;
  width: 100%;
  font-family: var(--font-main);
  color: #333;
  font-size: 15px;
  background: transparent;
}

.banner-form button {
  background-color: #4a8047;
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 40px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;
  white-space: nowrap;
  margin: 4px;
}

.banner-form button:hover {
  background-color: #386136;
}

/* =========================================
   RESPONSIVE FOOTER
========================================== */
@media (max-width: 1024px) {
  .banner-content {
    flex-direction: column;
    gap: 50px;
    text-align: center;
  }

  .brand-center {
    order: 1;
  }
  .subscribe-wrapper {
    order: 2;
    width: 100%;
    justify-content: center;
  }
  .copyright-text {
    order: 3;
    text-align: center;
  }
}

@media (max-width: 768px) {
  /* Stack links and remove lines on mobile */
  .footer-links-area {
    flex-direction: column;
    gap: 40px;
  }

  .link-col {
    border-right: none; /* Remove vertical lines on mobile */
    border-bottom: 1px solid #eee; /* Optional: Add horizontal lines instead */
    padding-bottom: 30px;
  }

  .link-col:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .footer-banner {
    padding: 60px 20px;
    border-radius: 30px;
    margin: 0 10px;
    margin-top: 20px;
  }

  .banner-form {
    flex-direction: column;
    background: transparent;
    box-shadow: none;
    gap: 15px;
  }

  .banner-form .input-with-icon {
    background: #fff;
    width: 100%;
    padding: 15px 20px;
    border-radius: 50px;
  }

  .banner-form button {
    width: 100%;
    padding: 15px;
    background-color: #fff;
    color: #4a8047;
    margin: 0;
  }
  .line-left {
    display: none;
  }
  .line-right {
    display: none;
  }
  footer {
    padding: 40px;
    margin-top: 20px;
  }
  .link-col ul li {
    margin-bottom: 18px;
  }
}

/* Reset Header Styles (Remove the side-by-side flex if you added it previously) */
/* =========================================
   VIDEO MODAL STYLES (Revised)
========================================== */

/* The Container */
.video-box.clean-box {
  width: 100%;
  max-width: 850px;
  background: transparent;
  box-shadow: none;
  padding: 0;
  margin: 0 20px; /* Safe margin on mobile */
  position: relative;
}

/* Close Button */
.close-video {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 35px;
  cursor: pointer;
  line-height: 1;
  z-index: 100;
  transition: transform 0.3s;
}

.close-video:hover {
  transform: scale(1.1);
  color: #ffcccc;
}

/* 16:9 Aspect Ratio Container */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  background-color: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* --- THE COVER (Overlay) --- */
.video-cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  z-index: 10;
  cursor: pointer;

  /* FLEXBOX MAGIC: This forces the button to stay dead center */
  display: flex;
  align-items: center;
  justify-content: center;
}

.cover-img {
  position: absolute; /* Image sits behind button */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.video-cover:hover .cover-img {
  opacity: 0.6;
}

/* --- PLAY BUTTON (Centered) --- */
.custom-play-btn {
  position: relative; /* No longer absolute, controlled by Flexbox parent */
  width: 80px;
  height: 80px;
  background-color: #599553;
  border-radius: 50%;
  border: none;
  color: white;
  z-index: 20; /* Sits on top of image */
  cursor: pointer;

  /* Center the triangle inside the circle */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* The Play Triangle */
.custom-play-btn svg {
  width: 35px;
  height: 35px;
  display: block;
  margin-left: 3px; /* Optical adjustment so it looks perfectly centered */
}

.custom-play-btn:hover {
  transform: scale(1.1);
  background-color: #487a42;
}

/* Utility to hide cover when playing */
.video-cover.hidden {
  display: none;
}
/* --- MOBILE VIDEO MODAL FIX --- */
@media (max-width: 768px) {
  /* 1. Make the video fill the screen width */
  .video-box.clean-box {
    width: 95% !important; /* Forces it to be wide */
    max-width: 100% !important;
    margin: 0 auto !important; /* Centers it perfectly */
  }

  /* 2. Fix the Close Button (X) positioning */
  .close-video {
    top: -50px !important; /* Move it higher so it doesn't touch the video */
    right: 0 !important; /* Align with the right edge of the video */

    /* Add a background so it's easier to see/tap */
    background-color: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
  }

  /* 3. Adjust Play Button size for mobile */
  .custom-play-btn {
    width: 60px; /* Slightly smaller on phone */
    height: 60px;
  }

  .custom-play-btn svg {
    width: 24px;
    height: 24px;
  }
}

/* Responsive For Small Screens  */

@media (max-width: 370px) {
  .hero-image img {
    width: 190%;
    height: 120%;
    transform: none;
    align-items: center;
    flex-direction: column;
    margin-right: 60px;
  }
  .info-icon {
    display: none;
  }
  /* .btn-white {
		padding: 14px 20px;
	} */
  .hero-content p {
    font-size: 15px;
    padding: 5px;
  }
}

@media (max-width: 330px) {
  /* .btn-white {
		padding: 14px 14px;
	} */
}
/* =========================================
   FULL WIDTH MOBILE FOOTER FIX
   ========================================= */

@media (max-width: 768px) {
  footer {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .footer-banner {
    width: 100% !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 50px 20px !important;
    box-shadow: none !important;
  }
  .banner-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 40px !important;
  }

  .brand-center {
    order: 1;
    width: 100% !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }

  .banner-socials {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 15px !important;
    width: 100% !important;
  }

  .subscribe-wrapper {
    order: 2;
    width: 100% !important;
  }

  .banner-form {
    background-color: transparent !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
  }

  .input-with-icon {
    background-color: #fff !important;
    border-radius: 50px !important;
    padding: 15px 20px !important;
    width: 100% !important;
    margin: 0 !important;
    border: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .banner-form input {
    width: 100% !important;
    text-align: center !important;
    font-size: 16px !important;
  }

  .banner-form button {
    background-color: #fff !important;
    color: var(--primary-green) !important;
    width: 100% !important;
    padding: 15px !important;
    border-radius: 50px !important;
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: 400 !important;
  }

  .copyright-text {
    order: 3;
    font-size: 13px !important;
    opacity: 0.7;
  }
}

@media (max-width: 350px) {
  .fa-envelope:before {
    display: none;
  }
}

/* --- STATS ICONS STYLING --- */

.stat-icon {
  width: 50px;
  height: 50px;
  /* Light Greenish/Grey Background */
  background-color: #f0f4f0;
  border-radius: 50%;

  /* Center the icon */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;

  /* Transition for hover effects (optional) */
  transition: all 0.3s ease;
}

.stat-icon i {
  font-size: 22px; /* Icon Size */
  color: var(--primary-green); /* Your Brand Green (#599553) */
}

/* =========================================
   VALUES PILLS DESIGN
========================================== */
.values-pills-section {
    padding: 80px 0;
    background-color: var(--bg-color); /* Matches page background */
    overflow: hidden; /* Prevents scrollbar if they slide in */
}

/* Container for rows */
.pill-row {
    display: flex;
    width: 100%;
    margin-bottom: 20px; /* Space between rows */
}

/* Alignment Classes */
.row-left { justify-content: flex-start; }
.row-center { justify-content: center; }
.row-right { justify-content: flex-end; }

/* --- THE PILL BOX --- */
.pill-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 500px; /* Fixed long width */
    max-width: 100%;
    padding: 24px 28px;
    border-radius: 30px; /* Full pill shape */
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
}

.pill-box:hover {
    transform: translateY(-5px);
}

.pill-icon {
    font-size: 32px;
}

.pill-text {
    font-size: 24px;
    font-weight: 500;
}

/* The Dashed Line (Fills space between icon and text) */
.dashed-line {
    flex-grow: 1; /* Expands to fill gap */
    height: 1px;
    border-top: 1px dashed;
    margin: 0 20px;
    opacity: 0.5;
}

/* --- THEMES --- */

/* White Pill (Share & Grow) */
.white-style {
    background-color: #ffffff;
    color: #1e0e4b; /* Dark Purple Text/Icon */
}
.white-style .dashed-line {
    border-color: #CCCCE9; /* Light Purple Dash */
}

/* Green Pill (Learn) */
.green-style {
    background-color: #538b4f; /* The specific Green */
    color: #ffffff;
}
.green-style .dashed-line {
    border-color: rgba(255, 255, 255, 0.6); /* Semi-transparent White Dash */
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    /* On mobile, center everything and stack them */
    .pill-row {
        justify-content: center !important;
        margin-bottom: 20px;
    }

    .pill-box {
        width: 100%; /* Full width on phone */
        padding: 20px 25px;
            width: 500px; /* Fixed long width */
    max-width: 100%;
    border-radius: 24px; /* Full pill shape */
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
    }

    .pill-icon { font-size: 24px; }
    .pill-text { font-size: 20px; }
}

/* =========================================
   SHARE LEARN GROW SECTION
   ========================================= */
.share-learn-grow-section {
    padding: 80px 0 100px;
    background-color: var(--bg-color);
    overflow: hidden;
}

.slg-wrapper {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    padding: 0 40px;
}

/* Individual Card */
.slg-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
    max-width: 280px;
}

/* Image Container */
.slg-image-container {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

/* Person Images */
.slg-person-img {
    max-height: 200px;
    width: auto;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.slg-card:hover .slg-person-img {
    transform: translateY(-10px);
}

/* Individual Line Below Each Image */
.slg-line {
    width: 80px;
    height: 2px;
    background-color: #d1d5db;
    margin: 20px 0 15px;
}

/* Title Text */
.slg-title {
    font-size: 28px;
    font-weight: 500;
    color: #1e0a52;
    margin: 0;
    letter-spacing: -0.5px;
    font-family: var(--font-main);
}

/* Middle card (Learn) - slightly larger emphasis */
.slg-card:nth-child(2) .slg-person-img {
    max-height: 210px;
}

/* ── RESPONSIVE ── */

/* Tablet */
@media (max-width: 900px) {
    .slg-wrapper {
        padding: 0 20px;
    }

    .slg-image-container {
        height: 180px;
    }

    .slg-person-img {
        max-height: 160px;
    }

    .slg-card:nth-child(2) .slg-person-img {
        max-height: 170px;
    }

    .slg-title {
        font-size: 24px;
    }

    .slg-line {
        width: 60px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .share-learn-grow-section {
        padding: 60px 0 80px;
    }

    .slg-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        padding: 0 20px;
    }

    .slg-card {
        max-width: 280px;
        width: 100%;
    }

    .slg-image-container {
        height: 200px;
    }

    .slg-person-img {
        max-height: 180px;
    }

    .slg-card:nth-child(2) .slg-person-img {
        max-height: 180px;
    }

    .slg-title {
        font-size: 26px;
    }

    .slg-line {
        width: 70px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .share-learn-grow-section {
        padding: 50px 0 60px;
    }

    .slg-wrapper {
        gap: 30px;
    }

    .slg-image-container {
        height: 180px;
    }

    .slg-person-img {
        max-height: 160px;
    }

    .slg-title {
        font-size: 24px;
    }

    .slg-line {
        width: 60px;
    }
}

/* ===================================
   NEW JOIN MODAL - SPLIT PANEL DESIGN
   =================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}

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

.join-modal-container {
    background: white;
    border-radius: 16px;
    max-width: 1100px;
    width: 100%;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    margin: auto;
}

.modal-overlay.active .join-modal-container {
    transform: scale(1);
}

.join-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.join-modal-close:hover {
    background: white;
    color: #000;
    transform: rotate(90deg);
}

.join-modal-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

/* LEFT PANEL */
.join-modal-left {
    padding: 60px 50px;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.join-modal-left h2 {
    font-size: 32px;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 35px;
}

.join-form {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;

    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.continue-btn {
    width: 100%;
    padding: 16px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    margin-bottom: 20px;
}

.divider {
    position: relative;
    text-align: center;
    margin: 25px 0;
}

.divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #e5e7eb;
}

.divider span {
    position: relative;
    background: white;
    padding: 0 15px;
    color: #9ca3af;
    font-size: 14px;
    font-family: 'General Sans', sans-serif;
}

.full-form-btn {
    width: 100%;
    padding: 14px 20px;
    background: white;
    border: 2px solid #e5e7eb;
    color: #374151;
    font-size: 15px;
    font-weight: 500;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'General Sans', sans-serif;
}

.full-form-btn:hover {
    background: #f9fafb;
    border-color: #10b981;
    color: #10b981;
}

.login-text {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: #6b7280;
    font-family: 'General Sans', sans-serif;
}

.login-text a {
    color: #6b7280;
    text-decoration: underline;
    font-weight: 600;
}

.login-text a:hover {
    text-decoration: underline;
}

/* RIGHT PANEL */
.join-modal-right {
    background: linear-gradient(177deg, #34652c -13.59%, #6fab65 109.86%);
    padding: 60px 50px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 25px;
    width: fit-content;
}

.badge i {
    font-size: 16px;
}

.join-modal-right h3 {
    font-size: 36px;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.2;
    font-family: 'General Sans', sans-serif;
}

.join-modal-right > p {
    font-size: 16px;
    margin-bottom: 25px;
    opacity: 0.95;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.5;
}

.benefits-list i {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-top: 2px;
}

.community-avatars {
    margin-top: auto;
}

.avatar-group {
    display: flex;
    margin-bottom: 15px;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 3px solid #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: -12px;
    transition: transform 0.3s ease;
}

.avatar:hover {
    transform: translateY(-5px);
    z-index: 1;
}

.avatar-text {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

/* RESPONSIVE */
@media (max-width: 968px) {
    .join-modal-split {
        grid-template-columns: 1fr;
    }
    
    .join-modal-right {
        order: -1;
        padding: 40px 30px;
        min-height: auto;
    }
    
    .join-modal-left {
        padding: 40px 30px;
    }
    
    .join-modal-right h3 {
        font-size: 28px;
    }
    
    .benefits-list {
        margin-bottom: 25px;
    }
}

@media (max-width: 640px) {
    .modal-overlay {
        padding: 10px;
    }
    
    .join-modal-container {
        border-radius: 12px;
    }
    
    .join-modal-left h2 {
        font-size: 26px;
    }
    
    .join-modal-right h3 {
        font-size: 24px;
    }
    
    .join-modal-left,
    .join-modal-right {
        padding: 30px 25px;
    }
}

/* Community Avatars */
.community-avatars {
    margin-top: auto;
}

.avatar-group {
    display: flex;
    margin-bottom: 15px;
    align-items: center;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%; /* Makes it perfectly round */
    background: rgba(255, 255, 255, 0.2);
    border: 3px solid #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Ensures image stays within round border */
    margin-right: -12px; /* Overlap effect */
    transition: transform 0.3s ease, z-index 0.3s ease;
    position: relative;
    flex-shrink: 0; /* Prevents shrinking */
}

.avatar:last-child {
    margin-right: 0; /* Remove overlap on last avatar */
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the circle properly */
    border-radius: 50%; /* Makes the image itself round */
    display: block;
}

.avatar:hover {
    transform: translateY(-5px) scale(1.1);
    z-index: 10;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.avatar-text {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
    font-family: 'General Sans', sans-serif;
}

/* Optional: Add a subtle animation to avatars on modal open */
.modal-overlay.active .avatar {
    animation: avatarPop 0.5s ease forwards;
}

.modal-overlay.active .avatar:nth-child(1) { animation-delay: 0.1s; }
.modal-overlay.active .avatar:nth-child(2) { animation-delay: 0.2s; }
.modal-overlay.active .avatar:nth-child(3) { animation-delay: 0.3s; }
.modal-overlay.active .avatar:nth-child(4) { animation-delay: 0.4s; }
.modal-overlay.active .avatar:nth-child(5) { animation-delay: 0.5s; }

@keyframes avatarPop {
    0% {
        opacity: 0;
        transform: scale(0) translateY(20px);
    }
    60% {
        transform: scale(1.1) translateY(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .avatar {
        width: 40px;
        height: 40px;
        border-width: 2px;
        margin-right: -10px;
    }
}


.follow-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'General Sans', sans-serif;
}

/* =========================================
   JOIN MODAL — PERFORMANCE-OPTIMIZED
   Replace your existing modal CSS with this
   ========================================= */

/* ── OVERLAY ──
   KEY FIX: Uses visibility + opacity instead of display:none.
   display:none → display:flex can't be animated and causes
   the browser to do a full layout recalculation (= lag).
   visibility:hidden + opacity:0 is GPU-friendly.
   ──────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    padding: 20px;

    /* Always flex — just invisible */
    display: flex;
    align-items: center;
    justify-content: center;

    /* Hidden state */
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    background-color: rgba(0, 0, 0, 0.6);

    /* Only animates opacity (GPU-composited, zero layout cost) */
    transition: opacity 0.3s ease,
                visibility 0s linear 0.3s;

    will-change: opacity;
}

.modal-overlay.active {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;

    /* visibility flips instantly on open, delays on close */
    transition: opacity 0.3s ease,
                visibility 0s linear 0s;
}

/* ── CONTAINER ──
   KEY FIX: Uses translate3d (forces GPU layer).
   No @keyframes animation — just a transition.
   Transitions are cheaper than animations because
   the browser only interpolates between 2 states.
   ──────────────────────────────────────── */
.join-modal-container {
    background: #fff;
    width: 100%;
    max-width: 920px;
    border-radius: 28px;
    position: relative;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);

    /* Hidden state */
    opacity: 0;
    transform: translate3d(0, 24px, 0);

    /* Only opacity + transform (both skip layout & paint) */
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);

    will-change: opacity, transform;
}

.modal-overlay.active .join-modal-container {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* ── CLOSE BUTTON ── */
.join-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 22px;
    color: #999;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
    z-index: 10;
}

.join-modal-close:hover {
    background: #f3f4ff;
    color: #1e0e4b;
}

/* ── SPLIT LAYOUT ── */
.join-modal-split {
    display: flex;
    min-height: 480px;
}

/* ── LEFT PANEL ── */
.join-modal-left {
    flex: 1.15;
    padding: 44px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.join-modal-left h2 {
    font-size: 28px;
    font-weight: 600;
    color: #1e0e4b;
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin: 0;
}

.join-modal-left .subtitle {
    font-size: 15px;
    color: #5f5f86;
    line-height: 1.55;
    margin: 0;
}

/* ── BADGE ── */
.modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: #e8f5e6;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: #34652c;
    width: fit-content;
}

.modal-badge i {
    font-size: 14px;
}

/* ── STATS ROW ── */
.modal-stats {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 18px 0;
    border-top: 1px solid #f0f0f5;
    border-bottom: 1px solid #f0f0f5;
}

.stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-number {
    font-size: 26px;
    font-weight: 700;
    color: #34652c;
    letter-spacing: -0.5px;
}

.stat-label {
    font-size: 12px;
    font-weight: 500;
    color: #5f5f86;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: #e5e7eb;
}

/* ── ACTION BUTTONS ── */
.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 24px;
    border-radius: 14px;
    background: linear-gradient(177deg, #34652c -13.59%, #6fab65 109.86%);
    color: #fff;
    border: 1px solid transparent;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.modal-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(89, 149, 83, 0.4);
}

.modal-cta-btn:active {
    transform: translateY(0);
}

.modal-cta-btn i {
    font-size: 15px;
}

.modal-secondary-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 24px;
    border-radius: 14px;
    border: 1px solid #cccce9;
    background: #fff;
    color: #1e0e4b;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.modal-secondary-btn:hover {
    border-color: #599553;
    color: #599553;
}

.modal-secondary-btn i {
    font-size: 14px;
}

/* ── LOGIN TEXT ── */
.login-text {
    font-size: 13px;
    color: #999;
    text-align: center;
    margin: 0;
}

.login-text a {
    color: #599553;
    font-weight: 600;
    text-decoration: none;
}

.login-text a:hover {
    text-decoration: underline;
}

/* ── RIGHT PANEL ── */
.join-modal-right {
    flex: 0.85;
    background: linear-gradient(160deg, #f3f4ff 0%, #e8f5e6 100%);
    padding: 44px 36px;
    border-radius: 0 28px 28px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
}

.join-modal-right h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1e0e4b;
    margin: 0;
}

.join-modal-right > p {
    font-size: 14px;
    color: #5f5f86;
    margin: 0;
}

/* ── BENEFITS LIST ── */
.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #1e0e4b;
    line-height: 1.45;
}

.benefits-list li i {
    color: #34652c;
    font-size: 13px;
    margin-top: 3px;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background: rgba(52, 101, 44, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── COMMUNITY AVATARS ── */
.community-avatars {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.avatar-group {
    display: flex;
}

.avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #fff;
    margin-left: -8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.avatar:first-child {
    margin-left: 0;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-text {
    font-size: 12px;
    font-weight: 600;
    color: #5f5f86;
    margin: 0;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .join-modal-split {
        flex-direction: column;
    }

    .join-modal-left {
        padding: 32px 24px 24px;
    }

    .join-modal-right {
        border-radius: 0 0 28px 28px;
        padding: 28px 24px 32px;
    }

    .join-modal-left h2 {
        font-size: 24px;
    }

    .stat-number {
        font-size: 22px;
    }

    .stat-label {
        font-size: 11px;
    }

    .join-modal-container {
        max-height: 95vh;
    }
}

@media (max-width: 480px) {
    .modal-overlay {
        padding: 10px;
    }

    .join-modal-left {
        padding: 28px 18px 20px;
        gap: 16px;
    }

    .join-modal-right {
        padding: 24px 18px 28px;
    }

    .join-modal-left h2 {
        font-size: 21px;
    }

    .modal-stats {
        padding: 14px 0;
    }

    .stat-number {
        font-size: 20px;
    }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
    .modal-overlay,
    .join-modal-container {
        transition: none !important;
    }
}

/* =========================================
   CRITICAL: HEADER NAV VISIBILITY OVERRIDE
   This MUST stay at the end of the file to
   override any page-specific CSS rules
   ========================================= */

/* Desktop Nav - Always visible on screens > 900px */
@media (min-width: 901px) {
    .main-header .main-nav {
        display: flex !important;
        align-items: center !important;
        position: static !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    .main-header .main-nav ul {
        display: flex !important;
        flex-direction: row !important;
        gap: 35px !important;
    }

    .main-header .mobile-toggle {
        display: none !important;
    }

    .main-header .mobile-donate {
        display: none !important;
    }

    .main-header .header-cta {
        display: block !important;
    }
}

/* Mobile Nav - Hidden by default, shown when .active */
@media (max-width: 900px) {
    .main-header .main-nav {
        display: none !important;
    }

    .main-header .main-nav.active {
        display: flex !important;
        flex-direction: column !important;
    }

    .main-header .mobile-toggle {
        display: flex !important;
    }

    .main-header .header-cta {
        display: none !important;
    }
}