/* ============================
   JGM CHARITABLE TRUST – CSS
   ============================ */

/* ---- CSS Variables ---- */
:root {
  --primary: #e67e22;
  --primary-dark: #d35400;
  --secondary: #2c3e50;
  --accent: #27ae60;
  --accent-light: #2ecc71;
  --gold: #f39c12;
  --white: #ffffff;
  --off-white: #f8f9fa;
  --light-gray: #f1f3f4;
  --gray: #6c757d;
  --dark: #1a1a2e;
  --dark2: #16213e;
  --text: #2d3748;
  --text-light: #718096;

  --font-body: 'Poppins', sans-serif;
  --font-heading: 'Playfair Display', serif;

  --shadow-sm: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.18);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.7;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; }

/* ---- Preloader ---- */
#preloader {
  position: fixed; inset: 0;
  background: var(--dark);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-inner { text-align: center; color: var(--white); }
.preloader-logo {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
  letter-spacing: 4px;
  animation: pulse 1s ease-in-out infinite;
}
.preloader-spinner {
  width: 50px; height: 50px;
  border: 4px solid rgba(255,255,255,0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}
.preloader-inner p { color: rgba(255,255,255,0.6); font-size: 0.9rem; letter-spacing: 2px; }

/* ---- Scroll to Top ---- */
#scrollTop {
  position: fixed; bottom: 30px; right: 30px;
  width: 50px; height: 50px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 500;
}
#scrollTop.show { opacity: 1; visibility: visible; transform: translateY(0); }
#scrollTop:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ---- Container ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 5rem 0; }
section[id] { scroll-margin-top: 80px; }
.bg-light { background: var(--light-gray); }
.bg-dark { background: var(--dark); color: var(--white); }

/* ---- Section Header ---- */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--gold));
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--secondary);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.section-subtitle { color: var(--text-light); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }
.section-header.light .section-title { color: var(--white); }
.section-header.light .section-subtitle { color: rgba(255,255,255,0.7); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600; font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(230, 126, 34, 0.4);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(230, 126, 34, 0.5);
}
.btn-outline {
  border: 2px solid rgba(255,255,255,0.8);
  color: var(--white);
  backdrop-filter: blur(10px);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-3px);
}

/* ===== NAVBAR ===== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
}
#navbar.scrolled {
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  padding: 0.6rem 0;
}
.nav-container {
  max-width: 1300px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.nav-brand {
  display: flex; align-items: center; gap: 12px;
}
.nav-logo {
  width: 55px; height: 55px;
  object-fit: contain;
  border-radius: 12px;
  background: var(--white);
  padding: 4px;
  box-shadow: var(--shadow-sm);
}
.nav-brand-text { display: flex; flex-direction: column; }
.brand-name {
  font-size: 1.05rem; font-weight: 700;
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  line-height: 1.2;
}
.brand-tagline {
  font-size: 0.68rem; color: rgba(255,255,255,0.8);
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
#navbar.scrolled .brand-name { color: var(--secondary); text-shadow: none; }
#navbar.scrolled .brand-tagline { color: var(--text-light); text-shadow: none; }
.nav-links {
  display: flex; align-items: center; gap: 0.3rem;
  flex-wrap: wrap;
}
.nav-link {
  font-size: 0.88rem; font-weight: 500;
  color: rgba(255,255,255,0.9);
  padding: 8px 14px; border-radius: 8px;
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,0.2);
}
#navbar.scrolled .nav-link { color: var(--text); }
#navbar.scrolled .nav-link:hover, #navbar.scrolled .nav-link.active { color: var(--primary); background: rgba(230,126,34,0.1); }
.donate-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
  color: var(--white) !important;
  border-radius: 50px !important;
  padding: 8px 20px !important;
  font-weight: 600 !important;
}
.donate-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(230,126,34,0.4) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; }
.hamburger span { width: 26px; height: 2.5px; background: var(--white); border-radius: 2px; transition: var(--transition); }
#navbar.scrolled .hamburger span { background: var(--secondary); }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,26,46,0.88) 0%, rgba(44,62,80,0.80) 50%, rgba(230,126,34,0.25) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; color: var(--white);
  padding: 2rem; max-width: 800px;
  animation: fadeInUp 1s ease 0.3s both;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white); font-size: 0.82rem; font-weight: 500;
  padding: 8px 20px; border-radius: 50px;
  margin-bottom: 1.5rem; letter-spacing: 1px;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 800; line-height: 1.1;
  margin-bottom: 1.2rem;
  text-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.hero-highlight {
  background: linear-gradient(135deg, var(--primary), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.1rem; color: rgba(255,255,255,0.85);
  max-width: 620px; margin: 0 auto 1.5rem;
  line-height: 1.8;
}
.hero-tags {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.8rem;
  margin-bottom: 2rem;
}
.hero-tags span {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white); font-size: 0.82rem; font-weight: 500;
  padding: 6px 16px; border-radius: 50px;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-scroll-indicator {
  position: absolute; bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem; letter-spacing: 2px;
  text-transform: uppercase; text-align: center;
  animation: float 2s ease-in-out infinite;
  z-index: 2;
}
.scroll-line {
  width: 2px; height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.6));
  margin: 0 auto 8px;
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: linear-gradient(135deg, var(--secondary), var(--dark));
  padding: 2.5rem 0;
}
.stats-container {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem;
}
.stat-item { text-align: center; color: var(--white); }
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem; font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label { font-size: 0.88rem; color: rgba(255,255,255,0.7); letter-spacing: 1px; }

/* ===== ABOUT ===== */
.about-grid {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 4rem;
  align-items: center; margin-bottom: 4rem;
}
.about-image-wrap { position: relative; }
.about-img {
  width: 100%; border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  padding: 2rem;
}
.about-card-float {
  position: absolute; bottom: -20px; right: -20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white); padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.1rem;
}
.about-card-float i { font-size: 1.5rem; }
.about-lead { font-size: 1.12rem; color: var(--text); margin-bottom: 1rem; font-weight: 500; }
.about-body { color: var(--text-light); margin-bottom: 2rem; line-height: 1.9; }
.about-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.highlight-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--off-white); padding: 1rem 1.2rem;
  border-radius: var(--radius-sm); border-left: 4px solid var(--primary);
}
.highlight-item i { font-size: 1.3rem; color: var(--primary); }
.highlight-item div { display: flex; flex-direction: column; }
.highlight-item strong { font-size: 0.9rem; font-weight: 700; color: var(--secondary); }
.highlight-item span { font-size: 0.78rem; color: var(--text-light); }
.mvv-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem;
}
.mvv-card {
  background: var(--white); padding: 2.5rem 2rem;
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  text-align: center; transition: var(--transition);
  border-top: 5px solid transparent;
}
#mission-card { border-top-color: var(--primary); }
#vision-card { border-top-color: var(--accent); }
#values-card { border-top-color: var(--gold); }
.mvv-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.mvv-icon {
  width: 70px; height: 70px; margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--gold));
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.6rem;
}
#vision-card .mvv-icon { background: linear-gradient(135deg, var(--accent), var(--accent-light)); }
.mvv-card h3 { font-size: 1.3rem; font-weight: 700; color: var(--secondary); margin-bottom: 1rem; }
.mvv-card p { color: var(--text-light); font-size: 0.95rem; line-height: 1.8; }

/* ===== TRUST / CARE HOME ===== */
section#trust {
  position: relative;
  background:
    linear-gradient(135deg, rgba(26,26,46,0.78) 0%, rgba(44,62,80,0.70) 60%, rgba(230,126,34,0.30) 100%),
    url('images/care-home-bg.png') center center / cover no-repeat;
  color: var(--white);
}

section#trust .section-tag {
  background: linear-gradient(135deg, var(--primary), var(--gold));
  color: var(--white);
}

section#trust .section-title {
  color: var(--white);
}

section#trust .section-subtitle {
  color: rgba(255,255,255,0.82);
}

section#trust .trust-lead {
  color: rgba(255,255,255,0.90) !important;
}

section#trust .trust-lead strong {
  color: var(--gold);
}

section#trust .trust-card {
  background: rgba(255,255,255,0.10) !important;
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.20) !important;
  border-top: 4px solid var(--primary) !important;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25) !important;
}

section#trust .trust-card h3 {
  color: var(--white);
}

section#trust .trust-card p {
  color: rgba(255,255,255,0.82);
}

section#trust .trust-card a {
  color: var(--gold) !important;
}

/* ===== PROGRAMS ===== */

.programs-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem;
}
.program-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%; display: flex; flex-direction: column;
}
.program-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.program-img-wrap { position: relative; height: 240px; overflow: hidden; }
.program-img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.program-card:hover .program-img { transform: scale(1.05); }
.program-img-gradient {
  background: linear-gradient(135deg, var(--secondary), var(--dark));
  display: flex; align-items: center; justify-content: center;
}
.program-icon-large { font-size: 4rem; color: rgba(255,255,255,0.2); }
.program-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--accent); color: var(--white);
  font-size: 0.72rem; font-weight: 700; padding: 4px 12px;
  border-radius: 50px; letter-spacing: 1px;
}
.program-body { padding: 1.8rem; flex-grow: 1; display: flex; flex-direction: column; }
.program-icon {
  width: 50px; height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.2rem;
  margin-bottom: 1rem; margin-top: -2.5rem;
  box-shadow: var(--shadow-sm);
}
.program-body h3 { font-size: 1.2rem; font-weight: 700; color: var(--secondary); margin-bottom: 0.8rem; }
.program-body p { color: var(--text-light); font-size: 0.9rem; line-height: 1.8; margin-bottom: 1rem; }
.program-points { display: flex; flex-direction: column; gap: 0.4rem; }
.program-points li { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text); }
.program-points i { color: var(--accent); font-size: 0.75rem; }

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-auto-rows: 280px;
  grid-auto-flow: dense;
  gap: 1.5rem;
}
.gallery-wide { grid-column: span 2; }
.gallery-tall { grid-row: span 2; }
.gallery-big { grid-column: span 2; grid-row: span 2; }

.gallery-item {
  position: relative; overflow: hidden;
  border-radius: var(--radius); cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--bg-dark); /* Placeholder during load */
}

.gallery-item:hover { 
  transform: translateY(-8px); 
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  z-index: 2;
}

.gallery-item img {
  width: 100%; height: 100%; 
  object-fit: cover;
  object-position: center 25%; /* Better for human subjects (shows heads) */
  display: block;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img { transform: scale(1.15); }

.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 70%, transparent 100%);
  padding: 3rem 1.5rem 1.2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  pointer-events: none;
}

.gallery-item:hover .gallery-caption { 
  opacity: 1; 
  transform: translateY(0); 
}

.gallery-caption span { 
  color: var(--white); 
  font-size: 0.95rem; 
  font-weight: 600; 
  display: block;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Responsive Gallery Adjustments */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-rows: 200px;
  }
  .gallery-wide, .gallery-big { grid-column: span 1; }
  .gallery-tall, .gallery-big { grid-row: span 1; }
}

/* ===== FACILITY PHOTOS (Care Home Section) ===== */
.facility-photos {
  display: grid;
  grid-template-columns: 1fr 2fr;
  grid-template-rows: auto auto;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
}

.facility-photo-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--light-gray);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.facility-photo-tall {
  grid-row: span 2;
}

.facility-photo-item img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

.facility-photo-tall img {
  min-height: 420px;
}

.facility-photo-item:hover img {
  transform: scale(1.06);
}

.facility-photo-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 1.5rem 1rem 0.9rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.35s ease;
  display: flex; align-items: center; gap: 7px;
}

.facility-photo-item:hover .facility-photo-label {
  opacity: 1;
  transform: translateY(0);
}

/* Tablets */
@media (max-width: 768px) {
  .facility-photos {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .facility-photo-tall {
    grid-row: span 1;
    grid-column: span 2;
  }
  .facility-photo-tall img { min-height: 240px; }
  .facility-photo-item img { min-height: 180px; }
  .facility-photo-label { opacity: 1; transform: translateY(0); }
}

/* Phones */
@media (max-width: 480px) {
  .facility-photos {
    grid-template-columns: 1fr;
  }
  .facility-photo-tall {
    grid-column: span 1;
  }
  .facility-photo-tall img { min-height: 260px; }
  .facility-photo-item img { min-height: 200px; }
}

/* ===== CREDENTIALS ===== */
.credentials-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem;
  margin-bottom: 2.5rem;
}
.credential-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius); padding: 2rem;
  text-align: center; transition: var(--transition);
}
.credential-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-5px); }
.credential-card.highlight-cred { border-color: var(--primary); background: rgba(230,126,34,0.1); }
.credential-icon {
  width: 65px; height: 65px;
  background: linear-gradient(135deg, var(--primary), var(--gold));
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--white);
  margin: 0 auto 1.2rem;
}
.credential-card h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 0.8rem; }
.credential-number { font-size: 1.2rem; font-weight: 700; color: var(--gold); margin-bottom: 0.8rem; font-family: var(--font-heading); }
.credential-card p { color: rgba(255,255,255,0.7); font-size: 0.88rem; line-height: 1.7; margin-bottom: 0.8rem; }
.credential-detail { color: rgba(255,255,255,0.5); font-size: 0.78rem; padding-top: 0.5rem; border-top: 1px solid rgba(255,255,255,0.1); }
.transparency-note {
  display: flex; align-items: flex-start; gap: 1rem;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm); padding: 1.5rem;
}
.transparency-note i { color: var(--gold); font-size: 1.3rem; margin-top: 2px; flex-shrink: 0; }
.transparency-note p { color: rgba(255,255,255,0.75); font-size: 0.9rem; line-height: 1.7; }
.transparency-note a { color: var(--primary); }

/* ===== DONATE ===== */
.donate { background: linear-gradient(135deg, #fff9f5, #fff3e0); }
.donate-wrap {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem;
  align-items: center;
}
.donate-content .section-tag { margin-bottom: 1rem; }
.donate-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--secondary); margin-bottom: 1.2rem;
}
.donate-body { color: var(--text-light); font-size: 1rem; line-height: 1.9; margin-bottom: 2rem; }
.donate-benefits { display: flex; flex-direction: column; gap: 0.8rem; }
.benefit-item { display: flex; align-items: center; gap: 12px; }
.benefit-item i { color: var(--accent); font-size: 1.1rem; width: 20px; }
.benefit-item span { font-size: 0.95rem; color: var(--text); font-weight: 500; }
.donate-card {
  background: var(--white); border-radius: var(--radius);
  padding: 2.5rem; box-shadow: var(--shadow-md);
  border-top: 5px solid var(--primary);
}
.donate-card h3 { font-size: 1.2rem; font-weight: 700; color: var(--secondary); margin-bottom: 1.5rem; display: flex; align-items: center; gap: 10px; }
.donate-card h3 i { color: var(--primary); }
.bank-detail {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--light-gray);
  font-size: 0.9rem;
}
.bank-detail:last-of-type { border-bottom: none; margin-bottom: 1.5rem; }
.bank-detail span { color: var(--text-light); }
.bank-detail strong { color: var(--secondary); font-weight: 600; }
.donate-call-btn { width: 100%; justify-content: center; margin-bottom: 1rem; }
.donate-note { font-size: 0.78rem; color: var(--text-light); text-align: center; line-height: 1.5; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.1rem;
}
.contact-text h4 { font-size: 0.9rem; font-weight: 600; color: var(--secondary); margin-bottom: 0.3rem; }
.contact-text p { color: var(--text-light); font-size: 0.9rem; line-height: 1.6; }
.contact-text a { color: var(--primary); font-weight: 500; }
.whatsapp-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #25D366; color: var(--white);
  padding: 14px 24px; border-radius: 50px;
  font-weight: 600; font-size: 0.95rem;
  box-shadow: 0 4px 15px rgba(37,211,102,0.35);
  transition: var(--transition); margin-top: 0.5rem;
  width: fit-content;
}
.whatsapp-btn:hover { background: #20ba58; transform: translateY(-3px); }
.contact-form-wrap {
  background: var(--white); border-radius: var(--radius);
  padding: 2.5rem; box-shadow: var(--shadow-sm);
}
.contact-form h3 { font-size: 1.3rem; font-weight: 700; color: var(--secondary); margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--text); margin-bottom: 0.4rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid #e9ecef;
  border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.9rem; color: var(--text);
  transition: var(--transition);
  background: var(--off-white);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary);
  background: var(--white); box-shadow: 0 0 0 3px rgba(230,126,34,0.1);
}
.form-group textarea { resize: vertical; }
.form-submit-btn { width: 100%; justify-content: center; border-radius: var(--radius-sm); }
.form-success {
  display: flex; align-items: center; gap: 10px;
  color: var(--accent); font-weight: 500; margin-top: 1rem;
  padding: 12px; background: rgba(39,174,96,0.1); border-radius: var(--radius-sm);
}

/* ===== MEMBERS ===== */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2.5rem;
  justify-items: center;
}
.member-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  max-width: 440px;
  width: 100%;
  transition: var(--transition);
  border-top: 5px solid var(--primary);
  height: 100%; display: flex; flex-direction: column;
}
.member-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}
.member-photo-wrap {
  position: relative;
  height: 320px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--secondary), var(--dark));
}
.member-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
}
.member-card:hover .member-photo { transform: scale(1.04); }
.member-role-badge {
  position: absolute;
  bottom: 16px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase;
  padding: 7px 20px; border-radius: 50px;
  display: flex; align-items: center; gap: 7px;
  box-shadow: 0 4px 15px rgba(230,126,34,0.5);
  white-space: nowrap;
}
.member-info {
  padding: 2rem;
  text-align: center;
}
.member-name {
  font-family: var(--font-heading);
  font-size: 1.7rem; font-weight: 800;
  color: var(--secondary);
  margin-bottom: 0.25rem;
}
.member-designation {
  font-size: 0.95rem; font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.member-desc {
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.85;
  margin-bottom: 1.4rem;
}
.member-contact {
  margin-bottom: 1.2rem;
}
.member-phone {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 11px 22px; border-radius: 50px;
  font-weight: 600; font-size: 0.95rem;
  box-shadow: 0 4px 16px rgba(230,126,34,0.35);
  transition: var(--transition);
}
.member-phone:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(230,126,34,0.5);
}
.member-tags {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin-top: 1rem;
}
.member-tags span {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--light-gray);
  color: var(--text); font-size: 0.78rem; font-weight: 500;
  padding: 5px 12px; border-radius: 50px;
}
.member-tags span i { color: var(--primary); font-size: 0.72rem; }

/* Director variant colours */
.member-role-director {
  background: linear-gradient(135deg, var(--accent), #1e8449);
  box-shadow: 0 4px 15px rgba(39,174,96,0.5);
}
.member-designation-director { color: var(--accent); }
.member-phone-director {
  background: linear-gradient(135deg, var(--accent), #1e8449);
  box-shadow: 0 4px 16px rgba(39,174,96,0.35);
}
.member-phone-director:hover {
  box-shadow: 0 8px 25px rgba(39,174,96,0.55);
}
.member-card:has(.member-role-director) { border-top-color: var(--accent); }

/* Member variant colours */
.member-role-member {
  background: linear-gradient(135deg, #8e44ad, #9b59b6);
  box-shadow: 0 4px 15px rgba(142,68,173,0.5);
}
.member-designation-member { color: #8e44ad; }
.member-phone-member {
  background: linear-gradient(135deg, #8e44ad, #9b59b6);
  box-shadow: 0 4px 16px rgba(142,68,173,0.35);
}
.member-phone-member:hover {
  box-shadow: 0 8px 25px rgba(142,68,173,0.55);
}
.member-card:has(.member-role-member) { border-top-color: #8e44ad; }

/* ===== UPI DONATE ===== */
.upi-donate-section {
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  position: relative;
  overflow: hidden;
}
.upi-donate-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(230,126,34,0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(243,156,18,0.10) 0%, transparent 55%);
  pointer-events: none;
}
.upi-donate-section .section-title { color: var(--white); }
.upi-donate-section .section-subtitle { color: rgba(255,255,255,0.7); }

.upi-donate-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}

/* --- QR Card --- */
.upi-qr-card {
  position: relative;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(230,126,34,0.15);
  overflow: hidden;
}
.upi-qr-glow {
  position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(230,126,34,0.3) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.upi-qr-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--white);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 1px;
  padding: 6px 16px; border-radius: 50px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(39,174,96,0.4);
}
.upi-qr-img-wrap {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.8rem;
}
.upi-qr-inner {
  position: relative;
  display: inline-block;
  line-height: 0;
}
.upi-qr-img {
  width: 220px; height: 220px;
  object-fit: contain;
  object-position: center;
  border-radius: 16px;
  background: var(--white);
  padding: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  position: relative; z-index: 1;
  display: block;
}
.upi-qr-scan-ring {
  position: absolute;
  top: -10px; left: -10px; right: -10px; bottom: -10px;
  border: 3px solid transparent;
  border-radius: 22px;
  background: linear-gradient(rgba(15,12,41,0), rgba(15,12,41,0)) padding-box,
              linear-gradient(135deg, var(--primary), var(--gold), var(--accent), var(--primary)) border-box;
  animation: qrSpin 3s linear infinite;
  pointer-events: none;
}
@keyframes qrSpin {
  0%   { background: rgba(0,0,0,0) padding-box, linear-gradient(0deg,   var(--primary), var(--gold), var(--accent), var(--primary)) border-box; }
  25%  { background: rgba(0,0,0,0) padding-box, linear-gradient(90deg,  var(--primary), var(--gold), var(--accent), var(--primary)) border-box; }
  50%  { background: rgba(0,0,0,0) padding-box, linear-gradient(180deg, var(--primary), var(--gold), var(--accent), var(--primary)) border-box; }
  75%  { background: rgba(0,0,0,0) padding-box, linear-gradient(270deg, var(--primary), var(--gold), var(--accent), var(--primary)) border-box; }
  100% { background: rgba(0,0,0,0) padding-box, linear-gradient(360deg, var(--primary), var(--gold), var(--accent), var(--primary)) border-box; }
}

.upi-id-box {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px; padding: 14px 18px;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}
.upi-id-label {
  display: flex; align-items: center; gap: 6px;
  color: var(--gold); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; flex-shrink: 0;
}
.upi-id-value {
  color: var(--white); font-size: 1rem; font-weight: 700;
  font-family: monospace; letter-spacing: 0.5px;
}
.upi-copy-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white); border: none;
  width: 32px; height: 32px; border-radius: 8px;
  font-size: 0.85rem; cursor: pointer;
  transition: var(--transition); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.upi-copy-btn:hover { transform: scale(1.12); box-shadow: 0 4px 12px rgba(230,126,34,0.5); }
.upi-copied-msg {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  color: var(--accent-light); font-size: 0.85rem; font-weight: 600;
  animation: fadeInUp 0.3s ease;
}

/* --- Steps Card --- */
.upi-steps-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(16px);
  border-radius: 24px; padding: 2.5rem;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.upi-steps-title {
  font-size: 1.35rem; font-weight: 700; color: var(--white);
  margin-bottom: 2rem;
  display: flex; align-items: center; gap: 10px;
}
.upi-steps-title i { color: var(--gold); }
.upi-step {
  display: flex; align-items: flex-start; gap: 1.2rem;
  margin-bottom: 1.6rem;
}
.upi-step:last-of-type { margin-bottom: 2rem; }
.upi-step-num {
  width: 46px; height: 46px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--gold));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 800; color: var(--white);
  box-shadow: 0 4px 15px rgba(230,126,34,0.4);
}
.upi-step-text { display: flex; flex-direction: column; gap: 4px; padding-top: 4px; }
.upi-step-text strong { font-size: 0.98rem; font-weight: 700; color: var(--white); }
.upi-step-text span { font-size: 0.85rem; color: rgba(255,255,255,0.60); line-height: 1.5; }

.upi-apps-row {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 1.8rem;
}
.upi-app-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85); font-size: 0.82rem; font-weight: 600;
  padding: 7px 16px; border-radius: 50px;
  transition: var(--transition);
}
.upi-app-chip:hover { background: rgba(230,126,34,0.2); border-color: var(--primary); color: var(--white); }
.upi-app-chip i { color: var(--gold); }

.upi-tax-note {
  display: flex; align-items: flex-start; gap: 12px;
  background: rgba(39,174,96,0.12);
  border: 1px solid rgba(39,174,96,0.3);
  border-radius: 12px; padding: 1rem 1.2rem;
}
.upi-tax-note i { color: var(--accent-light); font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }
.upi-tax-note span { color: rgba(255,255,255,0.75); font-size: 0.85rem; line-height: 1.6; }
.upi-tax-note strong { color: var(--accent-light); }

/* UPI Nav Button */
.upi-nav-btn {
  background: linear-gradient(135deg, #302b63, #24243e) !important;
  color: var(--white) !important;
  border-radius: 50px !important;
  padding: 8px 18px !important;
  font-weight: 600 !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
}
.upi-nav-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(48,43,99,0.6) !important; }
#navbar.scrolled .upi-nav-btn { background: linear-gradient(135deg, #302b63, #24243e) !important; color: var(--white) !important; }

/* Responsive */
@media (max-width: 1024px) {
  .upi-donate-grid { grid-template-columns: 1fr; max-width: 600px; margin: 0 auto; }
}
@media (max-width: 480px) {
  .upi-qr-card { padding: 1.8rem 1.2rem; }
  .upi-qr-img { width: 160px; height: 160px; padding: 8px; }
  .upi-steps-card { padding: 1.8rem 1.2rem; }
  .upi-id-value { font-size: 0.88rem; }
}

/* ===== FOOTER ===== */
.footer { background: var(--dark); color: var(--white); }
.footer-top { padding: 4rem 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 3rem;
}
.footer-logo {
  width: 60px; height: 60px; object-fit: contain;
  background: rgba(255,255,255,0.1); border-radius: 12px; padding: 6px;
  margin-bottom: 1rem;
}
.footer-brand h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.8rem; color: var(--white); }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.88rem; line-height: 1.7; margin-bottom: 1.2rem; }
.footer-social { display: flex; gap: 0.8rem; }
.footer-social a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7); font-size: 0.9rem;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); border-color: var(--primary); color: var(--white); }
.footer-links h4, .footer-programs h4, .footer-contact h4 {
  font-size: 1rem; font-weight: 600; color: var(--white);
  margin-bottom: 1.2rem; padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--primary); display: inline-block;
}
.footer-links ul, .footer-programs ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links ul li a, .footer-programs ul li a {
  color: rgba(255,255,255,0.6); font-size: 0.88rem;
  transition: var(--transition);
}
.footer-links ul li a:hover, .footer-programs ul li a:hover { color: var(--primary); padding-left: 5px; }
.footer-contact p {
  color: rgba(255,255,255,0.65); font-size: 0.85rem;
  line-height: 1.7; margin-bottom: 0.5rem;
  display: flex; align-items: flex-start; gap: 8px;
}
.footer-contact p i { color: var(--primary); margin-top: 3px; flex-shrink: 0; }
.footer-contact a { color: rgba(255,255,255,0.65); }
.footer-contact a:hover { color: var(--primary); }
.footer-bottom {
  background: rgba(0,0,0,0.3); text-align: center;
  padding: 1.2rem; color: rgba(255,255,255,0.4); font-size: 0.82rem;
}

/* ===== ANIMATIONS ===== */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

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

/* --- Tablet Large (≤1024px) --- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-image-wrap { max-width: 380px; margin: 0 auto; }
  .donate-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
  .members-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
}

/* --- Tablet (≤768px) --- */
@media (max-width: 768px) {

  /* Navbar */
  .hamburger { display: flex; }
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(255,255,255,0.98); backdrop-filter: blur(20px);
    padding: 1rem;
    box-shadow: var(--shadow-md);
    gap: 0.2rem;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-link { color: var(--text) !important; width: 100%; text-align: center; padding: 10px; }
  .nav-link:hover, .nav-link.active { color: var(--primary) !important; background: rgba(230,126,34,0.08) !important; }
  .nav-logo { width: 44px; height: 44px; }
  .brand-name { font-size: 0.95rem; }
  .brand-tagline { font-size: 0.62rem; }

  /* Hero */
  .hero-badge { font-size: 0.72rem; padding: 6px 14px; text-align: center; line-height: 1.5; }
  .hero-content { padding: 1.5rem 1.2rem; }
  .hero-subtitle { font-size: 0.95rem; }

  /* Stats */
  .stats-container { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

  /* About */
  .about-highlights { grid-template-columns: 1fr; }
  .about-card-float { right: 0; bottom: -15px; }
  .mvv-grid { grid-template-columns: 1fr; }

  /* Programs */
  .programs-grid { grid-template-columns: 1fr; }
  .program-img-wrap { height: 200px; }

  /* Gallery */
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .gallery-wide, .gallery-big { grid-column: span 2; }
  .gallery-tall, .gallery-big { grid-row: span 1; }
  .gallery-caption { opacity: 1; transform: translateY(0); }

  /* Facility Photos */
  .facility-photos { grid-template-columns: 1fr 1fr; }
  .facility-photo-tall { grid-row: span 1; grid-column: span 2; }
  .facility-photo-tall img { min-height: 240px; }
  .facility-photo-item img { min-height: 180px; }
  .facility-photo-label { opacity: 1; transform: translateY(0); }

  /* Members */
  .members-grid { grid-template-columns: 1fr; }
  .member-card { max-width: 100%; }
  .member-photo-wrap { height: 260px; }
  .member-name { font-size: 1.4rem; }

  /* Donate */
  .donate-wrap { grid-template-columns: 1fr; gap: 2rem; }
  .bank-detail { flex-direction: column; align-items: flex-start; gap: 4px; }

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

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-top { padding: 2.5rem 0; }

  /* Trust Card */
  .trust-card { max-width: 100% !important; }
}

/* --- Phone (≤480px) --- */
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .section { padding: 3rem 0; }
  html { font-size: 15px; }

  /* Navbar */
  .nav-container { padding: 0 1rem; }
  .nav-logo { width: 40px; height: 40px; }
  .brand-name { font-size: 0.9rem; }
  .brand-tagline { display: none; }

  /* Hero */
  .hero { min-height: 100svh; }
  .hero-badge {
    font-size: 0.68rem; padding: 5px 12px;
    white-space: normal; max-width: 90vw;
    text-align: center; line-height: 1.6;
  }
  .hero-title { font-size: clamp(1.8rem, 8vw, 2.8rem); }
  .hero-subtitle { font-size: 0.88rem; padding: 0 0.5rem; }
  .hero-tags { gap: 0.5rem; }
  .hero-tags span { font-size: 0.75rem; padding: 5px 12px; }
  .hero-cta { flex-direction: column; align-items: center; gap: 0.8rem; }
  .hero-cta .btn { width: 100%; max-width: 280px; justify-content: center; }
  .hero-scroll-indicator { display: none; }

  /* Stats */
  .stats-container { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .stat-number { font-size: 2rem; }
  .stat-label { font-size: 0.78rem; }

  /* Section Headers */
  .section-title { font-size: clamp(1.5rem, 6vw, 2rem); }
  .section-subtitle { font-size: 0.9rem; }

  /* About */
  .about-image-wrap { max-width: 100%; }
  .about-img { padding: 1rem; }
  .about-card-float { right: 10px; padding: 0.8rem 1rem; font-size: 0.9rem; }
  .about-lead { font-size: 1rem; }

  /* Programs */
  .programs-grid { grid-template-columns: 1fr; }
  .program-img-wrap { height: 180px; }
  .program-body { padding: 1.4rem; }

  /* Trust / Care Home */
  section#trust .trust-lead { font-size: 0.95rem !important; padding: 0 0.5rem; }
  .trust-locations { padding: 0; }
  .trust-card { padding: 20px !important; }
  .trust-card h3 { font-size: 1rem; }
  .trust-card p { font-size: 0.88rem; }

  /* Gallery */
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; gap: 0.8rem; }
  .gallery-wide, .gallery-big, .gallery-tall { grid-column: span 1; grid-row: span 1; }

  /* Facility Photos */
  .facility-photos { grid-template-columns: 1fr; gap: 0.8rem; }
  .facility-photo-tall { grid-column: span 1; }
  .facility-photo-tall img { min-height: 250px; }
  .facility-photo-item img { min-height: 200px; }

  /* Credentials */
  .credentials-grid { grid-template-columns: 1fr; }
  .credential-card { padding: 1.5rem; }

  /* Members */
  .members-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .member-photo-wrap { height: 240px; }
  .member-info { padding: 1.4rem; }
  .member-name { font-size: 1.3rem; }
  .member-desc { font-size: 0.88rem; }
  .member-tags { gap: 6px; }
  .member-tags span { font-size: 0.72rem; padding: 4px 10px; }

  /* Donate */
  .donate-wrap { gap: 1.5rem; }
  .donate-title { font-size: 1.8rem; }
  .donate-card { padding: 1.5rem; }
  .donate-call-btn { font-size: 0.9rem; }
  .bank-detail { flex-direction: column; align-items: flex-start; gap: 3px; font-size: 0.85rem; }

  /* Contact */
  .contact-form-wrap { padding: 1.5rem; }
  .contact-form h3 { font-size: 1.1rem; }
  .whatsapp-btn { width: 100%; justify-content: center; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-bottom { font-size: 0.72rem; padding: 1rem; line-height: 1.6; }
  .footer-brand h3 { font-size: 1.1rem; }

  /* Scroll to Top */
  #scrollTop { width: 44px; height: 44px; bottom: 20px; right: 16px; font-size: 1rem; }

  /* Buttons */
  .btn { padding: 12px 22px; font-size: 0.88rem; }
}

/* --- Very Small Phones (≤360px) --- */
@media (max-width: 360px) {
  html { font-size: 14px; }
  .hero-badge { font-size: 0.62rem; }
  .hero-title { font-size: 1.7rem; }
  .stats-container { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-auto-rows: 180px; }
  .nav-logo { width: 36px; height: 36px; }
  .member-photo-wrap { height: 200px; }
}

/* ===== LIGHTBOX MODAL ===== */
.lightbox {
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 50px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10001;
  transition: color 0.3s ease, transform 0.3s ease;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: var(--primary);
  transform: scale(1.1);
  text-decoration: none;
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.6);
  animation: zoomIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox-caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #f1f3f4;
  padding: 15px 0;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
}

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

/* Phones Lightbox Adjustments */
@media (max-width: 768px) {
  .lightbox-content {
    max-width: 98vw;
    max-height: 75vh;
  }
  .lightbox-close {
    top: 10px;
    right: 20px;
    font-size: 40px;
  }
  .lightbox-caption {
    font-size: 0.95rem;
    padding: 10px 0;
  }
}
