/* ============================================================
   GALLERY.CSS — FULL FIXED VERSION
   ============================================================ */

html {
  overflow-x: hidden !important;
  max-width: 100% !important;
}

body {
  overflow-x: hidden !important;
  max-width: 100% !important;
  margin: 0 !important;
}

body.swal2-shown,
body.swal2-height-auto {
  padding-right: 0 !important;
  overflow-x: hidden !important;
  width: 100% !important;
}

html.swal2-shown {
  overflow-x: hidden !important;
}

/* ── CSS VARIABLES ── */
:root {
  --saffron: #ff9933;
  --saffron-lt: #ffb366;
  --saffron-dk: #e07800;
  --green: #138808;
  --green-lt: #1aad0a;
  --navy: #000080;
  --navy-lt: #0a0aaa;
  --navy-dk: #00004d;
  --white: #ffffff;
  --offwhite: #f5f5f0;
  --gray: #6b7280;
  --light-gray: #e5e5e5;
  --grad-saffron: linear-gradient(135deg, #ff9933, #e3892f);
  --grad-green: linear-gradient(135deg, #138808, #1aad0a);
  --grad-navy: linear-gradient(135deg, #000080, #0a0aaa);
  --font-head: "Cormorant Garamond", serif;
  --font-body: "Plus Jakarta Sans", sans-serif;
  --radius: 16px;
  --shadow-sm: 0 4px 20px rgba(0, 0, 80, 0.08);
  --shadow-md: 0 12px 40px rgba(0, 0, 128, 0.15);
  --shadow-lg: 0 24px 70px rgba(0, 0, 128, 0.18);
  --space-xl: clamp(60px, 8vw, 120px);
}

/* ── RESET ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--navy-dk);
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

::selection {
  background: var(--saffron);
  color: var(--white);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--saffron); border-radius: 4px; }

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── BACK TO TOP ── */
#back-to-top {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 50px;
  height: 50px;
  background: var(--grad-saffron);
  border: 2px solid var(--green);
  border-radius: 50%;
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s;
  z-index: 10000;
  pointer-events: none;
}
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#back-to-top:hover {
  background: var(--grad-green);
  transform: translateY(-4px);
}

/* ── MOBILE NAV ── */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: #111111;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255,153,51,0.08) 0%, transparent 50%),
    radial-gradient(circle at 85% 80%, rgba(19,136,8,0.06) 0%, transparent 50%);
  z-index: 10000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.4s, transform 0.4s;
}
.mobile-nav.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}
.mobile-nav a {
  font-family: var(--font-head);
  font-size: clamp(28px, 8vw, 42px);
  font-weight: 300;
  letter-spacing: 3px;
  color: #f0f0f0;
  transition: color 0.3s, letter-spacing 0.3s;
  position: relative;
}
.mobile-nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--grad-saffron);
  border-radius: 2px;
  transition: width 0.3s;
}
.mobile-nav a:hover { color: var(--saffron); letter-spacing: 5px; }
.mobile-nav a:hover::after { width: 100%; }

.mobile-nav-close {
  position: absolute;
  top: clamp(20px,4vw,32px);
  right: clamp(20px,4vw,32px);
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.35s, border-color 0.3s;
  z-index: 10000;
}
.mobile-nav-close:hover {
  background: var(--saffron);
  border-color: var(--saffron);
  transform: rotate(90deg) scale(1.1);
}

/* ── HEADER ── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.4s, box-shadow 0.4s;
}
header.scrolled {
  background: rgba(233,233,233,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 2px solid rgba(255,153,51,0.4);
  box-shadow: 0 4px 24px rgba(0,0,80,0.08);
}
header.scrolled .navsection ul li a { color: var(--navy-dk); }
header.scrolled .logosection h2 { color: var(--navy-dk); }
header.scrolled .hamburger span { background: var(--navy-dk); }

.navbar {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(20px,5vw,60px);
  height: clamp(64px,8vw,80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logosection { display: flex; align-items: center; gap: 14px; }
.logosection img {
  width: clamp(44px,5vw,54px);
  height: clamp(44px,5vw,54px);
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--saffron);
  transition: transform 0.6s, border-color 0.3s;
}
.logosection:hover img { transform: rotate(360deg); border-color: var(--green); }
.logosection h2 {
  font-family: var(--font-head);
  font-size: clamp(16px,2vw,22px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
  line-height: 1.2;
}
.navsection ul { display: flex; align-items: center; gap: clamp(16px,2.5vw,32px); }
.navsection ul li a {
  font-family: var(--font-body);
  font-size: clamp(13px,1.1vw,16px);
  font-weight: 500;
  color: var(--white);
  position: relative;
  transition: color 0.3s;
  padding-bottom: 4px;
  white-space: nowrap;
}
.navsection ul li a::after {
  content: "";
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--grad-saffron);
  border-radius: 2px;
  transition: width 0.3s;
}
.navsection ul li a:hover,
.navsection ul li a.active { color: var(--saffron); }
.navsection ul li a:hover::after,
.navsection ul li a.active::after { width: 100%; }

.join-btn {
  padding: clamp(10px,1.2vw,13px) clamp(18px,2.2vw,28px);
  background: var(--grad-saffron);
  color: var(--white);
  border: 2px solid transparent;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: clamp(13px,1.1vw,15px);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.35s;
  white-space: nowrap;
}
.join-btn:hover { background: var(--grad-green); transform: translateY(-3px); border-color: var(--white); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: 9999;
}
.hamburger span {
  display: block;
  width: 26px; height: 2.5px;
  background: #ffffff;
  border-radius: 3px;
  transition: all 0.35s ease;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── PAGE HERO ── */
.page-hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(100px,12vw,140px) clamp(20px,6vw,60px) clamp(80px,8vw,100px);
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  /* FIX: use background-image via inline style or keep this generic fallback */
  background: url(../images/gallery.png) center/cover no-repeat;
}
.page-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(20,20,20,0.85), rgba(0,0,0,0.92));
}
.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}
.page-hero-content h1 {
  font-family: var(--font-head);
  font-size: clamp(52px,8vw,96px);
  font-weight: 300;
  color: var(--saffron);
  margin-bottom: 20px;
  letter-spacing: 2px;
  line-height: 1;
}
.page-hero-content h1 em { font-style: italic; color: var(--white); }
.page-hero-content p {
  font-family: var(--font-body);
  font-size: clamp(15px,1.8vw,20px);
  line-height: 1.8;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.hero-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,153,51,0.3);
  border-radius: 50px;
  padding: 8px 20px;
  margin-bottom: 28px;
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}
.hero-breadcrumb a { color: var(--saffron); transition: color 0.3s; }
.hero-breadcrumb a:hover { color: var(--white); }
.hero-breadcrumb i { font-size: 10px; color: rgba(255,255,255,0.4); }

.hero-join-btn {
  padding: clamp(12px,1.5vw,16px) clamp(28px,3.5vw,44px);
  background: var(--grad-saffron);
  color: var(--white);
  border: 2px solid transparent;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: clamp(13px,1.1vw,15px);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.35s;
  box-shadow: 0 8px 28px rgba(255,153,51,0.4);
  letter-spacing: 0.5px;
}
.hero-join-btn:hover { background: var(--grad-green); transform: translateY(-3px); border-color: var(--white); }

/* ── SHARED SECTION LABELS ── */
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 14px;
  padding: 6px 18px;
  border: 1px solid rgba(255,153,51,0.3);
  border-radius: 50px;
  background: rgba(255,153,51,0.08);
}
.section-h2 {
  font-family: var(--font-head);
  font-size: clamp(30px,4.5vw,58px);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.05;
  letter-spacing: 0.5px;
}
.section-h2 em { font-style: italic; color: var(--saffron); }
.section-label { text-align: center; margin-bottom: clamp(40px,5vw,60px); }

/* ── GALLERY SECTION ── */
.gallery-section {
  padding: var(--space-xl) clamp(20px,6vw,80px);
  background: var(--white);
  /* FIX: isolate gallery section so nothing bleeds into sections below */
  position: relative;
  z-index: 1;
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  gap: clamp(8px,1.5vw,12px);
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: clamp(32px,4vw,50px);
}
.filter-tab {
  padding: clamp(8px,1vw,10px) clamp(16px,2vw,26px);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: clamp(12px,1.1vw,13px);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid rgba(0,0,128,0.12);
  background: transparent;
  color: var(--gray);
  letter-spacing: 0.5px;
}
.filter-tab:hover { border-color: var(--saffron); color: var(--saffron); }
.filter-tab.active {
  background: var(--grad-saffron);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(255,153,51,0.35);
}

/* Gallery Grid */
/* FIX: min-height prevents full collapse when all items hidden */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px,2vw,24px);
  min-height: 300px;
}

.gallery-item {
  background: var(--light-gray);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,153,51,0.15);
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
}
/* .gallery-item::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad-green);
  z-index: 2;
} */
.gallery-item::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-saffron);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
  z-index: 2;
}
.gallery-item:hover { transform: translateY(-8px); box-shadow: 0 24px 60px rgba(0,0,0,0.12); border-color: rgba(19,136,8,0.3); }
.gallery-item:hover::after { transform: scaleX(1); }
.gallery-item.hidden { display: none; }

.gallery-img-wrap {
  position: relative;
  overflow: hidden;
  height: clamp(200px,18vw,240px);
  width: 100%;
}
.gallery-img-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  display: block;
  max-width: 100% !important;
  transition: transform 0.6s;
}
.gallery-item:hover .gallery-img-wrap img { transform: scale(1.08); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,80,0.6), transparent);
  opacity: 0;
  transition: opacity 0.4s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { font-size: 32px; color: var(--white); }

.gallery-item-body { padding: clamp(16px,2vw,24px); }
.gallery-cat {
  font-family: var(--font-body);
  font-size: clamp(10px,1vw,12px);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 8px;
}
.gallery-item-body h3 {
  font-family: var(--font-head);
  font-size: clamp(18px,2vw,24px);
  font-weight: 600;
  color: var(--navy-dk);
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}
.gallery-item-body p {
  font-family: var(--font-body);
  font-size: clamp(13px,1.1vw,15px);
  line-height: 1.75;
  color: var(--gray);
  margin-bottom: 16px;
}
.donate-btn {
  padding: clamp(8px,1vw,10px) clamp(18px,2vw,24px);
  background: var(--grad-saffron);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: clamp(12px,1vw,13px);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.3px;
}
.donate-btn:hover { background: var(--grad-green); transform: translateY(-2px); }

/* ── VOLUNTEER SECTION ── */
.volunteer-section {
  padding: var(--space-xl) clamp(20px,6vw,80px);
  background: var(--light-gray);
  position: relative;
  z-index: 1;
}
.volunteer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(40px,6vw,60px);
  align-items: center;
}
.volunteer-img-wrap {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  border: 3px solid rgba(255,153,51,0.2);
}
.volunteer-img-wrap img {
  width: 100%;
  height: clamp(280px,35vw,380px);
  object-fit: cover;
  transition: transform 0.6s;
}
.volunteer-img-wrap:hover img { transform: scale(1.05); }

.volunteer-content { display: flex; flex-direction: column; gap: 18px; }
.vol-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--grad-saffron);
  padding: 6px 18px;
  border-radius: 50px;
  width: fit-content;
}
.vol-badge i { color: var(--white); font-size: 14px; }
.vol-badge span {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.volunteer-content h3 {
  font-family: var(--font-head);
  font-size: clamp(24px,3vw,42px);
  font-weight: 500;
  color: var(--navy-dk);
  letter-spacing: 0.5px;
  line-height: 1.2;
}
.volunteer-content > p {
  font-family: var(--font-body);
  font-size: clamp(14px,1.1vw,16px);
  line-height: 1.85;
  color: var(--gray);
}

/* Accordion */
.accordion-item {
  background: var(--white);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,0,128,0.1);
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 10px rgba(0,0,80,0.06);
}
.accordion-item:hover { border-color: rgba(255,153,51,0.3); }
.accordion-header {
  padding: clamp(12px,1.5vw,16px) clamp(16px,2vw,22px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: clamp(13px,1.1vw,14px);
  font-weight: 600;
  color: var(--navy-dk);
}
.accordion-header i { font-size: 13px; color: var(--saffron); transition: transform 0.3s; }
.accordion-item.open .accordion-header i { transform: rotate(45deg); }
.accordion-item.open { border-color: rgba(255,153,51,0.4); box-shadow: 0 4px 20px rgba(255,153,51,0.1); }
.accordion-body {
  padding: 0 clamp(16px,2vw,22px);
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s;
  font-family: var(--font-body);
  font-size: clamp(13px,1.1vw,15px);
  line-height: 1.8;
  color: var(--gray);
}
.accordion-item.open .accordion-body { max-height: 200px; padding: 0 clamp(16px,2vw,22px) 16px; }

/* ── IMPACT STATS SECTION ── */
/* FIX: white background to visually separate from volunteer section (both were light-gray — they merged) */
.impact-stats-section {
  padding: var(--space-xl) clamp(20px,6vw,80px);
  background: var(--white);
  border-top: 1px solid rgba(255,153,51,0.15);
  position: relative;
  z-index: 1;
}

/* FIX: two-column layout — carousel left, cards right */
.impact-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

/* FIX: 2x2 card grid on right side, no top margin */
.impact-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px,2vw,20px);
  margin-top: 0;
}

/* FIX: cards centered with flex */
.impact-stat-card {
  background: var(--offwhite);
  border-radius: 24px;
  padding: clamp(28px,4vw,44px) clamp(16px,2vw,24px);
  text-align: center;
  border: 2px solid rgba(255,153,51,0.4);
  transition: all 0.4s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  /* FIX: flex centering for number + label */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.impact-stat-card::before {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 0;
  background: var(--grad-green);
  transition: height 0.5s;
  z-index: 0;
}
.impact-stat-card:hover { transform: translateY(-10px); box-shadow: 0 24px 60px rgba(0,0,0,0.12); }
.impact-stat-card:hover::before { height: 100%; }

.impact-stat-card h3 {
  font-family: var(--font-head);
  font-size: clamp(34px,4vw,50px);
  font-weight: 600;
  color: var(--saffron);
  margin-bottom: 8px;
  line-height: 1;
  position: relative;
  z-index: 1;
  transition: color 0.4s;
}
.impact-stat-card:hover h3 { color: var(--white); }

.impact-stat-card p {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--gray);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  transition: color 0.4s;
  margin: 0;
}
.impact-stat-card:hover p { color: rgba(255,255,255,0.9); }

/* ── HERO CAROUSEL ── */
.herosection-right {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-carousel {
  position: relative;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.28);
  border: 2px solid rgba(255,153,51,0.2);
  height: clamp(260px,35vw,480px);
}

.hero-carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.77,0,0.175,1);
  will-change: transform;
}

.hero-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}

/* FIX: remove inline width/height from img tags — let CSS control fully */
.hero-slide img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 6s ease;
  max-width: 100% !important;
  max-height: 100% !important;
} 

.hero-slide.active img { transform: scale(1.04); }

.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(255,153,51,0.18) 100%);
  pointer-events: none;
}

/* Carousel arrow buttons */
.hero-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.92);
  border: 2px solid rgba(255,153,51,0.3);
  border-radius: 50%;
  color: var(--navy-dk);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-carousel-btn:hover {
  background: var(--saffron);
  border-color: var(--saffron);
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}
.hero-carousel-btn.prev { left: 12px; }
.hero-carousel-btn.next { right: 12px; }

/* Dot indicators */
/* FIX: with 18 dots they overflow — shrink them */
.hero-carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
  align-items: center;
  /* flex-wrap: wrap;
  justify-content: center;
  max-width: 90%; */
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s;
  flex-shrink: 0;
}
.hero-dot.active {
  background: var(--saffron);
  width: 22px;
  border-radius: 4px;
}

/* Slide counter */
.hero-carousel-counter {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 50px;
  z-index: 10;
  backdrop-filter: blur(6px);
  letter-spacing: 1px;
}

/* ── FOOTER ── */
footer { background: var(--light-gray); }
.footer-bg { padding: clamp(40px,5vw,60px) clamp(16px,5vw,80px) 0; }
.footer-top {
  background-color: var(--saffron-dk);
  border-radius: 24px;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
  padding: clamp(32px,4vw,50px) clamp(20px,4vw,60px);
  position: relative;
  top: 75px;
  z-index: 2;
  box-shadow: 0 20px 60px rgba(255,153,51,0.35);
  overflow: hidden;
}
/* .footer-top::before {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad-green);
} */
.address { display: flex; align-items: center; gap: 18px; color: var(--white); }
.address-icon {
  width: 56px; height: 56px;
  background: rgba(255,255,255,0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
  border: 1px solid rgba(255,255,255,0.3);
}
.address:hover .address-icon { background: rgba(255,255,255,0.35); transform: scale(1.1) rotate(8deg); }
.address-right p:first-child { font-size: 11px; font-weight: 700; letter-spacing: 2px; opacity: 0.8; }
.address-right p:last-child { font-size: clamp(12px,1.1vw,15px); font-weight: 500; letter-spacing: 0.8px; }

.main-footer {
  background: var(--navy-dk);
  color: var(--white);
  padding: clamp(100px,9vw,130px) clamp(16px,5vw,80px) clamp(40px,4vw,60px);
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: clamp(30px,4.5vw,60px);
  border-top: 1px solid rgba(255,153,51,0.15);
  position: relative;
  z-index: 1;
}
.main-footer-left { display: flex; flex-direction: column; gap: 18px; }
.main-footer-left h2 {
  font-family: var(--font-head);
  font-size: clamp(22px,2.5vw,32px);
  font-weight: 600;
  color: var(--saffron);
  letter-spacing: 0.5px;
}
.main-footer-left h3 {
  font-size: clamp(14px,1.3vw,18px);
  color: rgba(255,255,255,0.5);
  font-weight: 400;
  max-width: 334px;
  line-height: 1.7;
  font-style: italic;
}
.social-media-icons { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.social-icon-link {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s;
  cursor: pointer;
}
.social-icon-link:hover { background: var(--green); border-color: var(--green); transform: translateY(-5px) rotate(-5deg); }
.social-icon-link:hover i { color: var(--white) !important; }

.main-footer-middle h3,
.main-footer-right h3 {
  font-family: var(--font-head);
  font-size: clamp(18px,1.8vw,22px);
  font-weight: 600;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 14px;
  color: var(--saffron);
  letter-spacing: 0.5px;
}
.main-footer-middle h3::after,
.main-footer-right h3::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 36px; height: 2px;
  background: var(--grad-green);
  border-radius: 2px;
}
.main-footer-middle ul { display: flex; flex-direction: column; gap: 12px; }
.main-footer-middle ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(13px,1.2vw,16px);
  color: rgba(255,255,255,0.65);
  cursor: pointer;
  transition: all 0.3s;
}
.main-footer-middle ul li:hover { color: var(--green-lt); transform: translateX(6px); }
.main-footer-middle ul li i { color: var(--saffron); font-size: 14px; }
.main-footer-middle ul li:hover i { color: var(--green); }

.footer-right { display: flex; flex-direction: column; gap: 14px; }
.info {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(13px,1.1vw,15px);
  color: rgba(255,255,255,0.65);
  cursor: pointer;
  transition: color 0.3s;
}
.info:hover { color: var(--white); }
.info i { color: var(--saffron); width: 20px; flex-shrink: 0; }
.info:hover i { color: var(--green-lt); }

.copyrights { background: var(--saffron-dk); border-top: 1px solid rgba(255,255,255,0.06); }
.copyrights-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px clamp(16px,5vw,80px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  font-size: 14px;
}

/* ── WHATSAPP ── */
.wa-wrapper {
  position: fixed;
  bottom: 30px; right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none !important;
  width: 58px; height: 58px;
}
.wa-popup {
  position: absolute;
  bottom: 70px; right: 0;
  pointer-events: none;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 40px rgba(0,0,0,.18), 0 2px 10px rgba(0,0,0,.08);
  width: clamp(270px,80vw,320px);
  overflow: hidden;
  transform: translateY(20px) scale(0.92);
  opacity: 0;
  visibility: hidden;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), opacity .35s ease, visibility .4s;
  transform-origin: bottom right;
}
.wa-popup.visible {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.wa-popup-header {
  background: #25D366;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}
.wa-popup-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.5);
  font-size: 20px;
  color: #fff;
}
.wa-popup-info { flex: 1; }
.wa-popup-info h4 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.wa-popup-info span { font-size: 11px; color: rgba(255,255,255,.85); display: flex; align-items: center; gap: 5px; }
.wa-online-dot {
  width: 7px; height: 7px;
  background: #fff;
  border-radius: 50%;
  display: inline-block;
  animation: wa-pulse 1.8s infinite;
}
@keyframes wa-pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:.5; transform:scale(.7); }
}
.wa-popup-close {
  position: absolute;
  top: 10px; right: 12px;
  background: none; border: none;
  color: rgba(255,255,255,.8);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color .2s;
  pointer-events: auto !important;
}
.wa-popup-close:hover { color: #fff; }
.wa-popup-body { padding: 16px 18px 18px; background: #e5ddd5; }
.wa-chat-bubble {
  background: #fff;
  border-radius: 0 12px 12px 12px;
  padding: 10px 14px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #303030;
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
  position: relative;
  max-width: 90%;
  animation: wa-bubble-in .5s ease .15s both;
}
@keyframes wa-bubble-in {
  from { opacity:0; transform:translateY(8px); }
  to { opacity:1; transform:translateY(0); }
}
.wa-chat-bubble::before {
  content: '';
  position: absolute;
  top: 0; left: -8px;
  border: 8px solid transparent;
  border-top-color: #fff;
  border-left: 0;
}
.wa-chat-time { font-size: 10px; color: #999; text-align: right; margin-top: 4px; }
.wa-popup-cta { padding: 12px 18px 16px; background: #fff; }
.wa-popup-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background .3s, transform .25s;
  letter-spacing: .3px;
  pointer-events: auto !important;
}
.wa-popup-btn:hover { background: #1ebe5d; transform: translateY(-2px); }
.wa-popup-btn i { font-size: 16px; }
.wa-float-btn {
  width: 58px; height: 58px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 6px 24px rgba(37,211,102,.45), 0 2px 8px rgba(0,0,0,.15);
  cursor: pointer;
  border: none;
  transition: transform .3s, background .3s, box-shadow .3s;
  position: relative;
  text-decoration: none;
  pointer-events: auto !important;
}
.wa-float-btn:hover { background: #1ebe5d; transform: scale(1.12) rotate(-8deg); box-shadow: 0 10px 32px rgba(37,211,102,.55); }
.wa-float-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 3px solid rgba(37,211,102,.5);
  animation: wa-ring 2.2s ease-out infinite;
  pointer-events: none !important;
}
@keyframes wa-ring {
  0% { transform:scale(1); opacity:.8; }
  100% { transform:scale(1.55); opacity:0; }
}
.wa-notif-dot {
  position: absolute;
  top: 2px; right: 2px;
  width: 14px; height: 14px;
  background: #FF4444;
  border-radius: 50%;
  border: 2px solid #fff;
  font-size: 8px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  animation: wa-notif-bounce .6s ease infinite alternate;
  pointer-events: none;
}
@keyframes wa-notif-bounce {
  from { transform:scale(1); }
  to { transform:scale(1.2); }
}
.wa-tooltip {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: #303030;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  padding: 7px 14px;
  border-radius: 8px;
  pointer-events: none !important;
  opacity: 0;
  transition: opacity .25s, transform .25s;
}
.wa-tooltip::after {
  content: '';
  position: absolute;
  top: 50%; right: -6px;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: #303030;
  border-right: 0;
}
.wa-float-btn:hover .wa-tooltip { opacity: 1; transform: translateY(-50%) translateX(0); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
  .volunteer-grid { grid-template-columns: 1fr; }
  .volunteer-img-wrap { display: none; }
  .impact-stats-grid { grid-template-columns: repeat(2,1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .main-footer { grid-template-columns: 1fr 1fr; }
  .hero-carousel { height: clamp(240px,45vw,380px); }
}

@media (max-width: 768px) {
  .navbar { padding: 0 clamp(16px,4vw,24px); }
  .navsection, .join-btn { display: none; }
  .hamburger { display: flex; }
  .logosection h2 { font-size: clamp(12px,3.5vw,16px); }
  .gallery-grid { grid-template-columns: 1fr; }
  .impact-body { grid-template-columns: 1fr; }
  .impact-stats-grid { grid-template-columns: repeat(2,1fr); }
  .hero-carousel { height: 300px !important; border-radius: 18px !important; }
  .hero-carousel-btn { width: 34px; height: 34px; font-size: 12px; }
  .footer-top { padding: 32px 24px; top: 125px; }
  .main-footer { grid-template-columns: 1fr; padding-top: 170px; }
  #back-to-top { right: 18px; bottom: 90px; width: 44px; height: 44px; font-size: 16px; }
  .wa-wrapper { right: 14px; bottom: 18px; width: 52px; height: 52px; }
  .wa-float-btn { width: 52px; height: 52px; font-size: 26px; }
  .wa-popup { width: min(300px, calc(100vw - 28px)); bottom: 64px; }
  .hero-carousel-dots .hero-dot {
        /* display: none; */
        width: 7px;
        height: 7px;
    }
    .hero-carousel-dots .hero-dot.active{
      width: 18px;
    }
    .hero-carousel-dots .hero-dot{
      display: block !important;
    }

  .hero-carousel-dots .hero-dot:nth-child(1),
  .hero-carousel-dots .hero-dot:nth-child(2),
  .hero-carousel-dots .hero-dot:nth-child(3),
  .hero-carousel-dots .hero-dot:nth-child(4),
  .hero-carousel-dots .hero-dot:nth-child(5),
  .hero-carousel-dots .hero-dot:nth-child(6) {
      display: block;
  }
}

@media (max-width: 480px) {
  .page-hero-content h1 { font-size: clamp(38px,12vw,56px); }
  .impact-stats-grid { grid-template-columns: 1fr 1fr; }
  .copyrights-section { text-align: center; flex-wrap: wrap; font-size: 12px; }
  .footer-top { gap: 20px; padding: 28px 16px; }
  .wa-wrapper { right: 12px; bottom: 16px; width: 50px; height: 50px; }
  .wa-float-btn { width: 50px; height: 50px; font-size: 22px; }
  .wa-popup { bottom: 62px; }
  #back-to-top { width: 42px; height: 42px; right: 14px; bottom: 80px; }
  .hero-carousel{height: 240px !important;}
}

@media (max-height: 500px) and (orientation: landscape) {
  .mobile-nav a { font-size: 24px; }
  .mobile-nav { gap: 20px; }
}

@media print {
  header, footer, .wa-wrapper, #back-to-top, .mobile-nav { display: none !important; }
  body { background: white; color: black; }
}




/* PRELOADER */
#pageLoader {
  position: fixed;
  inset: 0;
  background: #111111;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#pageLoader.hidden {
  opacity: 0;
  visibility: hidden;
}
.loader-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.loader-logo img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid #FF9933;
  animation: loaderPulse 1s ease-in-out infinite alternate;
}
@keyframes loaderPulse {
  from { transform: scale(1);    opacity: 1;   }
  to   { transform: scale(1.1); opacity: 0.7; }
}
.loader-bar {
  width: 160px;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
  overflow: hidden;
}
.loader-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #FF9933, #e3892f);
  border-radius: 4px;
  animation: loaderProgress 1.5s ease forwards;
}
@keyframes loaderProgress {
  0%   { width: 0%; }
  60%  { width: 75%; }
  100% { width: 95%; }
}





















@media (max-width: 480px) {
    .footer-top {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 24px 16px !important;
        border-radius: 12px;
    }

    .address {
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
    }

    .address-right p {
        font-size: 12px;
        word-break: break-word;
    }

    .info a,
    .address-right a {
        word-break: break-all;
        overflow-wrap: break-word;
    }

    .main-footer {
        padding: 170px 16px 32px !important;
    }

    .copyrights-section {
        padding: 16px;
        font-size: 12px;
        text-align: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .herosection-right,
    .impact-body {
        overflow: hidden;
        max-width: 100%;
    }
    .hero-carousel {
        overflow: hidden !important;
        max-width: 100% !important;
    }
}






/* ══════════════════════════════════
   CAROUSEL OVERFLOW FIX
   Forces one slide at a time, all
   images same size regardless of
   their original dimensions
══════════════════════════════════ */

/* Carousel container — must not overflow */
.hero-carousel {
    overflow: hidden !important;
    width: 100% !important;
    position: relative !important;
}

/* Track — full width, flex row */
.hero-carousel-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    height: 100% !important;
    will-change: transform;
    transition: transform 0.7s cubic-bezier(0.77, 0, 0.175, 1) !important;
}

/* Each slide — exactly 100% of carousel width, never more */
.hero-slide {
    min-width: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
    position: relative !important;
}

/* All images — fill the slide completely */
.hero-slide img {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
}