/* ==========================================================================
   SHREE BALAJI WELFARE ASSOCIATION - PREMIUM STYLESHEET
   Aesthetics: Deep Royal Navy, Golden Saffron, Clean Emerald, Crisp Glassmorphism
   Typography: Plus Jakarta Sans / Outfit
   ========================================================================== */

:root {
  /* Brand Palette */
  --primary: #1e3a8a;          /* Deep Royal Blue */
  --primary-dark: #0f172a;     /* Midnight Navy */
  --primary-light: #2563eb;    /* Vibrant Blue */
  --primary-glow: rgba(37, 99, 235, 0.18);
  
  --secondary: #d97706;        /* Warm Gold / Saffron */
  --secondary-light: #f59e0b;  /* Golden Amber */
  --secondary-glow: rgba(245, 158, 11, 0.22);
  
  --accent-green: #059669;      /* Growth / Trust Emerald */
  --accent-green-light: #10b981;
  --accent-green-bg: #ecfdf5;
  
  --accent-red: #e11d48;
  
  /* Neutral Surfaces & Texts */
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-alt: #f1f5f9;
  --text-dark: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --border-light: #e2e8f0;
  --border-focus: #3b82f6;
  
  /* Glassmorphism & Elevation */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-dark: rgba(15, 23, 42, 0.8);
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 16px -2px rgba(15, 23, 42, 0.07), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 30px -8px rgba(15, 23, 42, 0.12), 0 8px 12px -4px rgba(15, 23, 42, 0.06);
  --shadow-xl: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-main);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  position: relative;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(16px, 2.5vw, 32px);
}

/* Typography Utilities */
.heading-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 60%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.subheading-gold {
  color: var(--secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.subheading-gold::before, .subheading-gold::after {
  content: '';
  display: inline-block;
  width: 18px;
  height: 2px;
  background-color: var(--secondary);
  border-radius: 2px;
}

/* ==========================================================================
   TOP BAR & TRUST ANNOUNCEMENT (SINGLE ROW MARQUEE - RIGHT TO LEFT)
   ========================================================================== */
.top-announcement-bar {
  background: linear-gradient(90deg, #071739 0%, #1e3a8a 50%, #071739 100%);
  color: #ffffff;
  font-size: 0.82rem;
  height: 38px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  z-index: 1001;
}

.marquee-container {
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, black 2%, black 98%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 2%, black 98%, transparent 100%);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeRightToLeft 32s linear infinite;
  will-change: transform;
}

.top-announcement-bar:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeRightToLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.marquee-group {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding-right: 22px;
  flex-shrink: 0;
  white-space: nowrap;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #f1f5f9;
  font-weight: 500;
  white-space: nowrap;
}

.marquee-item i {
  color: var(--secondary-light);
  font-size: 0.86rem;
}

.marquee-item strong {
  color: #ffffff;
  font-weight: 700;
}

.marquee-bullet {
  color: var(--secondary-light);
  font-size: 0.9rem;
  opacity: 0.75;
}

.marquee-link {
  color: #e2e8f0;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.marquee-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.marquee-admin-btn {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.marquee-admin-btn:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #fff;
}

/* ==========================================================================
   MAIN NAVIGATION (STICKY GLASS)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.98);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px clamp(16px, 2.5vw, 32px);
}

.brand-logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  background: #fff;
  padding: 2px;
  border: 2px solid #e0e7ff;
  flex-shrink: 0;
}

.brand-text h1 {
  font-size: clamp(1.02rem, 1.2vw, 1.18rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.brand-tagline {
  font-size: 0.74rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  white-space: nowrap;
  margin-top: 1px;
}

.badge-verified-tiny {
  background: var(--accent-green-bg);
  color: var(--accent-green);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(5, 150, 105, 0.25);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.desktop-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.35vw, 22px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-weight: 600;
  font-size: clamp(0.84rem, 0.92vw, 0.92rem);
  color: var(--text-muted);
  position: relative;
  padding: 6px 2px;
  white-space: nowrap !important;
  display: inline-block;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2.5px;
  background: var(--primary-light);
  border-radius: 2px;
  transition: width var(--transition-fast);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: var(--transition-bounce);
  text-decoration: none;
  white-space: nowrap !important;
  flex-shrink: 0;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
  transform: translateY(-2px);
  color: #fff;
}

.btn-donate {
  background: linear-gradient(135deg, #ea580c 0%, #f59e0b 100%);
  color: #fff;
  box-shadow: 0 4px 16px var(--secondary-glow);
  position: relative;
  overflow: hidden;
}

.btn-donate:hover {
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.4);
  transform: translateY(-2px);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-outline:hover {
  background: #eff6ff;
  color: var(--primary-light);
}

.btn-header-join {
  display: none;
}

@media (min-width: 1260px) {
  .btn-header-join {
    display: inline-flex;
  }
}

.btn-sm {
  padding: 7px 16px;
  font-size: 0.84rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.02rem;
}

.pulse-badge {
  background: #ffffff;
  color: #ea580c;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  margin-left: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  animation: pulse-glow 2s infinite;
  white-space: nowrap;
  display: inline-block;
}

@keyframes pulse-glow {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  font-size: 1.25rem;
  color: var(--text-dark);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.mobile-menu-btn:hover {
  background: #eff6ff;
  color: var(--primary);
  border-color: #bfdbfe;
}

/* ==========================================================================
   MOBILE & TABLET SLIDE-OVER NAVIGATION DRAWER
   ========================================================================== */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 86vw);
  background: #ffffff;
  z-index: 2200;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.25);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-nav-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  padding: 18px 20px;
  background: #091e42;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.drawer-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  padding: 2px;
  object-fit: contain;
}

.drawer-brand h4 {
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
}

.drawer-sub {
  font-size: 0.72rem;
  color: #10b981;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.drawer-close-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.drawer-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.drawer-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-grow: 1;
  justify-content: space-between;
}

.drawer-trust-box {
  background: #f1f5f9;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.76rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.drawer-trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
}

.drawer-trust-item i {
  color: var(--secondary);
  font-size: 0.82rem;
}

.drawer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.drawer-link i {
  width: 22px;
  color: var(--primary-light);
  font-size: 1.05rem;
  text-align: center;
}

.drawer-link:hover, .drawer-link.active {
  background: #eff6ff;
  color: var(--primary);
}

.drawer-footer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.drawer-contact-pill {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: var(--transition-fast);
}

.drawer-contact-pill:hover {
  background: #f1f5f9;
  color: var(--primary);
}

.drawer-contact-pill i {
  color: var(--accent-green);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(180deg, #f0f4ff 0%, #ffffff 100%);
  padding: 60px 0 80px 0;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, rgba(245, 158, 11, 0) 70%);
  z-index: 0;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, rgba(37, 99, 235, 0) 70%);
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #bfdbfe;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.hero-pill-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-green);
  display: inline-block;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.16;
  color: var(--text-dark);
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero-lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  line-height: 1.68;
  margin-bottom: 30px;
  max-width: 600px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-features-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.feature-icon-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-green-bg);
  color: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* Hero Right: Interactive Quick Donation Card + Verified Visual */
.hero-visual-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(226, 232, 240, 0.8);
  overflow: hidden;
  position: relative;
  transition: transform var(--transition-normal);
}

.hero-visual-card:hover {
  transform: translateY(-4px);
}

.hero-card-media {
  position: relative;
  height: 230px;
  overflow: hidden;
}

.hero-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-visual-card:hover .hero-card-media img {
  transform: scale(1.04);
}

.hero-media-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-card-body {
  padding: 24px;
}

.hero-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
}

.hero-card-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

/* Quick Amount Selector Inside Hero */
.quick-amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.quick-amount-chip {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 8px 4px;
  text-align: center;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition-fast);
}

.quick-amount-chip:hover, .quick-amount-chip.active {
  background: #eff6ff;
  border-color: var(--primary);
  color: var(--primary);
}

.hero-quick-btn {
  width: 100%;
  padding: 12px;
  font-size: 0.98rem;
}

/* ==========================================================================
   IMPACT STATS STRIP
   ========================================================================== */
.impact-strip-section {
  background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
  color: #ffffff;
  padding: 40px 0;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.15);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.impact-item {
  padding: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.impact-item:last-child {
  border-right: none;
}

.impact-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--secondary-light);
  line-height: 1.1;
  margin-bottom: 4px;
  font-family: 'Outfit', sans-serif;
}

.impact-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: #e2e8f0;
}

/* ==========================================================================
   SECTION COMMONS
   ========================================================================== */
.section {
  padding: 80px 0;
  position: relative;
}

.section-alt {
  background-color: var(--bg-alt);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px auto;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   KEY CAUSES & WORK GRID
   ========================================================================== */
.causes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.cause-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.cause-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: #bfdbfe;
}

.cause-card-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.cause-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cause-card:hover .cause-card-img-wrap img {
  transform: scale(1.06);
}

.cause-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.cause-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.cause-card-title {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.3;
}

.cause-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

.cause-impact-stat {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  font-size: 0.82rem;
  font-weight: 600;
}

.cause-impact-stat span {
  color: var(--primary);
  font-weight: 800;
}

.cause-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* ==========================================================================
   OFFICIAL PDF CATALOGUE SHOWCASE & EMBEDDED READER
   ========================================================================== */
.catalogue-showcase-box {
  background: linear-gradient(135deg, #091e42 0%, #1e3a8a 60%, #172554 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-xl);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.catalogue-showcase-box::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.catalogue-left h3 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.2;
}

.catalogue-badge-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.catalogue-badge {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
}

.catalogue-left p {
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 28px;
}

.catalogue-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Catalogue Interactive Page Grid / Flipbook Preview */
.catalogue-pages-preview {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 20px;
}

.catalogue-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #e2e8f0;
}

.catalogue-thumbnails-carousel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

.catalogue-thumb-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
  background: #000;
}

.catalogue-thumb-item:hover {
  border-color: var(--secondary-light);
  transform: scale(1.04);
}

.catalogue-thumb-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  opacity: 0.88;
}

.catalogue-thumb-item:hover img {
  opacity: 1;
}

.catalogue-thumb-num {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

/* ==========================================================================
   LEGAL CERTIFICATIONS & 80G TRANSPARENCY SECTION
   ========================================================================== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cert-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cert-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.cert-icon-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #eff6ff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 14px;
  border: 1px solid #bfdbfe;
}

.cert-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.cert-reg-code {
  font-family: monospace;
  font-size: 0.78rem;
  background: #f1f5f9;
  color: #334155;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
  font-weight: 700;
}

.cert-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.cert-action-btn {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  background: transparent;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cert-action-btn:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

/* ==========================================================================
   LEADERSHIP & ABOUT US SECTION
   ========================================================================== */
.about-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 60px;
}

.about-text-col h3 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.25;
}

.about-text-col p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.about-quote-box {
  background: #eff6ff;
  border-left: 4px solid var(--primary);
  padding: 18px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: #1e3a8a;
  font-weight: 600;
  margin-top: 24px;
}

.about-media-collage {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}

.about-media-collage img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.leaders-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.leader-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.leader-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: #bfdbfe;
}

.leader-photo-wrap {
  width: 120px;
  height: 120px;
  margin: 0 auto 18px auto;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #eff6ff;
  box-shadow: var(--shadow-md);
}

.leader-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.leader-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.leader-role {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

.leader-bio {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   AUTHENTIC FIELD GALLERY SECTION
   ========================================================================== */
.gallery-filter-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.filter-tab-btn {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-tab-btn.active, .filter-tab-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.gallery-masonry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.gallery-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  height: 240px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-card:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h5 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.gallery-overlay span {
  font-size: 0.78rem;
  color: #cbd5e1;
}

/* ==========================================================================
   VOLUNTEER & MEMBERSHIP FORM SECTION
   ========================================================================== */
.volunteer-split-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.volunteer-info-panel {
  background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
  color: #fff;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.volunteer-info-panel h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.25;
}

.volunteer-info-panel p {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.volunteer-benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.volunteer-benefit-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 600;
}

.volunteer-benefit-item i {
  color: var(--secondary-light);
}

.volunteer-form-panel {
  padding: 44px;
}

.form-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-label .required {
  color: var(--accent-red);
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #f8fafc;
  color: var(--text-dark);
  font-size: 0.92rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  background: #fff;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

textarea.form-control {
  resize: vertical;
  min-height: 90px;
}

/* ==========================================================================
   CONTACT & LOCATION SECTION
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 36px;
}

.contact-card-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 24px;
}

.contact-info-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon-bubble {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #eff6ff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  border: 1px solid #bfdbfe;
}

.contact-info-text h6 {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 3px;
}

.contact-info-text p, .contact-info-text a {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.contact-info-text a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* ==========================================================================
   DONATION MODAL & 80G RECEIPT POPUP
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.modal-backdrop.open {
  display: flex;
  animation: fadeIn 0.25s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-dialog {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalScaleUp {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  padding: 22px 28px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  color: var(--text-muted);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: #e2e8f0;
  color: var(--text-dark);
}

.modal-body {
  padding: 28px;
}

/* Step Wizard */
.wizard-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  position: relative;
}

.wizard-steps::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 30px;
  right: 30px;
  height: 2px;
  background: var(--border-light);
  z-index: 0;
}

.wizard-step-item {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.wizard-step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #cbd5e1;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.wizard-step-item.active .wizard-step-circle {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.wizard-step-item.completed .wizard-step-circle {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: #fff;
}

.wizard-step-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.wizard-step-item.active .wizard-step-title {
  color: var(--primary);
}

/* Payment Methods Grid */
.payment-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0;
}

.payment-method-card {
  background: #f8fafc;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  position: relative;
}

.payment-method-card.highlight {
  border-color: #3b82f6;
  background: #eff6ff;
}

.upi-qr-frame {
  width: 180px;
  height: 180px;
  margin: 0 auto 12px auto;
  background: #fff;
  padding: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid #cbd5e1;
  box-shadow: var(--shadow-sm);
}

.upi-qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.copy-input-group {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
  margin-top: 8px;
}

.copy-input-text {
  flex-grow: 1;
  padding: 6px 10px;
  font-family: monospace;
  font-size: 0.82rem;
  border: none;
  background: transparent;
}

.copy-btn {
  background: #eff6ff;
  color: var(--primary);
  border: none;
  border-left: 1px solid var(--border-light);
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.copy-btn:hover {
  background: #dbeafe;
}

/* Bank Transfer Info Box */
.bank-info-table {
  width: 100%;
  font-size: 0.82rem;
  border-collapse: collapse;
  text-align: left;
  margin-top: 10px;
}

.bank-info-table td {
  padding: 5px 8px;
  border-bottom: 1px solid #e2e8f0;
}

.bank-info-table td:first-child {
  font-weight: 700;
  color: var(--text-muted);
  width: 40%;
}

.bank-info-table td:last-child {
  font-family: monospace;
  font-weight: 700;
  color: var(--primary);
}

/* Official 80G Receipt Layout (Printable) */
.receipt-container {
  background: #fff;
  border: 2px solid #0f172a;
  border-radius: var(--radius-sm);
  padding: 28px;
  position: relative;
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
}

.receipt-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-25deg);
  font-size: 4rem;
  font-weight: 900;
  color: rgba(30, 58, 138, 0.05);
  pointer-events: none;
  white-space: nowrap;
}

.receipt-header-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #0f172a;
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.receipt-ngo-info h4 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
}

.receipt-ngo-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.receipt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 16px 0;
}

.receipt-table th, .receipt-table td {
  border: 1px solid #cbd5e1;
  padding: 8px 12px;
}

.receipt-table th {
  background: #f1f5f9;
  font-weight: 700;
  text-align: left;
}

.receipt-footer-strip {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid #cbd5e1;
  padding-top: 16px;
  margin-top: 16px;
}

.receipt-stamp-box {
  text-align: center;
  border: 1.5px dashed #3b82f6;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 700;
}

/* ==========================================================================
   ADMIN MANAGEMENT DASHBOARD ("GET DETAILS WHEN FORM FILLED")
   ========================================================================== */
.admin-modal-dialog {
  max-width: 1040px;
}

.admin-tabs-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.admin-tab-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.admin-tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.admin-count-pill {
  background: rgba(0, 0, 0, 0.15);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
}

.admin-tab-btn.active .admin-count-pill {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-search-input {
  padding: 8px 14px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  width: 280px;
}

.admin-data-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  max-height: 480px;
}

.admin-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  text-align: left;
}

.admin-data-table th {
  background: #f8fafc;
  padding: 12px 14px;
  font-weight: 800;
  color: var(--text-dark);
  border-bottom: 2px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 2;
}

.admin-data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-muted);
}

.admin-data-table tr:hover {
  background: #f8fafc;
}

.status-badge {
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-block;
}

.status-verified {
  background: #dcfce7;
  color: #166534;
}

.status-pending {
  background: #fef9c3;
  color: #854d0e;
}

.status-new {
  background: #e0f2fe;
  color: #075985;
}

/* ==========================================================================
   FLOATING WHATSAPP & STICKY CTAs
   ========================================================================== */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition-bounce);
  cursor: pointer;
}

.floating-whatsapp-btn:hover {
  transform: scale(1.1) translateY(-3px);
  color: #fff;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5);
}

.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  background: #0f172a;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transition-fast);
}

.floating-whatsapp-btn:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #091e42;
  color: #cbd5e1;
  padding: 70px 0 24px 0;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h5 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2.5px;
  background: var(--secondary-light);
  border-radius: 2px;
}

.footer-about-text {
  line-height: 1.65;
  margin-bottom: 20px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-list a {
  color: #cbd5e1;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links-list a:hover {
  color: #fff;
  transform: translateX(4px);
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: #0f172a;
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-success {
  border-left: 4px solid var(--accent-green);
}

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

/* ==========================================================================
   COMPREHENSIVE MULTI-TIER RESPONSIVE SYSTEM
   Ensures flawless presentation on:
   - Ultra-Wide Displays (1440px+)
   - Standard Desktops & Laptops (1200px - 1440px)
   - Compact Laptops (1080px - 1200px)
   - Tablets & iPads Landscape/Portrait (768px - 1080px)
   - Phablets & Modern Large Phones (480px - 768px)
   - Standard Mobile Screens (360px - 480px)
   - Ultra-Compact & Foldable Screens (<360px)
   ========================================================================== */

/* 1. Large Laptops & Standard Desktop (max-width: 1240px) */
@media (max-width: 1240px) {
  .nav-links {
    gap: 12px;
  }
  .nav-link {
    font-size: 0.85rem;
  }
  .btn-header-join {
    display: none !important;
  }
}

/* 2. Tablet Landscape & Compact Displays (max-width: 1080px) */
@media (max-width: 1080px) {
  .desktop-nav {
    display: none !important;
  }
  .mobile-menu-btn {
    display: flex !important;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-content {
    text-align: center;
  }
  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .hero-features-list {
    max-width: 600px;
    margin: 0 auto;
  }
  .hero-visual-col {
    max-width: 580px;
    margin: 0 auto;
    width: 100%;
  }
  .causes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .catalogue-showcase-box {
    grid-template-columns: 1fr;
    padding: 36px 28px;
  }
  .catalogue-left {
    text-align: center;
  }
  .catalogue-badge-strip {
    justify-content: center;
  }
  .catalogue-actions {
    justify-content: center;
  }
  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-split-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .about-text-col {
    text-align: left;
  }
  .gallery-masonry-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .volunteer-split-grid {
    grid-template-columns: 1fr;
  }
  .volunteer-info-panel {
    padding: 36px 28px;
  }
  .volunteer-form-panel {
    padding: 36px 28px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
}

/* 3. Tablets & Large Phones (max-width: 768px) */
@media (max-width: 768px) {
  /* Prevent horizontal scrolling on mobile */
  html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
  }

  /* Single Row Marquee on Mobile */
  .top-announcement-bar {
    height: 34px;
    font-size: 0.76rem;
  }
  .marquee-group {
    gap: 16px;
    padding-right: 16px;
  }

  /* Mobile Header Navigation */
  .nav-container {
    padding: 8px 16px;
    gap: 10px;
  }
  .brand-logo-group {
    gap: 10px;
  }
  .brand-logo-img {
    width: 42px;
    height: 42px;
  }
  .brand-text h1 {
    font-size: clamp(0.95rem, 3.6vw, 1.08rem);
    line-height: 1.18;
    white-space: normal;
  }
  .brand-tagline {
    font-size: 0.7rem;
  }
  .header-actions {
    gap: 8px;
  }
  .btn-donate {
    padding: 7px 12px;
    font-size: 0.8rem;
    gap: 6px;
  }
  .pulse-badge {
    display: none !important;
  }

  /* Hero Section */
  .hero-section {
    padding: 40px 0 54px 0;
  }
  .hero-pill-badge {
    font-size: 0.74rem;
    padding: 5px 12px;
    margin-bottom: 16px;
  }
  .hero-title {
    font-size: clamp(1.95rem, 5.5vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 16px;
  }
  .hero-lead {
    font-size: 0.96rem;
    line-height: 1.6;
    margin-bottom: 24px;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .hero-cta-group .btn {
    width: 100%;
    padding: 13px 20px;
    font-size: 0.96rem;
  }
  .hero-features-list {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 20px;
    text-align: left;
  }
  .hero-visual-card {
    border-radius: var(--radius-md);
  }
  .hero-card-media {
    height: 190px;
  }
  .hero-card-body {
    padding: 20px 16px;
  }
  .quick-amount-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  /* Impact Counters Strip */
  .impact-strip-section {
    padding: 30px 0;
  }
  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .impact-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 14px;
  }
  .impact-item:nth-last-child(-n+2) {
    border-bottom: none;
    padding-bottom: 0;
  }
  .impact-number {
    font-size: 2rem;
  }
  .impact-label {
    font-size: 0.82rem;
  }

  /* Section Commons */
  .section {
    padding: 54px 0;
  }
  .section-header {
    margin-bottom: 34px;
  }
  .section-title {
    font-size: 1.85rem;
    line-height: 1.25;
  }
  .section-desc {
    font-size: 0.92rem;
  }

  /* Causes Grid */
  .causes-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .cause-card-img-wrap {
    height: 200px;
  }
  .cause-card-content {
    padding: 20px 16px;
  }
  .cause-card-footer .btn {
    width: 100%;
  }

  /* Catalogue Flipbook Preview on Mobile */
  .catalogue-showcase-box {
    padding: 28px 18px;
    border-radius: var(--radius-md);
  }
  .catalogue-left h3 {
    font-size: 1.7rem;
  }
  .catalogue-actions {
    flex-direction: column;
    width: 100%;
  }
  .catalogue-actions .btn {
    width: 100%;
  }
  .catalogue-pages-preview {
    padding: 14px;
  }
  #catalogue-active-page-img {
    max-height: 220px;
  }
  /* Swipeable Horizontal Filmstrip for 36 Pages */
  .catalogue-thumbnails-carousel {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 10px;
    max-height: none;
    padding: 6px 2px 10px 2px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }
  .catalogue-thumb-item {
    flex: 0 0 74px;
    scroll-snap-align: start;
    border-radius: 6px;
  }
  .catalogue-thumb-item img {
    height: 95px;
    object-fit: cover;
  }

  /* Legal Certifications */
  .cert-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .cert-card {
    padding: 22px 16px;
  }

  /* About & Leadership */
  .about-media-collage {
    grid-template-columns: 1fr 1fr;
    height: 210px;
  }
  .leaders-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .leader-card {
    padding: 24px 18px;
  }

  /* Authentic Gallery Mobile Experience */
  .gallery-filter-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
  }
  .filter-tab-btn {
    flex-shrink: 0;
    padding: 6px 14px;
    font-size: 0.8rem;
  }
  .gallery-masonry-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .gallery-card {
    height: 180px;
  }
  /* Show captions on mobile touch screens without hover */
  .gallery-overlay {
    opacity: 1;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.1) 60%, transparent 100%);
    padding: 12px;
  }
  .gallery-overlay h5 {
    font-size: 0.82rem;
  }
  .gallery-overlay span {
    font-size: 0.72rem;
  }

  /* Volunteer & Membership Form */
  .volunteer-split-grid {
    border-radius: var(--radius-md);
  }
  .volunteer-info-panel {
    padding: 28px 18px;
  }
  .volunteer-info-panel h3 {
    font-size: 1.6rem;
  }
  .volunteer-form-panel {
    padding: 28px 18px;
  }
  .form-grid-2col {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .form-control {
    font-size: 16px; /* Prevents auto-zoom in iOS Safari */
    padding: 11px 14px;
  }
  .volunteer-form-panel .btn {
    width: 100%;
  }

  /* Contact & Location */
  .contact-card-box {
    padding: 24px 18px;
  }
  .contact-card-box iframe {
    height: 250px;
  }

  /* Footer */
  .site-footer {
    padding: 48px 0 24px 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 34px;
  }
  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  /* Modals on Mobile */
  .modal-backdrop {
    padding: 10px;
    align-items: flex-end; /* Sheet style on mobile */
  }
  .modal-dialog {
    width: 100%;
    max-width: 100%;
    max-height: 92vh;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    margin: 0;
  }
  .modal-header {
    padding: 16px 18px;
  }
  .modal-title {
    font-size: 1.05rem;
  }
  .modal-body {
    padding: 18px 16px;
  }
  .wizard-steps {
    margin-bottom: 18px;
  }
  .wizard-step-circle {
    width: 28px;
    height: 28px;
    font-size: 0.78rem;
  }
  .wizard-step-title {
    font-size: 0.68rem;
  }
  .payment-split-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .upi-qr-frame {
    width: 150px;
    height: 150px;
  }

  /* Printable Receipt Responsive Formatting */
  .receipt-container {
    padding: 16px 12px;
  }
  .receipt-watermark {
    font-size: 2.4rem;
  }
  .receipt-header-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .receipt-header-strip > div:last-child {
    text-align: left;
  }
  .receipt-ngo-info h4 {
    font-size: 1.05rem;
  }
  .receipt-table th, .receipt-table td {
    padding: 6px 8px;
    font-size: 0.78rem;
  }
  .receipt-footer-strip {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
  }

  /* Floating WhatsApp Button on Mobile */
  .floating-whatsapp-btn {
    width: 52px;
    height: 52px;
    font-size: 1.8rem;
    bottom: 18px;
    right: 18px;
  }
  .whatsapp-tooltip {
    display: none !important;
  }
}

/* 4. Standard & Small Mobile Devices (max-width: 480px) */
@media (max-width: 480px) {
  .nav-container {
    padding: 6px 12px;
  }
  .tagline-city {
    display: none !important;
  }
  .badge-verified-tiny {
    font-size: 0.62rem;
    padding: 1px 5px;
  }
  .btn-donate {
    padding: 6px 10px;
    font-size: 0.78rem;
  }
  .donate-btn-label {
    font-size: 0.78rem;
  }
  .mobile-menu-btn {
    width: 36px;
    height: 36px;
    font-size: 1.15rem;
  }
  .top-announcement-bar {
    height: 32px;
    font-size: 0.72rem;
  }
  .hero-title {
    font-size: 1.85rem;
  }
  .hero-lead {
    font-size: 0.9rem;
  }
  .gallery-masonry-grid {
    grid-template-columns: 1fr;
  }
  .gallery-card {
    height: 200px;
  }
  .quick-amount-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .receipt-container {
    padding: 12px 10px;
    font-size: 0.76rem;
  }
}

/* 5. Ultra-Compact Phones & Foldables (max-width: 360px) */
@media (max-width: 360px) {
  .brand-logo-img {
    width: 36px;
    height: 36px;
  }
  .brand-text h1 {
    font-size: 0.85rem;
  }
  .donate-btn-label {
    display: none !important; /* Show only heart icon on 320px screens */
  }
  .btn-donate {
    padding: 6px 8px;
  }
  .hero-title {
    font-size: 1.65rem;
  }
  .impact-number {
    font-size: 1.7rem;
  }
}
