:root {
  --primary: #007f7f; /* Teal */
  --accent: #ff7300; /* Orange */
  --dark: #1a1a1a;
  --gray: #444444;
  --light-gray: #f8f9fa;
  --white: #ffffff;
}

/* Global Styles */ 
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  color: var(--gray);
  line-height: 1.6;
  background-color: var(--white);
  scroll-behavior: smooth;
  overflow-x: hidden; /* Prevent horizontal scroll on small screens */
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: var(--primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}


/* Header & Navigation */
header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  position: relative;
}

.logo img {
  height: 130px;
  width: auto;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  font-weight: 600;
  color: var(--dark);
  transition: color 0.3s;
  font-size: 15px;
}

.nav-links a:hover {
  color: var(--primary);
}

/* Pulse Animation for Upcoming Events Navlink */
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.6; }
}

.pulse {
  animation: pulse 1.5s infinite;
}

.nav-cta {
  display: flex;
  gap: 16px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.btn-nav {
  background-color: var(--primary);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
}

.btn-nav:hover {
  background-color: #006666;
  color: var(--white);
  cursor: pointer;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--dark);
}

/* Hero Section */
/* Hero Section */
.hero {
  position: relative;
  min-height: 80vh;
  height: auto !important;
  padding: 120px 0 80px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #004040; /* Temporary fallback – remove once fixed */
}

.hero-background {
  position: absolute;
  inset: 0;
  background: url("../images/hero_background.JPG") center center / cover no-repeat;
  background-color: #004040; /* Dark fallback if image fails */
  z-index: -2;
  opacity: 1 !important;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 127, 127, 0.85),
    rgba(0, 100, 100, 0.75)
  );
  z-index: -1;
  opacity: 1 !important;
}

.hero-background,
.hero-overlay {
  display: block !important;
  visibility: visible !important;
  pointer-events: none;
}

.hero {
  isolation: isolate; /* Contains negative z-index layers */
}

/* Responsive Hero */
@media (max-width: 480px) {
  .hero {
    min-height: 100vh;
    padding: 80px 0 60px;
  }
}

@media (min-width: 992px) {
  .hero-inner {
    flex-direction: row;
    text-align: left;
    align-items: center;
    gap: 80px;
  }
  .hero-content { flex: 1; }
  .hero-image-container { flex: 1; }
  .buttons { justify-content: flex-start; }
  .hero-note { justify-content: flex-start; }
}

@media (max-width: 768px) {
  .hero {
    padding: 80px 0 60px;
  }
  .hero h1 { font-size: 42px; }
  .subheadline { font-size: 18px; }
  .buttons { flex-direction: column; align-items: center; }
  .btn-primary, .btn-secondary {
    width: 100%;
    max-width: 320px;
  }
  .stat-badge { padding: 14px 16px; min-width: 140px; }
  .stat-icon { font-size: 28px; }
  .stat-number { font-size: 28px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 36px; }
  .badge { font-size: 14px; padding: 8px 16px; }
  .stat-primary { top: 16px; right: 16px; }
  .stat-accent { bottom: 16px; left: 16px; }
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 60px;
  align-items: center;
  text-align: center;
}

.hero-content {
  max-width: 700px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--light-gray);
  color: var(--accent);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 30px;
  backdrop-filter: blur(4px);
}

.hero h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 24px 0;
  color: white;
}

.hero h1 span {
  color: var(--accent);
}

.subheadline {
  font-size: 20px;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.95);
}

.buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
}

.btn-primary,
.btn-secondary {
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 8px;
  min-width: 220px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--accent);
  color: white;
  border: none;
}

.btn-primary:hover {
  background-color: #e66a00;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background-color: white;
  color: var(--primary);
}

.hero-note {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-note i {
  font-size: 18px;
}

.hero-image-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.hero-image {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.stat-badge {
  position: absolute;
  background-color: white;
  padding: 12px 16px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 160px;
  backdrop-filter: blur(4px);
}

.stat-primary {
  top: 30px;
  right: 20px;
  color: var(--primary);
}

.stat-accent {
  bottom: 30px;
  left: 20px;
  color: var(--accent);
}

.stat-icon {
  font-size: 36px;
}

.stat-number {
  font-size: 36px;
  line-height: 1;
}

.stat-label {
  font-size: 14px;
  opacity: 0.9;
}


/* Responsive Hero */
@media (max-width: 480px) {
  .hero {
    min-height: 70vh;
    padding: 80px 0 60px;
  }
}

@media (min-width: 992px) {
  .hero-inner {
    flex-direction: row;
    text-align: left;
    align-items: center;
    gap: 80px;
  }

  .hero-content {
    flex: 1;
  }

  .hero-image-container {
    flex: 1;
  }

  .buttons {
    justify-content: flex-start;
  }

  .hero-note {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 80px 0 60px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .subheadline {
    font-size: 18px;
  }

  .buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 320px;
  }

  .stat-badge {
    padding: 14px 16px;
    min-width: 140px;
  }

  .stat-icon {
    font-size: 28px;
  }

  .stat-number {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 36px;
  }

  .badge {
    font-size: 14px;
    padding: 8px 16px;
  }

  .stat-primary {
    top: 16px;
    right: 16px;
  }

  .stat-accent {
    bottom: 16px;
    left: 16px;
  }
}

/* Partners Section */
.partners-section {
  background-color: var(--white);
  padding: 100px 0;
  overflow: hidden;
}

.partners-title {
  font-size: 36px;
  text-align: center;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--primary);
}

.partners-section .section-title {
  margin-bottom: 20px;
}

.partners-section .section-intro {
  margin-bottom: 60px;
}

/* Marquee (Infinite Horizontal Scroll) */
.partners-marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.marquee-content {
  display: flex;
  gap: 60px;
  animation: marquee 30s linear infinite;
  will-change: transform;
}

.marquee-content:hover {
  animation-play-state: paused; /* Pause on hover for better usability */
}

.partner-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 100px;
  transition: transform 0.3s ease;
}

.partner-logo img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.partner-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

/* Infinite scroll animation */
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .partners-section {
    padding: 80px 0;
  }

  .marquee-content {
    gap: 40px;
    animation-duration: 40s; /* Slower on mobile */
  }

  .partner-logo {
    width: 160px;
    height: 80px;
  }

  .partner-logo img {
    max-height: 60px;
  }
}

@media (max-width: 480px) {
  .marquee-content {
    gap: 30px;
  }
}

/* General Sections */
/* About Us Section */
#about {
  padding: 120px 0;
  background-color: var(--light-gray);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.about-block h3 {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 16px;
  font-weight: 700;
}

.about-block p {
  font-size: 18px;
  color: var(--gray);
  line-height: 1.7;
}

.about-image-wrapper {
  position: relative;
  height: 100%;
  min-height: 500px;
}

.about-main-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.about-secondary-image {
  position: absolute;
  width: 220px;
  height: 180px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-secondary-1 {
  bottom: -40px;
  left: -40px;
}

.about-secondary-2 {
  top: -40px;
  right: -40px;
}

/* Responsive */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .about-image-wrapper {
    min-height: auto;
    order: -1;
  }

  .about-main-image {
    height: 400px;
  }

  .about-secondary-1 {
    bottom: 20px;
    left: 20px;
  }

  .about-secondary-2 {
    top: 20px;
    right: 20px;
  }
}

@media (max-width: 768px) {
  #about {
    padding: 80px 0;
  }

  .about-block h3 {
    font-size: 24px;
  }

  .about-block p {
    font-size: 17px;
  }

  .about-main-image {
    height: 300px;
  }

  .about-secondary-image {
    width: 180px;
    height: 140px;
  }

  .about-secondary-1 {
    bottom: 10px;
    left: 10px;
  }

  .about-secondary-2 {
    top: 10px;
    right: 10px;
  }
}

@media (max-width: 480px) {
  .about-secondary-image {
    display: none; /* Hide overlapping images on very small screens for clarity */
  }
}

/* Purpose Section */
#purpose {
  background-color: var(--light-gray);
  padding: 120px 0;
}

.purpose-header {
  text-align: center;
  margin-bottom: 40px;
  background-color: rgba(0, 127, 127, 0.1); /* Light teal background */
  padding: 40px 20px;
  border-radius: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  font-size: 24px;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 12px 0;
  opacity: 0.9;
}

.section-title {
  font-size: 42px;
  font-weight: 800;
  color: var(--dark);
  margin: 0;
}

.section-title span {
  color: var(--primary);
}

.section-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
  font-size: 19px;
  color: var(--gray);
}

/* Purpose Grid - 4 cards in one row on desktop */
.purpose-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.purpose-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.purpose-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.purpose-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.purpose-card h3 {
  font-size: 22px;
  color: var(--dark);
  margin: 24px 20px 16px;
  flex-grow: 1;
}

.purpose-card p {
  font-size: 16px;
  color: var(--gray);
  margin: 0 24px 32px;
  flex-grow: 1;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .purpose-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  #purpose {
    padding: 80px 0;
  }

  .purpose-header {
    padding: 30px 16px;
  }

  .section-title {
    font-size: 36px;
  }

  .purpose-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .purpose-card-img {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 32px;
  }

  .purpose-card h3 {
    font-size: 20px;
  }

  .purpose-card p {
    font-size: 15px;
  }
}

/* Our Team Section */
.team-section {
  padding: 120px 0;
  background-color: var(--white);
}

.team-header {
  text-align: center;
  margin-bottom: 80px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.team-card {
  text-align: center;
  background: var(--light-gray);
  border-radius: 20px;
  padding: 40px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
}

.team-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.team-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 24px;
  border: 6px solid var(--primary);
}

.team-card h3 {
  font-size: 24px;
  color: var(--dark);
  margin-bottom: 8px;
}

.team-role {
  display: block;
  font-size: 16px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 16px;
}

.team-card p {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 24px;
}

.team-social {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.team-social a {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 18px;
  transition: all 0.3s ease;
}

.team-social a:hover {
  background: var(--accent);
  transform: translateY(-4px);
}

/* Responsive */
@media (max-width: 1200px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-img {
    width: 160px;
    height: 160px;
  }
}

@media (max-width: 768px) {
  .team-section {
    padding: 80px 0;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-card {
    padding: 32px 20px;
  }
}

/* Impact Section */
#impact {
  background: linear-gradient(135deg, var(--primary) 0%, #006666 100%);
  color: white;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

#impact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("../images/impact_1.JPG") center center / cover no-repeat;
  opacity: 0.15;
  z-index: 0;
}

.impact-header {
  text-align: center;
  margin-bottom: 80px;
  position: relative;
  z-index: 1;
}

#impact .section-title {
  color: white;
  margin-bottom: 20px;
  font-size: 48px;
}

#impact .section-intro {
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.95;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  position: relative;
  z-index: 1;
}

.impact-item {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px 20px;
  transition: all 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.impact-item:hover {
  transform: translateY(-12px);
  background: rgba(255, 115, 0, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.impact-number {
  font-size: 64px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 12px;
  line-height: 1;
}

.impact-number .plus {
  font-size: 48px;
  color: white;
  vertical-align: top;
}

.impact-label {
  font-size: 18px;
  font-weight: 600;
  opacity: 0.95;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 992px) {
  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .impact-number {
    font-size: 56px;
  }

  .impact-number .plus {
    font-size: 40px;
  }
}

@media (max-width: 768px) {
  #impact {
    padding: 100px 0;
  }

  #impact .section-title {
    font-size: 40px;
  }

  .impact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .impact-item {
    padding: 32px 20px;
  }

  .impact-number {
    font-size: 52px;
  }
}

@media (max-width: 480px) {
  .impact-number {
    font-size: 48px;
  }

  .impact-label {
    font-size: 17px;
  }
}

/* Upcoming Events Section */
.events-section {
  padding: 120px 0;
  background-color: var(--light-gray);
}

.events-header {
  text-align: center;
  margin-bottom: 80px;
}

/* .events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
} */

.event-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}

.event-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.event-img {
  width: 100%;
  height: 550px;
  object-fit: cover;
}

.event-content {
  padding: 32px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.event-date {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}

.event-content h3 {
  font-size: 24px;
  color: var(--dark);
  margin-bottom: 16px;
  flex-grow: 1;
}

.event-content p {
  font-size: 17px;
  color: var(--gray);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* .event-content .btn-primary .open-registration-modal{
  align-self: flex-start;
  font-size: 18px;
  text-align: center;
  justify-content: center;
  padding: 14px 28px;
} */

/* Responsive */
@media (max-width: 992px) {
  /* .events-grid {
    grid-template-columns: 1fr;
  } */

  .event-img {
    height: 380px;
  }
}

@media (max-width: 768px) {
  .events-section {
    padding: 80px 0;
  }

  .event-img {
    height: 300px;
  }

  .event-content {
    padding: 24px;
  }

  .event-content h3 {
    font-size: 22px;
  }
}

@media (max-width: 576px) { 
  .events-section { 
    padding: 40px 0; 
  } 
  .event-img { 
    height: 200px; 
  } 
  .event-content h3 { 
    font-size: 18px; 
  } 
  .event-content p { 
    font-size: 14px; 
  } 
  .event-content .btn-primary { 
    width: 100%; /* full-width button for mobile */ 
    text-align: center; 
  } 
}

/* Registration Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  border-radius: 16px;
  width: 90%;
  max-width: 520px;
  padding: 32px;
  position: relative;
  max-height: 90vh;
  overflow-y: hidden;          /* ← changed: no scrollbar */
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

/* If content is too long, let it scroll inside form wrapper instead */
#registration-form {
  max-height: 65vh;            /* adjust this value based on your needs */
  overflow-y: auto;            /* only form area scrolls if necessary */
  padding-right: 10px;         /* prevent content touching scrollbar area */
}

/* Hide scrollbar visually but keep functionality (cross-browser) */
#registration-form::-webkit-scrollbar {
  width: 0px;                  /* hide scrollbar in Chrome/Safari */
  background: transparent;
}

#registration-form {
  scrollbar-width: none;       /* Firefox */
  -ms-overflow-style: none;    /* IE/Edge */
}
.modal.active .modal-content {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 36px;
  color: #666;
  cursor: pointer;
  line-height: 1;
}

.modal-close-btn:hover {
  color: var(--primary);
}

.modal h2 {
  margin: 0 0 28px;
  font-size: 28px;
  text-align: center;
  color: var(--dark);
}

.modal h2 span {
  color: var(--primary);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--dark);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,127,127,0.15);
}

.consent {
  margin: 24px 0;
  font-size: 15px;
}

.required {
  color: #e74c3c;
}

.btn-large {
  padding: 16px !important;
  font-size: 18px !important;
  width: 100%;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .modal-content {
    padding: 24px;
    width: 95%;
  }
  .modal h2 {
    font-size: 24px;
  }
}

/* Join Us */
/* Join Us / CTA Section */
.join-section {
  padding: 120px 0;
  background-color: var(--white);
}

.join-header {
  text-align: center;
  margin-bottom: 80px;
}

.join-title {
  font-size: 42px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
}

.join-header .section-intro {
  max-width: 900px;
  margin: 0 auto;
  font-size: 20px;
}

.join-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.join-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}

.join-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.join-card-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.join-card-content {
  padding: 32px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.join-card-content h3 {
  font-size: 26px;
  color: var(--dark);
  margin-bottom: 16px;
  font-weight: 700;
}

.join-card-content p {
  font-size: 17px;
  color: var(--gray);
  margin-bottom: 32px;
  flex-grow: 1;
}

.join-card .btn-primary,
.join-card .btn-secondary {
  width: 100%;
  padding: 16px;
  font-size: 18px;
}

/* Make secondary button match primary style but with outline */
.join-card .btn-secondary {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.join-card .btn-secondary:hover {
  background: var(--primary);
  color: white;
}

/* Responsive */
@media (max-width: 992px) {
  .join-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .join-card-img {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .join-section {
    padding: 80px 0;
  }

  .join-header .section-title {
    font-size: 36px;
  }

  .join-header .section-intro {
    font-size: 18px;
  }

  .join-card-content {
    padding: 24px;
  }

  .join-card-content h3 {
    font-size: 24px;
  }
}

/* Audience / For Mentors Section */
.audience-section {
  padding: 120px 0;
  background-color: var(--light-gray);
}

.audience-header {
  text-align: center;
  margin-bottom: 80px;
}

.audience-header .section-title {
  font-size: 44px;
}

.accent-text {
  color: var(--accent);
}

.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.audience-main-image .main-img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.audience-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.audience-lead {
  font-size: 22px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.6;
}

.audience-content-wrapper p {
  font-size: 18px;
  color: var(--gray);
  line-height: 1.7;
}

.benefits-title {
  font-size: 28px;
  color: var(--primary);
  margin: 32px 0 24px;
}

.benefits-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.benefits-list li {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 18px;
  color: var(--gray);
}

.benefit-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.audience-closing {
  font-size: 20px;
  font-style: italic;
  color: var(--dark);
}

.audience-cta {
  text-align: center;
  margin-top: 40px;
}

/* Responsive */
@media (max-width: 992px) {
  .audience-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .audience-main-image {
    order: -1;
  }

  .benefits-list li {
    flex-direction: column;
    text-align: center;
  }

  .benefit-img {
    width: 200px;
    height: 160px;
  }
}

@media (max-width: 768px) {
  .audience-section {
    padding: 80px 0;
  }

  .audience-header .section-title {
    font-size: 36px;
  }

  .audience-lead {
    font-size: 20px;
  }

  .benefits-title {
    font-size: 26px;
  }

  .benefit-img {
    width: 100%;
    max-width: 300px;
    height: auto;
  }
}

/* /* Audience
.audience-card img {
  height: 220px;
  object-fit: cover;
}

.audience-content {
  padding: 32px;
}

.audience-content h3 {
  font-size: 24px; 
} */

/* Donate CTA */
/* #donate-cta {
  padding: 80px 20px;
}

#donate-cta h2 {
  font-size: 36px;
  margin-bottom: 18px;
}

.btn-donate {
  padding: 18px 40px;
  font-size: 20px;
} */

/* Testimonials Section */
.testimonials-section {
  padding: 120px 0;
  background-color: var(--white);
}

.testimonials-header {
  text-align: center;
  margin-bottom: 80px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.testimonial-card {
  background: var(--light-gray);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.testimonial-quote {
  font-size: 18px;
  line-height: 1.7;
  color: var(--dark);
  margin-bottom: 32px;
  position: relative;
}

.testimonial-quote::before {
  content: "“";
  font-size: 120px;
  color: var(--primary);
  opacity: 0.2;
  position: absolute;
  top: -40px;
  left: -20px;
  line-height: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary);
}

.testimonial-author h4 {
  font-size: 20px;
  color: var(--dark);
  margin: 0;
}

.testimonial-author span {
  font-size: 16px;
  color: var(--primary);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 992px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .testimonials-section {
    padding: 80px 0;
  }

  .testimonial-card {
    padding: 32px;
  }

  .testimonial-quote {
    font-size: 17px;
  }

  .testimonial-quote::before {
    font-size: 100px;
    top: -30px;
    left: -10px;
  }
}

/* Final Donate CTA Section */
.donate-section {
  position: relative;
  min-height: 80vh;                    /* ← this is usually the missing piece */
  padding: 140px 0;
  text-align: center;
  color: white;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;             /* centers content when section is tall */
  background-color: #0a3d3d;           /* ← TEMPORARY dark teal debug color – remove later */
  isolation: isolate;                  /* creates new stacking context – helps z-index behave */
}

.donate-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;                        /* force full coverage of parent */
  background: linear-gradient(
      135deg,
      rgba(0, 127, 127, 0.9),
      rgba(255, 115, 0, 0.8)
    ),
    url("../images/IWD 2024/bottom-cta.JPG") center center / cover no-repeat;
  z-index: -1;
  background-blend-mode: multiply;     /* ← helps gradient + image combine visibly */
  /* TEMP debug lines – remove after confirming */
  border: 2px solid lime !important;   /* bright green border to see if layer exists */
  opacity: 1 !important;
  visibility: visible !important;
}

/* Make sure content stays on top */
.donate-content {
  position: relative;
  z-index: 2;                          /* higher than -1 */
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.donate-title {
  font-size: 52px;
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.2;
}

.donate-subtitle {
  font-size: 22px;
  margin-bottom: 48px;
  opacity: 0.95;
  line-height: 1.6;
}

.donate-buttons {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn-donate {
  background-color: var(--accent);
  color: white;
  padding: 20px 48px;
  font-size: 22px;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(255, 115, 0, 0.4);
}

.btn-donate:hover {
  background-color: #e66a00;
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(255, 115, 0, 0.5);
}

.donate-section .btn-secondary {
  background: transparent;
  border: 2px solid white;
  color: white;
}

.donate-section .btn-secondary:hover {
  background: white;
  color: var(--accent);
}

.donate-note {
  font-size: 16px;
  opacity: 0.9;
  font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
  .donate-section {
    padding: 100px 0;
  }

  .donate-title {
    font-size: 42px;
  }

  .donate-subtitle {
    font-size: 20px;
  }

  .donate-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-donate,
  .donate-section .btn-secondary {
    width: 100%;
    max-width: 320px;
  }
}

@media (max-width: 480px) {
  .donate-title {
    font-size: 36px;
  }

  .donate-subtitle {
    font-size: 18px;
  }
}

/* Footer */
.footer {
  background-color: var(--dark);
  color: #ccc;
  padding-top: 100px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px;
  margin-bottom: 60px;
}

.footer-logo img {
  width: 190px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.footer-about p {
  font-size: 16px;
  line-height: 1.7;
  margin: 20px 0 30px;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 20px;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--primary);
  transform: translateY(-4px);
}

.footer-links h4 {
  color: white;
  font-size: 20px;
  margin-bottom: 24px;
  font-weight: 700;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #ccc;
  font-size: 16px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-links i {
  color: var(--primary);
  margin-right: 10px;
  width: 20px;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding: 30px 0;
  text-align: center;
  font-size: 15px;
  color: #aaa;
}

.footer-bottom a {
  color: #ccc;
  margin: 0 10px;
}

.footer-bottom a:hover {
  color: var(--accent);
}

/* Responsive */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .footer-about p {
    max-width: none;
  }
}

@media (max-width: 768px) {
  .footer {
    padding-top: 80px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-links ul {
    display: inline-block;
    text-align: left;
  }
}

/* Responsive Breakpoints */

/* Large Tablets & Small Laptops */
@media (min-width: 768px) {
  .buttons {
    flex-direction: row;
    justify-content: center;
  }

  .btn-primary,
  .btn-secondary {
    width: auto;
  }

  .purpose-grid,
  .impact-grid,
  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktops */
@media (min-width: 1024px) {
  .hero {
    flex-direction: row;
    text-align: left;
    align-items: center;
  }

  .hero-content {
    max-width: 600px;
  }

  .buttons {
    justify-content: flex-start;
  }

  .purpose-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .impact-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .audience-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }

  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .stat-primary {
    top: 40px;
    right: 20px;
  }

  .stat-accent {
    bottom: 80px;
    left: 40px;
  }
}

/* Mobile Adjustments */
@media (max-width: 767px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 40px;
    gap: 24px;
    transition: left 0.4s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links a {
    font-size: 18px;
  }

  .mobile-menu-toggle {
    display: block;
  }

  section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 32px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .subheadline {
    font-size: 17px;
  }

  .stat-badge {
    padding: 12px 14px;
    min-width: 120px;
  }

  .stat-icon {
    font-size: 24px;
  }

  .stat-number {
    font-size: 24px;
  }

  /* Adjust badge positions for small screens */
  .stat-primary {
    top: 16px;
    right: 16px;
  }

  .stat-accent {
    bottom: 16px;
    left: 16px;
  }
}

/* Extra Small Phones */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 50px 0;
  }

  .hero h1 {
    font-size: 32px;
  }

  .badge {
    font-size: 13px;
    padding: 7px 16px;
  }

  .section-title {
    font-size: 28px;
  }

  .audience-card img {
    height: 180px;
  }

  .audience-content {
    padding: 24px;
  }

  .audience-content h3 {
    font-size: 22px;
  }

  #donate-cta h2 {
    font-size: 32px;
  }
}

/* Very Small Phones (e.g., iPhone SE) */
@media (max-width: 360px) {
  .hero h1 {
    font-size: 28px;
  }

  .btn-primary,
  .btn-secondary,
  .btn-large,
  .btn-donate {
    padding: 14px 20px;
    font-size: 16px;
  }
}
