/* 
Theme: SMILE
 */


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

body {
  font-family: "Segoe UI", "Poppins", "Helvetica Neue", Arial, sans-serif;
  padding-top: 120px;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ===== Shared section container ===== */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-left: 60px;
  padding-right: 60px;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: linear-gradient(
    100deg,
    #fbeee0 0%,
    #fdf6ee 20%,
    #fbfaf5 40%,
    #f2f8f1 60%,
    #e9f5ec 80%,
    #e7f2f6 100%
  );
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(28, 58, 82, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 5px;
  padding-bottom: 5px;
}

/* ===== Brand / logo ===== */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.brand-logo {
  height: 110px;
  width: auto;
  display: block;
}

/* ===== Navigation ===== */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 40px;
}

.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: #2c3e50;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: #2f9e63;
}

.nav-close {
  display: none;
}

/* ===== Nav toggle (hamburger) ===== */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: #1c3a52;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
  display: none;
}

/* ===== Volunteer button ===== */
.btn-volunteer {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 12px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6fc26f 0%, #2f8f4e 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(47, 143, 78, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-volunteer:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(47, 143, 78, 0.4);
}

.icon-heart {
  width: 16px;
  height: 16px;
  fill: #ffffff;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  height: 700px;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
  background-color: #16324a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.4s ease, transform 8s linear;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide:nth-child(1) { background-image: url("assets/images/hero4.jpg"); }
.hero-slide:nth-child(2) { background-image: url("assets/images/hero2.jpg"); }
.hero-slide:nth-child(3) { background-image: url("assets/images/hero3.jpg"); }

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: #ffffff96;
}

.hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 260px;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.65) 55%,
    #ffffff 100%
  );
}

.hero-container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 800px;
}

.hero-badge,
.hero-text,
.hero-actions {
  opacity: 0;
  transform: translateY(26px) scale(0.97);
  filter: blur(6px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero.in-view .hero-badge { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); transition-delay: 0.1s; }
.hero.in-view .hero-text { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); transition-delay: 0.7s; }
.hero.in-view .hero-actions { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); transition-delay: 0.9s; }

.heading-line-wrap {
  display: block;
  overflow: hidden;
}

.heading-line {
  display: block;
  transform: translateY(115%) rotate(1.5deg);
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero.in-view .heading-line { transform: translateY(0) rotate(0); }

.heading-line-wrap:nth-child(1) .heading-line { transition-delay: 0.25s; }
.heading-line-wrap:nth-child(2) .heading-line { transition-delay: 0.4s; }
.heading-line-wrap:nth-child(3) .heading-line { transition-delay: 0.55s; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
  color: #3d5266;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.badge-icon {
  width: 14px;
  height: 14px;
  fill: #2f9e63;
  flex-shrink: 0;
}

.hero-heading {
  font-family: "Playfair Display", "Georgia", serif;
  font-weight: 500;
  font-size: 70px;
  line-height: 1.08;
  color: #1c3a52;
  margin-bottom: 24px;
}

.heading-accent {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(90deg, #2f9e63, #3f8f9a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text {
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: #4a5b6b;
  max-width: 480px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  background: linear-gradient(120deg, #16324a 0%, #1e4a5a 60%, #2c7368 100%);
  color: #ffffff;
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 10px 22px rgba(22, 50, 74, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(22, 50, 74, 0.36);
}

.icon-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.btn-primary:hover .icon-arrow {
  transform: translateX(3px);
}

.hero .btn-volunteer {
  padding: 14px 28px;
  font-size: 15px;
}

.hero-dots {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: -50px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 22px;
  height: 5px;
  border: none;
  border-radius: 3px;
  background: rgba(28, 58, 82, 0.25);
  cursor: pointer;
  padding: 0;
  transition: width 0.3s ease, background 0.3s ease;
}

.dot.active {
  width: 38px;
  background: #1c3a52;
}

/* ===== About ===== */
.about {
  background: #ffffff;
  padding: 80px 0;
}

.about-grid {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 72px;
}

.about-content {
  flex: 1 1 0;
  min-width: 0;
  transform: translateX(-36px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.about.in-view .about-content {
  opacity: 1;
  transform: translateX(0);
}

.section-label {
  display: inline-block;
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #2f9e63;
  margin-bottom: 20px;
}

.about-heading {
  font-family: "Playfair Display", "Georgia", serif;
  font-weight: 500;
  font-size: 52px;
  line-height: 1.2;
  color: #1c3a52;
  margin-bottom: 24px;
}

.about-text {
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: #4a5b6b;
  max-width: 520px;
  margin-bottom: 20px;
}

.about-stats {
  display: flex;
  gap: 10px;
  margin-top: 32px;
}

.stat-card {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
  background: #ffffff;
  border-radius: 20px;
  padding: 24px 22px;
  box-shadow: 0 12px 28px rgba(28, 58, 82, 0.07);
  contain: content;
}

.stat-number {
  font-family: "Fraunces", "Instrument Serif", ui-serif, Georgia, serif;
  font-weight: 700;
  font-size: 25px;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(90deg, #1f5c66, #3f9e63);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #8b98a5;
  line-height: 1.4;
}

.about-media {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.15s;
  will-change: transform, opacity;
}

.about.in-view .about-media {
  opacity: 1;
  transform: translateX(0);
}

.about-image {
  width: 100%;
  max-width: 460px;
  height: 520px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 20px 45px rgba(28, 58, 82, 0.18);
}

.about-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: center;
  margin-top: 90px;
  padding: 12px 22px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(28, 58, 82, 0.1);
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #1c3a52;
}

.badge-shield-icon {
  width: 18px;
  height: 18px;
  fill: #2f9e63;
  flex-shrink: 0;
}

/* ===== Vision & Mission ===== */
.mv-grid {
  display: flex;
  gap: 32px;
  margin-top: 80px;
}

.mv-card {
  flex: 1 1 0;
  background: #ffffff;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 12px 30px rgba(28, 58, 82, 0.211);
  opacity: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mv-card:hover {
  transform: scale(1.04);
  box-shadow: 0 20px 40px rgba(28, 58, 82, 0.14);
}

.mv-grid.in-view .mv-card {
  animation: mvCardIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.mv-grid.in-view .mv-card:nth-child(1) { animation-delay: 0s; }
.mv-grid.in-view .mv-card:nth-child(2) { animation-delay: 0.15s; }

@keyframes mvCardIn {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.mv-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  margin-bottom: 28px;
  transform: scale(0) rotate(-20deg);
}

.mv-grid.in-view .mv-icon {
  animation: mvIconPop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.mv-grid.in-view .mv-card:nth-child(1) .mv-icon { animation-delay: 0.3s; }
.mv-grid.in-view .mv-card:nth-child(2) .mv-icon { animation-delay: 0.45s; }

@keyframes mvIconPop {
  from {
    transform: scale(0) rotate(-20deg);
  }
  to {
    transform: scale(1) rotate(0deg);
  }
}

.mv-icon svg {
  width: 24px;
  height: 24px;
}

.mv-icon-vision {
  background: linear-gradient(135deg, #1c5f6b, #2f8fa0);
}

.mv-icon-mission {
  background: linear-gradient(135deg, #5cbf7a, #2f9e63);
}

.mv-title {
  font-family: "Playfair Display", "Georgia", serif;
  font-weight: 600;
  font-size: 27px;
  color: #1c3a52;
  margin-bottom: 14px;
}

.mv-text {
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #5a6b7b;
}

/* ===== Programmes ===== */
.programmes {
  background: #f8f9f5;
  padding: 80px 0;
}

.programmes-heading {
  font-family: "Playfair Display", "Georgia", serif;
  font-weight: 500;
  font-size: 42px;
  line-height: 1.25;
  color: #1c3a52;
  margin-top: 16px;
  margin-bottom: 48px;
}

.programmes-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.programme-card {
  flex: 1 1 calc(20% - 19.2px);
  background:
    radial-gradient(140px 120px at 100% 0%, rgba(63, 158, 99, 0.14), rgba(63, 158, 99, 0) 70%),
    #ffffff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 12px 28px rgba(28, 58, 82, 0.06);
  opacity: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.programme-card:hover {
  transform: scale(1.03);
  box-shadow: 0 18px 36px rgba(28, 58, 82, 0.12);
}

.programmes-grid.in-view .programme-card {
  animation: programmeCardIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.programmes-grid.in-view .programme-card:nth-child(1) { animation-delay: 0s; }
.programmes-grid.in-view .programme-card:nth-child(2) { animation-delay: 0.07s; }
.programmes-grid.in-view .programme-card:nth-child(3) { animation-delay: 0.14s; }
.programmes-grid.in-view .programme-card:nth-child(4) { animation-delay: 0.21s; }
.programmes-grid.in-view .programme-card:nth-child(5) { animation-delay: 0.28s; }
.programmes-grid.in-view .programme-card:nth-child(6) { animation-delay: 0.35s; }
.programmes-grid.in-view .programme-card:nth-child(7) { animation-delay: 0.42s; }
.programmes-grid.in-view .programme-card:nth-child(8) { animation-delay: 0.49s; }
.programmes-grid.in-view .programme-card:nth-child(9) { animation-delay: 0.56s; }
.programmes-grid.in-view .programme-card:nth-child(10) { animation-delay: 0.63s; }

@keyframes programmeCardIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.programme-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #1c5f6b, #2f8fa0);
  transform: scale(0) rotate(-20deg);
}

.programmes-grid.in-view .programme-card:nth-child(1) .programme-icon { animation: mvIconPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; animation-delay: 0.2s; }
.programmes-grid.in-view .programme-card:nth-child(2) .programme-icon { animation: mvIconPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; animation-delay: 0.27s; }
.programmes-grid.in-view .programme-card:nth-child(3) .programme-icon { animation: mvIconPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; animation-delay: 0.34s; }
.programmes-grid.in-view .programme-card:nth-child(4) .programme-icon { animation: mvIconPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; animation-delay: 0.41s; }
.programmes-grid.in-view .programme-card:nth-child(5) .programme-icon { animation: mvIconPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; animation-delay: 0.48s; }
.programmes-grid.in-view .programme-card:nth-child(6) .programme-icon { animation: mvIconPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; animation-delay: 0.55s; }
.programmes-grid.in-view .programme-card:nth-child(7) .programme-icon { animation: mvIconPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; animation-delay: 0.62s; }
.programmes-grid.in-view .programme-card:nth-child(8) .programme-icon { animation: mvIconPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; animation-delay: 0.69s; }
.programmes-grid.in-view .programme-card:nth-child(9) .programme-icon { animation: mvIconPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; animation-delay: 0.76s; }
.programmes-grid.in-view .programme-card:nth-child(10) .programme-icon { animation: mvIconPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; animation-delay: 0.83s; }

.programme-icon svg {
  width: 20px;
  height: 20px;
}

.programme-title {
  font-family: "Playfair Display", "Georgia", serif;
  font-weight: 700;
  font-size: 19px;
  color: #1c3a52;
  margin-bottom: 12px;
}

.programme-text {
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: #6b7c8c;
}

/* ===== Featured Programmes ===== */
.featured {
  background: #ffffff;
  padding: 80px 0;
}

.featured-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 48px;
}

.featured-heading {
  font-family: "Playfair Display", "Georgia", serif;
  font-weight: 500;
  font-size: 40px;
  color: #1c3a52;
  margin-top: 16px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 13px 24px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(28, 58, 82, 0.15);
  color: #1c3a52;
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-outline:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(28, 58, 82, 0.1);
}

.btn-outline .icon-arrow {
  width: 16px;
  height: 16px;
}

.featured-grid {
  display: flex;
  gap: 32px;
}

.featured-grid-secondary {
  margin-top: 32px;
}

.feature-card {
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(28, 58, 82, 0.08);
  opacity: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 42px rgba(28, 58, 82, 0.14);
}

.featured.in-view .feature-card {
  animation: featureCardIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.featured.in-view .featured-grid .feature-card:nth-child(1) { animation-delay: 0s; }
.featured.in-view .featured-grid .feature-card:nth-child(2) { animation-delay: 0.12s; }
.featured.in-view .featured-grid-secondary .feature-card:nth-child(1) { animation-delay: 0.24s; }
.featured.in-view .featured-grid-secondary .feature-card:nth-child(2) { animation-delay: 0.36s; }

@keyframes featureCardIn {
  from {
    opacity: 0;
    transform: translateY(36px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-media {
  position: relative;
  height: 280px;
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.18);
}

.featured.in-view .featured-grid .feature-card:nth-child(1) .feature-media img { animation: featureImgIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; animation-delay: 0s; }
.featured.in-view .featured-grid .feature-card:nth-child(2) .feature-media img { animation: featureImgIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; animation-delay: 0.12s; }
.featured.in-view .featured-grid-secondary .feature-card:nth-child(1) .feature-media img { animation: featureImgIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; animation-delay: 0.24s; }
.featured.in-view .featured-grid-secondary .feature-card:nth-child(2) .feature-media img { animation: featureImgIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; animation-delay: 0.36s; }

@keyframes featureImgIn {
  from {
    transform: scale(1.18);
  }
  to {
    transform: scale(1);
  }
}

.feature-tag {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  color: #1c3a52;
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(-10px) scale(0.9);
}

.featured.in-view .featured-grid .feature-card:nth-child(1) .feature-tag { animation: featureTagIn 0.5s ease forwards; animation-delay: 0.35s; }
.featured.in-view .featured-grid .feature-card:nth-child(2) .feature-tag { animation: featureTagIn 0.5s ease forwards; animation-delay: 0.47s; }
.featured.in-view .featured-grid-secondary .feature-card:nth-child(1) .feature-tag { animation: featureTagIn 0.5s ease forwards; animation-delay: 0.59s; }
.featured.in-view .featured-grid-secondary .feature-card:nth-child(2) .feature-tag { animation: featureTagIn 0.5s ease forwards; animation-delay: 0.71s; }

@keyframes featureTagIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.feature-body {
  padding: 28px;
}

.feature-title {
  font-family: "Playfair Display", "Georgia", serif;
  font-weight: 600;
  font-size: 24px;
  color: #1c3a52;
  margin-bottom: 12px;
}

.feature-text {
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: #5a6b7b;
  margin-bottom: 20px;
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #2f9e63;
}

.feature-link .icon-arrow {
  width: 15px;
  height: 15px;
  transition: transform 0.2s ease;
}

.feature-link:hover .icon-arrow {
  transform: translateX(3px);
}

/* ===== Activities ===== */
.activities {
  background: #fdfcf9;
  padding: 80px 0;
}

.activities-heading {
  font-family: "Playfair Display", "Georgia", serif;
  font-weight: 500;
  font-size: 44px;
  color: #1c3a52;
  margin-top: 16px;
  margin-bottom: 40px;
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.activity-tile {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e8eef0;
  box-shadow: 0 2px 8px rgba(13, 46, 53, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
}

.activity-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(13, 46, 53, 0.12);
  border-color: #1c5f6b;
}

.activities-grid.in-view .activity-tile {
  animation: activityFadeIn 0.6s ease forwards;
}

.activities-grid.in-view .activity-tile:nth-child(1) { animation-delay: 0s; }
.activities-grid.in-view .activity-tile:nth-child(2) { animation-delay: 0.08s; }
.activities-grid.in-view .activity-tile:nth-child(3) { animation-delay: 0.16s; }
.activities-grid.in-view .activity-tile:nth-child(4) { animation-delay: 0.24s; }
.activities-grid.in-view .activity-tile:nth-child(5) { animation-delay: 0.08s; }
.activities-grid.in-view .activity-tile:nth-child(6) { animation-delay: 0.16s; }
.activities-grid.in-view .activity-tile:nth-child(7) { animation-delay: 0.24s; }
.activities-grid.in-view .activity-tile:nth-child(8) { animation-delay: 0.32s; }

@keyframes activityFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.activity-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px 20px;
  min-height: 160px;
}

.activity-title {
  display: block;
  color: #1a2a2e;
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.activity-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e8f4f6 0%, #d4e8ec 100%);
  transition: transform 0.3s ease, background 0.3s ease;
}

.activity-tile:hover .activity-icon {
  transform: scale(1.08);
  background: linear-gradient(135deg, #1c5f6b 0%, #0d2e35 100%);
}

.activity-icon svg {
  width: 24px;
  height: 24px;
  transition: stroke 0.3s ease;
}

.activity-tile:hover .activity-icon svg {
  stroke: #ffffff;
}

/* Responsive */
@media (max-width: 992px) {
  .activities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .activities-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .activity-caption {
    min-height: 130px;
  }
}
/* ===== Impact ===== */
.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.impact {
  background: #ffffff;
  padding: 80px 0;
}

.impact-heading {
  font-family: "Playfair Display", "Georgia", serif;
  font-weight: 500;
  font-size: 44px;
  color: #1c3a52;
  margin-top: 16px;
  margin-bottom: 48px;
}

.impact-grid {
  display: flex;
  gap: 24px;
}

.impact-card {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
  border-radius: 20px;
  padding: 40px 24px;
  box-shadow: 0 12px 30px rgba(28, 58, 82, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.impact-card:hover {
  transform: scale(1.03);
  box-shadow: 0 18px 36px rgba(28, 58, 82, 0.12);
}

.impact-ring-wrap {
  position: relative;
  width: 110px;
  height: 110px;
}

.impact-ring {
  width: 100%;
  height: 100%;
}

.ring-track {
  fill: none;
  stroke: #e3e8ec;
  stroke-width: 8;
}

.ring-progress {
  fill: none;
  stroke: url(#impactRingGradient);
  stroke-width: 8;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 60px 60px;
  stroke-dashoffset: 314.16;
  transition: stroke-dashoffset 1.6s ease;
}

.impact.in-view .ring-92 { stroke-dashoffset: 25.13; }
.impact.in-view .ring-76 { stroke-dashoffset: 75.4; }
.impact.in-view .ring-84 { stroke-dashoffset: 50.27; }
.impact.in-view .ring-68 { stroke-dashoffset: 100.53; }

.ring-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Fraunces", "Instrument Serif", ui-serif, Georgia, serif;
  font-weight: 700;
  font-size: 22px;
  color: #1c3a52;
}

.impact-percent {
  font-family: "Fraunces", "Instrument Serif", ui-serif, Georgia, serif;
  font-weight: 700;
  font-size: 26px;
  margin-top: 24px;
  background: linear-gradient(90deg, #1f5c66, #3f9e63);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.impact-label {
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #8b98a5;
  margin-top: 8px;
  text-align: center;
}

/* ===== Impact bars ===== */
.impact-bars {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
}

.impact-bar-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 24px 28px;
  box-shadow: 0 10px 24px rgba(28, 58, 82, 0.06);
}

.impact-bar-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.impact-bar-label {
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #1c3a52;
}

.impact-bar-value {
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 14px;
  color: #8b98a5;
  white-space: nowrap;
}

.impact-bar-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #e3e8ec;
  overflow: hidden;
}

.impact-bar-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #1c5f6b, #4fae6d);
  transition: width 1.6s ease;
}

.impact.in-view .bar-children { width: 88%; }
.impact.in-view .bar-women { width: 75%; }
.impact.in-view .bar-households { width: 62%; }
.impact.in-view .bar-trees { width: 91%; }

/* ===== Stats banner ===== */
.stats-banner {
  background: #ffffff;
  padding-top: 20px;
  padding-bottom: 100px;
}

.stats-banner-inner {
    display: flex;
    gap: 20px;
    padding: 60px 30px;
    border-radius: 28px;
    box-shadow: 0 10px 24px rgba(28, 58, 82, 0.19);
    background: linear-gradient(
                318deg, rgb(63 158 99 / 47%) 0%, 
                rgba(63, 158, 99, 0.05) 30%, 
                rgba(255, 255, 255, 0) 50%, 
                rgba(63, 143, 158, 0.08) 72%, 
                rgb(63 143 158 / 44%) 100%);
}

.banner-stat {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border-radius: 16px;
    padding: 26px 20px;
    box-shadow: 0 10px 24px rgb(28 58 82 / 24%);
    text-align: center;
}

.banner-stat-number {
  font-family: "Fraunces", "Instrument Serif", ui-serif, Georgia, serif;
  font-weight: 700;
  font-size: 46px;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(90deg, #1f5c66, #3f9e63);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.banner-stat-label {
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #6b7c8c;
}

/* ===== Volunteer CTA ===== */
.volunteer-cta {
  background: #ffffff;
  padding-top: 20px;
  padding-bottom: 80px;
}

.volunteer-banner {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
}

.volunteer-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.volunteer-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(64deg,
    rgb(22 47 67 / 85%) 0%,
    rgb(23 72 61 / 80%) 35%,
    rgb(15 74 52 / 56%) 60%,
    rgba(8, 40, 28, 0.18) 100%);
}

.volunteer-banner::before,
.volunteer-banner::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 51%;
  z-index: 2;
  background: #0f2436;
  pointer-events: none;
}

.volunteer-banner::before {
  left: 0;
}

.volunteer-banner::after {
  right: 0;
}

.volunteer-cta.in-view .volunteer-banner::before {
  animation: volunteerCurtainLeft 0.9s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

.volunteer-cta.in-view .volunteer-banner::after {
  animation: volunteerCurtainRight 0.9s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

@keyframes volunteerCurtainLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

@keyframes volunteerCurtainRight {
  from { transform: translateX(0); }
  to { transform: translateX(100%); }
}

.volunteer-inner {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding: 64px 60px;
}

.volunteer-content {
  flex: 1 1 0;
  max-width: 620px;
  opacity: 0;
  transform: perspective(1200px) rotateX(-35deg) translateY(30px);
  transform-origin: bottom center;
}

.volunteer-cta.in-view .volunteer-content {
  animation: volunteerContentIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.45s;
}

@keyframes volunteerContentIn {
  from {
    opacity: 0;
    transform: perspective(1200px) rotateX(-35deg) translateY(30px);
  }
  to {
    opacity: 1;
    transform: perspective(1200px) rotateX(0deg) translateY(0);
  }
}

.volunteer-content .section-label {
  color: #7ee0a0;
}

.volunteer-heading {
  font-family: "Playfair Display", "Georgia", serif;
  font-weight: 500;
  font-size: 46px;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 20px;
}

.volunteer-text {
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
  max-width: 500px;
  margin-bottom: 32px;
}

.volunteer-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.btn-glass-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #1c3a52;
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 600;
  backdrop-filter: blur(6px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-glass-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.volunteer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.volunteer-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(4px);
  color: rgba(255, 255, 255, 0.9);
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 500;
}

.volunteer-tag svg {
  width: 15px;
  height: 15px;
  color: #8fe6ac;
  flex-shrink: 0;
}

.volunteer-card {
  flex: 0 0 320px;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(14px);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateX(60px) rotate(6deg);
}

.volunteer-cta.in-view .volunteer-card {
  animation: volunteerCardIn 0.9s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
  animation-delay: 0.75s;
}

@keyframes volunteerCardIn {
  from {
    opacity: 0;
    transform: translateX(60px) rotate(6deg);
  }
  to {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
  }
}

.volunteer-card-title {
  font-family: "Playfair Display", "Georgia", serif;
  font-weight: 600;
  font-size: 20px;
  color: #1c3a52;
  margin-bottom: 18px;
}

.volunteer-card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.volunteer-card-list li {
  position: relative;
  padding-left: 20px;
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 14px;
  color: #33465a;
}

.volunteer-card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2f9e63;
}

/* ===== Student Internship ===== */
.internship {
  background: #fdfcf9;
  padding: 80px 0;
}

.internship-heading {
  font-family: "Playfair Display", "Georgia", serif;
  font-weight: 500;
  font-size: 46px;
  line-height: 1.2;
  color: #1c3a52;
  margin-top: 16px;
  margin-bottom: 20px;
}

.internship-text {
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #5a6b7b;
  max-width: 620px;
}

.internship .section-label {
  position: relative;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.internship.in-view .section-label {
  opacity: 1;
  transform: translateY(0);
}

.internship.in-view .section-label::after {
  transform: scaleX(1);
}

.internship-heading {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.55s;
}

.internship.in-view .internship-heading {
  opacity: 1;
  transform: translateY(0);
}

.internship-text {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: 0.75s;
}

.internship.in-view .internship-text {
  opacity: 1;
  transform: translateY(0);
}

.timeline {
  position: relative;
  margin-top: 56px;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e3e8ec;
  transform: translateX(-50%) scaleY(0);
  transform-origin: top;
  transition: transform 1.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.internship.in-view .timeline-line {
  transform: translateX(-50%) scaleY(1);
}

.timeline-step {
  position: relative;
  display: flex;
  margin-bottom: 40px;
}

.timeline-step:last-child {
  margin-bottom: 0;
}

.timeline-step-left {
  justify-content: flex-start;
}

.timeline-step-right {
  justify-content: flex-end;
}

.timeline-card {
  width: 46%;
  background: #ffffff;
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow: 0 12px 28px rgba(28, 58, 82, 0.06);
  opacity: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.timeline-card:hover {
  transform: scale(1.02);
  box-shadow: 0 18px 36px rgba(28, 58, 82, 0.12);
}

.timeline-step-left .timeline-card {
  transform: translateX(-40px);
}

.timeline-step-right .timeline-card {
  transform: translateX(40px);
}

.internship.in-view .timeline-step-left .timeline-card {
  animation: timelineCardInLeft 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.internship.in-view .timeline-step-right .timeline-card {
  animation: timelineCardInRight 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.internship.in-view .timeline-step:nth-child(1) .timeline-card { animation-delay: 0.45s; }
.internship.in-view .timeline-step:nth-child(2) .timeline-card { animation-delay: 0.85s; }
.internship.in-view .timeline-step:nth-child(3) .timeline-card { animation-delay: 1.25s; }
.internship.in-view .timeline-step:nth-child(4) .timeline-card { animation-delay: 1.65s; }

@keyframes timelineCardInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes timelineCardInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

.timeline-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 25px;
}

.timeline-number {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1c5f6b;
  color: #ffffff;
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 700;
  transform: scale(0);
}

.internship.in-view .timeline-step:nth-child(1) .timeline-number { animation: mvIconPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; animation-delay: 0.6s; }
.internship.in-view .timeline-step:nth-child(2) .timeline-number { animation: mvIconPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; animation-delay: 1s; }
.internship.in-view .timeline-step:nth-child(3) .timeline-number { animation: mvIconPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; animation-delay: 1.4s; }
.internship.in-view .timeline-step:nth-child(4) .timeline-number { animation: mvIconPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; animation-delay: 1.8s; }

.timeline-title {
  font-family: "Playfair Display", "Georgia", serif;
  font-weight: 600;
  font-size: 19px;
  color: #1c3a52;
}

.timeline-card-text {
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #6b7c8c;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 40px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2f9e63;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.internship.in-view .timeline-dot {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.internship.in-view .timeline-step:nth-child(1) .timeline-dot { transition-delay: 0.35s; }
.internship.in-view .timeline-step:nth-child(2) .timeline-dot { transition-delay: 0.75s; }
.internship.in-view .timeline-step:nth-child(3) .timeline-dot { transition-delay: 1.15s; }
.internship.in-view .timeline-step:nth-child(4) .timeline-dot { transition-delay: 1.55s; }

/* ===== Disciplines ===== */
.disciplines {
  background: #f8f9f5;
  padding: 80px 0;
}

.disciplines-heading {
  font-family: "Playfair Display", "Georgia", serif;
  font-weight: 500;
  font-size: 42px;
  line-height: 1.25;
  color: #1c3a52;
  margin-top: 16px;
  margin-bottom: 48px;
}

.disciplines-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.discipline-card {
  flex: 1 1 calc(16.666% - 16.7px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  background: #ffffff;
  border-radius: 18px;
  padding: 28px 16px;
  box-shadow: 0 10px 24px rgba(28, 58, 82, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  opacity: 0;
}

.discipline-card:hover {
  transform: scale(1.05);
  box-shadow: 0 16px 32px rgba(28, 58, 82, 0.12);
}

.discipline-card:nth-child(odd) {
  --tilt: -10deg;
}

.discipline-card:nth-child(even) {
  --tilt: 10deg;
}

@keyframes disciplineCardIn {
  0% {
    opacity: 0;
    transform: translateY(34px) scale(0.82) rotate(var(--tilt, 0deg));
  }
  55% {
    opacity: 1;
    transform: translateY(-8px) scale(1.05) rotate(0deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

.disciplines-grid.in-view .discipline-card {
  animation: disciplineCardIn 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.disciplines-grid.in-view .discipline-card:nth-child(1) { animation-delay: 0.05s; }
.disciplines-grid.in-view .discipline-card:nth-child(2) { animation-delay: 0.15s; }
.disciplines-grid.in-view .discipline-card:nth-child(3) { animation-delay: 0.25s; }
.disciplines-grid.in-view .discipline-card:nth-child(4) { animation-delay: 0.35s; }
.disciplines-grid.in-view .discipline-card:nth-child(5) { animation-delay: 0.45s; }
.disciplines-grid.in-view .discipline-card:nth-child(6) { animation-delay: 0.55s; }

.discipline-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1c5f6b, #2f8fa0);
  opacity: 0;
  transform: scale(0) rotate(-190deg);
}

.discipline-icon svg {
  width: 22px;
  height: 22px;
}

@keyframes disciplineIconSpin {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-190deg);
  }
  70% {
    opacity: 1;
    transform: scale(1.2) rotate(12deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.disciplines-grid.in-view .discipline-card:nth-child(1) .discipline-icon { animation: disciplineIconSpin 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; animation-delay: 0.3s; }
.disciplines-grid.in-view .discipline-card:nth-child(2) .discipline-icon { animation: disciplineIconSpin 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; animation-delay: 0.4s; }
.disciplines-grid.in-view .discipline-card:nth-child(3) .discipline-icon { animation: disciplineIconSpin 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; animation-delay: 0.5s; }
.disciplines-grid.in-view .discipline-card:nth-child(4) .discipline-icon { animation: disciplineIconSpin 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; animation-delay: 0.6s; }
.disciplines-grid.in-view .discipline-card:nth-child(5) .discipline-icon { animation: disciplineIconSpin 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; animation-delay: 0.7s; }
.disciplines-grid.in-view .discipline-card:nth-child(6) .discipline-icon { animation: disciplineIconSpin 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; animation-delay: 0.8s; }

.discipline-title {
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #1c3a52;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.disciplines-grid.in-view .discipline-title {
  opacity: 1;
  transform: translateY(0);
}

.disciplines-grid.in-view .discipline-card:nth-child(1) .discipline-title { transition-delay: 0.5s; }
.disciplines-grid.in-view .discipline-card:nth-child(2) .discipline-title { transition-delay: 0.6s; }
.disciplines-grid.in-view .discipline-card:nth-child(3) .discipline-title { transition-delay: 0.7s; }
.disciplines-grid.in-view .discipline-card:nth-child(4) .discipline-title { transition-delay: 0.8s; }
.disciplines-grid.in-view .discipline-card:nth-child(5) .discipline-title { transition-delay: 0.9s; }
.disciplines-grid.in-view .discipline-card:nth-child(6) .discipline-title { transition-delay: 1s; }

/* ===== Gallery ===== */
.gallery {
  background: #ffffff;
  padding: 80px 0;
}

.gallery-heading {
  font-family: "Playfair Display", "Georgia", serif;
  font-weight: 500;
  font-size: 44px;
  color: #1c3a52;
  margin-top: 16px;
  margin-bottom: 40px;
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.gallery-item {
  /* Changed from calc(33.333% - 16px) to calc(25% - 18px) for 4 columns */
  flex: 1 1 calc(25% - 18px); 
  aspect-ratio: 1 / 0.95;
  border-radius: 16px;
  overflow: hidden;
  background: #1c3a52;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

@keyframes galleryPhotoDevelop {
  0% {
    opacity: 0;
    transform: scale(1.18);
    filter: grayscale(1) blur(12px) brightness(1.3);
  }
  55% {
    opacity: 1;
    filter: grayscale(0.4) blur(3px) brightness(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: grayscale(0) blur(0) brightness(1);
  }
}

.gallery-grid.in-view .gallery-item img {
  animation: galleryPhotoDevelop 1.1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.gallery-grid.in-view .gallery-item:nth-child(1) img { animation-delay: 0s; }
.gallery-grid.in-view .gallery-item:nth-child(2) img { animation-delay: 0.1s; }
.gallery-grid.in-view .gallery-item:nth-child(3) img { animation-delay: 0.2s; }
.gallery-grid.in-view .gallery-item:nth-child(4) img { animation-delay: 0.3s; }

/* Optional: Add responsiveness so it doesn't break on smaller screens */
@media (max-width: 1024px) {
  .gallery-item {
    flex: 1 1 calc(50% - 12px); /* 2 columns on tablets */
  }
}

@media (max-width: 600px) {
  .gallery-item {
    flex: 1 1 100%; /* 1 column on mobile */
  }
}
/* ===== Testimonials ===== */
.testimonials {
  background: #f8f9f5;
  padding: 80px 0;
}

.testimonials-heading {
  font-family: "Playfair Display", "Georgia", serif;
  font-weight: 500;
  font-size: 44px;
  color: #1c3a52;
  margin-top: 16px;
  margin-bottom: 48px;
}

.testimonial-card {
  max-width: 980px;
  background: #ffffff;
  border-radius: 28px;
  padding: 48px;
  box-shadow: 0 20px 44px rgba(28, 58, 82, 0.08);
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonials.in-view .testimonial-card {
  opacity: 1;
  transform: translateY(0);
}

.testimonial-slides {
  min-height: 190px;
}

.testimonial-slide {
  display: none;
}

.testimonial-slide.active {
  display: block;
  animation: testimonialFade 0.5s ease;
}

@keyframes testimonialFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quote-icon {
  width: 32px;
  height: 24px;
  margin-bottom: 24px;
  opacity: 0;
  transform: scale(0.3) rotate(-25deg);
  transform-origin: left top;
}

.quote-icon.in {
  animation: quoteStampIn 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes quoteStampIn {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(-25deg);
  }
  60% {
    opacity: 1;
    transform: scale(1.15) rotate(6deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.testimonial-quote {
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 20px;
  line-height: 1.6;
  color: #1c3a52;
  max-width: 780px;
  margin-bottom: 32px;
}

.quote-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.quote-word.in {
  opacity: 1;
  transform: translateY(0);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar-wrap {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, #e08a3d, #d64545);
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0.5);
}

.author-avatar-wrap.in {
  animation: avatarSpotlightIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes avatarSpotlightIn {
  0% {
    opacity: 0;
    transform: scale(0.5);
    box-shadow: 0 0 0 0 rgba(224, 138, 61, 0.55);
  }
  55% {
    opacity: 1;
    transform: scale(1.08);
    box-shadow: 0 0 0 10px rgba(224, 138, 61, 0);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(224, 138, 61, 0);
  }
}

.author-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  display: block;
}

.author-name {
  display: block;
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #1c3a52;
}

.author-role {
  display: block;
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #8b98a5;
  margin-top: 2px;
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
}

.testimonial-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.t-dot {
  width: 8px;
  height: 6px;
  border: none;
  border-radius: 3px;
  background: #d7dde1;
  cursor: pointer;
  padding: 0;
  transition: width 0.3s ease, background 0.3s ease;
}

.t-dot.active {
  width: 24px;
  background: #1c3a52;
}

.testimonial-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.t-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #eef1f0;
  color: #1c3a52;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.t-nav-btn:hover {
  background: #dfe5e3;
  transform: translateY(-1px);
}

.t-nav-btn svg {
  width: 18px;
  height: 18px;
}

/* ===== News & Events ===== */
.news {
  background: #ffffff;
  padding: 80px 0;
}

.news-grid {
  display: flex;
  gap: 32px;
}

.news.in-view .feature-card {
  animation: featureCardIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.news.in-view .news-grid .feature-card:nth-child(1) { animation-delay: 0s; }
.news.in-view .news-grid .feature-card:nth-child(2) { animation-delay: 0.12s; }
.news.in-view .news-grid .feature-card:nth-child(3) { animation-delay: 0.24s; }

.news.in-view .news-grid .feature-card:nth-child(1) .feature-media img { animation: featureImgIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; animation-delay: 0s; }
.news.in-view .news-grid .feature-card:nth-child(2) .feature-media img { animation: featureImgIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; animation-delay: 0.12s; }
.news.in-view .news-grid .feature-card:nth-child(3) .feature-media img { animation: featureImgIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; animation-delay: 0.24s; }

.news.in-view .news-grid .feature-card:nth-child(1) .feature-tag { animation: featureTagIn 0.5s ease forwards; animation-delay: 0.35s; }
.news.in-view .news-grid .feature-card:nth-child(2) .feature-tag { animation: featureTagIn 0.5s ease forwards; animation-delay: 0.47s; }
.news.in-view .news-grid .feature-card:nth-child(3) .feature-tag { animation: featureTagIn 0.5s ease forwards; animation-delay: 0.59s; }

/* ===== News modal ===== */
.news-modal {
  max-width: 560px;
  padding: 0 0 36px;
  overflow: hidden;
}

.news-modal .volunteer-modal-close {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.news-modal-media {
  position: relative;
  height: 240px;
  margin-bottom: 28px;
}

.news-modal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 30px;
}

.news-modal-tag {
  position: absolute;
  top: 18px;
  left: 24px;
}

.news-modal-date {
  position: absolute;
  top: 18px;
  right: 18px;
}

.news-modal-heading {
  padding: 0 32px;
  padding-right: 32px;
  font-size: 24px;
  line-height: 1.3;
}

.news-modal-text {
  padding: 0 32px;
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.7;
}

.feature-date {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(28, 58, 82, 0.82);
  color: #ffffff;
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 600;
}

/* ===== Partners ===== */
.partners {
  background: #fdfcf9;
  padding: 80px 0;
  overflow: hidden;
}

.partners-label {
  display: block;
  text-align: center;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.partners.in-view .partners-label {
  opacity: 1;
  transform: translateY(0);
}

.partners-heading {
  font-family: "Playfair Display", "Georgia", serif;
  font-weight: 500;
  font-size: 32px;
  color: #1c3a52;
  text-align: center;
  margin-top: 12px;
  margin-bottom: 56px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: 0.1s;
}

.partners.in-view .partners-heading {
  opacity: 1;
  transform: translateY(0);
}

.partners-list {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
}

.partner-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  min-height: 110px;
  padding: 20px 24px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e3e8ec;
  box-shadow: 0 6px 20px rgba(51, 70, 90, 0.08);
  font-family: "Playfair Display", "Georgia", serif;
  font-weight: 600;
  font-size: 18px;
  color: #33465a;
  text-align: center;
  box-sizing: border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(51, 70, 90, 0.14);
}

@media (max-width: 767px) {
  .partners { padding: 60px 0; }
  .partners-heading { font-size: 26px; margin-bottom: 40px; }
}

@media (max-width: 600px) {
  .partners-list { gap: 14px; }
  .partner-item {
    width: calc(50% - 7px);
    min-height: 90px;
    font-size: 16px;
    padding: 16px;
  }
}
/* ===== Footprint ===== */
.footprint {
  background: #ffffff;
  padding: 80px 0;
  overflow: hidden;
}

.footprint-grid {
  display: flex;
  align-items: center;
  gap: 64px;
}

.footprint-content {
  flex: 1 1 0;
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.footprint.in-view .footprint-content {
  opacity: 1;
  transform: translateX(0);
}

.footprint-heading {
  font-family: "Playfair Display", "Georgia", serif;
  font-weight: 500;
  font-size: 44px;
  line-height: 1.2;
  color: #1c3a52;
  margin-top: 16px;
  margin-bottom: 20px;
}

.footprint-text {
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: #4a5b6b;
  max-width: 460px;
  margin-bottom: 28px;
}

.footprint-visual {
  flex: 1 1 0;
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateX(36px) scale(0.96);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.15s;
}

.footprint.in-view .footprint-visual {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.footprint-card {
  width: 100%;
  max-width: 380px;
  background: linear-gradient(135deg, #fbeee0 0%, #fdf6ee 30%, #f2f8f1 65%, #e7f2f6 100%);
  border-radius: 28px;
  padding: 22px;
  box-shadow: 0 20px 45px rgba(28, 58, 82, 0.12);
}

.footprint-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.footprint-card-title {
  font-family: "Playfair Display", "Georgia", serif;
  font-weight: 600;
  font-size: 17px;
  color: #1c3a52;
}

.footprint-card-badge {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: #1c3a52;
  color: #ffffff;
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.footprint-map {
  background: #ffffff;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(28, 58, 82, 0.06);
}

.kerala-map {
  display: block;
  width: 100%;
  height: 260px;
  margin: 0 auto;
}

.kerala-map-shape {
  fill: #eef1ec;
}

.footprint-dot-halo {
  fill: #2f9e63;
  opacity: 0.16;
}

.footprint-dot-core {
  fill: #2f9e63;
}

.footprint-dot-minor .footprint-dot-halo {
  fill: #3f8f9a;
  opacity: 0.16;
}

.footprint-dot-minor .footprint-dot-core {
  fill: #3f8f9a;
}

.footprint-dot {
  opacity: 0;
  transform: scale(0.4);
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: var(--dot-delay, 0s);
}

.footprint.in-view .footprint-dot {
  opacity: 1;
  transform: scale(1);
}

@keyframes footprintPulse {
  0%, 100% {
    opacity: 0.16;
    transform: scale(1);
  }
  50% {
    opacity: 0.3;
    transform: scale(1.3);
  }
}

.footprint.in-view .footprint-dot-halo {
  transform-box: fill-box;
  transform-origin: center;
  animation: footprintPulse 2.4s ease-in-out infinite;
  animation-delay: var(--dot-delay, 0s);
}

.footprint-card-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.footprint-tag {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  border-radius: 16px;
  background: #1c3a52;
}

.footprint-tag-label {
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #9fb3c2;
}

.footprint-tag-text {
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.35;
}

.footprint-pin {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #2f9e63;
  box-shadow: 0 8px 18px rgba(47, 158, 99, 0.35);
}

.footprint-pin svg {
  width: 22px;
  height: 22px;
}

.footprint-stats {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.footprint-stats .stat-card {
  padding: 16px 12px;
  border-radius: 16px;
  text-align: center;
  align-items: center;
  box-shadow: 0 8px 18px rgba(28, 58, 82, 0.06);
}

.footprint-stats .stat-number {
  font-size: 21px;
}

/* ===== FAQ ===== */
.faq {
  background: #f8f9f5;
  padding: 80px 0;
}

.faq-label {
  display: block;
  text-align: center;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.faq.in-view .faq-label {
  opacity: 1;
  transform: translateY(0);
}

.faq-heading {
  font-family: "Playfair Display", "Georgia", serif;
  font-weight: 500;
  font-size: 42px;
  line-height: 1.25;
  color: #1c3a52;
  text-align: center;
  margin-top: 12px;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: 0.1s;
}

.faq.in-view .faq-heading {
  opacity: 1;
  transform: translateY(0);
}

.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(28, 58, 82, 0.06);
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.25s ease;
}

.faq.in-view .faq-item {
  opacity: 1;
  transform: translateY(0);
}

.faq.in-view .faq-item:nth-child(1) { transition-delay: 0.15s; }
.faq.in-view .faq-item:nth-child(2) { transition-delay: 0.22s; }
.faq.in-view .faq-item:nth-child(3) { transition-delay: 0.29s; }
.faq.in-view .faq-item:nth-child(4) { transition-delay: 0.36s; }
.faq.in-view .faq-item:nth-child(5) { transition-delay: 0.43s; }

.faq-item:hover {
  box-shadow: 0 14px 30px rgba(28, 58, 82, 0.1);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: #1c3a52;
}

.faq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #2f9e63;
  color: #ffffff;
  transition: background 0.25s ease, transform 0.35s ease;
}

.faq-icon svg {
  width: 16px;
  height: 16px;
  transition: transform 0.35s ease;
}

.faq-item.active .faq-icon {
  background: #1c3a52;
  transform: rotate(135deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.faq-item.active .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer p {
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #4a5b6b;
  padding: 0 26px 24px;
}

/* ===== Stay Connected (social band) ===== */
.social-band {
  background: #ffffff;
  padding: 64px 0;
  text-align: center;
}

.social-band-label {
  display: block;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.social-band.in-view .social-band-label {
  opacity: 1;
  transform: translateY(0);
}

.social-band-heading {
  font-family: "Playfair Display", "Georgia", serif;
  font-weight: 500;
  font-size: 34px;
  line-height: 1.25;
  color: #1c3a52;
  margin-top: 12px;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: 0.1s;
}

.social-band.in-view .social-band-heading {
  opacity: 1;
  transform: translateY(0);
}

.social-band-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.social-band-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(47, 158, 99, 0.08);
  color: #2f9e63;
  opacity: 0;
  transform: translateY(16px) scale(0.7);
  transition: background 0.25s ease, color 0.25s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
  transition-delay: var(--icon-delay, 0s);
}

.social-band.in-view .social-band-icon {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.social-band-icon:hover,
.social-band.in-view .social-band-icon:hover {
  background: #2f9e63;
  color: #ffffff;
  transform: translateY(-3px) scale(1);
}

.social-band-icon svg {
  width: 20px;
  height: 20px;
}

/* ===== Contact ===== */
.contact {
  background: #ffffff;
  padding: 80px 0;
}

.contact .section-label {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.contact.in-view .section-label {
  opacity: 1;
  transform: translateY(0);
}

.contact-heading {
  font-family: "Playfair Display", "Georgia", serif;
  font-weight: 500;
  font-size: 44px;
  line-height: 1.2;
  color: #1c3a52;
  margin-top: 16px;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: 0.1s;
}

.contact.in-view .contact-heading {
  opacity: 1;
  transform: translateY(0);
}

.contact-grid {
  display: flex;
  align-items: stretch;
  gap: 32px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two equal columns */
  gap: 40px; /* Space between the card and form */
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.contact-info-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background-color: #ffffff;
  height: fit-content;
}

.contact-img {
  width: 100%;
  display: flex;
  justify-content: center;
}

.contact-img img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 8px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: #333333;
  line-height: 1.6;
}

.contact-detail-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 2px;
}

.contact-detail a {
  color: #2f9e63;
  text-decoration: none;
  font-weight: 500;
}

.contact-detail a:hover {
  text-decoration: underline;
}

/* Form styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  color: #333333;
  background-color: #ffffff;
  transition: border-color 0.2s;
  box-sizing: border-box; /* Important: prevents padding from affecting width */
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #2f9e63;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-send {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 32px;
  background: linear-gradient(135deg, #1a3a4a 0%, #2f6b5a 100%);
  color: #ffffff;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.btn-send:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(47, 158, 99, 0.3);
}

.icon-send {
  width: 18px;
  height: 18px;
}

/* Responsive: stack on smaller screens */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
}

.icon-external {
  width: 14px;
  height: 14px;
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding: 22px 24px;
  border-top: 1px solid #eef1f0;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 13.5px;
  line-height: 1.5;
  color: #4a5b6b;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.contact.in-view .contact-detail {
  opacity: 1;
  transform: translateY(0);
}

.contact.in-view .contact-detail:nth-child(1) { transition-delay: 1s; }
.contact.in-view .contact-detail:nth-child(2) { transition-delay: 1.1s; }
.contact.in-view .contact-detail:nth-child(3) { transition-delay: 1.2s; }

.contact-detail-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
}

.contact-form > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.contact.in-view .contact-form > * {
  opacity: 1;
  transform: translateY(0);
}

.contact.in-view .contact-form > *:nth-child(1) { transition-delay: 0.6s; }
.contact.in-view .contact-form > *:nth-child(2) { transition-delay: 0.7s; }
.contact.in-view .contact-form > *:nth-child(3) { transition-delay: 0.8s; }
.contact.in-view .contact-form > *:nth-child(4) { transition-delay: 0.9s; }

.form-row {
  display: flex;
  gap: 16px;
}

.form-input,
.form-textarea {
  width: 100%;
  border: 1px solid #e3e8ec;
  border-radius: 14px;
  padding: 14px 18px;
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 14px;
  color: #1c3a52;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #9aa7b3;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #2f9e63;
  box-shadow: 0 0 0 3px rgba(47, 158, 99, 0.14);
}

.form-textarea {
  resize: vertical;
  min-height: 130px;
  font-family: inherit;
}

.btn-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  border: none;
  padding: 16px 28px;
  border-radius: 999px;
  background: linear-gradient(120deg, #16324a 0%, #1e4a5a 60%, #2c7368 100%);
  color: #ffffff;
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(22, 50, 74, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-send:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(22, 50, 74, 0.36);
}

.icon-send {
  width: 16px;
  height: 16px;
  opacity: 0;
  transform: translate(20px, -16px) rotate(35deg) scale(0.5);
}

@keyframes iconSendFlyIn {
  0% {
    opacity: 0;
    transform: translate(20px, -16px) rotate(35deg) scale(0.5);
  }
  70% {
    opacity: 1;
    transform: translate(-3px, 2px) rotate(-8deg) scale(1.15);
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
}

.contact.in-view .icon-send {
  animation: iconSendFlyIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: 1.05s;
}

/* ===== Donate CTA ===== */
.donate-cta {
  background: #ffffff;
  padding: 20px 0 80px;
}

.donate-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  overflow: hidden;
  border-radius: 32px;
  padding: 56px 64px;
  background: linear-gradient(120deg, #16324a 0%, #1e4a5a 60%, #2c7368 100%);
  box-shadow: 0 20px 45px rgba(22, 50, 74, 0.28);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.donate-cta.in-view .donate-banner {
  opacity: 1;
  transform: translateY(0);
}

.donate-banner::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.donate-banner-text {
  position: relative;
  max-width: 560px;
}

.donate-kicker {
  display: block;
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #8fe3b3;
  margin-bottom: 14px;
}

.donate-heading {
  font-family: "Playfair Display", "Georgia", serif;
  font-weight: 500;
  font-size: 38px;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 14px;
}

.donate-heading em {
  font-style: italic;
  color: #8fe3b3;
}

.donate-text {
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

.btn-donate {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 17px 36px;
  border-radius: 999px;
  background: #ffffff;
  color: #16324a;
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-donate:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
}

.icon-heart-donate {
  width: 19px;
  height: 19px;
  color: #e2574c;
  animation: donateHeartbeat 1.8s ease-in-out infinite;
}

@keyframes donateHeartbeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.18); }
  30% { transform: scale(1); }
  45% { transform: scale(1.12); }
  60% { transform: scale(1); }
}

/* ===== Footer ===== */
.site-footer {
  background: linear-gradient(120deg, #0f2436 0%, #1c4a4a 45%, #0f2333 100%);
  padding-top: 64px;
  padding-bottom: 32px;
}

.footer-grid {
  display: flex;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand {
  flex: 1 1 0;
  max-width: 340px;
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #ffffff;
  margin-bottom: 20px;
}

.footer-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.footer-about {
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transition: background 0.2s ease, transform 0.2s ease;
}

.social-icon:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.social-icon svg {
  width: 17px;
  height: 17px;
}

.footer-col {
  flex: 1 1 0;
}

.footer-heading {
  font-family: "Playfair Display", "Georgia", serif;
  font-weight: 700;
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-links a {
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-newsletter-text {
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 18px;
}

.newsletter-form {
  display: flex;
  align-items: stretch;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  margin-bottom: 20px;
}

.newsletter-input {
  flex: 1 1 0;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 12px 16px;
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 14px;
  color: #ffffff;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-input:focus {
  outline: none;
}

.newsletter-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  border: none;
  background: linear-gradient(135deg, #6fc26f 0%, #2f8f4e 100%);
  cursor: pointer;
  transition: filter 0.2s ease;
}

.newsletter-btn:hover {
  filter: brightness(1.1);
}

.newsletter-btn svg {
  width: 16px;
  height: 16px;
}

.footer-contact-lines {
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}

.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin-bottom: 28px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom strong {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

/* ===== Volunteer modal ===== */
.volunteer-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 30, 40, 0.55);
  backdrop-filter: blur(4px);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.volunteer-modal-overlay.is-open {
  visibility: visible;
  opacity: 1;
}

.volunteer-modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 24px 60px rgba(15, 30, 40, 0.3);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.volunteer-modal-overlay.is-open .volunteer-modal {
  transform: translateY(0) scale(1);
}

.volunteer-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(28, 58, 82, 0.08);
  color: #1c3a52;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.volunteer-modal-heading {
  font-family: "Playfair Display", "Georgia", serif;
  font-weight: 600;
  font-size: 26px;
  color: #1c3a52;
  margin-bottom: 8px;
  padding-right: 24px;
}

.volunteer-modal-text {
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #5a6b7b;
  margin-bottom: 24px;
}

.volunteer-modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}


/* RESPONSE */

@media only screen and (min-width: 300px) and (max-width: 576.98px) {

  /* ── Body offset for shorter header ── */
  body {
    padding-top: 75px;
  }

  /* ── Container: tighter horizontal padding ── */
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* ── Header inner: reduce gap ── */
  .header-inner {
    gap: 10px;
    padding-top: 4px;
    padding-bottom: 4px;
  }

  /* ── Logo: scale down ── */
  .brand-logo {
    height: 62px;
  }

  /* ── Nav: slide-in drawer ── */
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 280px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -6px 0 30px rgba(28, 58, 82, 0.15);
    display: flex;
    flex-direction: column;
    padding: 0 0 0 15px;
    transition: right 0.3s ease;
    z-index: 200;
    overflow-y: auto;
  }

  .main-nav.is-open {
    right: 0;
  }

  /* ── Stack nav links vertically ── */
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .main-nav ul li {
    width: 100%;
    border-bottom: 1px solid rgba(28, 58, 82, 0.08);
  }

  .main-nav a {
    display: block;
    padding: 14px 0;
    font-size: 16px;
    font-weight: 500;
    color: #1c3a52;
  }

  /* ── Overlay ── */
  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 30, 40, 0.45);
    z-index: 150;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .nav-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  /* ── Hamburger toggle ── */
  .nav-toggle {
    display: flex;
  }

  /* ── Volunteer button: compact ── */
  .btn-volunteer {
    padding: 8px 14px;
    font-size: 13px;
    gap: 5px;
  }

  .icon-heart {
    width: 13px;
    height: 13px;
  }

  /* ════════════════════════════════
     HERO
  ════════════════════════════════ */
  .hero {
    height: 480px;
  }

  .hero-badge {
    font-size: 10px;
    letter-spacing: 1px;
    padding: 7px 14px;
    margin-bottom: 18px;
  }

  .hero-heading {
    font-size: 32px;
    line-height: 1.15;
    margin-bottom: 14px;
  }

  .hero-text {
    font-size: 14px;
    line-height: 1.6;
    max-width: 100%;
    margin-bottom: 24px;
  }

  .hero-actions {
    flex-wrap: wrap;
    gap: 10px;
  }

  .btn-primary,
  .hero .btn-volunteer {
    padding: 11px 20px;
    font-size: 13px;
  }

  /* ════════════════════════════════
     ABOUT
  ════════════════════════════════ */
  .about {
    padding: 50px 0;
  }

  .about-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
  }

  .about-content {
    width: 100%;
    min-width: 0;
  }

  .about-heading {
    font-size: 30px;
    line-height: 1.25;
  }

  .about-text {
    font-size: 14px;
    max-width: 100%;
  }

  .about-content {
    transform: translateX(0px);
  }

  .about-media {
    width: 100%;
    flex: none;
    align-items: stretch;
    transform: none;
    opacity: 1;
  }

  .about-image {
    width: 100%;
    max-width: 100%;
    height: 240px;
    border-radius: 18px;
    object-fit: cover;
  }

  .about-badge {
    align-self: center;
    margin-top: 16px;
    font-size: 12px;
    padding: 10px 16px;
  }

  /* ── Stat cards: 2-column grid ── */
  .about-stats {
    flex-wrap: wrap;
    gap: 10px;
  }

  .stat-card {
    flex: 1 1 calc(50% - 5px);
    padding: 16px 14px;
  }

  .stat-number {
    font-size: 20px;
  }

  /* ════════════════════════════════
     VISION & MISSION
  ════════════════════════════════ */
  .mv-grid {
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
  }

  .mv-card {
    padding: 28px 22px;
  }

  .mv-title {
    font-size: 22px;
  }

  /* ════════════════════════════════
     PROGRAMMES
  ════════════════════════════════ */
  .programmes {
    padding: 50px 0;
  }

  .programmes-heading {
    font-size: 26px;
    margin-bottom: 28px;
  }

  .programme-card {
    flex: 1 1 100%;
  }

  /* ════════════════════════════════
     FEATURED
  ════════════════════════════════ */
  .featured {
    padding: 50px 0;
  }

  .featured-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
  }

  .featured-heading {
    font-size: 26px;
  }

  .featured-grid,
  .featured-grid-secondary {
    flex-direction: column;
    gap: 20px;
  }

  .volunteer-modal {
    padding: 12px;
  }

  .news-modal-heading, .news-modal-text {
    padding: 0;
  }


  /* ════════════════════════════════
     ACTIVITIES
  ════════════════════════════════ */
  .activities {
    padding: 50px 0;
  }

  .activities-heading {
    font-size: 26px;
    margin-bottom: 24px;
  }

  .activity-caption {
    left: 7px;
    bottom: 10px;
    gap: 5px;
    font-size: 13px;
  }

  .activities-grid {
    gap: 14px;
  }

  .activity-tile {
    flex: 1 1 calc(50% - 7px);
  }

  /* ════════════════════════════════
     IMPACT
  ════════════════════════════════ */
  .impact {
    padding: 50px 0;
  }

  .impact-heading {
    font-size: 26px;
    margin-bottom: 28px;
  }

  .impact-grid {
    flex-wrap: wrap;
    gap: 14px;
  }

  .impact-card {
    flex: 1 1 calc(50% - 7px);
    padding: 24px 14px;
  }

  /* ════════════════════════════════
     STATS BANNER
  ════════════════════════════════ */
  .stats-banner-inner {
    flex-wrap: wrap;
    gap: 14px;
    padding: 32px 16px;
    border-radius: 18px;
  }

  .banner-stat {
    flex: 1 1 calc(50% - 7px);
    padding: 18px 12px;
  }

  .banner-stat-number {
    font-size: 24px;
  }

  .banner-stat-label {
    font-size: 11px;
  }

  /* ════════════════════════════════
     VOLUNTEER CTA
  ════════════════════════════════ */
  .volunteer-cta {
    padding-bottom: 50px;
  }

  .volunteer-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 36px 20px;
  }

  .volunteer-heading {
    font-size: 28px;
    line-height: 1.2;
  }

  .volunteer-text {
    font-size: 14px;
    max-width: 100%;
    line-height: 1.5;
  }

  .volunteer-actions {
    flex-wrap: wrap;
    gap: 10px;
  }

  .volunteer-card {
    flex: none;
    width: 100%;
    transform: none !important;
  }

  .volunteer-card-list li {
    line-height: 1.2;
  }

  /* ════════════════════════════════
     INTERNSHIP / TIMELINE
  ════════════════════════════════ */
  .internship {
    padding: 50px 0;
  }

  .internship-heading {
    font-size: 28px;
  }

  .internship-text {
    font-size: 14px;
    max-width: 100%;
  }

  .timeline-line {
    display: none;
  }

  .timeline-step {
    flex-direction: column;
    justify-content: flex-start;
    margin-bottom: 16px;
  }

  .timeline-card {
    width: 100%;
  }

  .timeline-step-left .timeline-card,
  .timeline-step-right .timeline-card {
    transform: none;
  }

  .timeline-dot {
    display: none;
  }

  /* ════════════════════════════════
     DISCIPLINES
  ════════════════════════════════ */
  .disciplines {
    padding: 50px 0;
  }

  .disciplines-heading {
    font-size: 24px;
    margin-bottom: 28px;
  }

  .discipline-card {
    flex: 1 1 calc(50% - 10px);
  }

  /* ════════════════════════════════
     GALLERY
  ════════════════════════════════ */
  .gallery {
    padding: 50px 0;
  }

  .gallery-heading {
    font-size: 26px;
    margin-bottom: 24px;
  }

  .gallery-grid {
    gap: 12px;
  }

  .gallery-item {
    flex: 1 1 calc(50% - 6px);
  }

  /* ════════════════════════════════
     TESTIMONIALS
  ════════════════════════════════ */
  .testimonials {
    padding: 50px 0;
  }

  .testimonials-heading {
    font-size: 26px;
    margin-bottom: 28px;
  }

  .testimonial-card {
    padding: 28px 20px;
  }

  .testimonial-quote {
    font-size: 15px;
    max-width: 100%;
  }

  .testimonial-slides {
    min-height: auto;
  }

  /* ════════════════════════════════
     NEWS & EVENTS
  ════════════════════════════════ */
  .news {
    padding: 50px 0;
  }

  .news-grid {
    flex-direction: column;
    gap: 20px;
  }


  /* ════════════════════════════════
     FOOTPRINT
  ════════════════════════════════ */
  .footprint {
    padding: 50px 0;
  }

  .footprint-grid {
    flex-direction: column;
    gap: 36px;
  }

  .footprint-heading {
    font-size: 28px;
  }

  .footprint-text {
    max-width: 100%;
  }

  .footprint-card {
    max-width: 320px;
  }

  .kerala-map {
    height: 220px;
  }

  .footprint-stats {
    flex-direction: column;
  }

  /* ════════════════════════════════
     FAQ
  ════════════════════════════════ */
  .faq {
    padding: 50px 0;
  }

  .faq-heading {
    font-size: 26px;
    margin-bottom: 28px;
  }

  .faq-question {
    padding: 16px 18px;
    font-size: 14px;
    gap: 14px;
  }

  .faq-icon {
    width: 24px;
    height: 24px;
  }

  .faq-answer p {
    font-size: 13.5px;
    padding: 0 18px 18px;
  }

  /* ════════════════════════════════
     STAY CONNECTED
  ════════════════════════════════ */
  .social-band {
    padding: 44px 0;
  }

  .social-band-heading {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .social-band-icons {
    gap: 12px;
  }

  .social-band-icon {
    width: 42px;
    height: 42px;
  }

  .social-band-icon svg {
    width: 18px;
    height: 18px;
  }

  /* ════════════════════════════════
     CONTACT
  ════════════════════════════════ */
  .contact {
    padding: 50px 0;
  }

  .contact-heading {
    font-size: 26px;
    line-height: 1.3;
    margin-bottom: 28px;
  }

  .contact-grid {
    flex-direction: column;
    gap: 20px;
  }

  .contact-info-card,
  .contact-form {
    flex: none !important;
    width: 100%;
  }

  .contact-map {
    height: 200px;
  }

  .map-open-btn {
    top: 12px;
    left: 12px;
    padding: 7px 12px;
    font-size: 12px;
  }

  .contact-details {
    flex-direction: column;
    gap: 18px;
    padding: 18px 18px;
  }

  .contact-detail {
    font-size: 13px;
  }

  .contact-form {
    padding: 22px;
    gap: 14px;
  }

  .form-row {
    flex-direction: column;
    gap: 14px;
  }

  .form-input,
  .form-textarea {
    padding: 12px 14px;
    font-size: 13.5px;
  }

  .form-textarea {
    min-height: 110px;
  }

  .btn-send {
    padding: 14px 24px;
    font-size: 14px;
  }

  /* ════════════════════════════════
     DONATE CTA
  ════════════════════════════════ */
  .donate-cta {
    padding: 10px 0 50px;
  }

  .donate-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 36px 28px;
    border-radius: 24px;
  }

  .donate-heading {
    font-size: 26px;
  }

  .donate-text {
    font-size: 14.5px;
  }

  .btn-donate {
    width: 100%;
    justify-content: center;
    padding: 15px 24px;
  }

  /* ── Guarantee visibility regardless of scroll-observer timing ── */
  .contact .section-label,
  .contact-heading,
  .contact-info-card,
  .contact-form,
  .contact-detail,
  .donate-banner,
  .contact-form > * {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }

  .contact-map {
    clip-path: inset(0 0 0 0) !important;
  }

  .icon-send {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .footer-grid {
    flex-direction: column;
  }




/* social work action lab banner section  */


.banner-btn-group {
    display: flex;
    flex-direction: unset !important;
    gap: 0px !important;
}

.banner-btn {
    padding: 12px 30px !important;
    font-size: 14px;
    width: fit-content;
    margin: 0 10px 0;
}







}


@media only screen and (min-width: 576px) and (max-width: 768.98px) {

  /* ── Body offset for shorter header ── */
  body {
    padding-top: 75px;
  }

  /* ── Container: tighter horizontal padding ── */
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* ── Header inner: reduce gap ── */
  .header-inner {
    gap: 10px;
    padding-top: 4px;
    padding-bottom: 4px;
  }

  /* ── Logo: scale down ── */
.brand-logo {
    height: 80px;
}

  /* ── Nav: slide-in drawer ── */
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 280px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -6px 0 30px rgba(28, 58, 82, 0.15);
    display: flex;
    flex-direction: column;
    padding: 0 0 0 15px;
    transition: right 0.3s ease;
    z-index: 200;
    overflow-y: auto;
  }

  .main-nav.is-open {
    right: 0;
  }

  /* ── Stack nav links vertically ── */
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .main-nav ul li {
    width: 100%;
    border-bottom: 1px solid rgba(28, 58, 82, 0.08);
  }

  .main-nav a {
    display: block;
    padding: 14px 0;
    font-size: 16px;
    font-weight: 500;
    color: #1c3a52;
  }

  /* ── Overlay ── */
  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 30, 40, 0.45);
    z-index: 150;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .nav-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  /* ── Hamburger toggle ── */
  .nav-toggle {
    display: flex;
  }

  /* ── Volunteer button: compact ── */
.btn-volunteer {
    padding: 10px 18px;
    font-size: 15px;
    gap: 5px;
}

  .icon-heart {
    width: 13px;
    height: 13px;
  }


/* social work action lab banner section  */


.banner-content h1 {
  font-size: 46px;
}

.banner-btn-group {
    display: flex;
    flex-direction: unset !important;
    gap: 0px !important;
}

.banner-btn {
    padding: 15px 45px !important;
    font-size: 14px;
    width: fit-content;
    margin: 0 10px 0;
}


/* social work action lab footer section  */

.footer-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 48px;
}




  
}


@media only screen and (min-width: 768px) and (max-width: 991.98px) {
  


.container {
    max-width: 930px !important;
}

/* social work action lab footer section  */

.footer-grid {
    flex-wrap: wrap;
}

.footer-col {
    flex: 0 0 320px;
}


}


@media only screen and (min-width: 991px) and (max-width: 1200.98px) {


.container {
    max-width: 1025px !important;
}

/* social work action lab footer section  */

.footer-grid {
    flex-wrap: wrap;
}

.footer-col {
    flex: 0 0 380px;
}

  
}
.social-dev-section {
  padding: 80px 0;
  background: #f8f9fa;
}

.social-dev-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-label {
  display: block;
  color: #2d8a4e;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.section-heading {
  color: #1a2b4a;
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 40px;
  font-family: 'Georgia', serif;
}

.activity-card-horizontal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;

}

.activity-image-col {
  position: relative;
  overflow: hidden;
}

.activity-image-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 400px;
}

.activity-content-col {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.activity-title {
  color: #1a2b4a;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.4;
}

.activity-body p {
  color: #4a5568;
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.activity-body p:last-child {
  margin-bottom: 28px;
}

.read-more {
  display: inline-block;
  color: #2d8a4e;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: color 0.3s ease;
  align-self: flex-start;
}

.read-more:hover {
  color: #1a6b3a;
}

@media (max-width: 900px) {
  .activity-card-horizontal {
    grid-template-columns: 1fr;
  }
  
  .activity-image-col img {
    min-height: 280px;
    max-height: 350px;
  }
  
  .activity-content-col {
    padding: 32px 24px;
  }
  
  .section-heading {
    font-size: 32px;
  }
  
  .activity-title {
    font-size: 22px;
  }
}

/* ===== Image popup ===== */
/* The Overlay (Background) */
.popup-overlay {
  display: none; /* Hidden by default, shown via JS */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  animation: fadeIn 0.3s ease-out;
}

/* The Content Container */
.popup-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* The Image (Responsive) */
.popup-image {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

/* Close Button */
.popup-close {
  position: absolute;
  top: -15px;
  right: -15px;
  background: #ffffff;
  color: #333333;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  line-height: 1;
  transition: background 0.2s, transform 0.2s;
}

.popup-close:hover {
  background: #f0f0f0;
  transform: scale(1.1);
}

/* Fade-in Animation */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Footer Column Container */
.footer-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Footer Heading with Green Accent */
.footer-heading {
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 2px solid #2f9e63; /* Matches your brand green */
  display: inline-block;
  width: fit-content;
}

/* Contact Details Wrapper */
.footer-contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Individual Contact Item */
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  line-height: 1.6;
}

/* SVG Icon */
.footer-contact-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 3px; /* Perfectly aligns icon with the first line of text */
}

/* Text Span (prevents long addresses from breaking layout) */
.footer-contact-item span {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Links (Email & Phone) */
.footer-contact-item a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
  font-weight: 500;
  border-bottom: 1px solid transparent;
}

.footer-contact-item a:hover {
  color: #2f9e63; /* Brand green on hover */
  border-bottom-color: #2f9e63;
}

/* Operating Hours (Smaller, dimmer text) */
.footer-contact-item small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
}

/* Responsive Adjustments for Mobile */
@media (max-width: 768px) {
  .footer-column {
    gap: 20px;
  }
  
  .footer-heading {
    font-size: 16px;
  }

  .footer-contact-item {
    font-size: 13px;
    gap: 12px;
  }

  .footer-contact-icon {
    width: 18px;
    height: 18px;
    margin-top: 2px;
  }
}
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
/* ===== SMILE Social Work Action Lab - hero image overlay ===== */
.lab-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 78, 59, 0.55) 0%, rgba(6, 78, 59, 0.45) 45%, rgba(4, 47, 36, 0.75) 100%);
}

/* ---------- Gallery toggle ---------- */
.gallery-actions {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

.gallery-toggle-btn {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  background: linear-gradient(135deg, #1c5f6b 0%, #4fae6d 100%);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(28, 95, 107, 0.28);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-toggle-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(28, 95, 107, 0.38);
}

.gallery-toggle-btn:active {
  transform: translateY(0);
}

.gallery-toggle-btn:focus-visible {
  outline: 3px solid #8fd6a3;
  outline-offset: 3px;
}

.gallery-toggle-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.35s ease;
}

.gallery-toggle-btn.expanded svg {
  transform: rotate(180deg);
}

/* Hidden gallery items */
.gallery-item.is-hidden {
  display: none;
}

/* Reveal animation */
.gallery-item.reveal {
  opacity: 0;
  animation: galleryReveal 0.6s ease forwards;
}

@keyframes galleryReveal {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}




/* ===== Header buttons: Smile with SMILE + Volunteer (all pages) ===== */
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; margin-left: 8px; }
.hdr-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  background: linear-gradient(135deg, #4cb86a 0%, #2e8b57 100%);
  color: #fff !important; font-family: 'Poppins', sans-serif; font-size: 0.88rem; font-weight: 600;
  line-height: 1.2; white-space: nowrap; text-decoration: none;
  box-shadow: 0 8px 20px rgba(46, 139, 87, 0.28);
  transition: transform .15s ease, filter .2s ease;
}
.hdr-btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.hdr-btn svg { width: 16px !important; height: 16px !important; flex: none; fill: currentColor; }
.main-nav .nav-cta { display: none !important; }
.main-nav a { white-space: nowrap; }

/* Tighter desktop header so all menu items fit on one line */
@media (min-width: 1025px) {
  .header-inner { gap: 16px; }
  .brand-logo { height: 90px; }
  .main-nav ul { gap: 20px; }
  .main-nav a { font-size: 14px; }
  .hdr-btn { padding: 9px 14px; font-size: 0.8rem; }
  .header-actions { gap: 8px; }
}

@media (max-width: 1024px) {
  .header-actions { display: none !important; }
  .main-nav .nav-cta { display: block !important; width: 100%; margin-top: 12px; padding: 0; border: 0 !important; list-style: none; }
  .main-nav li:not(.nav-cta) + .nav-cta { margin-top: 24px; }
  .main-nav .nav-cta .hdr-btn { display: flex; width: 100%; padding: 14px 20px; font-size: 0.95rem; border-bottom: 0 !important; }
  .main-nav .nav-cta .hdr-btn::after { display: none !important; }
}


/* ===== Responsive header + global safety net (loaded last; applies to all pages) ===== */
html { -webkit-text-size-adjust: 100%; }
img, video, iframe, svg { max-width: 100%; }
img { height: auto; }
.brand-logo { max-width: none; }
.hdr-btn svg, .icon-smile, .icon-heart { max-width: none; }
.about-media, .about-image, .volunteer-content { max-width: 100%; }

/* Hamburger drawer for everything up to 1320px (desktop nav no longer fits below that) */
@media (max-width: 1320px) {
  body { padding-top: 90px; }
  .container { padding-left: 24px; padding-right: 24px; max-width: 100% !important; }
  .header-inner { gap: 12px; padding-top: 4px; padding-bottom: 4px; }
  .brand-logo { height: 76px; }
  .header-actions { display: none !important; }
  .nav-toggle { display: flex !important; }
  .main-nav {
    position: fixed; top: 0; right: -100%;
    width: 80%; max-width: 320px; height: 100vh;
    background: #fff; box-shadow: -6px 0 30px rgba(28, 58, 82, 0.15);
    display: flex; flex-direction: column;
    padding: 56px 20px 24px; transition: right 0.3s ease;
    z-index: 200; overflow-y: auto;
  }
  .main-nav.is-open { right: 0; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 0; width: 100%; }
  .main-nav ul li { width: 100%; border-bottom: 1px solid rgba(28, 58, 82, 0.08); }
  .main-nav a { display: block; padding: 14px 0; font-size: 16px; color: #1c3a52; white-space: normal; }
  .main-nav .nav-cta { display: block !important; width: 100%; margin-top: 12px; padding: 0; border: 0 !important; list-style: none; }
  .main-nav .nav-cta .hdr-btn { display: flex; width: 100%; padding: 14px 20px; font-size: 0.95rem; color: #fff; }
  .nav-close {
    display: block; position: absolute; top: 10px; right: 14px;
    background: none; border: 0; font-size: 32px; line-height: 1; color: #1c3a52; cursor: pointer;
  }
  .nav-overlay {
    display: block; position: fixed; inset: 0; background: rgba(15, 30, 40, 0.45);
    z-index: 150; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
  }
  .nav-overlay.is-open { opacity: 1; pointer-events: auto; }
}
@media (max-width: 576px) {
  body { padding-top: 75px; }
  .container { padding-left: 16px; padding-right: 16px; }
  .brand-logo { height: 62px; }
}
@media (min-width: 1321px) {
  .header-inner { gap: 16px; }
  .brand-logo { height: 90px; }
  .main-nav ul { gap: 20px; }
  .main-nav a { font-size: 14px; }
  .header-actions { gap: 8px; margin-left: 0; }
  .hdr-btn { padding: 9px 14px; font-size: 0.8rem; }
}

/* Impact cards: wrap on tablets instead of overflowing */
@media (max-width: 900px) {
  .impact-grid { flex-wrap: wrap; gap: 16px; }
  .impact-card { flex: 1 1 calc(50% - 8px); min-width: 0; padding: 28px 14px; }
}
