/* Colors */
:root {
  --green: #228b22;
  --gold: #daa520;
  --pink: #ffc0cb;
  --light: #f9f9f9;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-family: "Open Sans", sans-serif;
  color: #333;
  line-height: 1.6;
  background: #fff;
  overflow-x: hidden;
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
  color: #228b22;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px; /* Tighter on mobile for full-width feel */
  }
}

.text-center {
  text-align: center;
}

/* Header */
/* ─────────────── Modern & Fully Responsive Header ─────────────── */

/* Header */
.header {
  background: var(--gold);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: background 0.3s ease;
}

/* Container */
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Logo */
.logo img {
  height: 70px; /* Smaller for better balance */
  width: auto;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  transition: transform 0.4s ease;
}

.logo img:hover {
  transform: scale(1.08);
}

/* Navigation */
.nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.nav-list a {
  color: #111;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  padding: 8px 4px;
  transition: color 0.3s ease;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--green);
}

.nav-list a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-list a:hover::after,
.nav-list a.active::after {
  width: 60%;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 180px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  padding: 12px 0;
  margin-top: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  color: #333;
  font-size: 0.95rem;
}

.dropdown-menu li a:hover {
  background: #f8f9fa;
  color: var(--green);
}

/* Right Side: Donate + Toggle */
.header-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-donate {
  padding: 12px 36px;
  font-size: 1.05rem;
  font-weight: 600;
  background: var(--green);
  color: white;
  border-radius: 9999px;
  box-shadow: 0 6px 20px rgba(30,77,30,0.2);
  transition: all 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}

.nav-donate:hover {
  background: #164016;
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(30,77,30,0.3);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--green);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.nav-toggle:hover {
  transform: rotate(90deg);
}

.mobile-menu {
  display: none;
}

/* ─────────────── Mobile Menu ─────────────── */
@media (max-width: 1024px) {
  /* container */
  .header-container {
    padding: 0 20px;
  }

  /* Hide desktop nav */
  .nav {
    display: none;
  }

  /* Show hamburger */
  .nav-toggle {
    display: inline-flex; 
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
  }

    /* Mobile menu container */
  .mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--gold); 
    border-top: 2px solid var(--foundation-green);
    box-shadow: 0 10px 15px rgba(0,0,0,0.15);
    z-index: 1000;
    transform: translateY(-10px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .mobile-menu.active {
    display: block;
    transform: translateY(0);
    opacity: 1;
  }

  /* Menu list */
  .mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .mobile-menu-list a,
  .mobile-dropdown .dropdown-toggle {
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff; /* White text on purple */
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    transition: background 0.3s;
  }

  .mobile-menu-list a:hover,
  .mobile-dropdown .dropdown-toggle:hover {
    background: var(--foundation-green);
    color: var(--foundation-purple);
  }

   /* Mobile dropdown */
  .mobile-dropdown .dropdown-toggle {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: #374151;
    text-align: left;
    width: 100%;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .mobile-dropdown-menu {
    display: none;
    flex-direction: column;
    margin-top: 0.5rem;
    padding-left: 1rem;
  }

  .mobile-dropdown-menu.active {
    display: flex;
  }
}

/* Global Buttons */
.btn {
  padding: 15px 65px;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.4s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .btn {
    padding: 14px 50px;
    font-size: 1.1rem;
  }
  
}

.btn-primary {
  background: #f5aa1d;
  color: white;
}

.btn-primary:hover {
  background: #fda502;
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(34, 139, 34, 0.4);
}

.btn-secondary {
  background: var(--gold);
  color: #333;
}

.btn-secondary:hover {
  background: #c4941b;
  transform: translateY(-5px);
}

.btn-outline {
  border: 3px solid white;
  color: white;
  background: transparent;
}

.btn-outline:hover {
  background: white;
  color: var(--green);
}

/* ====================== GALLERY HERO - STRONG FIX ====================== */
.gallery-hero {
    position: relative !important;
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    color: white !important;
    overflow: hidden !important;
    z-index: 1;
}

/* Background Image */
.hero-bg {
    position: absolute !important;
    inset: 0 !important;
    z-index: -2 !important;
}

.hero-bg img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center 40% !important;
}

/* Overlay */
.hero-overlay {
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.35) 0%,
        rgba(0,0,0,0.65) 55%,
        rgba(0,0,0,0.88) 100%
    ) !important;
    z-index: -1 !important;
}

/* Content */
.hero-content {
    position: relative !important;
    z-index: 2 !important;
    padding: 0 20px;
}

.badge {
    display: inline-block !important;
    background: rgba(255,255,255,0.25) !important;
    padding: 10px 28px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    margin-bottom: 20px !important;
}

.gallery-hero h1 {
    font-family: 'Playfair Display', serif !important;
    font-size: clamp(2.8rem, 8vw, 5rem) !important;
    line-height: 1.1 !important;
    margin-bottom: 16px !important;
    text-shadow: 0 4px 25px rgba(0,0,0,0.7) !important;
}

.hero-tagline {
    font-size: clamp(1.25rem, 4.5vw, 1.7rem) !important;
    max-width: 720px !important;
    margin: 0 auto 40px !important;
    font-weight: 500 !important;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute !important;
    bottom: 50px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    font-size: 2.2rem !important;
    opacity: 0.8 !important;
    animation: bounce 2.8s infinite !important;
}

@keyframes bounce {
    0%, 20% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 18px); }
    100% { transform: translate(-50%, 0); }
}

/* ====================== GALLERY FILTER SECTION ====================== */
.filter-section {
    background: #f8fafc;
    padding: 25px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-bottom: 1px solid #e2e8f0;
}

.filter-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
    padding: 0 10px;
}

.filter-btn {
    padding: 12px 24px;
    border: 2px solid #e2e8f0;
    background: white;
    color: #475569;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 1rem;
}

.filter-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.filter-btn.active {
    background: var(--gold);
    color: white;
    border-color: var(--gold);
}

/* ====================== RESPONSIVE ====================== */
@media (max-width: 768px) {
    .filter-bar {
        gap: 10px;
        padding: 0 5px;
    }
    
    .filter-btn {
        padding: 10px 18px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .filter-section {
        padding: 20px 0;
    }

    .filter-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
        scrollbar-width: none;
    }
    
    .filter-bar::-webkit-scrollbar {
        display: none;
    }
    
    .filter-btn {
        flex-shrink: 0;
    }
}

/* ====================== MODERN GALLERY DESIGN ====================== */
.gallery-section {
    padding: 100px 0 140px;
    background: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
}

/* Event Card */
.gallery-event {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    transition: all 0.5s ease;
}

.gallery-event:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(159, 18, 57, 0.18);
}

/* Hero Image */
.event-hero-image {
    height: 340px;
    position: relative;
    overflow: hidden;
}

.event-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.gallery-event:hover .event-hero-image img {
    transform: scale(1.1);
}

.event-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
}

/* Content */
.event-content {
    padding: 28px 28px 20px;
}

.event-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #1e2937;
}

.event-meta {
    color: #64748b;
    font-size: 0.98rem;
    margin-bottom: 8px;
}

.impact {
    color: #10b981;
    font-weight: 500;
    margin-bottom: 18px;
}

.chapter-tag {
    background: #f1f5f9;
    color: #475569;
    padding: 5px 16px;
    border-radius: 30px;
    font-size: 0.95rem;
    display: inline-block;
    margin-bottom: 20px;
}

/* Thumbnails */
.event-thumbnails {
    padding: 0 28px 28px;
}

.thumb-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
}

.thumb-scroll::-webkit-scrollbar {
    display: none;
}

.gallery-thumb {
    width: 95px;
    height: 95px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid #f1f5f9;
    transition: all 0.3s;
}

.gallery-thumb:hover {
    border-color: var(--gold);
    transform: scale(1.08);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.learn-more-btn {
    display: inline-block;
    margin: 0 28px 28px;
    background: var(--gold);
    color: white;
    border-radius: 50px;
    padding: 14px 36px;
    font-size: 1.05rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    align-self:center;
    justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .event-hero-image {
        height: 280px;
    }
}

@media (max-width: 480px) {
    .event-hero-image {
        height: 220px;
    }
    
    .event-content h3 {
        font-size: 1.3rem;
    }
    
    .learn-more-btn {
        padding: 12px 28px;
        font-size: 1rem;
    }
}

/* ====================== LIGHTBOX  FOR IMAGE ZOOM ====================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    overflow: auto;
}

.lightbox-content {
    position: relative;
    max-width: 95%;
    max-height: 95%;
    text-align: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 10px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    opacity: 0.8;
    line-height: 1;
}

.lightbox-close:hover {
    opacity: 1;
}

/* Footer */
.footer {
  background: #1a3d1a; /* Deep green for elegance */
  color: white;
  padding: 80px 0 30px;
  margin-top: 50px;
}

.footer-container {
  max-width: 1400px;
  padding: 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;
  margin-bottom: 50px;
}

.footer-col h4 {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background: var(--gold);
}

.footer-logo img {
  height: 100px;
  border-radius: 50%;
  border: 4px solid var(--gold);
  margin-bottom: 20px;
}

.footer-desc {
  font-size: 0.8rem;
  line-height: 1.7;
  opacity: 0.9;
  margin-bottom: 15px;
}

.tax-info {
  font-size: 0.6rem;
  opacity: 0.8;
  font-style: italic;
}

.footer-links,
.footer-contact {
  list-style: none;
}

.footer-links a,
.footer-contact li {
  margin-bottom: 12px;
  display: block;
  color: #ddd;
  transition: color 0.3s;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-contact i {
  color: var(--gold);
  margin-right: 10px;
  width: 20px;
}

.social-links {
  margin-top: 20px;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  text-align: center;
  line-height: 40px;
  border-radius: 50%;
  margin-right: 10px;
  font-size: 1.2rem;
  transition: all 0.3s;
}

.social-links a:hover {
  background: var(--gold);
  color: #333;
  transform: translateY(-5px);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.newsletter-form input {
  padding: 14px 20px;
  border-radius: 50px;
  border: none;
  font-size: 1rem;
  outline: none;
}

.newsletter-form .btn {
  padding: 14px;
  font-size: 1.1rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-bottom a {
  color: var(--gold);
  text-decoration: underline;
}

.footer-credit {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-credit a {
  color: var(--gold);
  text-decoration: underline;
}

/* Mobile */
@media (max-width: 768px) {
  .footer {
    padding: 60px 0 30px;
  }
  .footer-grid {
    gap: 40px;
    text-align: center;
  }
  .footer-col h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .newsletter-form {
    align-items: center;
  }
  .newsletter-form input {
    width: 100%;
    max-width: 300px;
  }
}