/* NGO Foundation Pro — Main Stylesheet v3.0 */

:root {
  --saffron: #F5821F;
  --saffron-light: #FFF0E0;
  --saffron-dark: #D4691A;
  --teal: #0A7E8C;
  --teal-light: #E0F5F7;
  --teal-dark: #065960;
  --green: #3A8A4A;
  --green-light: #EAF6EC;
  --sky: #4BA3C7;
  --gold: #C9941A;
  --cream: #FFFDF7;
  --white: #FFFFFF;
  --text-dark: #1A1A2E;
  --text-mid: #3D3D5C;
  --text-soft: #6B7280;
  --border: #E5E7EB;
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.10);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
  --radius: 16px;
  --radius-sm: 10px;
}

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

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.7;
}

/* ===================== LOADER ===================== */
#ngoLoader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--teal-dark);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  transition: opacity 0.6s, visibility 0.6s;
}
#ngoLoader.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem; font-weight: 700;
  color: var(--white); letter-spacing: 2px;
  animation: loaderPulse 1.5s ease-in-out infinite;
}
.loader-tagline { color: rgba(255,255,255,0.6); font-size: 0.9rem; margin-top: 8px; letter-spacing: 3px; text-transform: uppercase; }
.loader-bar { width: 200px; height: 3px; background: rgba(255,255,255,0.2); border-radius: 2px; margin-top: 24px; overflow: hidden; }
.loader-bar-fill { height: 100%; background: var(--saffron); border-radius: 2px; animation: loadBar 2s ease forwards; }
@keyframes loaderPulse { 0%,100%{opacity:1} 50%{opacity:0.6} }
@keyframes loadBar { from{width:0} to{width:100%} }

/* ===================== NAVBAR ===================== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 5%;
  transition: all 0.4s ease;
  background: transparent;
}
nav.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  padding: 0 5%;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 80px;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
}
.nav-logo-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.2rem; font-weight: 700;
  box-shadow: 0 4px 12px rgba(245,130,31,0.4);
}
.nav-logo-text { display: flex; flex-direction: column; }
.nav-logo-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem; font-weight: 700;
  color: var(--white); line-height: 1.2;
  transition: color 0.4s;
}
nav.scrolled .nav-logo-name { color: var(--teal-dark); }
.nav-logo-sub {
  font-size: 0.65rem; color: rgba(255,255,255,0.7);
  letter-spacing: 2px; text-transform: uppercase;
  transition: color 0.4s;
}
nav.scrolled .nav-logo-sub { color: var(--text-soft); }

.nav-links {
  display: flex; align-items: center; gap: 32px;
  list-style: none;
}
.nav-links a {
  text-decoration: none; font-size: 0.875rem; font-weight: 500;
  color: rgba(255,255,255,0.9);
  transition: color 0.3s; position: relative;
  letter-spacing: 0.3px;
}
nav.scrolled .nav-links a { color: var(--text-mid); }
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--saffron);
  transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--saffron); }
.nav-donate-btn {
  background: var(--saffron); color: white !important;
  padding: 10px 22px; border-radius: 50px;
  font-weight: 600 !important; font-size: 0.85rem !important;
  box-shadow: 0 4px 15px rgba(245,130,31,0.4);
  transition: transform 0.2s, box-shadow 0.2s !important;
}
.nav-donate-btn::after { display: none !important; }
.nav-donate-btn:hover { transform: translateY(-2px) !important; box-shadow: 0 6px 20px rgba(245,130,31,0.5) !important; background: var(--saffron-dark) !important; color: white !important; }

.hamburger {
  display: none; flex-direction: column; cursor: pointer;
  gap: 5px; padding: 5px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: white; border-radius: 2px; transition: all 0.3s;
}
nav.scrolled .hamburger span { background: var(--text-dark); }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; position: absolute; top: 80px; left: 0; right: 0;
  background: white; padding: 20px 5%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  animation: slideDown 0.3s ease;
}
.mobile-menu.open { display: block; }
@keyframes slideDown { from{opacity:0;transform:translateY(-10px)} to{opacity:1;transform:translateY(0)} }
.mobile-menu a {
  display: block; padding: 14px 0; border-bottom: 1px solid var(--border);
  text-decoration: none; color: var(--text-dark); font-weight: 500;
  transition: color 0.2s; font-size: 1rem;
}
.mobile-menu a:hover { color: var(--saffron); }
.mobile-menu a:last-child { border-bottom: none; }

/* Donate Now button inside mobile menu — full width, prominent */
.mobile-menu .nav-donate-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 16px;
  padding: 15px 20px !important;
  border-radius: 12px !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: white !important;
  background: var(--saffron) !important;
  border-bottom: none !important;
  box-shadow: 0 4px 18px rgba(245,130,31,0.4);
  text-align: center;
  box-sizing: border-box;
  letter-spacing: 0.3px;
}
.mobile-menu .nav-donate-btn:hover {
  background: var(--saffron-dark) !important;
  color: white !important;
  transform: none;
}
.mobile-menu .nav-donate-btn:active {
  transform: scale(0.98) !important;
  background: var(--saffron-dark) !important;
}

/* ===================== HERO ===================== */
#home {
  min-height: 100vh; position: relative;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: 
    linear-gradient(135deg, rgba(6,89,96,0.92) 0%, rgba(10,126,140,0.85) 40%, rgba(245,130,31,0.75) 100%),
    url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?w=1600&q=80') center/cover no-repeat;
}
.hero-particles {
  position: absolute; inset: 0; overflow: hidden;
}
.hero-particles::before, .hero-particles::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}
.hero-particles::before {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(245,130,31,0.15), transparent 70%);
  top: -100px; right: -100px;
}
.hero-particles::after {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 70%);
  bottom: 0; left: 10%;
  animation-delay: -4s;
}
@keyframes float { 0%,100%{transform:translateY(0) scale(1)} 50%{transform:translateY(-30px) scale(1.05)} }

.hero-content {
  position: relative; z-index: 2;
  width: 100%; padding: 120px 5% 80px;
  max-width: 1200px; margin: 0 auto;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  color: white; padding: 8px 18px; border-radius: 50px;
  font-size: 0.8rem; font-weight: 500; letter-spacing: 1.5px;
  text-transform: uppercase; margin-bottom: 24px;
  animation: fadeUp 0.8s ease forwards;
}
.hero-badge i { color: var(--saffron); font-size: 0.7rem; }
.hero-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: rgba(255,255,255,0.8); font-style: italic;
  margin-bottom: 16px; letter-spacing: 1px;
  animation: fadeUp 0.8s 0.1s ease both;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700; color: white;
  line-height: 1.05; margin-bottom: 12px;
  animation: fadeUp 0.8s 0.2s ease both;
}
.hero-title span { color: #FFD280; }
.hero-subtitle {
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  color: rgba(255,255,255,0.9); font-weight: 300;
  letter-spacing: 1px; margin-bottom: 28px;
  animation: fadeUp 0.8s 0.3s ease both;
}
.hero-desc {
  max-width: 600px; font-size: 1rem;
  color: rgba(255,255,255,0.8); line-height: 1.8;
  margin-bottom: 40px;
  animation: fadeUp 0.8s 0.4s ease both;
}
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  animation: fadeUp 0.8s 0.5s ease both;
  align-items: center;
}
.btn-primary, .btn-outline, .btn-teal {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 9px; border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600; font-size: 0.95rem;
  text-decoration: none; cursor: pointer;
  transition: all 0.3s; line-height: 1;
  box-sizing: border-box; white-space: nowrap;
  /* prevent shrinking below text */
  flex-shrink: 0;
}
.btn-primary {
  background: var(--saffron); color: white;
  padding: 15px 32px; border: none;
  box-shadow: 0 6px 25px rgba(245,130,31,0.5);
}
.btn-primary:hover { background: var(--saffron-dark); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(245,130,31,0.6); }
.btn-outline {
  background: transparent; color: white;
  padding: 13px 28px; border: 2px solid rgba(255,255,255,0.55);
}
.btn-outline:hover { background: rgba(255,255,255,0.15); border-color: white; transform: translateY(-3px); }
.btn-teal {
  background: var(--teal); color: white;
  padding: 14px 28px; border: none;
  box-shadow: 0 4px 20px rgba(10,126,140,0.4);
}
.btn-teal:hover { background: var(--teal-dark); transform: translateY(-3px); }

.hero-counters {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; margin-top: 60px;
  background: rgba(255,255,255,0.1); border-radius: var(--radius);
  overflow: hidden; backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  animation: fadeUp 0.8s 0.6s ease both;
}
.counter-item {
  padding: 28px 20px; text-align: center;
  background: rgba(255,255,255,0.05);
  transition: background 0.3s;
}
.counter-item:hover { background: rgba(255,255,255,0.12); }
.counter-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem; font-weight: 700; color: #FFD280;
  display: block; line-height: 1;
}
.counter-label { font-size: 0.8rem; color: rgba(255,255,255,0.75); margin-top: 6px; letter-spacing: 0.5px; }

.hero-scroll {
  position: absolute; bottom: 30px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.6); font-size: 0.7rem; letter-spacing: 2px;
  text-transform: uppercase; animation: bounce 2s infinite;
  cursor: pointer; z-index: 2;
}
.hero-scroll i { font-size: 1.2rem; }
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }

@keyframes fadeUp { from{opacity:0;transform:translateY(30px)} to{opacity:1;transform:translateY(0)} }

/* ===================== SECTIONS BASE ===================== */
section { padding: 100px 5%; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--saffron);
  margin-bottom: 14px;
}
.section-label::before, .section-label::after {
  content: ''; display: block; height: 1px;
  background: var(--saffron); flex: 1; max-width: 30px;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 700;
  color: var(--text-dark); line-height: 1.2; margin-bottom: 16px;
}
.section-title span { color: var(--teal); }
.section-desc {
  font-size: 1.05rem; color: var(--text-soft);
  max-width: 600px; line-height: 1.8;
}
.text-center { text-align: center; }
.text-center .section-label { justify-content: center; }
.text-center .section-desc { margin: 0 auto; }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s, transform 0.7s; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.7s, transform 0.7s; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.7s, transform 0.7s; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ===================== ABOUT ===================== */
#about { background: white; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; margin-top: 60px; }
.about-image-block { position: relative; }
.about-img-main {
  width: 100%; border-radius: 20px; overflow: hidden;
  aspect-ratio: 4/5;
  background: url('https://images.unsplash.com/photo-1559027615-cd4628902d4a?w=700&q=80') center/cover;
  box-shadow: var(--shadow-lg);
}
.about-img-float {
  position: absolute; bottom: -30px; right: -30px;
  width: 200px; height: 200px; border-radius: 16px;
  background: url('https://images.unsplash.com/photo-1509099836639-18ba1795216d?w=400&q=80') center/cover;
  border: 6px solid white;
  box-shadow: var(--shadow-md);
}
.about-img-badge {
  position: absolute; top: 30px; left: -20px;
  background: var(--saffron); color: white;
  padding: 16px 20px; border-radius: 14px;
  text-align: center; box-shadow: 0 8px 25px rgba(245,130,31,0.4);
}
.about-img-badge strong { font-family: 'Cormorant Garamond', serif; font-size: 2rem; display: block; }
.about-img-badge span { font-size: 0.7rem; letter-spacing: 1px; text-transform: uppercase; opacity: 0.9; }

.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 30px 0; }
.mv-card {
  padding: 24px; border-radius: var(--radius);
  border: 1px solid var(--border); position: relative; overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.mv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.mv-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; width: 4px; height: 100%;
  background: var(--teal);
}
.mv-card:nth-child(2)::before { background: var(--saffron); }
.mv-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem; font-weight: 700; margin-bottom: 8px;
  color: var(--teal);
}
.mv-card:nth-child(2) h4 { color: var(--saffron); }
.mv-card p { font-size: 0.88rem; color: var(--text-soft); line-height: 1.7; }

.about-serve {
  background: var(--teal-light); border-radius: var(--radius);
  padding: 24px; margin-top: 8px;
}
.about-serve h4 {
  font-weight: 700; color: var(--teal-dark); margin-bottom: 12px;
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px;
}
.serve-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.serve-tag {
  background: white; color: var(--teal-dark);
  padding: 6px 14px; border-radius: 50px;
  font-size: 0.8rem; font-weight: 500;
  border: 1px solid rgba(10,126,140,0.2);
}

/* Team */
.team-section { margin-top: 80px; }
.team-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-top: 40px; }
.team-card {
  text-align: center; padding: 24px 16px;
  border-radius: var(--radius); background: white;
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.team-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.team-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--teal-light), var(--saffron-light));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem; font-weight: 700; color: var(--teal);
  border: 3px solid white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.team-name { font-size: 0.85rem; font-weight: 600; color: var(--text-dark); }
.team-role { font-size: 0.72rem; color: var(--text-soft); margin-top: 3px; }

/* ===================== PROGRAMS ===================== */
#programs { background: var(--cream); }
.programs-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; margin-top: 60px;
}
.program-card {
  background: white; border-radius: 20px;
  padding: 32px 24px; border: 1px solid var(--border);
  transition: all 0.4s; cursor: pointer;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.program-card::before {
  content: ''; position: absolute;
  inset: 0; border-radius: 20px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  opacity: 0; transition: opacity 0.4s;
}
.program-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.program-card:hover::before { opacity: 1; }
.program-card:hover .program-icon-wrap { background: rgba(255,255,255,0.2); }
.program-card:hover .program-title,
.program-card:hover .program-desc,
.program-card:hover .program-readmore { color: white; }
.program-card:hover .program-readmore-link { color: rgba(255,255,255,0.8); }

.program-icon-wrap {
  width: 64px; height: 64px; border-radius: 16px;
  background: var(--teal-light); display: flex;
  align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 20px;
  transition: background 0.4s; position: relative; z-index: 1;
}
.program-card:nth-child(2) .program-icon-wrap { background: var(--saffron-light); }
.program-card:nth-child(3) .program-icon-wrap { background: var(--green-light); }
.program-card:nth-child(4) .program-icon-wrap { background: #E8F4FD; }
.program-card:nth-child(5) .program-icon-wrap { background: #FFF5E0; }
.program-card:nth-child(6) .program-icon-wrap { background: #EDFAF1; }
.program-card:nth-child(7) .program-icon-wrap { background: #FEF3F2; }
.program-card:nth-child(8) .program-icon-wrap { background: #F5F0FF; }

.program-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem; font-weight: 700; color: var(--text-dark);
  margin-bottom: 10px; transition: color 0.4s; position: relative; z-index: 1;
}
.program-desc {
  font-size: 0.83rem; color: var(--text-soft); line-height: 1.7;
  transition: color 0.4s; position: relative; z-index: 1;
}
.program-readmore {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px; font-size: 0.8rem; font-weight: 600;
  color: var(--teal); position: relative; z-index: 1; transition: color 0.4s;
  cursor: pointer; text-decoration: none;
}
.program-readmore i { transition: transform 0.3s; }
.program-readmore:hover i { transform: translateX(4px); }

/* ===================== CTA STRIP ===================== */
.cta-strip {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  padding: 50px 5%; text-align: center; position: relative; overflow: hidden;
}
.cta-strip::before {
  content: ''; position: absolute;
  top: -50%; right: -10%; width: 400px; height: 400px;
  border-radius: 50%; background: rgba(255,255,255,0.04);
}
.cta-strip h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: white; margin-bottom: 10px; position: relative;
}
.cta-strip p { color: rgba(255,255,255,0.8); margin-bottom: 28px; font-size: 1.05rem; position: relative; }
.cta-strip .btn-primary { box-shadow: 0 6px 25px rgba(0,0,0,0.3); }

/* ===================== IMPACT ===================== */
#impact { background: white; }
.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 50px; }
.impact-card {
  text-align: center; padding: 40px 20px;
  border-radius: 20px; background: var(--cream);
  border: 1px solid var(--border); transition: all 0.3s;
}
.impact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); background: white; }
.impact-icon {
  width: 80px; height: 80px; border-radius: 50%;
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
}
.impact-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem; font-weight: 700; line-height: 1;
  margin-bottom: 6px;
}
.impact-label { font-size: 0.9rem; color: var(--text-soft); font-weight: 500; }

/* ===================== DONATION ===================== */
#donate { background: var(--cream); }
.donation-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; align-items: start; margin-top: 60px; }
.donation-left { position: sticky; top: 100px; }
.donation-impact-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; font-weight: 700; color: var(--text-dark); margin-bottom: 20px;
}
.impact-table { display: flex; flex-direction: column; gap: 14px; }
.impact-row {
  display: flex; align-items: center; gap: 16px;
  background: white; border-radius: 14px; padding: 18px 20px;
  border: 1px solid var(--border); transition: all 0.3s; cursor: pointer;
}
.impact-row:hover { border-color: var(--saffron); box-shadow: 0 4px 20px rgba(245,130,31,0.15); transform: translateX(4px); }
.impact-amount {
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  color: white; padding: 10px 16px; border-radius: 10px;
  font-weight: 700; font-size: 0.95rem; white-space: nowrap;
  min-width: 90px; text-align: center; box-shadow: 0 4px 12px rgba(245,130,31,0.3);
}
.impact-desc { font-size: 0.88rem; color: var(--text-mid); line-height: 1.5; }
.impact-desc strong { color: var(--text-dark); display: block; font-size: 0.92rem; }

.tax-notice {
  background: var(--green-light); border: 1px solid rgba(58,138,74,0.2);
  border-radius: 12px; padding: 16px 20px; margin-top: 20px;
  display: flex; align-items: flex-start; gap: 12px;
}
.tax-notice i { color: var(--green); font-size: 1.1rem; margin-top: 2px; }
.tax-notice p { font-size: 0.83rem; color: var(--text-mid); line-height: 1.6; }

.donation-box {
  background: white; border-radius: 24px;
  padding: 40px; box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.donation-box h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem; font-weight: 700; color: var(--text-dark); margin-bottom: 8px;
}
.donation-box p { font-size: 0.9rem; color: var(--text-soft); margin-bottom: 28px; }

.amount-presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.preset-btn {
  padding: 14px; border: 2px solid var(--border); border-radius: 12px;
  background: none; cursor: pointer; font-family: 'DM Sans', sans-serif;
  font-weight: 700; font-size: 1rem; color: var(--text-dark);
  transition: all 0.2s;
}
.preset-btn:hover, .preset-btn.active {
  border-color: var(--saffron); background: var(--saffron-light); color: var(--saffron-dark);
}

.custom-amount {
  position: relative; margin-bottom: 24px;
}
.custom-amount input {
  width: 100%; padding: 14px 16px 14px 48px;
  border: 2px solid var(--border); border-radius: 12px;
  font-size: 1rem; font-family: 'DM Sans', sans-serif;
  color: var(--text-dark); outline: none; transition: border-color 0.3s;
}
.custom-amount input:focus { border-color: var(--teal); }
.custom-amount .currency {
  position: absolute; left: 16px; top: 50%;
  transform: translateY(-50%); color: var(--text-soft); font-weight: 600;
}

.payment-methods { margin-bottom: 24px; }
.payment-methods h4 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-soft); margin-bottom: 12px; }
.upi-box {
  background: var(--teal-light); border-radius: 12px; padding: 16px 20px;
  display: flex; align-items: center; gap: 14px; margin-bottom: 10px;
}
.upi-box i { color: var(--teal); font-size: 1.3rem; }
.upi-id { font-size: 0.95rem; font-weight: 700; color: var(--teal-dark); font-family: monospace; }
.upi-label { font-size: 0.75rem; color: var(--text-soft); }
.qr-row { display: flex; align-items: center; gap: 16px; }
.qr-placeholder {
  width: 90px; height: 90px; border-radius: 10px;
  background: white; border: 2px solid var(--border);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 0.65rem; color: var(--text-soft); text-align: center; gap: 6px;
}
.qr-placeholder i { font-size: 1.8rem; color: var(--border); }
.bank-info { flex: 1; }
.bank-info p { font-size: 0.8rem; color: var(--text-mid); margin-bottom: 3px; }
.bank-info strong { color: var(--text-dark); }

.donate-cta-btn {
  width: 100%; padding: 18px; border: none; border-radius: 14px;
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  color: white; font-size: 1.05rem; font-weight: 700;
  font-family: 'DM Sans', sans-serif; cursor: pointer;
  box-shadow: 0 6px 25px rgba(245,130,31,0.45);
  transition: all 0.3s; display: flex; align-items: center; justify-content: center; gap: 10px;
}
.donate-cta-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(245,130,31,0.55); }

.trust-badges { display: flex; gap: 20px; margin-top: 16px; justify-content: center; }
.trust-badge { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--text-soft); }
.trust-badge i { color: var(--green); }

/* ===================== VOLUNTEER ===================== */
#volunteer {
  background: linear-gradient(135deg, var(--teal-dark) 0%, #0d4a52 100%);
  position: relative; overflow: hidden;
}
#volunteer::before {
  content: ''; position: absolute;
  top: -100px; right: -100px; width: 500px; height: 500px;
  border-radius: 50%; background: rgba(255,255,255,0.03);
}
.vol-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.vol-img {
  border-radius: 20px; overflow: hidden;
  height: 500px;
  background: url('https://images.unsplash.com/photo-1593113598332-cd288d649433?w=700&q=80') center/cover;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  position: relative;
}
.vol-img-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  padding: 30px; color: white;
}
.vol-img-overlay h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; }
.vol-img-overlay p { font-size: 0.85rem; opacity: 0.8; }

.vol-content .section-label { color: #FFD280; }
.vol-content .section-title { color: white; }
.vol-content .section-desc { color: rgba(255,255,255,0.75); }
.vol-areas {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px; margin: 28px 0;
}
.vol-area {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px; padding: 16px 12px; text-align: center;
  transition: all 0.3s; cursor: pointer;
}
.vol-area:hover { background: rgba(255,255,255,0.15); transform: translateY(-3px); }
.vol-area i { font-size: 1.4rem; display: block; margin-bottom: 8px; color: #FFD280; }
.vol-area span { font-size: 0.78rem; color: rgba(255,255,255,0.85); font-weight: 500; }

.vol-benefits { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.vol-benefit {
  display: flex; align-items: center; gap: 12px;
  color: rgba(255,255,255,0.85); font-size: 0.9rem;
}
.vol-benefit i { color: #FFD280; width: 20px; flex-shrink: 0; }

/* ===================== GALLERY ===================== */
#gallery { background: white; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 50px; }
.gallery-item {
  border-radius: 14px; overflow: hidden;
  position: relative; cursor: pointer;
  aspect-ratio: 4/3;
}
.gallery-item:nth-child(1) { grid-column: span 2; aspect-ratio: 16/7; }
.gallery-item img-bg {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s;
}
.gallery-bg {
  width: 100%; height: 100%; background-size: cover; background-position: center;
  transition: transform 0.5s;
}
.gallery-item:hover .gallery-bg { transform: scale(1.06); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  opacity: 0; transition: opacity 0.3s;
  display: flex; align-items: flex-end; padding: 20px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: white; font-size: 0.9rem; font-weight: 600; }

/* ===================== TESTIMONIALS ===================== */
#testimonials { background: var(--cream); }
.testimonial-slider {
  position: relative; margin-top: 50px;
  overflow: hidden;
}
.testimonial-track {
  display: flex;
  gap: 24px;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  align-items: stretch;
}
.testimonial-card {
  /* width set dynamically by JS */
  flex-shrink: 0;
  background: white; border-radius: 20px; padding: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
}
.testimonial-quote {
  font-size: 2.5rem; color: var(--saffron); line-height: 1;
  margin-bottom: 12px; font-family: Georgia, serif;
}
.testimonial-text {
  font-size: 0.9rem; color: var(--text-mid); line-height: 1.8;
  margin-bottom: 20px; font-style: italic;
  /* prevent text overflow inside card */
  overflow-wrap: break-word; word-break: break-word;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--teal-light), var(--saffron-light));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif; font-size: 1.1rem;
  font-weight: 700; color: var(--teal);
}
.testimonial-name { font-weight: 700; font-size: 0.88rem; color: var(--text-dark); }
.testimonial-loc  { font-size: 0.76rem; color: var(--text-soft); margin-top: 2px; }
.slider-controls  { display: flex; gap: 12px; margin-top: 28px; justify-content: center; align-items: center; }
.slider-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--border); background: white;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; color: var(--text-soft); transition: all 0.3s; flex-shrink: 0;
}
.slider-btn:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-light); }
.slider-dots { display: flex; align-items: center; gap: 8px; }
.slider-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border); cursor: pointer; transition: all 0.3s;
}
.slider-dot.active { background: var(--saffron); width: 24px; border-radius: 4px; }

/* ===================== NEWS ===================== */
#news { background: white; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 50px; }
.news-card {
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border); background: white;
  box-shadow: var(--shadow-sm); transition: all 0.3s; cursor: pointer;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.news-img {
  height: 200px; background-size: cover; background-position: center;
  position: relative; overflow: hidden;
}
.news-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
  transition: opacity 0.3s;
}
.news-tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--saffron); color: white;
  padding: 4px 12px; border-radius: 50px;
  font-size: 0.72rem; font-weight: 600; z-index: 1;
}
.news-body { padding: 22px; }
.news-meta { font-size: 0.75rem; color: var(--text-soft); margin-bottom: 8px; }
.news-title { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; font-weight: 700; color: var(--text-dark); line-height: 1.4; margin-bottom: 10px; }
.news-excerpt { font-size: 0.83rem; color: var(--text-soft); line-height: 1.7; }
.news-readmore { display: inline-flex; align-items: center; gap: 5px; margin-top: 14px; font-size: 0.82rem; font-weight: 600; color: var(--teal); cursor: pointer; }
.news-readmore i { transition: transform 0.3s; }
.news-readmore:hover i { transform: translateX(4px); }

/* ===================== FAQ ===================== */
#faq { background: var(--cream); }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; margin-top: 60px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: white; border-radius: 14px;
  border: 1px solid var(--border); overflow: hidden;
  transition: box-shadow 0.3s;
}
.faq-item.open { box-shadow: var(--shadow-md); border-color: var(--teal); }
.faq-question {
  padding: 20px 24px; display: flex; align-items: center;
  justify-content: space-between; cursor: pointer;
  font-weight: 600; font-size: 0.9rem; color: var(--text-dark);
  transition: color 0.3s; gap: 16px;
}
.faq-item.open .faq-question { color: var(--teal); }
.faq-toggle {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--teal-light); display: flex; align-items: center;
  justify-content: center; font-size: 0.75rem; color: var(--teal);
  flex-shrink: 0; transition: all 0.3s;
}
.faq-item.open .faq-toggle { background: var(--teal); color: white; transform: rotate(45deg); }
.faq-answer {
  padding: 0 24px; max-height: 0; overflow: hidden;
  font-size: 0.88rem; color: var(--text-soft); line-height: 1.8;
  transition: max-height 0.4s ease, padding 0.3s;
}
.faq-item.open .faq-answer { padding: 0 24px 20px; max-height: 300px; }

/* ===================== NEWSLETTER ===================== */
.newsletter-section {
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  padding: 60px 5%; text-align: center;
}
.newsletter-section h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem); color: white; margin-bottom: 8px;
}
.newsletter-section p { color: rgba(255,255,255,0.85); margin-bottom: 28px; font-size: 1rem; }
.newsletter-form {
  display: flex; max-width: 520px; margin: 0 auto;
  background: rgba(255,255,255,0.15); border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.3); overflow: hidden;
  padding: 6px 6px 6px 20px;
}
.newsletter-form input {
  flex: 1; background: none; border: none; outline: none;
  color: white; font-family: 'DM Sans', sans-serif; font-size: 0.95rem;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.65); }
.newsletter-form button {
  background: white; color: var(--saffron-dark);
  border: none; padding: 12px 24px; border-radius: 50px;
  font-weight: 700; cursor: pointer; font-size: 0.9rem;
  font-family: 'DM Sans', sans-serif; transition: all 0.2s;
}
.newsletter-form button:hover { background: var(--cream); transform: scale(1.02); }

/* ===================== CONTACT ===================== */
#contact { background: white; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 60px; }
.contact-info-card {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  border-radius: 24px; padding: 40px;
  color: white;
}
.contact-info-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem; margin-bottom: 8px;
}
.contact-info-card > p { color: rgba(255,255,255,0.75); margin-bottom: 32px; font-size: 0.9rem; }
.contact-detail { display: flex; gap: 14px; margin-bottom: 20px; }
.contact-icon {
  width: 42px; height: 42px; background: rgba(255,255,255,0.15);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; flex-shrink: 0;
}
.contact-detail-text h5 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.7; margin-bottom: 2px; }
.contact-detail-text p { font-size: 0.9rem; }
.contact-detail-text a { color: #FFD280; text-decoration: none; }

.social-links { display: flex; gap: 12px; margin-top: 28px; }
.social-link {
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1rem; transition: all 0.3s; text-decoration: none;
}
.social-link:hover { background: rgba(255,255,255,0.25); transform: translateY(-3px); }
.social-link.fb:hover { background: #1877F2; }
.social-link.ig:hover { background: linear-gradient(45deg, #F09433, #E6683C, #DC2743, #CC2366, #BC1888); }
.social-link.tw:hover { background: #1DA1F2; }
.social-link.yt:hover { background: #FF0000; }

.map-placeholder {
  background: var(--teal-light); border-radius: 14px;
  height: 200px; display: flex; align-items: center; justify-content: center;
  margin-top: 20px; color: var(--teal); flex-direction: column; gap: 8px;
  border: 2px dashed rgba(10,126,140,0.3);
}
.map-placeholder i { font-size: 2rem; }
.map-placeholder p { font-size: 0.85rem; font-weight: 500; }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.8rem; font-weight: 600; color: var(--text-mid); text-transform: uppercase; letter-spacing: 0.8px; }
.form-group input, .form-group textarea, .form-group select {
  padding: 13px 16px; border: 2px solid var(--border);
  border-radius: 10px; font-size: 0.92rem;
  font-family: 'DM Sans', sans-serif; color: var(--text-dark);
  outline: none; transition: border-color 0.3s; resize: none;
  background: var(--cream);
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--teal); background: white; }
.form-submit {
  background: var(--teal); color: white; border: none;
  padding: 16px 32px; border-radius: 12px; font-weight: 700;
  font-size: 0.95rem; font-family: 'DM Sans', sans-serif;
  cursor: pointer; transition: all 0.3s;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.form-submit:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(10,126,140,0.35); }

/* ===================== FOOTER ===================== */
footer {
  background: var(--text-dark); color: rgba(255,255,255,0.8);
  padding: 60px 5% 30px;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 50px; max-width: 1200px; margin: 0 auto; }
.footer-brand {}
.footer-logo-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; font-weight: 700; color: white;
}
.footer-desc { font-size: 0.85rem; line-height: 1.8; margin-bottom: 20px; max-width: 300px; }
.footer-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem; font-style: italic; color: #FFD280;
  border-left: 3px solid var(--saffron); padding-left: 14px;
}

.footer-col h4 {
  color: white; font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 20px;
  position: relative; padding-bottom: 12px;
}
.footer-col h4::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 30px; height: 2px; background: var(--saffron);
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  text-decoration: none; color: rgba(255,255,255,0.65);
  font-size: 0.88rem; transition: color 0.2s;
  display: flex; align-items: center; gap: 6px;
}
.footer-links a:hover { color: var(--saffron); }
.footer-links a i { font-size: 0.7rem; color: var(--saffron); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 50px; padding-top: 28px;
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin-left: auto; margin-right: auto;
  flex-wrap: wrap; gap: 16px;
  padding-left: 0; padding-right: 0;
}
.footer-copy { font-size: 0.82rem; color: rgba(255,255,255,0.5); }
.footer-copy a { color: var(--saffron); text-decoration: none; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 0.82rem; color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: rgba(255,255,255,0.8); }

/* ===================== FLOATING ===================== */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 900;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  text-decoration: none; transition: all 0.3s;
  animation: waPulse 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); }
@keyframes waPulse {
  0%{box-shadow: 0 0 0 0 rgba(37,211,102,0.5)}
  70%{box-shadow: 0 0 0 14px rgba(37,211,102,0)}
  100%{box-shadow: 0 0 0 0 rgba(37,211,102,0)}
}

.back-to-top {
  position: fixed; bottom: 28px; left: 28px; z-index: 900;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--teal); color: white; border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; cursor: pointer;
  box-shadow: 0 4px 15px rgba(10,126,140,0.4);
  transition: all 0.3s; opacity: 0; pointer-events: none;
}
.back-to-top.show { opacity: 1; pointer-events: all; }
.back-to-top:hover { background: var(--teal-dark); transform: translateY(-3px); }

/* ===================== DONATE CTA STRIP ===================== */
.pre-footer-cta {
  background: var(--saffron-light); padding: 60px 5%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 30px; flex-wrap: wrap;
}
.pre-footer-cta .cta-text h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--text-dark); margin-bottom: 6px;
}
.pre-footer-cta .cta-text p { color: var(--text-soft); font-size: 0.95rem; }
.pre-footer-cta .cta-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===================== GLOBAL MOBILE SAFETY ===================== */
img { max-width: 100%; height: auto; }
* { min-width: 0; }
html, body { max-width: 100%; overflow-x: hidden; }

/* Prevent text from overflowing on tiny screens */
.hero-title, .section-title, .footer-logo-name {
  word-break: break-word;
}

/* Smooth momentum scrolling on iOS */
html { -webkit-overflow-scrolling: touch; }

/* Ensure buttons never overflow container */
.btn-primary, .btn-outline, .btn-teal, .donate-cta-btn, .form-submit {
  max-width: 100%;
}
/* Remove overflow:hidden that clips icon+text */
@media (max-width: 480px) {
  .btn-primary i, .btn-outline i, .btn-teal i { flex-shrink: 0; }
}

/* Fix programs-grid card hover — on mobile shows ::before overlay correctly */
@media (hover: none) {
  .program-card::before { display: none; }
  .program-card { border: 1px solid var(--border); }
  .program-card:active { background: var(--teal-light); }
}


/* ===================== RESPONSIVE ===================== */

/* --- Tablet Landscape: 901px – 1100px --- */
@media (max-width: 1100px) {
  .programs-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
  .footer-grid .footer-col:last-child { grid-column: span 1; }
  .nav-links { gap: 20px; }
}

/* --- Tablet Portrait: 601px – 900px --- */
@media (max-width: 900px) {
  section { padding: 80px 4%; }

  /* Navbar */
  .nav-links { display: none; }
  .hamburger { display: flex; }
  nav { padding: 0 4%; }
  nav.scrolled { padding: 0 4%; }

  /* Hero */
  .hero-content { padding: 110px 4% 70px; }
  .hero-counters { grid-template-columns: repeat(2, 1fr); }
  /* Buttons — wrap but don't stretch full width on tablet */
  .hero-btns { flex-wrap: wrap; gap: 12px; }
  .hero-btns .btn-primary,
  .hero-btns .btn-outline,
  .hero-btns .btn-teal { padding: 14px 24px; font-size: 0.9rem; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-img-main { aspect-ratio: 16/9; }
  .about-img-float { display: none; }
  .about-img-badge { left: 16px; top: 16px; }
  .mv-grid { grid-template-columns: 1fr 1fr; gap: 16px; }

  /* Team */
  .team-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }

  /* Programs */
  .programs-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  /* Impact */
  .impact-grid { grid-template-columns: repeat(2, 1fr); }

  /* Donation */
  .donation-grid { grid-template-columns: 1fr; gap: 40px; }
  .donation-left { position: static; }
  .donation-box { padding: 28px; }

  /* Volunteer */
  .vol-grid { grid-template-columns: 1fr; gap: 40px; }
  .vol-img { height: 280px; }
  .vol-areas { grid-template-columns: repeat(4, 1fr); gap: 10px; }

  /* Gallery */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:nth-child(1) { grid-column: span 2; aspect-ratio: 16/7; }

  /* Testimonials — handled by JS */

  /* News */
  .news-grid { grid-template-columns: repeat(2, 1fr); }

  /* FAQ */
  .faq-grid { grid-template-columns: 1fr; gap: 36px; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: span 2; }

  /* Pre-footer */
  .pre-footer-cta { flex-direction: column; text-align: center; }
  .pre-footer-cta .cta-btns { justify-content: center; }

  /* CTA strip */
  .cta-strip { padding: 40px 4%; }
}

/* --- Large Phone: 481px – 600px --- */
@media (max-width: 600px) {
  section { padding: 60px 4%; }

  /* Loader */
  .loader-logo { font-size: 1.8rem; }

  /* Navbar */
  .nav-inner { height: 68px; }
  .nav-logo-name { font-size: 1.05rem; }
  .nav-logo-sub { display: none; }
  .nav-logo-icon { width: 38px; height: 38px; font-size: 1rem; }
  .mobile-menu { top: 68px; }

  /* Hero */
  .hero-content { padding: 95px 4% 60px; }
  .hero-badge { font-size: 0.7rem; padding: 6px 14px; }
  .hero-counters { grid-template-columns: repeat(2, 1fr); gap: 1px; }
  .counter-num { font-size: 1.9rem; }
  .counter-item { padding: 20px 12px; }
  .counter-label { font-size: 0.72rem; }
  /* Buttons — stack vertically, full width on phone */
  .hero-btns { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-btns .btn-primary,
  .hero-btns .btn-outline,
  .hero-btns .btn-teal {
    width: 100%; padding: 16px 20px; font-size: 0.95rem;
    justify-content: center;
  }

  /* About */
  .mv-grid { grid-template-columns: 1fr; }
  .about-img-main { aspect-ratio: 4/3; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .team-card { padding: 18px 12px; }

  /* Programs */
  .programs-grid { grid-template-columns: 1fr; gap: 16px; }
  .program-card { padding: 24px 20px; }

  /* Impact */
  .impact-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .impact-card { padding: 28px 14px; }
  .impact-num { font-size: 2.2rem; }

  /* Donation */
  .donation-box { padding: 22px 18px; border-radius: 18px; }
  .donation-box h3 { font-size: 1.4rem; }
  .amount-presets { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .preset-btn { padding: 10px 4px; font-size: 0.82rem; }
  .qr-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .qr-placeholder { width: 80px; height: 80px; }
  .trust-badges { flex-wrap: wrap; gap: 12px; justify-content: center; }
  .impact-row { flex-direction: row; gap: 12px; }
  .impact-amount { min-width: 80px; font-size: 0.85rem; padding: 8px 10px; }

  /* Volunteer */
  .vol-areas { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .vol-area { padding: 12px 6px; }
  .vol-area i { font-size: 1.2rem; }
  .vol-area span { font-size: 0.7rem; }
  .vol-img { display: none; }

  /* Gallery */
  .gallery-grid { grid-template-columns: 1fr; gap: 12px; }
  .gallery-item:nth-child(1) { grid-column: span 1; aspect-ratio: 4/3; }
  .gallery-overlay { opacity: 1; }

  /* Testimonials */
  .testimonial-slider { overflow: hidden; }

  /* News */
  .news-grid { grid-template-columns: 1fr; gap: 20px; }

  /* FAQ */
  .faq-question { font-size: 0.85rem; padding: 16px 18px; }

  /* Contact */
  .contact-info-card { padding: 28px 22px; }
  .form-row { grid-template-columns: 1fr; gap: 12px; }

  /* Newsletter */
  .newsletter-form { flex-direction: column; border-radius: 14px; padding: 12px; gap: 10px; }
  .newsletter-form input { padding: 12px 10px; }
  .newsletter-form button { border-radius: 10px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { grid-column: span 1; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 12px; }
  .footer-legal { justify-content: center; gap: 14px; }
  .footer-desc { max-width: 100%; }

  /* CTA strip */
  .cta-strip h2 { font-size: 1.6rem; }
  .cta-strip .hero-btns { justify-content: center; }

  /* Pre-footer */
  .pre-footer-cta { padding: 40px 4%; }
  .pre-footer-cta .cta-btns { flex-direction: column; align-items: center; }
  .pre-footer-cta .cta-btns a { width: 100%; max-width: 280px; justify-content: center; }
}

/* --- Small Phone: ≤ 480px --- */
@media (max-width: 480px) {
  section { padding: 55px 4%; }

  /* Hero */
  .hero-content { padding: 88px 4% 50px; }
  .hero-counters { grid-template-columns: repeat(2, 1fr); }
  .counter-num { font-size: 1.7rem; }
  .counter-item { padding: 16px 8px; }
  .counter-label { font-size: 0.68rem; }

  /* Buttons — smaller padding on tiny screens */
  .btn-primary, .btn-outline, .btn-teal { font-size: 0.88rem; padding: 14px 16px; gap: 7px; }
  .hero-btns .btn-primary,
  .hero-btns .btn-outline,
  .hero-btns .btn-teal { padding: 15px 16px; font-size: 0.9rem; }

  /* Impact */
  .impact-grid { grid-template-columns: 1fr 1fr; }

  /* Volunteer areas on tiny screens */
  .vol-areas { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .vol-area span { font-size: 0.62rem; }
  .vol-area { padding: 10px 4px; }

  /* Team */
  .team-avatar { width: 58px; height: 58px; font-size: 1.3rem; }
  .team-name { font-size: 0.78rem; }

  /* Donation */
  .amount-presets { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .preset-btn { font-size: 0.88rem; padding: 12px 8px; }

  /* Trust badges */
  .trust-badges { flex-direction: column; align-items: center; gap: 8px; }

  /* Impact row */
  .impact-amount { min-width: 72px; font-size: 0.8rem; padding: 7px 8px; }

  /* Slider */
  .slider-controls { gap: 8px; }
  .slider-btn { width: 38px; height: 38px; }

  /* Contact form */
  .form-group input, .form-group textarea, .form-group select { font-size: 0.88rem; padding: 12px 14px; }

  /* WhatsApp & back-to-top positioning */
  .whatsapp-float { bottom: 20px; right: 16px; width: 50px; height: 50px; font-size: 1.3rem; }
  .back-to-top { bottom: 20px; left: 16px; width: 40px; height: 40px; font-size: 0.85rem; }

  /* Footer */
  .footer-legal { flex-wrap: wrap; justify-content: center; }
}

/* --- Touch-friendly tap targets for all small screens --- */
@media (max-width: 900px) {
  .vol-area, .program-card, .news-card, .impact-row,
  .team-card, .faq-question, .slider-btn, .social-link,
  .preset-btn { -webkit-tap-highlight-color: transparent; }

  /* Disable hover transforms on touch devices */
  .program-card:hover { transform: none; box-shadow: var(--shadow-sm); }
  .news-card:hover { transform: none; box-shadow: var(--shadow-sm); }
  .team-card:hover { transform: none; }
  .impact-row:hover { transform: none; border-color: var(--border); box-shadow: none; }

  /* Button touch active states instead of hover */
  .btn-primary:hover { transform: none; box-shadow: 0 6px 25px rgba(245,130,31,0.5); }
  .btn-outline:hover { transform: none; }
  .btn-teal:hover { transform: none; }
  .btn-primary:active { background: var(--saffron-dark); transform: scale(0.97); }
  .btn-outline:active { background: rgba(255,255,255,0.2); transform: scale(0.97); }
  .btn-teal:active { background: var(--teal-dark); transform: scale(0.97); }
  .donate-cta-btn:active { transform: scale(0.98); }

  /* Always show gallery overlay captions on mobile */
  .gallery-overlay { opacity: 1; background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 60%); }
}

/* ===== WordPress Theme Override Reset ===== */
/* Yeh rules WordPress theme ke default styles ko reset karte hain */
html body.nst-page,
html body.nst-page * {
  box-sizing: border-box;
}
html body.nst-page {
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden;
}
/* Hide theme header/footer only on this page template */
.nst-page .site-header,
.nst-page .site-footer,
.nst-page #wpadminbar + * > header,
.nst-page #masthead,
.nst-page #colophon,
.nst-page .main-navigation,
.nst-page .entry-header,
.nst-page .entry-footer,
.nst-page #page > header,
.nst-page #page > footer {
  display: none !important;
}
.nst-page #content,
.nst-page #primary,
.nst-page #main,
.nst-page .site-content,
.nst-page .content-area {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* ── Language Switcher ─────────────────────────────────────── */
.ngo-lang-switcher {
  display: flex; align-items: center; gap: 6px;
}
.ngo-lang-btn {
  background: transparent; border: none; cursor: pointer;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 1px;
  color: rgba(255,255,255,0.7); padding: 4px 8px;
  border-radius: 4px; transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
}
.ngo-lang-btn.active,
.ngo-lang-btn:hover { color: white; background: rgba(255,255,255,0.15); }
nav.scrolled .ngo-lang-btn { color: var(--text-soft); }
nav.scrolled .ngo-lang-btn.active,
nav.scrolled .ngo-lang-btn:hover { color: var(--teal); background: var(--teal-light); }
.ngo-lang-sep { color: rgba(255,255,255,0.4); font-size: 0.75rem; }
nav.scrolled .ngo-lang-sep { color: var(--border); }

/* ── Global Mobile Safety ──────────────────────────────────── */
img { max-width: 100%; height: auto; }
*, *::before, *::after { min-width: 0; box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
.hero-title, .section-title { word-break: break-word; }
html { -webkit-overflow-scrolling: touch; }

/* ── WordPress Theme Reset (page template only) ────────────── */
body.ngo-page .site-header,
body.ngo-page .site-footer,
body.ngo-page #masthead,
body.ngo-page #colophon,
body.ngo-page .main-navigation,
body.ngo-page .entry-header,
body.ngo-page .entry-footer,
body.ngo-page #page > header,
body.ngo-page #page > footer { display: none !important; }
body.ngo-page #content,
body.ngo-page #primary,
body.ngo-page #main,
body.ngo-page .site-content,
body.ngo-page .content-area { padding: 0 !important; margin: 0 !important; width: 100% !important; max-width: 100% !important; }

/* ── Accessibility ─────────────────────────────────────────── */
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--saffron); }

/* ── Hindi font support ───────────────────────────────────── */
body.ngo-hi .hero-title,
body.ngo-hi .section-title,
body.ngo-hi .hero-subtitle { font-family: 'Noto Sans Devanagari', 'Cormorant Garamond', serif !important; }
