/* 
  TAHN Foundation - Premium UI/UX Design
  Enhanced Aesthetics, Mobile Responsive fixes, and Micro-animations
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;700;800&display=swap');

:root {
  /* Premium Color Palette */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;

  --text-primary: #0f172a;
  --text-secondary: #475569;

  --accent-color: #059669;
  /* Rich Emerald */
  --accent-hover: #047857;
  --accent-light: #d1fae5;

  --border-color: rgba(15, 23, 42, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.4);

  /* Typography */
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Spacing */
  --section-padding: 20px 0;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-premium: 0 20px 40px -10px rgba(5, 150, 105, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Utilities */
.text-accent {
  color: var(--accent-color);
}

.text-center {
  text-align: center;
}

.section-title {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 3.5rem;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 6px;
  background: linear-gradient(90deg, var(--accent-color), #34d399);
  margin: 16px auto 0;
  border-radius: 4px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-main);
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 2px solid transparent;
  font-size: 1rem;
  letter-spacing: 0.5px;
  gap: 8px;
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.9rem;
  max-width: 150px;
  width: 100%;
}

.btn-primary {
  background-color: transparent;
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.btn-primary:hover {
  background-color: var(--accent-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-filled {
  background: linear-gradient(135deg, var(--accent-color) 0%, #10b981 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-filled:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
  color: #ffffff;
}

/* Page Header */
.page-header {
  padding: 160px 0 80px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  text-align: center;
  color: white;
  margin-bottom: 50px;
}
.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
}
.page-header .container {
  position: relative;
  z-index: 1;
}
.page-header .page-title {
  font-size: 3rem;
  color: white;
  margin-bottom: 15px;
  text-transform: capitalize;
}

/* Navigation */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 24px 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  padding: 12px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  letter-spacing: -1px;
}

header.scrolled .logo {
  color: var(--accent-color);
}

.logo span {
  color: var(--accent-light);
}

header.scrolled .logo span {
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 15px;
  /* Reduced gap as requested */
  list-style: none;
}

.nav-links>li>a {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.85rem;
  /* Reduced font size */
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-links>li>a>i {
  font-size: 0.75rem;
  transition: transform var(--transition-normal);
}

header.scrolled .nav-links>li>a {
  color: var(--text-primary);
}

/* Hover Underline Effect */
.nav-links>li>a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent-color);
  transition: width var(--transition-normal);
}

.nav-links>li>a:hover::after,
.nav-links>li>a.active::after {
  width: 100%;
}

.nav-links>li>a:hover {
  color: var(--accent-color);
}

header.scrolled .nav-links>li>a:hover {
  color: var(--accent-color);
}

/* Header Donate Button */
.nav-links>li>a.btn-donate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 32px;
  /* Fixed padding by overriding specificity */
  background: linear-gradient(135deg, #10b981 0%, var(--accent-color) 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.4);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.nav-links>li>a.btn-donate::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--accent-color) 0%, #047857 100%);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
}

.nav-links>li>a.btn-donate:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(5, 150, 105, 0.6);
}

.nav-links>li>a.btn-donate:hover::before {
  opacity: 1;
}

.nav-links>li>a.btn-donate i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.nav-links>li>a.btn-donate:hover i {
  transform: scale(1.2) rotate(10deg);
  animation: heartbeat 1.5s infinite;
}

/* Disable normal menu underline for the button */
.nav-links>li>a.btn-donate::after {
  display: none;
}

@keyframes heartbeat {
  0% {
    transform: scale(1.2) rotate(10deg);
  }

  15% {
    transform: scale(1.4) rotate(10deg);
    color: #fecdd3;
  }

  30% {
    transform: scale(1.2) rotate(10deg);
  }

  45% {
    transform: scale(1.4) rotate(10deg);
    color: #fecdd3;
  }

  60% {
    transform: scale(1.2) rotate(10deg);
  }
}

.nav-links>li>a i {
  font-size: 0.75rem;
  transition: transform var(--transition-fast);
}

.has-dropdown:hover>a i {
  transform: rotate(180deg);
}

/* Dropdown styling */
.has-dropdown {
  position: relative;
  padding: 10px 0;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: -20px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  min-width: 260px;
  box-shadow: var(--shadow-lg);
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all var(--transition-normal);
  pointer-events: none;
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown li {
  margin-bottom: 4px;
}

.dropdown li a {
  display: block;
  padding: 10px 16px;
  color: var(--text-secondary);
  font-weight: 500;
  border-radius: 8px;
  transition: all var(--transition-fast);
}

.dropdown li a:hover {
  color: var(--accent-color);
  background-color: var(--accent-light);
  padding-left: 22px;
}

.dropdown-mega {
  min-width: 540px;
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 0 15px;
}

/* Header Icons */
.header-icons {
  margin-left: 10px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.75rem;
  cursor: pointer;
  transition: color var(--transition-normal);
}

header.scrolled .mobile-menu-btn {
  color: var(--text-primary);
}

/* Vanilla JS Slider Logic */
.vanilla-slider {
  overflow: hidden;
  position: relative;
  height: 100vh;
}

.vanilla-slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.vanilla-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

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

.slider-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  transform: scale(1.05);
  transition: transform 6s linear;
}

.vanilla-slide.active .slider-bg {
  transform: scale(1);
}

.slider-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 100%);
  z-index: 2;
}

.h-100 {
  height: 100%;
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-top: 90px;
  /* Safe offset for the fixed header */
  padding-bottom: 40px;
  /* Safe offset for pagination bullets */
}

.slider-content {
  max-width: 800px;
  transform: translateY(30px);
  opacity: 0;
  transition: all 1s ease 0.3s;
}

.vanilla-slide.active .slider-content {
  transform: translateY(0);
  opacity: 1;
}

.slider-content .hero-subtitle {
  color: var(--accent-light);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 24px;
  display: inline-block;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.slider-content .hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  color: #ffffff;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.slider-content .hero-desc {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  margin-bottom: 40px;
  max-width: 650px;
  line-height: 1.6;
}

.hero-btns {
  display: flex;
  gap: 20px;
}

/* Vanilla Navigation buttons */
.vanilla-button-next,
.vanilla-button-prev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all var(--transition-normal);
}

.vanilla-button-prev {
  left: 40px;
}

.vanilla-button-next {
  right: 40px;
}

.vanilla-button-next:hover,
.vanilla-button-prev:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  transform: translateY(-50%) scale(1.1);
}

/* Vanilla Pagination */
.vanilla-pagination {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.vanilla-pagination-bullet {
  background: #ffffff;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.4;
  transition: all var(--transition-normal);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.vanilla-pagination-bullet:hover {
  opacity: 0.8;
}

.vanilla-pagination-bullet.active {
  background: var(--accent-color);
  opacity: 1;
  width: 32px;
  border-radius: 8px;
}

/* About Section */
.about-section {
  padding: var(--section-padding);
  background-color: var(--bg-primary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: stretch;
}

.about-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-img {
  position: relative;
  height: 100%;
}

.about-img .img-wrapper {
  position: relative;
  border-radius: 24px;
  box-shadow: var(--shadow-premium);
  height: 100%;
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 24px;
}

.experience-badge {
  position: absolute;
  bottom: -30px;
  right: -30px;
  background: linear-gradient(135deg, var(--accent-color) 0%, #10b981 100%);
  color: #fff;
  padding: 25px 35px;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 2;
  border: 3px solid #fff;
}

.experience-badge .years {
  font-size: 3.5rem;
  font-weight: 800;
  font-family: var(--font-heading);
  line-height: 1;
}

.experience-badge .text {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
}

.section-subtitle {
  color: var(--accent-color);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 15px;
}

/* Counter Section */
.counter-section {
  padding: 20px 0;
  background-color: var(--bg-secondary);
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.counter-card {
  background: var(--bg-card);
  padding: 35px 20px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.counter-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f97316, var(--accent-color));
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.counter-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(249, 115, 22, 0.2);
}

.counter-card:hover::before {
  opacity: 1;
}

.counter-icon {
  width: 65px;
  height: 65px;
  background: rgba(249, 115, 22, 0.08);
  color: #ea580c;
  /* Deep orange */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 20px;
  border: 1px solid rgba(249, 115, 22, 0.15);
  transition: transform var(--transition-normal), background var(--transition-normal);
}

.counter-card:hover .counter-icon {
  transform: scale(1.1) rotate(5deg);
  background: rgba(249, 115, 22, 0.15);
}

.counter-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 5px;
  font-family: var(--font-heading);
  letter-spacing: -0.5px;
}

.counter-text {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Features / Core Focus */
.features {
  padding: var(--section-padding);
  background-color: var(--bg-secondary);
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.feature-card {
  background-color: var(--bg-primary);
  padding: 50px 40px;
  border-radius: 24px;
  transition: all var(--transition-normal);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--accent-light) 0%, transparent 100%);
  transition: height var(--transition-normal);
  z-index: -1;
  opacity: 0.5;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-premium);
  border-color: var(--accent-light);
}

.feature-card:hover::before {
  height: 100%;
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: #ffffff;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 30px;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  font-weight: 700;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* Call to Action Content Section */
.content-section {
  padding: var(--section-padding);
  background-color: var(--bg-primary);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.content-text h2 {
  font-size: 3rem;
  margin-bottom: 24px;
  font-weight: 800;
}

.content-text p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 1.15rem;
}

.content-img {
  width: 100%;
  min-height: 450px;
  border-radius: 24px;
  box-shadow: var(--shadow-premium);
  position: relative;
}

.content-img::after {
  content: '';
  position: absolute;
  top: 20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--accent-color);
  border-radius: 24px;
  z-index: -1;
  transition: all var(--transition-normal);
}

.content-grid:hover .content-img::after {
  top: 10px;
  left: -10px;
}

/* Footer */
footer {
  background-color: #0f172a;
  color: #f8fafc;
  padding: 80px 0 24px;
  position: relative;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;
  margin-bottom: 60px;
}

.footer-col .logo {
  color: #ffffff;
  margin-bottom: 24px;
}

.footer-col h3 {
  font-size: 1.3rem;
  margin-bottom: 24px;
  color: #ffffff;
  font-weight: 600;
}

.footer-col p {
  color: #94a3b8;
  margin-bottom: 12px;
  font-size: 1rem;
}

.footer-links li {
  margin-bottom: 14px;
}

.footer-links a,
.footer-links {
  color: #94a3b8;
}

.footer-links a:hover {
  color: var(--accent-color);
  padding-left: 8px;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  transition: all var(--transition-fast);
}

.social-links a:hover {
  background-color: var(--accent-color);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(5, 150, 105, 0.3);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #64748b;
  font-size: 0.95rem;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================= */
/* NEW SECTIONS (Programs, Projects, etc.)   */
/* ========================================= */

/* Our Programs Section */
.programs-section { padding: 80px 0; background: var(--bg-primary); }
.programs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; margin-top: 40px; }
.program-card { background: var(--bg-secondary); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-md); transition: var(--transition-normal); border: 1px solid var(--border-color); display: flex; flex-direction: column; }
.program-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: rgba(5,150,105,0.2); }
.program-img { position: relative; height: 200px; }
.program-img img { width: 100%; height: 100%; object-fit: cover; }
.program-icon { position: absolute; bottom: -25px; right: 25px; width: 50px; height: 50px; background: var(--accent-color); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; box-shadow: 0 4px 10px rgba(5,150,105,0.4); border: 3px solid #fff; }
.program-content { padding: 35px 20px 20px; display: flex; flex-direction: column; flex-grow: 1; }
.program-content h3 { font-size: 1.25rem; margin-bottom: 12px; }
.program-content p { color: var(--text-secondary); margin-bottom: 20px; font-size: 0.9rem; line-height: 1.5; }
.program-content .btn-link { margin-top: auto; align-self: flex-start; }
.btn-link { color: var(--accent-color); font-weight: 700; display: inline-flex; align-items: center; gap: 8px; font-size: 0.95rem; text-transform: uppercase; transition: var(--transition-fast); }
.btn-link:hover { gap: 12px; color: var(--accent-hover); }

/* Projects of Change */
.projects-section { padding: 100px 0; background: var(--bg-secondary); }
.projects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.projects-text p { color: var(--text-secondary); font-size: 1.1rem; line-height: 1.7; margin-bottom: 20px; }
.projects-images { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; position: relative; }
.proj-img { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); }
.proj-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.proj-img:hover img { transform: scale(1.05); }
.proj-img-1 { height: 350px; transform: translateY(30px); }
.proj-img-2 { height: 400px; transform: translateY(-30px); }

/* Our Sponsors Marquee */
.sponsors-section { padding: 40px 0; background: var(--accent-color); overflow: hidden; }
.sponsors-title { text-align: center; color: rgba(255,255,255,0.8); text-transform: uppercase; letter-spacing: 2px; font-size: 0.85rem; margin-bottom: 20px; }
.sponsors-marquee { width: 100%; overflow: hidden; white-space: nowrap; position: relative; }
.marquee-content { display: inline-block; animation: scrollMarquee 30s linear infinite; }
.sponsor-logo { display: inline-flex; align-items: center; gap: 10px; font-size: 1.5rem; font-weight: 700; font-family: var(--font-heading); color: #fff; margin: 0 40px; opacity: 0.8; transition: opacity var(--transition-fast); }
.sponsor-logo:hover { opacity: 1; }
@keyframes scrollMarquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Filterable Gallery */
.gallery-section { padding: 80px 0; }
.gallery-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; margin: 40px 0; }
.filter-btn { background: transparent; border: 2px solid var(--border-color); padding: 8px 24px; border-radius: 50px; font-weight: 600; color: var(--text-secondary); cursor: pointer; transition: all var(--transition-fast); }
.filter-btn:hover, .filter-btn.active { background: var(--accent-color); border-color: var(--accent-color); color: #fff; }
.gallery-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; }
.gallery-item { position: relative; height: 220px; border-radius: 12px; overflow: hidden; transition: all 0.4s ease; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-overlay { position: absolute; inset: 0; background: rgba(5,150,105,0.85); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.4s ease; }
.gallery-overlay span { color: #fff; font-weight: 700; font-size: 1.25rem; transform: translateY(20px); transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover .gallery-overlay span { transform: translateY(0); }
.gallery-item.hide { display: none; }

/* Stories of Hope */
.stories-section { padding: 80px 0; background: var(--bg-primary); }
.stories-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; margin-top: 40px; }
.story-featured { background: var(--bg-secondary); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--border-color); }
.story-featured img { width: 100%; height: 350px; object-fit: cover; }
.story-content { padding: 30px; }
.story-tag { background: rgba(249,115,22,0.1); color: #ea580c; padding: 6px 12px; border-radius: 50px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; display: inline-block; margin-bottom: 15px; }
.story-content h3 { font-size: 1.8rem; line-height: 1.3; margin-bottom: 15px; }
.story-content p { color: var(--text-secondary); margin-bottom: 25px; line-height: 1.6; }
.story-list { display: flex; flex-direction: column; gap: 20px; }
.story-list-item { display: flex; gap: 20px; background: var(--bg-secondary); padding: 20px; border-radius: 20px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); align-items: center; transition: var(--transition-normal); }
.story-list-item:hover { box-shadow: var(--shadow-md); transform: translateX(5px); }
.story-list-item img { width: 100px; height: 100px; border-radius: 12px; object-fit: cover; }
.story-list-item h4 { font-size: 1.1rem; line-height: 1.4; margin-bottom: 10px; }

/* Reviews Carousel */
.reviews-section { padding: 80px 0; overflow: hidden; }
.reviews-carousel-wrapper { position: relative; max-width: 1400px; margin: 40px auto 0; overflow: hidden; }
.reviews-track { display: flex; gap: 30px; transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1); }
.review-card { min-width: calc(50% - 15px); padding: 40px; background: #fff; border-radius: 24px; box-shadow: var(--shadow-md); border: 1px solid var(--border-color); text-align: center; }
.review-card .stars { color: #f59e0b; font-size: 1.2rem; margin-bottom: 20px; }
.review-card p { font-size: 1.2rem; font-style: italic; color: var(--text-secondary); line-height: 1.6; margin-bottom: 30px; }
.reviewer { display: flex; align-items: center; justify-content: center; gap: 15px; }
.reviewer img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent-light); }
.reviewer h5 { font-size: 1.1rem; margin-bottom: 2px; }
.reviewer span { color: var(--accent-color); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; }
.reviews-dots { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.reviews-dots span { width: 12px; height: 12px; border-radius: 50%; background: var(--border-color); cursor: pointer; transition: all var(--transition-fast); }
.reviews-dots span.active { background: var(--accent-color); width: 24px; border-radius: 10px; }

/* News & Events */
.news-section { padding: 80px 0; background: var(--bg-primary); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.news-card { background: var(--bg-secondary); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-md); transition: var(--transition-normal); border: 1px solid var(--border-color); display: flex; flex-direction: column; height: 100%; }
.news-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.news-img { position: relative; height: 220px; flex-shrink: 0; }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.news-card:hover .news-img img { transform: scale(1.05); }
.news-date { position: absolute; top: 15px; left: 15px; background: rgba(255,255,255,0.95); backdrop-filter: blur(4px); padding: 8px 12px; border-radius: 12px; text-align: center; color: var(--text-primary); font-weight: 700; line-height: 1.2; font-size: 0.85rem; box-shadow: var(--shadow-sm); }
.news-date span { font-size: 1.2rem; color: var(--accent-color); }
.news-content { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.news-content h3 { font-size: 1.25rem; margin-bottom: 12px; line-height: 1.4; }
.news-content p { color: var(--text-secondary); margin-bottom: 20px; font-size: 0.95rem; line-height: 1.5; flex-grow: 1; }
.news-content .btn-link { margin-top: auto; align-self: flex-start; }

/* Quick Contact */
.quick-contact-section { padding: 60px 0 100px; }
.quick-contact-box { background: linear-gradient(135deg, rgba(5,150,105,0.95) 0%, rgba(2,100,70,0.95) 100%), url('https://images.unsplash.com/photo-1542810634-71277d95dcbb?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80') center/cover no-repeat; border-radius: 24px; padding: 50px; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; box-shadow: var(--shadow-premium); border: 1px solid rgba(255,255,255,0.1); position: relative; overflow: hidden; }
.quick-contact-box::after { content: ''; position: absolute; top: -50px; right: -50px; width: 200px; height: 200px; background: rgba(255,255,255,0.05); border-radius: 50%; }
.qc-text h2 { font-size: 2.2rem; margin-bottom: 15px; color: #fff; }
.qc-text p { color: rgba(255,255,255,0.85); font-size: 1.1rem; }
.qc-form form { display: flex; flex-direction: column; gap: 15px; }
.qc-form input, .qc-form textarea { padding: 15px 20px; border-radius: 12px; border: 1px solid var(--border-color); background: #fff; font-size: 1rem; color: var(--text-primary); transition: border-color var(--transition-fast); }
.qc-form textarea { resize: vertical; font-family: inherit; }
.qc-form input:focus, .qc-form textarea:focus { outline: none; border-color: var(--accent-color); }
.qc-form button { width: 100%; justify-content: center; padding: 15px; font-size: 1rem; border-radius: 12px; }

/* Responsive Overrides & Mobile Menu Fixes */
@media (max-width: 1024px) {
  .hero-title { font-size: clamp(2.5rem, 5vw, 3.5rem) !important; }
  .section-title { font-size: clamp(2rem, 4vw, 2.75rem); }
  .content-grid, .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .content-img { min-height: 350px; }
  .counter-grid { grid-template-columns: repeat(2, 1fr); }
  
  /* New Sections Tablet */
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: 1fr; gap: 40px; }
  .projects-images { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .stories-grid { grid-template-columns: 1fr; gap: 30px; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-contact-box { grid-template-columns: 1fr; gap: 30px; padding: 40px; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 90px 24px 40px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    z-index: 999;
    overflow-y: auto;
  }

  .nav-links.active {
    right: 0;
  }

  /* Mobile links styles */
  .nav-links>li {
    width: 100%;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-links>li:last-child {
    border-bottom: none;
    margin-top: 20px;
  }

  .nav-links>li>a {
    color: var(--text-primary);
    font-size: 1rem;
    padding: 12px 0;
    width: 100%;
    justify-content: space-between;
  }

  .nav-links>li>a::after {
    display: none;
  }

  /* Mobile Dropdown Fix */
  .has-dropdown {
    padding: 0;
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    background: transparent;
    border: none;
    padding: 0 0 10px 15px;
    min-width: 100%;
    transform: none;
    display: none;
  }

  /* Show dropdown on hover/click in mobile */
  .has-dropdown.open .dropdown,
  .has-dropdown:hover .dropdown {
    display: block;
  }
  
  .has-dropdown.open .dropdown-mega,
  .has-dropdown:hover .dropdown-mega {
    display: grid !important;
    grid-template-columns: 1fr;
    min-width: 100%;
  }

  .dropdown li a {
    padding: 8px 0;
    font-size: 0.95rem;
    border-bottom: 1px dashed var(--border-color);
  }

  .dropdown li:last-child a {
    border-bottom: none;
  }

  .mobile-menu-btn {
    display: block;
    z-index: 1001;
    color: #ffffff;
    font-size: 1.5rem;
  }

  header.scrolled .mobile-menu-btn {
    color: var(--text-primary);
  }

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

  /* Slider Responsive */
  .vanilla-slider {
    height: 75vh;
    min-height: 480px;
  }

  .h-100 {
    padding-top: 100px;
    padding-bottom: 40px;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
  }

  .slider-content {
    padding-top: 0;
    text-align: center;
    margin-top: auto;
    margin-bottom: auto;
  }

  .slider-content .hero-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem) !important;
    margin-bottom: 15px;
    line-height: 1.25;
  }

  .slider-content .hero-subtitle {
    font-size: 0.75rem;
    margin-bottom: 15px;
    padding: 4px 12px;
    letter-spacing: 2px;
  }

  .slider-content .hero-desc {
    font-size: 0.9rem;
    margin-bottom: 25px;
    max-width: 100%;
    padding: 0 10px;
    line-height: 1.5;
  }

  /* Buttons scaling */
  .hero-btns {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: 100%;
  }

  .hero-btns .btn {
    width: auto;
    padding: 8px 16px;
    font-size: 0.8rem;
    flex: none;
    min-width: 120px;
    justify-content: center;
    letter-spacing: 0;
  }

  /* Slider Nav & Pagination */
  .vanilla-button-prev {
    left: 5px;
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .vanilla-button-next {
    right: 5px;
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .vanilla-pagination {
    bottom: 20px;
    gap: 8px;
  }

  .vanilla-pagination-bullet {
    width: 8px;
    height: 8px;
  }

  .vanilla-pagination-bullet.active {
    width: 24px;
  }

  /* General Sections Mobile */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .experience-badge {
    bottom: 15px;
    right: 15px;
    padding: 15px 20px;
    border-width: 2px;
  }

  .experience-badge .years {
    font-size: 2.2rem;
  }

  .experience-badge .text {
    font-size: 0.9rem;
  }

  .counter-grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

  .counter-card {
    padding: 25px 15px;
  }

  .counter-number {
    font-size: 1.8rem;
  }

  .counter-text {
    font-size: 0.75rem;
  }

  .counter-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    margin-bottom: 15px;
  }

  .section-title {
    font-size: clamp(1.75rem, 5vw, 2.2rem);
    margin-bottom: 2.5rem;
  }

  .section-title::after {
    width: 60px;
    margin-top: 10px;
  }

  .content-text h2 {
    font-size: clamp(1.75rem, 5vw, 2.2rem);
    margin-bottom: 15px;
  }

  .content-text p {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .features {
    padding: 60px 0;
  }

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

  .feature-card {
    padding: 30px 20px;
    border-radius: 16px;
  }

  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
    margin-bottom: 20px;
    border-radius: 16px;
  }

  .feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
  }

  .feature-card p {
    font-size: 0.95rem;
  }

  .content-section {
    padding: 60px 0;
  }

  .footer-grid {
    gap: 30px;
    margin-bottom: 40px;
  }

  /* New Sections Mobile */
  .programs-grid { grid-template-columns: 1fr; }
  .proj-img-1 { height: 250px; transform: none; }
  .proj-img-2 { height: 250px; transform: none; }
  .projects-images { grid-template-columns: 1fr; }
  
  .sponsors-marquee { margin-top: 10px; }
  .sponsor-logo { font-size: 1.2rem; margin: 0 20px; }
  
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-filters { flex-direction: column; align-items: stretch; }
  .filter-btn { width: 100%; text-align: center; }
  
  .story-list-item { flex-direction: column; text-align: center; }
  .story-list-item img { width: 100%; height: 200px; }
  
  .reviews-carousel-wrapper { margin-top: 20px; }
  .reviews-track { gap: 0; }
  .review-card { padding: 30px 20px; min-width: 100%; }
  .review-card p { font-size: 1rem; }
  
  .news-grid { grid-template-columns: 1fr; }
  .quick-contact-box { padding: 30px 20px; }
  .qc-text h2 { font-size: 1.8rem; }
}
/* Logo visibility rules */
.logo .logo-scrolled { display: none; }
.logo .logo-default { display: inline-block; }
#header.scrolled .logo .logo-default { display: none; }
#header.scrolled .logo .logo-scrolled { display: inline-block; }

/* Background Utility Classes */
.bg-white-bg { background-color: var(--bg-secondary) !important; }
.bg-color-bg { background-color: var(--bg-primary) !important; }

/* Contact Form Styling */
.contact-container {
  background: var(--bg-card);
  padding: 40px;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}
.form-group {
  margin-bottom: 25px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px 20px;
  border-radius: 10px;
  border: 2px solid var(--border-color);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: all var(--transition-fast);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  background-color: var(--bg-primary);
  box-shadow: 0 0 0 4px var(--accent-light);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #9ca3af;
}
