/* ===== GREATER STARS OF TOMORROW INITIATIVE - Custom Styles ===== */

/* ---------- CSS Variables ---------- */
:root {
  --primary: #0d7a3e;
  --primary-dark: #064d27;
  --primary-light: #10a050;
  --accent: #c8a23a;
  --accent-light: #dbb84d;
  --accent-dark: #a6872e;
  --teal: #0d9488;
  --teal-light: #14b8a6;
  --warm: #f0faf4;
  --text: #1a2e1a;
  --text-light: #4a6a4a;
  --bg: #f7fdf9;
  --bg-alt: #eef8f1;
  --bg-dark: #082818;
  --gold-gradient: linear-gradient(135deg, #c8a23a, #dbb84d, #c8a23a);
  --hero-gradient: linear-gradient(135deg, rgba(0,0,0,0.45), rgba(0,0,0,0.35));
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---------- Three.js Canvas ---------- */
#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--primary-dark);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-gradient);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 900px;
}

/* ---------- Immersive Section Background ---------- */
.immersive-section {
  position: relative;
  overflow: hidden;
}

.immersive-section .immersive-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #000;
}

.immersive-section .immersive-bg img {
  position: absolute;
  inset: -5%;
  width: 110%;
  height: 110%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.8s ease;
  animation: kenBurns 20s ease-in-out infinite alternate;
}

.immersive-section .immersive-bg img.active {
  opacity: 1;
}

.immersive-section .immersive-bg img:nth-child(2) { animation-delay: -5s; animation-direction: alternate-reverse; }
.immersive-section .immersive-bg img:nth-child(3) { animation-delay: -10s; }
.immersive-section .immersive-bg img:nth-child(4) { animation-delay: -15s; animation-direction: alternate-reverse; }

.immersive-section .immersive-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.immersive-section > *:not(.immersive-bg):not(.immersive-overlay) {
  position: relative;
  z-index: 2;
}

/* Glass card over immersive background */
.glass-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

/* Left-aligned section headers */
.section-header-left {
  text-align: left;
}

.section-header-left .section-subtitle {
  margin: 0;
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  padding: 1rem 0;
}

.navbar.scrolled {
  background: rgba(6, 77, 39, 0.85) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
  padding: 0.5rem 0;
  backdrop-filter: blur(12px);
}

.nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.3s ease;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--accent-light);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--accent);
}

/* ---------- Buttons ---------- */
.btn-primary {
  background: var(--gold-gradient);
  color: var(--primary-dark);
  font-weight: 700;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(200, 162, 58, 0.4);
  color: var(--primary-dark);
}

.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: #fff;
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}

.btn-donate {
  background: var(--accent);
  color: var(--primary-dark);
  font-weight: 700;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  font-size: 0.9rem;
}

.btn-donate:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(200, 162, 58, 0.4);
  color: var(--primary-dark);
}

/* ---------- Section Styles ---------- */
.section-label {
  display: inline-block;
  background: rgba(13, 122, 62, 0.1);
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- Counter / Impact Cards ---------- */
.impact-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.impact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.impact-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 1.75rem;
}

.counter-value {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.1;
}

/* ---------- Objective Cards ---------- */
.objective-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.objective-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold-gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.objective-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.objective-card:hover::before {
  transform: scaleX(1);
}

.objective-number {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(13, 122, 62, 0.1);
  color: var(--accent-dark);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

/* ---------- Program Cards ---------- */
.program-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.4s ease;
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.program-card-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

/* ---------- Page Hero (non-home) ---------- */
.page-hero {
  background: var(--primary-dark);
  position: relative;
  padding: 10rem 0 5rem;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(200,162,58,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(13,122,62,0.1) 0%, transparent 50%);
}

/* ---------- Contact Form ---------- */
.form-input {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: white;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(30, 58, 95, 0.08);
}

textarea.form-input {
  resize: vertical;
  min-height: 140px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.7);
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--accent);
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.08);
}

/* ---------- Animations ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }
.fade-up-delay-5 { transition-delay: 0.5s; }
.fade-up-delay-6 { transition-delay: 0.6s; }

/* ---------- Mobile Menu ---------- */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6, 77, 39, 0.98);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  backdrop-filter: blur(20px);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  color: white;
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.mobile-menu a:hover {
  color: var(--accent);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

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

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .desktop-nav { display: none !important; }

  .section-title {
    font-size: 1.85rem;
  }

  .hero-content h1 {
    font-size: 2.2rem !important;
  }

  .counter-value {
    font-size: 2.25rem;
  }
}

/* ---------- Glow Pulse for Icons ---------- */
/* old glow-pulse replaced by sparkle system above */

.glow-icon {
  animation: glow-pulse 3s ease-in-out infinite;
}

/* ---------- Trust Badge ---------- */
.trust-badge {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  padding: 0.5rem 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.5rem;
}

/* ---------- Scroll Indicator ---------- */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce-down 2s ease-in-out infinite;
}

@keyframes bounce-down {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
  50% { transform: translateX(-50%) translateY(10px); opacity: 1; }
}

/* ---------- Page Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-star {
  width: 48px;
  height: 48px;
  animation: preloader-spin 1.2s ease-in-out infinite;
}

@keyframes preloader-spin {
  0% { transform: rotate(0deg) scale(1); opacity: 1; }
  50% { transform: rotate(180deg) scale(0.8); opacity: 0.6; }
  100% { transform: rotate(360deg) scale(1); opacity: 1; }
}

/* ---------- Back to Top Button ---------- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 90;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ---------- WhatsApp Floating Button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 90;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0.1); }
}

.whatsapp-float {
  animation: whatsapp-pulse 3s ease-in-out infinite;
}

/* ---------- Team Cards ---------- */
.team-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.75rem;
  font-weight: 800;
  color: white;
}

/* ---------- Donate Card ---------- */
.donate-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  border: 2px solid #e5e7eb;
  transition: all 0.3s ease;
}

.donate-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(13, 122, 62, 0.1);
}

/* ---------- Testimonial Cards ---------- */
.testimonial-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* ---------- Blog Cards ---------- */
.blog-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.blog-card-header {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Gallery ---------- */
.gallery-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.gallery-placeholder {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-filter {
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  border: 2px solid #e5e7eb;
  background: white;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-filter:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.gallery-filter.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary-dark);
}

/* ---------- Social Icons ---------- */
.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon:hover {
  background: var(--accent);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

/* ---------- Cookie Consent Banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(8, 40, 24, 0.97);
  backdrop-filter: blur(12px);
  padding: 1rem 0;
  z-index: 9998;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.cookie-banner.hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

/* ---------- Donation Progress Bar ---------- */
.donation-progress-bar {
  transition: width 2s ease-out;
}

/* ---------- Form Status Messages ---------- */
.form-status {
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  display: none;
}

.form-status.success {
  display: block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-status.error {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ---------- Parallax Sections ---------- */
.parallax-section {
  position: relative;
  overflow: hidden;
  background-color: var(--primary-dark);
}

.parallax-bg {
  position: absolute;
  inset: -20% 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
  z-index: 0;
}

.parallax-section .parallax-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0.4));
  z-index: 1;
}

.parallax-section .parallax-content {
  position: relative;
  z-index: 2;
}

/* ---------- Ken Burns Hero Slideshow ---------- */
.kenburns-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  background-color: #000;
}

.kenburns-slide {
  position: absolute;
  inset: -5%;
  width: 110%;
  height: 110%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease;
  animation: kenBurns 20s ease-in-out infinite alternate;
}

.kenburns-slide.active {
  opacity: 1;
}

@keyframes kenBurns {
  0% { transform: scale(1.05) translate(0, 0); }
  100% { transform: scale(1.2) translate(-2%, -2%); }
}

.kenburns-slide:nth-child(2) { animation-delay: -5s; animation-direction: alternate-reverse; }
.kenburns-slide:nth-child(3) { animation-delay: -10s; }
.kenburns-slide:nth-child(4) { animation-delay: -15s; animation-direction: alternate-reverse; }
.kenburns-slide:nth-child(5) { animation-delay: -3s; }

/* ---------- 3D Tilt Card ---------- */
.tilt-card {
  perspective: 1000px;
  transform-style: preserve-3d;
}

.tilt-card-inner {
  transition: transform 0.15s ease-out, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}

.tilt-card-inner:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* ---------- Zoom Reveal on Scroll ---------- */
.zoom-reveal {
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.zoom-reveal.revealed {
  opacity: 1;
  transform: scale(1);
}

/* ---------- Lazy Loading Images ---------- */
.lazy-img {
  opacity: 0;
  filter: blur(10px);
  transition: opacity 0.6s ease, filter 0.6s ease;
}

.lazy-img.loaded {
  opacity: 1;
  filter: blur(0);
}

/* ---------- Lightbox ---------- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.lightbox-overlay.active .lightbox-img {
  transform: scale(1);
}

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  z-index: 9001;
}

.lightbox-btn:hover { background: rgba(255,255,255,0.25); }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  z-index: 9001;
}

.lightbox-close:hover { background: rgba(255,255,255,0.25); }

.lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ---------- Gallery Masonry Grid ---------- */
.masonry-grid {
  columns: 4;
  column-gap: 1rem;
}

.masonry-grid .gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
}

.masonry-grid .gallery-item img {
  width: 100%;
  display: block;
  border-radius: 12px;
}

@media (max-width: 1024px) {
  .masonry-grid { columns: 3; }
}

@media (max-width: 768px) {
  .masonry-grid { columns: 2; }
  .parallax-bg { background-attachment: scroll !important; }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
  .lightbox-btn { width: 40px; height: 40px; font-size: 1.2rem; }
}

@media (max-width: 480px) {
  .masonry-grid { columns: 2; column-gap: 0.5rem; }
  .masonry-grid .gallery-item { margin-bottom: 0.5rem; }
}

/* ---------- Program Card Image Header ---------- */
.program-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* ---------- Parallax Float (decorative) ---------- */
.parallax-float {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* ---------- Gallery Image Caption Overlay ---------- */
.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: white;
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  border-radius: 0 0 12px 12px;
}

.tilt-card-inner:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

.tilt-card-inner {
  position: relative;
}

/* ---------- Gallery Slideshow Strip ---------- */
.gallery-slideshow {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 20px;
  margin-bottom: 2rem;
}

.gallery-slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.gallery-slideshow img.active {
  opacity: 1;
}

.gallery-slideshow .slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: white;
  z-index: 2;
}

/* ---------- Video Player ---------- */
.video-card {
  background: var(--bg);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(13,122,62,0.1);
  transition: all 0.3s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(13,122,62,0.15);
}

.video-card video {
  width: 100%;
  display: block;
}

.video-card .video-info {
  padding: 1.25rem;
}

/* ---------- Responsive: Small Mobile (≤ 380px) ---------- */
@media (max-width: 380px) {
  .masonry-grid { columns: 1; column-gap: 0.5rem; }
  .page-hero { padding: 7rem 0 3rem; }
  .page-hero h1 { font-size: 1.75rem !important; }
  .gallery-slideshow { height: 200px; }
  .gallery-slideshow .slide-caption { padding: 1rem; }
  .gallery-slideshow .slide-caption p.text-lg { font-size: 0.95rem; }
  .btn-primary, .btn-outline { padding: 0.7rem 1.5rem; font-size: 0.9rem; }
  .section-title { font-size: 1.5rem; }
  .hero-content h1 { font-size: 1.8rem !important; }
}

/* ---------- Responsive: Mobile (≤ 640px) ---------- */
@media (max-width: 640px) {
  .gallery-slideshow { height: 250px; border-radius: 12px; }
  .slideshow-controls { bottom: 0.75rem; right: 0.75rem; }
  .slideshow-controls button { width: 30px; height: 30px; font-size: 0.9rem; }
  .video-card .video-info { padding: 0.875rem; }
  .page-hero { padding: 8rem 0 3.5rem; }
}

/* ---------- Responsive: Tablet (768px - 1024px) ---------- */
@media (min-width: 768px) and (max-width: 1024px) {
  .gallery-slideshow { height: 350px; }
  .masonry-grid { columns: 3; }
}

/* ---------- Responsive: Desktop (1024px - 1440px) ---------- */
@media (min-width: 1024px) and (max-width: 1440px) {
  .gallery-slideshow { height: 420px; }
}

/* ---------- Large Screen Optimizations (24" monitors ~1920px) ---------- */
@media (min-width: 1440px) {
  .gallery-slideshow { height: 500px; }
  .section-title { font-size: 2.75rem; }
  .hero-content { max-width: 1000px; }
}

@media (min-width: 1920px) {
  .masonry-grid { columns: 5; }
  .max-w-7xl { max-width: 96rem; }
  .gallery-slideshow { height: 550px; }
  .section-title { font-size: 3rem; }
  .section-subtitle { font-size: 1.25rem; max-width: 800px; }
  .hero-content { max-width: 1100px; }
  .hero-content h1 { font-size: 4.2rem !important; }
  .page-hero h1 { font-size: 3.5rem !important; }
  .page-hero { padding: 12rem 0 6rem; }
  .navbar .max-w-7xl { max-width: 96rem; }
}

/* ---------- Ultra-wide (32" monitors ~2560px) ---------- */
@media (min-width: 2560px) {
  .masonry-grid { columns: 6; }
  .max-w-7xl { max-width: 120rem; }
  .section-title { font-size: 3.5rem; }
  .hero-content { max-width: 1300px; }
  .hero-content h1 { font-size: 5rem !important; }
  .page-hero h1 { font-size: 4rem !important; }
  .gallery-slideshow { height: 650px; }
  .section-subtitle { font-size: 1.35rem; max-width: 900px; }
  .page-hero { padding: 14rem 0 7rem; }
  .program-card-img { height: 280px; }
  body { font-size: 1.1rem; }
  .navbar .max-w-7xl { max-width: 120rem; }
  .glass-card { padding: 2.5rem; }
  .impact-card { padding: 2.5rem; }
  .testimonial-card, .glass-card { padding: 2.5rem; }
}

/* ---------- Gallery Slideshow Controls ---------- */
.slideshow-controls {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  gap: 0.5rem;
  z-index: 3;
}

.slideshow-controls button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  backdrop-filter: blur(4px);
}

.slideshow-controls button:hover {
  background: rgba(255,255,255,0.4);
}

/* ---------- Sparkle / Green glow effects ---------- */
@keyframes sparkle-glow {
  0%, 100% { box-shadow: 0 0 15px rgba(13,122,62,0.2); }
  50% { box-shadow: 0 0 30px rgba(13,122,62,0.4), 0 0 60px rgba(13,122,62,0.15); }
}

.sparkle {
  animation: sparkle-glow 3s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(13,122,62,0.2); }
  50% { box-shadow: 0 0 35px rgba(13,122,62,0.4); }
}
