/* 
   SHRI SHYAM JANSEWA TRUST - Official Style System
   Color Palette: Deep Maroon, Warm Saffron, Soft Gold, Natural Green, Off-White
*/

:root {
  --primary-maroon: #800020;
  --primary-dark-maroon: #4A0E17;
  --saffron-orange: #E65100;
  --saffron-light: #FFF3E0;
  --accent-gold: #D4AF37;
  --gold-light: #FFF8E1;
  --success-green: #2E7D32;
  --bg-cream: #FCFBF7;
  --bg-light: #F9F8F3;
  --text-dark: #1A1A2E;
  --text-muted: #616161;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  --card-hover-shadow: 0 16px 40px rgba(230, 81, 0, 0.12);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-cream);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .hindi-font {
  font-family: 'Tiro Devanagari Hindi', serif;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── HEADER & NAVIGATION ── */
.trust-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border-bottom: 2px solid #FFF3E0;
}

.trust-header .container {
  max-width: 100% !important;
  padding-left: clamp(14px, 2vw, 36px);
  padding-right: clamp(14px, 2vw, 36px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 10px;
  flex-wrap: nowrap !important;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-logo img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--saffron-orange);
  object-fit: cover;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text h1 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-maroon);
  line-height: 1.2;
  white-space: nowrap;
}

.brand-text p {
  font-size: 0.65rem;
  color: var(--saffron-orange);
  font-weight: 600;
  white-space: nowrap;
  margin: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  flex-wrap: nowrap !important;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.nav-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: #37474F;
  padding: 6px 6px;
  position: relative;
  white-space: nowrap !important;
  display: inline-block;
  letter-spacing: -0.2px;
}

.nav-link:hover, .nav-link.active {
  color: var(--saffron-orange);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: var(--saffron-orange);
  border-radius: 4px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-donate-nav {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #FF8F00, #E65100);
  color: #FFF !important;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 7px 14px;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(230, 81, 0, 0.35);
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-donate-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 81, 0, 0.45);
}

.hamburger {
  display: none; /* shown only via media query */
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 38px;
  height: 38px;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

/* ── HERO SECTION ── */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #4A0E17 0%, #800020 50%, #B71C1C 100%);
  color: white;
  padding: 70px 0 90px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 215, 0, 0.4);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #FFD700;
  margin-bottom: 18px;
}

.hero-title {
  font-size: 2.7rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 20px;
  color: #FFF;
}

.hero-title span {
  color: #FFB300;
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn-primary-hero {
  background: linear-gradient(135deg, #FFB300, #FF6F00);
  color: #1A0533;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 14px 32px;
  border-radius: 30px;
  box-shadow: 0 6px 20px rgba(255, 179, 0, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 179, 0, 0.5);
  color: #000;
}

.btn-secondary-hero {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary-hero:hover {
  background: white;
  color: var(--primary-maroon);
}

.hero-slider-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  border: 4px solid rgba(255, 255, 255, 0.2);
}

.hero-slider-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.hero-slider-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
}

/* ── STATS BAR ── */
.stats-strip {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  margin-top: -45px;
  position: relative;
  z-index: 10;
  padding: 30px 20px;
  border: 1px solid #FFE0B2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-item {
  border-right: 1px dashed #FFCC80;
  padding: 0 10px;
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--saffron-orange);
  line-height: 1;
  margin-bottom: 6px;
  font-family: 'Poppins', sans-serif;
}

.stat-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: #37474F;
}

/* ── SECTION COMMON ── */
.section-padding {
  padding: 70px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 45px;
}

.section-badge {
  display: inline-block;
  background: var(--saffron-light);
  color: var(--saffron-orange);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 10px;
  border: 1px solid #FFE0B2;
}

.section-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--primary-maroon);
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ── SERVICE CATEGORIES GRID ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 26px 20px;
  text-align: center;
  box-shadow: var(--card-shadow);
  border: 1px solid #F0ECE1;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-hover-shadow);
  border-color: #FFCC80;
}

.service-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin-bottom: 16px;
  background: var(--saffron-light);
  color: var(--saffron-orange);
}

.service-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.service-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── HOW YOUR DONATION HELPS (4-STEP WORKFLOW) ── */
.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}

.step-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--card-shadow);
  border: 1px solid #EFEBE9;
  position: relative;
}

.step-number {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  background: var(--saffron-orange);
  color: white;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(230, 81, 0, 0.4);
}

.step-icon {
  font-size: 36px;
  color: var(--primary-maroon);
  margin: 10px 0 14px;
}

.step-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.step-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── VOLUNTEER & TRANSPARENCY SECTION ── */
.volunteer-banner {
  background: linear-gradient(135deg, #1B5E20, #2E7D32, #43A047);
  border-radius: 24px;
  padding: 50px 40px;
  color: white;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  align-items: center;
  box-shadow: 0 15px 40px rgba(46, 125, 50, 0.25);
}

.volunteer-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.benefits-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0 25px;
  list-style: none;
}

.benefits-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
}

/* ── FOOTER ── */
.trust-footer {
  background: #1A0D11;
  color: #B0BEC5;
  padding: 60px 0 25px;
  border-top: 4px solid var(--saffron-orange);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: white;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2.5px;
  background: var(--saffron-orange);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.88rem;
  color: #CFD8DC;
}

.footer-links a:hover {
  color: var(--saffron-orange);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.88rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #90A4AE;
}



/* ================================================================
   MOBILE DRAWER & ULTRA-RESPONSIVE STYLES (SPEED & ACCESSIBILITY)
   ================================================================ */

/* Clean html/body constraints to eliminate horizontal overflow */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  margin: 0;
  padding: 0;
  -webkit-text-size-adjust: 100%;
}

/* Fast image rendering rules */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header Action Elements Responsive Visibility */
.desktop-admin-btn {
  font-size: 0.82rem;
  font-weight: 700;
  color: #800020;
  padding: 6px 12px;
  border-radius: 8px;
  background: #FFF3E0;
  border: 1px solid #FFE0B2;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.desktop-admin-btn:hover {
  background: #FFE0B2;
}

/* Hamburger 3-line icon (defined above near .nav-link) */
.hamburger span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: #800020;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger:hover {
  background: #FFF3E0;
}

/* Mobile Slide-in Drawer Overlay */
.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Slide-in Navigation Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 320px;
  height: 100%;
  background: #FFFFFF;
  z-index: 9999;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.25);
  display: none;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow-y: auto;
  padding: 20px 18px;
  transform: translateX(100%);
}

.mobile-nav-drawer.active {
  display: flex;
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1.5px solid #FFF3E0;
  margin-bottom: 16px;
}

.drawer-close-btn {
  background: #FFF3E0;
  border: none;
  color: #800020;
  font-size: 26px;
  line-height: 1;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-lang-section {
  background: #FFF8E1;
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 16px;
  border: 1px solid #FFE082;
}

.drawer-lang-select {
  width: 100% !important;
  font-size: 0.88rem;
  padding: 8px 30px 8px 12px;
}

.drawer-menu-links {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.drawer-menu-links li {
  margin-bottom: 4px;
}

.drawer-menu-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #37474F;
  transition: all 0.2s ease;
  min-height: 46px; /* Accessibility tap target */
}

.drawer-menu-links a .d-icon {
  font-size: 1.15rem;
}

.drawer-menu-links a:hover,
.drawer-menu-links a.active {
  background: #FFF3E0;
  color: #E65100;
  font-weight: 700;
}

.drawer-footer-actions {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #EEEEEE;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer-donate-btn {
  width: 100%;
  background: linear-gradient(135deg, #FF8F00, #E65100);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 25px;
  font-weight: 800;
  font-size: 0.96rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(230, 81, 0, 0.3);
  min-height: 48px;
}

.drawer-admin-btn {
  width: 100%;
  background: #ECEFF1;
  color: #455A64;
  text-align: center;
  padding: 10px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
}

/* ================================================================
   9-CLASS COMPREHENSIVE RESPONSIVE ARCHITECTURE
   Device          Width range      UI Mode
   1. Small Mobile  320–359 px      Compact
   2. Normal Mobile 360–389 px      Mobile
   3. Large Mobile  390–599 px      Large Mobile
   4. Small Tablet  600–767 px      Tablet
   5. Tablet        768–1023 px     Tablet
   6. Small Desktop 1024–1279 px    Desktop
   7. Desktop       1280–1599 px    Desktop
   8. Large Desktop 1600–1919 px    Wide
   9. 2K / Large    1920+ px        Wide
   ================================================================ */

/* ── BASE HEADER & NAV INTEGRITY ── */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap !important;
  width: 100%;
}

.nav-menu {
  display: flex;
  align-items: center;
  flex-wrap: nowrap !important;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.nav-link {
  white-space: nowrap !important;
  display: inline-block;
  transition: all 0.2s ease;
}

.trust-lang-select {
  min-width: 80px;
  max-width: 120px;
}

/* ── COMMON TABLET & MOBILE CONTROLS (< 1024px) ── */
@media (max-width: 1023px) {
  .nav-menu {
    display: none !important;
  }
  .hamburger {
    display: flex !important;
  }
  .desktop-admin-btn {
    display: none !important;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 20px;
  }
  .volunteer-banner {
    grid-template-columns: 1fr;
    padding: 32px 22px;
  }
}

/* ── COMMON DESKTOP CONTROLS (>= 1024px) ── */
@media (min-width: 1024px) {
  .hamburger {
    display: none !important;
  }
  .mobile-nav-drawer {
    display: none !important;
    transform: none !important;
  }
  .mobile-drawer-overlay {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }
  .nav-menu {
    display: flex !important;
  }
}

/* ── 1. SMALL MOBILE (320–359 px) : COMPACT ── */
@media (max-width: 359px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .header-inner {
    height: 58px;
  }
  .brand-logo {
    gap: 6px;
  }
  .brand-logo img {
    width: 32px;
    height: 32px;
  }
  .brand-text h1 {
    font-size: 0.88rem;
    line-height: 1.15;
    white-space: nowrap;
  }
  .brand-text p {
    display: none !important;
  }
  .header-actions {
    gap: 5px;
  }
  .trust-lang-select {
    padding: 4px 14px 4px 5px;
    font-size: 0.72rem;
    min-width: 76px;
    max-width: 84px;
    height: 32px;
  }
  .btn-donate-nav {
    padding: 6px 10px;
    border-radius: 50%;
    min-width: 34px;
    height: 34px;
  }
  .donate-btn-text {
    display: none !important;
  }
  .hamburger {
    width: 34px;
    height: 34px;
    padding: 6px;
  }
  .hero-section {
    padding: 24px 0 40px;
  }
  .hero-title {
    font-size: 1.5rem;
    line-height: 1.25;
  }
  .hero-desc {
    font-size: 0.82rem;
    line-height: 1.5;
    margin-bottom: 16px;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .btn-primary-hero, .btn-secondary-hero {
    width: 100%;
    justify-content: center;
    padding: 10px 14px;
    font-size: 0.86rem;
  }
  .hero-slider-card img {
    height: 190px;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .stat-item {
    padding: 10px 6px;
    border-right: none;
    border-bottom: 1px dashed #FFCC80;
  }
  .stat-item:last-child {
    border-bottom: none;
  }
  .stat-number {
    font-size: 1.45rem;
  }
  .stat-label {
    font-size: 0.76rem;
  }
  .campaigns-grid, .services-grid, .how-it-works-grid, .footer-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .section-padding {
    padding: 32px 0;
  }
  .section-title {
    font-size: 1.42rem;
  }
  .section-subtitle {
    font-size: 0.80rem;
  }
  .trust-top-banner {
    padding: 5px 8px;
  }
  .trust-top-avatar {
    display: none !important;
  }
  .trust-top-msg {
    font-size: 0.72rem;
    line-height: 1.3;
  }
  .trust-top-btn {
    font-size: 0.70rem;
    padding: 4px 8px;
  }
}

/* ── 2. NORMAL MOBILE (360–389 px) : MOBILE ── */
@media (min-width: 360px) and (max-width: 389px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .header-inner {
    height: 62px;
  }
  .brand-logo {
    gap: 7px;
  }
  .brand-logo img {
    width: 36px;
    height: 36px;
  }
  .brand-text h1 {
    font-size: 0.94rem;
    line-height: 1.2;
    white-space: nowrap;
  }
  .brand-text p {
    display: none !important;
  }
  .header-actions {
    gap: 6px;
  }
  .trust-lang-select {
    padding: 4px 16px 4px 6px;
    font-size: 0.75rem;
    min-width: 80px;
    max-width: 92px;
    height: 34px;
  }
  .btn-donate-nav {
    padding: 6px 11px;
    border-radius: 50%;
    min-width: 36px;
    height: 36px;
  }
  .donate-btn-text {
    display: none !important;
  }
  .hero-section {
    padding: 30px 0 48px;
  }
  .hero-title {
    font-size: 1.68rem;
    line-height: 1.28;
  }
  .hero-desc {
    font-size: 0.86rem;
    line-height: 1.55;
    margin-bottom: 18px;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .btn-primary-hero, .btn-secondary-hero {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
    font-size: 0.90rem;
  }
  .hero-slider-card img {
    height: 215px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px dashed #FFCC80;
    padding: 10px 6px;
  }
  .stat-item:nth-child(3), .stat-item:nth-child(4) {
    border-bottom: none;
  }
  .stat-number {
    font-size: 1.6rem;
  }
  .stat-label {
    font-size: 0.80rem;
  }
  .campaigns-grid, .services-grid, .how-it-works-grid, .footer-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .section-padding {
    padding: 38px 0;
  }
  .section-title {
    font-size: 1.52rem;
  }
  .trust-top-avatar {
    display: none !important;
  }
  .trust-top-msg {
    font-size: 0.76rem;
  }
  .trust-top-btn {
    font-size: 0.74rem;
    padding: 5px 9px;
  }
}

/* ── 3. LARGE MOBILE (390–599 px) : LARGE MOBILE ── */
@media (min-width: 390px) and (max-width: 599px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .header-inner {
    height: 66px;
  }
  .brand-logo {
    gap: 8px;
  }
  .brand-logo img {
    width: 40px;
    height: 40px;
  }
  .brand-text h1 {
    font-size: 1.02rem;
    line-height: 1.2;
    white-space: nowrap;
  }
  .brand-text p {
    display: none !important;
  }
  .header-actions {
    gap: 8px;
  }
  .trust-lang-select {
    padding: 5px 18px 5px 7px;
    font-size: 0.78rem;
    min-width: 84px;
    max-width: 100px;
    height: 36px;
  }
  .btn-donate-nav {
    padding: 7px 13px;
    font-size: 0.82rem;
    border-radius: 25px;
  }
  .donate-btn-text {
    display: inline !important;
  }
  .hero-section {
    padding: 36px 0 54px;
  }
  .hero-title {
    font-size: 1.85rem;
    line-height: 1.3;
  }
  .hero-desc {
    font-size: 0.90rem;
    line-height: 1.6;
    margin-bottom: 20px;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 11px;
  }
  .btn-primary-hero, .btn-secondary-hero {
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
    font-size: 0.94rem;
  }
  .hero-slider-card img {
    height: 250px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px dashed #FFCC80;
    padding: 12px 8px;
  }
  .stat-item:nth-child(3), .stat-item:nth-child(4) {
    border-bottom: none;
  }
  .stat-number {
    font-size: 1.75rem;
  }
  .stat-label {
    font-size: 0.82rem;
  }
  .campaigns-grid, .services-grid, .how-it-works-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .section-padding {
    padding: 44px 0;
  }
  .section-title {
    font-size: 1.65rem;
  }
  .trust-top-avatar {
    width: 32px;
    height: 32px;
  }
  .trust-top-msg {
    font-size: 0.80rem;
  }
  .trust-top-btn {
    font-size: 0.76rem;
    padding: 5px 10px;
  }
}

/* ── 4. SMALL TABLET (600–767 px) : TABLET ── */
@media (min-width: 600px) and (max-width: 767px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
  .header-inner {
    height: 68px;
  }
  .brand-logo img {
    width: 44px;
    height: 44px;
  }
  .brand-text h1 {
    font-size: 1.10rem;
    white-space: nowrap;
  }
  .brand-text p {
    font-size: 0.68rem;
    display: block;
  }
  .header-actions {
    gap: 10px;
  }
  .trust-lang-select {
    padding: 6px 20px 6px 8px;
    font-size: 0.80rem;
    min-width: 90px;
    max-width: 110px;
  }
  .btn-donate-nav {
    padding: 8px 15px;
    font-size: 0.85rem;
  }
  .hero-section {
    padding: 42px 0 60px;
  }
  .hero-title {
    font-size: 2.05rem;
  }
  .hero-desc {
    font-size: 0.95rem;
  }
  .hero-buttons {
    flex-direction: row;
    width: auto;
    gap: 14px;
  }
  .btn-primary-hero, .btn-secondary-hero {
    width: auto;
    padding: 12px 22px;
  }
  .hero-slider-card img {
    height: 290px;
  }
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
  .stat-item {
    border-bottom: none;
    border-right: 1px dashed #FFCC80;
    padding: 12px 6px;
  }
  .stat-item:last-child {
    border-right: none;
  }
  .campaigns-grid, .services-grid, .how-it-works-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

/* ── 5. TABLET (768–1023 px) : TABLET ── */
@media (min-width: 768px) and (max-width: 1023px) {
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }
  .header-inner {
    height: 72px;
  }
  .brand-logo img {
    width: 46px;
    height: 46px;
  }
  .brand-text h1 {
    font-size: 1.18rem;
    white-space: nowrap;
  }
  .brand-text p {
    font-size: 0.72rem;
    display: block;
  }
  .header-actions {
    gap: 12px;
  }
  .trust-lang-select {
    padding: 6px 22px 6px 9px;
    font-size: 0.82rem;
    min-width: 95px;
    max-width: 120px;
  }
  .btn-donate-nav {
    padding: 9px 18px;
    font-size: 0.88rem;
  }
  .hero-section {
    padding: 48px 0 68px;
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .hero-desc {
    font-size: 1rem;
  }
  .hero-buttons {
    flex-direction: row;
    width: auto;
    gap: 16px;
  }
  .btn-primary-hero, .btn-secondary-hero {
    width: auto;
    padding: 13px 24px;
  }
  .hero-slider-card img {
    height: 330px;
  }
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  .stat-item {
    border-bottom: none;
    border-right: 1px dashed #FFCC80;
    padding: 14px 10px;
  }
  .stat-item:last-child {
    border-right: none;
  }
  .campaigns-grid, .services-grid, .how-it-works-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

/* ── 6. SMALL DESKTOP (1024–1279 px) : DESKTOP (COMPACT) ── */
@media (min-width: 1024px) and (max-width: 1279px) {
  .container {
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }
  .header-inner {
    height: 70px;
    gap: 8px;
  }
  .brand-logo {
    gap: 8px;
    flex-shrink: 0;
  }
  .brand-logo img {
    width: 38px;
    height: 38px;
  }
  .brand-text h1 {
    font-size: 0.98rem;
    white-space: nowrap;
  }
  .brand-text p {
    display: none !important; /* Hide tagline in compact desktop to preserve width */
  }
  .desktop-admin-btn {
    display: none !important; /* Hide admin button in compact header - available in footer */
  }
  .nav-menu {
    gap: 4px !important;
    flex-shrink: 0;
  }
  .nav-link {
    font-size: 0.74rem !important;
    padding: 5px 6px !important;
    white-space: nowrap !important;
    letter-spacing: -0.2px;
  }
  .header-actions {
    gap: 8px;
    flex-shrink: 0;
  }
  .trust-lang-select {
    padding: 5px 18px 5px 6px;
    font-size: 0.76rem;
    min-width: 86px;
    max-width: 102px;
  }
  .btn-donate-nav {
    padding: 7px 12px;
    font-size: 0.80rem;
    white-space: nowrap;
  }
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-slider-card img {
    height: 320px;
  }
  .campaigns-grid, .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr 1.1fr;
    gap: 24px;
  }
}

/* ── 7. DESKTOP (1280–1599 px) : DESKTOP (STANDARD) ── */
@media (min-width: 1280px) and (max-width: 1599px) {
  .trust-header .container {
    max-width: 100% !important;
    padding-left: clamp(14px, 2vw, 32px);
    padding-right: clamp(14px, 2vw, 32px);
  }
  .header-inner {
    height: 72px;
    gap: 10px;
  }
  .brand-logo {
    gap: 8px;
    flex-shrink: 0;
  }
  .brand-logo img {
    width: 40px;
    height: 40px;
  }
  .brand-text h1 {
    font-size: 1.02rem;
    white-space: nowrap;
  }
  .brand-text p {
    font-size: 0.65rem;
    display: block;
    white-space: nowrap;
  }
  .desktop-admin-btn {
    display: inline-block !important;
    font-size: 0.76rem;
    padding: 5px 9px;
    flex-shrink: 0;
  }
  .nav-menu {
    gap: 6px !important;
    flex-shrink: 0;
  }
  .nav-link {
    font-size: 0.77rem !important;
    padding: 5px 6px !important;
    white-space: nowrap !important;
    letter-spacing: -0.2px;
  }
  .header-actions {
    gap: 8px;
    flex-shrink: 0;
  }
  .trust-lang-select {
    padding: 4px 18px 4px 6px;
    font-size: 0.76rem;
    min-width: 82px;
    max-width: 102px;
  }
  .btn-donate-nav {
    padding: 7px 13px;
    font-size: 0.80rem;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-slider-card img {
    height: 360px;
  }
  .campaigns-grid, .services-grid, .events-grid, .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
  }
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 36px;
  }
}

/* ── 8. LARGE DESKTOP (1600–1919 px) : WIDE ── */
@media (min-width: 1600px) and (max-width: 1919px) {
  .container {
    max-width: 1520px;
    padding-left: 32px;
    padding-right: 32px;
  }
  .header-inner {
    height: 80px;
  }
  .brand-logo img {
    width: 50px;
    height: 50px;
  }
  .brand-text h1 {
    font-size: 1.25rem;
  }
  .brand-text p {
    font-size: 0.76rem;
  }
  .desktop-admin-btn {
    display: inline-block !important;
    font-size: 0.85rem;
    padding: 7px 14px;
  }
  .nav-menu {
    gap: 16px !important;
  }
  .nav-link {
    font-size: 0.88rem !important;
    padding: 7px 12px !important;
  }
  .header-actions {
    gap: 16px;
  }
  .trust-lang-select {
    padding: 7px 24px 7px 10px;
    font-size: 0.84rem;
    min-width: 105px;
    max-width: 135px;
  }
  .btn-donate-nav {
    padding: 10px 20px;
    font-size: 0.90rem;
  }
  .hero-section {
    padding: 65px 0 85px;
  }
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 50px;
  }
  .hero-title {
    font-size: 2.9rem;
  }
  .hero-desc {
    font-size: 1.08rem;
  }
  .hero-slider-card img {
    height: 410px;
  }
  .campaigns-grid, .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
  .stat-number {
    font-size: 2.3rem;
  }
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 48px;
  }
}

/* ── 9. 2K / LARGE (1920+ px) : ULTRA-WIDE ── */
@media (min-width: 1920px) {
  .container {
    max-width: 1760px;
    padding-left: 40px;
    padding-right: 40px;
  }
  .header-inner {
    height: 86px;
  }
  .brand-logo img {
    width: 56px;
    height: 56px;
  }
  .brand-text h1 {
    font-size: 1.38rem;
  }
  .brand-text p {
    font-size: 0.82rem;
  }
  .desktop-admin-btn {
    display: inline-block !important;
    font-size: 0.90rem;
    padding: 8px 16px;
  }
  .nav-menu {
    gap: 22px !important;
  }
  .nav-link {
    font-size: 0.94rem !important;
    padding: 8px 14px !important;
  }
  .header-actions {
    gap: 20px;
  }
  .trust-lang-select {
    padding: 8px 28px 8px 12px;
    font-size: 0.90rem;
    min-width: 115px;
    max-width: 150px;
  }
  .btn-donate-nav {
    padding: 11px 24px;
    font-size: 0.96rem;
  }
  .hero-section {
    padding: 75px 0 100px;
  }
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    max-width: 1720px;
    margin: 0 auto;
  }
  .hero-title {
    font-size: 3.2rem;
  }
  .hero-desc {
    font-size: 1.15rem;
  }
  .hero-slider-card img {
    height: 460px;
  }
  .campaigns-grid, .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
  }
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
  }
  .stat-number {
    font-size: 2.6rem;
  }
  .stat-label {
    font-size: 1rem;
  }
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 56px;
  }
}

/* Ensure header trust-top-banner wraps cleanly across screens */
@media (max-width: 768px) {
  .trust-top-banner {
    padding: 6px 12px;
  }
  .trust-top-inner {
    gap: 8px;
    align-items: center;
  }
  .trust-top-msg {
    font-size: 0.82rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100vw - 190px);
  }
  .trust-top-avatar {
    display: none;
  }
}


/* ── OFFICIAL SOCIAL MEDIA ROW ── */
.footer-social-wrap {
  margin-top: 14px;
}
.footer-social-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}
.social-btn {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  position: relative;
}
.social-btn svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
  transition: transform 0.25s ease;
}
.social-btn:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
}
.social-btn:hover svg {
  transform: scale(1.15);
}
.social-btn.facebook { background: #1877F2; }
.social-btn.whatsapp { background: #25D366; }
.social-btn.instagram { background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4); }
.social-btn.threads { background: #111111; border: 1.5px solid rgba(255, 255, 255, 0.2); }
.social-btn.youtube { background: #FF0000; }

@media (max-width: 480px) {
  .footer-social-row {
    gap: 8px;
  }
  .social-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
  }
  .social-btn svg {
    width: 17px;
    height: 17px;
  }
}

/* ── SMOOTH ENTRANCE ANIMATIONS (PAGE LOAD) ── */
@keyframes trustFadeInUp {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-section, .stats-strip, .causes-auto-scroll-section, .medical-crowdfund-section, .volunteer-banner, .trust-footer {
  animation: trustFadeInUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ── IMAGE OPTIMIZATIONS & SMOOTH LAZY LOAD ── */
img {
  max-width: 100%;
  height: auto;
  content-visibility: auto;
}
img[loading="lazy"] {
  opacity: 0.95;
  transition: opacity 0.3s ease;
}
img[loading="lazy"]:defined {
  opacity: 1;
}
