/* ═══════════════════════════════════════════════════════════════
   Raj Bharti Medical Foundation — Main Stylesheet
   Version: 1.0 | Tech: Vanilla CSS | Mobile-first
═══════════════════════════════════════════════════════════════ */

/* ── Google Fonts ────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ── CSS Custom Properties ───────────────────────────────────── */
:root {
  /* Brand Colours */
  --c-primary: #1565C0;
  --c-primary-d: #0D47A1;
  --c-primary-l: #1E88E5;
  --c-accent: #00897B;
  --c-accent-l: #26A69A;
  --c-donate: #C62828;
  --c-donate-d: #B71C1C;
  --c-purple: #7B1FA2;
  --c-purple-l: #9C27B0;
  --c-green: #388E3C;
  --c-green-l: #43A047;
  --c-orange: #E65100;
  --c-gold: #F57F17;
  --c-gold-l: #FFA000;

  /* Neutrals */
  --c-navy: #0B1D3A;
  --c-navy-mid: #0F3975;
  --c-bg: #F5F8FF;
  --c-surface: #FFFFFF;
  --c-border: #DDE3EF;
  --c-text: #263238;
  --c-muted: #546E7A;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(21, 101, 192, 0.10);
  --shadow-card: 0 4px 24px rgba(21, 101, 192, 0.12);
  --shadow-lg: 0 8px 40px rgba(21, 101, 192, 0.18);
  --shadow-xl: 0 16px 60px rgba(11, 29, 58, 0.22);

  /* Radius */
  --r-sm: 8px;
  --r-card: 16px;
  --r-pill: 100px;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  --text-base: 16px;

  /* Transitions */
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: var(--text-base);
}

body {
  font-family: var(--font-body);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--c-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--c-primary-d);
}

ul {
  list-style: none;
}

::selection {
  background: var(--c-primary);
  color: white;
}

/* ── Skip Link (Accessibility) ───────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--c-primary);
  color: white;
  padding: 8px 16px;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* ── Container ───────────────────────────────────────────────── */
.container {
  max-width: 90%;
  margin: 0 auto;
  padding: 0 24px;
}

.container-sm {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-lg {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Typography ──────────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 700;
  color: var(--c-text);
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.2rem;
  color: var(--c-muted);
  line-height: 1.8;
}

/* ── Section Utilities ───────────────────────────────────────── */
.section {
  padding: 80px 0;
}

.section-sm {
  padding: 48px 0;
}

.section-lg {
  padding: 120px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header .section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-primary);
  background: rgba(21, 101, 192, 0.08);
  padding: 4px 16px;
  border-radius: var(--r-pill);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--c-muted);
  max-width: 600px;
  margin: 0 auto;
}

.section-divider {
  width: 60px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
  margin: 16px auto 0;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 3px solid var(--c-primary);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--c-primary);
  color: white;
  border-color: var(--c-primary);
}

.btn-primary:hover {
  background: var(--c-primary-d);
  border-color: var(--c-primary-d);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

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

.btn-outline:hover {
  background: var(--c-primary);
  color: white;
}

.btn-outline-white {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-outline-white:hover {
  background: white;
  color: var(--c-primary);
}

.btn-donate {
  background: var(--c-donate);
  color: white;
  border-color: var(--c-donate);
}

.btn-donate:hover {
  background: var(--c-donate-d);
  border-color: var(--c-donate-d);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(198, 40, 40, 0.4);
}

.btn-teal {
  background: var(--c-accent);
  color: white;
  border-color: var(--c-accent);
}

.btn-teal:hover {
  background: #00796B;
  border-color: #00796B;
  color: white;
}

.btn-gold {
  background: var(--c-gold);
  color: var(--c-navy);
  border-color: var(--c-gold);
}

.btn-gold:hover {
  background: var(--c-gold-l);
  color: var(--c-navy);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 7px 16px;
  font-size: 0.82rem;
  border-width: 1.5px;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* ── Badge / Pill ────────────────────────────────────────────── */
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--r-pill);
}

.badge-primary {
  background: rgba(21, 101, 192, 0.1);
  color: var(--c-primary);
}

.badge-purple {
  background: rgba(123, 31, 162, 0.1);
  color: var(--c-purple);
}

.badge-teal {
  background: rgba(0, 137, 123, 0.1);
  color: var(--c-accent);
}

.badge-green {
  background: rgba(56, 142, 60, 0.1);
  color: var(--c-green);
}

.badge-orange {
  background: rgba(230, 81, 0, 0.1);
  color: var(--c-orange);
}

.badge-red {
  background: rgba(198, 40, 40, 0.1);
  color: var(--c-donate);
}

.badge-gold {
  background: rgba(245, 127, 23, 0.15);
  color: var(--c-gold);
}

.badge-muted {
  background: var(--c-border);
  color: var(--c-muted);
}

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--c-surface);
  border-radius: var(--r-card);
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.card-accent-blue {
  border-left: 4px solid var(--c-primary);
}

.card-accent-purple {
  border-left: 4px solid var(--c-purple);
}

.card-accent-teal {
  border-left: 4px solid var(--c-accent);
}

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

.card-accent-orange {
  border-left: 4px solid var(--c-orange);
}

/* ── Page Banner ─────────────────────────────────────────────── */
.page-banner {
  background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-navy-mid) 100%);
  padding: 64px 0 48px;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(21, 101, 192, 0.3) 0%, transparent 70%);
}

.page-banner .container {
  position: relative;
  z-index: 1;
}

.page-banner h1 {
  color: white;
  margin-bottom: 12px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
}

.breadcrumb a:hover {
  color: white;
}

.breadcrumb span {
  color: rgba(255, 255, 255, 0.4);
}

/* ─────────────────────────────────────────────────────────────
   NAVBAR
───────────────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: white;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(21, 101, 192, 0.12);
}

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

.navbar-brand .brand-logo {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-primary);
  line-height: 1.1;
}

.brand-tagline {
  font-size: 0.68rem;
  color: var(--c-muted);
  line-height: 1.2;
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--c-text);
  padding: 6px 12px;
  border-radius: var(--r-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--c-primary);
  background: rgba(21, 101, 192, 0.06);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  background: var(--c-bg);
  border-radius: var(--r-pill);
  padding: 2px;
  border: 1px solid var(--c-border);
}

.lang-btn {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--c-muted);
  transition: all var(--transition);
}

.lang-btn.active {
  background: var(--c-primary);
  color: white;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: transparent;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* Hide mobile donate in desktop nav-links */
.nav-donate-mobile {
  display: none;
}

/* Donate button inside mobile menu */
.nav-donate-btn {
  display: block;
  text-align: center;
  margin-top: 8px;
  width: 100%;
  justify-content: center;
}

/* ─────────────────────────────────────────────────────────────
   HERO SECTION
───────────────────────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - 72px);
  background: var(--c-navy);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(21, 101, 192, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(123, 31, 162, 0.15) 0%, transparent 50%);
}

.ecg-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  opacity: 0.35;
  pointer-events: none;
}

.ecg-container svg {
  width: 100%;
  height: 100%;
}

.particles-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(21, 101, 192, 0.4);
  animation: floatParticle 8s infinite ease-in-out;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
  padding: 80px 0 120px;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 60px 0 80px;
  }

  .hero-cta-group,
  .hero-meta {
    justify-content: center;
  }

  .hero-badge {
    margin: 0 auto 24px;
  }
}

.hero-content {
  position: relative;
}

.hero-image-wrap {
  position: relative;
  text-align: right;
}

.hero-image-wrap img {
  max-width: 100%;
  border-radius: 24px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  animation: floatModern 6s ease-in-out infinite;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(21, 101, 192, 0.2);
  border: 1px solid rgba(21, 101, 192, 0.4);
  color: rgba(255, 255, 255, 0.85);
  padding: 6px 16px;
  border-radius: var(--r-pill);
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 700;
  color: white;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-title .highlight {
  color: var(--c-accent-l);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 40px;
  line-height: 1.7;
  max-width: 620px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 56px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
}

.hero-meta-item .meta-icon {
  font-size: 1rem;
}

/* ─────────────────────────────────────────────────────────────
   TRUST BADGES BAR
───────────────────────────────────────────────────────────── */
.trust-badges-bar {
  background: white;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding: 20px 0;
}

.badges-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 32px;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--c-muted);
}

.badge-item .badge-icon {
  font-size: 1.1rem;
}

.badge-item .badge-label {
  color: var(--c-text);
}

/* ─────────────────────────────────────────────────────────────
   STATS SECTION
───────────────────────────────────────────────────────────── */
.stats-section {
  background: var(--c-bg);
  padding: 80px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-card {
  background: white;
  border-radius: var(--r-card);
  padding: 40px 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.stat-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.stat-icon-purple {
  background: rgba(123, 31, 162, 0.1);
}

.stat-icon-teal {
  background: rgba(0, 137, 123, 0.1);
}

.stat-icon-green {
  background: rgba(56, 142, 60, 0.1);
}

.stat-icon-gold {
  background: rgba(245, 127, 23, 0.1);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--c-primary);
  line-height: 1;
  margin-bottom: 8px;
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--c-muted);
  font-weight: 500;
}

/* ─────────────────────────────────────────────────────────────
   ABOUT SNIPPET
───────────────────────────────────────────────────────────── */
.about-snippet {
  background: white;
  padding: 80px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text .section-tag {
  margin-bottom: 12px;
}

.about-text h2 {
  margin-bottom: 20px;
}

.about-text p {
  color: var(--c-muted);
  margin-bottom: 16px;
}

.about-visual {
  text-align: center;
}

.about-logo-wrap {
  width: 320px;
  height: 320px;
  margin: 0 auto 60px;
  background: var(--c-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}

/* Atomic Orbits */
.atom-orbit {
  position: absolute;
  top: -40px;
  left: -40px;
  right: -40px;
  bottom: -40px;
  border-radius: 50%;
  border: 2px solid rgba(21, 101, 192, 0.2);
  transform-style: preserve-3d;
}

.orbit-wrap-1 {
  transform: rotateZ(0deg) rotateX(75deg);
}

.orbit-wrap-2 {
  transform: rotateZ(45deg) rotateX(75deg);
}

.orbit-wrap-3 {
  transform: rotateZ(90deg) rotateX(75deg);
}

.orbit-wrap-4 {
  transform: rotateZ(135deg) rotateX(75deg);
}

.atom-dot-spinner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transform-style: preserve-3d;
}

.spinner-1 {
  animation: spinDot 12s linear infinite;
}

.spinner-2 {
  animation: spinDot 15s linear infinite reverse;
}

.spinner-3 {
  animation: spinDot 18s linear infinite;
}

.spinner-4 {
  animation: spinDot 14s linear infinite reverse;
}

@keyframes spinDot {
  0% {
    transform: rotateZ(0deg);
  }

  100% {
    transform: rotateZ(360deg);
  }
}

.atom-dot {
  position: absolute;
  top: -12px;
  left: 50%;
  width: 24px;
  height: 24px;
  margin-left: -12px;
  border-radius: 50%;
  box-shadow: 0 0 15px currentColor;
  /* Counter-rotate X tilt to keep dot spherical (optional, but looks good) */
  transform: rotateX(-75deg);
}

.dot-purple {
  background: #7B1FA2;
  color: #7B1FA2;
}

.dot-blue {
  background: #1565C0;
  color: #1565C0;
}

.dot-orange {
  background: #E65100;
  color: #E65100;
}

.dot-green {
  background: #388E3C;
  color: #388E3C;
}

.about-seals {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.seal-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c-muted);
}

.seal-chip.active {
  background: rgba(21, 101, 192, 0.08);
  border-color: var(--c-primary);
  color: var(--c-primary);
}

/* ─────────────────────────────────────────────────────────────
   PROGRAMME CARDS
───────────────────────────────────────────────────────────── */
.programmes-section {
  background: var(--c-bg);
  padding: 80px 0;
}

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

.programme-card {
  background: white;
  border-radius: var(--r-card);
  padding: 36px 28px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.programme-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.programme-card.purple::before {
  background: var(--c-purple);
}

.programme-card.teal::before {
  background: var(--c-accent);
}

.programme-card.green::before {
  background: var(--c-green);
}

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

.programme-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.programme-card.purple .programme-icon {
  background: rgba(123, 31, 162, 0.08);
}

.programme-card.teal .programme-icon {
  background: rgba(0, 137, 123, 0.08);
}

.programme-card.green .programme-icon {
  background: rgba(56, 142, 60, 0.08);
}

.programme-title {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.programme-desc {
  color: var(--c-muted);
  font-size: 0.92rem;
  margin-bottom: 24px;
  line-height: 1.7;
}

.programme-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: gap var(--transition);
}

.programme-card.purple .programme-cta {
  color: var(--c-purple);
}

.programme-card.teal .programme-cta {
  color: var(--c-accent);
}

.programme-card.green .programme-cta {
  color: var(--c-green);
}

.programme-cta:hover {
  gap: 12px;
}

/* ─────────────────────────────────────────────────────────────
   TRUSTEES STRIP
───────────────────────────────────────────────────────────── */
.trustees-section {
  background: white;
  padding: 80px 0;
}

.trustees-strip {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 12px;
  justify-content: center;
  scrollbar-width: thin;
  scrollbar-color: var(--c-border) transparent;
}

.trustee-card {
  flex: 0 0 200px;
  background: var(--c-bg);
  border-radius: var(--r-card);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid var(--c-border);
}

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

.trustee-photo-circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: white;
  border: 2px solid var(--c-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--c-primary);
  font-family: var(--font-display);
  font-weight: 700;
  overflow: hidden;
}

.trustee-photo-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.trustee-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--c-text);
}

.trustee-designation-small {
  font-size: 0.75rem;
  color: var(--c-muted);
  line-height: 1.4;
}

/* ─────────────────────────────────────────────────────────────
   EVENTS SECTION
───────────────────────────────────────────────────────────── */
.events-section {
  background: linear-gradient(135deg, var(--c-accent) 0%, #00695C 100%);
  padding: 80px 0;
}

.events-section .section-title,
.events-section .section-subtitle {
  color: white;
}

.events-section .section-tag {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

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

.event-card {
  background: white;
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition);
  display: flex;
  flex-direction: column;
}

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

.event-card-header {
  display: flex;
  align-items: stretch;
}

.event-date-badge {
  background: var(--c-primary);
  color: white;
  min-width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  text-align: center;
  flex-shrink: 0;
}

.event-day {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  font-family: var(--font-display);
}

.event-month {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.85;
}

.event-card-body {
  padding: 20px;
  flex: 1;
}

.event-type-badge {
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.event-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.event-location {
  font-size: 0.82rem;
  color: var(--c-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.event-status {
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 0.72rem;
  font-weight: 700;
}

.status-upcoming {
  background: rgba(0, 137, 123, 0.1);
  color: var(--c-accent);
}

.status-completed {
  background: var(--c-border);
  color: var(--c-muted);
}

.status-cancelled {
  background: rgba(198, 40, 40, 0.1);
  color: var(--c-donate);
}

.event-card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--c-border);
}

/* ─────────────────────────────────────────────────────────────
   DONATE BANNER
───────────────────────────────────────────────────────────── */
.donate-banner {
  background: linear-gradient(135deg, var(--c-donate) 0%, #7B0000 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.donate-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.donate-banner .container {
  position: relative;
  z-index: 1;
}

.donate-banner h2 {
  color: white;
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 12px;
}

.donate-banner p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  margin-bottom: 36px;
}

.donate-amounts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
  align-items: center;
}

.amount-btn {
  padding: 10px 22px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--r-pill);
  background: transparent;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
}

.amount-btn:hover,
.amount-btn.active {
  background: white;
  color: var(--c-donate);
  border-color: white;
}

.amount-custom {
  padding: 9px 16px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1rem;
  width: 160px;
  font-family: var(--font-body);
  outline: none;
}

.amount-custom::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.amount-custom:focus {
  border-color: white;
  background: rgba(255, 255, 255, 0.2);
}

.donate-trust-icons {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.donate-trust-icons span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ─────────────────────────────────────────────────────────────
   TESTIMONIALS SLIDER
───────────────────────────────────────────────────────────── */
.testimonials-section {
  background: var(--c-navy);
  padding: 80px 0;
}

.testimonials-section .section-title {
  color: white;
}

.testimonials-section .section-subtitle {
  color: rgba(255, 255, 255, 0.6);
}

.testimonials-section .section-tag {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

.slider-wrap {
  position: relative;
  overflow: hidden;
  margin: 0 -12px;
}

.slider-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-slide {
  flex: 0 0 100%;
  padding: 0 12px;
}

.testimonial-inner {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-card);
  padding: 48px 40px;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.testimonial-quote {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 32px;
}

.testimonial-quote::before {
  content: '\201C';
  font-size: 3rem;
  color: var(--c-accent);
  line-height: 0;
  vertical-align: -0.5em;
  margin-right: 4px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: white;
  font-weight: 700;
  font-family: var(--font-display);
  flex-shrink: 0;
}

.author-info {
  text-align: left;
}

.author-name {
  font-weight: 700;
  color: white;
  font-size: 0.95rem;
}

.author-location {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.author-condition {
  font-size: 0.78rem;
  color: var(--c-accent-l);
  margin-top: 2px;
}

.star-rating {
  display: flex;
  gap: 2px;
  justify-content: center;
  margin-bottom: 20px;
}

.star-rating .star {
  color: var(--c-gold);
  font-size: 1.1rem;
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.slider-prev,
.slider-next {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-prev:hover,
.slider-next:hover {
  background: white;
  color: var(--c-navy);
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.25);
  transition: all var(--transition);
  padding: 0;
}

.slider-dot.active {
  background: white;
  width: 24px;
  border-radius: 4px;
}

/* ─────────────────────────────────────────────────────────────
   NEWS CARDS
───────────────────────────────────────────────────────────── */
.news-section {
  background: white;
  padding: 80px 0;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}

.news-card {
  background: var(--c-bg);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

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

.news-thumbnail {
  height: 200px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 3rem;
}

.news-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.news-card:hover .news-thumbnail img {
  transform: scale(1.05);
}

.news-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-category {
  margin-bottom: 10px;
}

.news-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--c-text);
  line-height: 1.4;
  flex: 1;
}

.news-meta {
  font-size: 0.78rem;
  color: var(--c-muted);
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.news-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--c-primary);
  transition: gap var(--transition);
}

.news-read-more:hover {
  gap: 12px;
  color: var(--c-primary-d);
}

/* ─────────────────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────────────────── */
.footer {
  background: var(--c-navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 72px 0 0;
}

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

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: white;
  font-weight: 700;
}

.footer-tagline {
  font-size: 0.82rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-reg {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: white;
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.88rem;
  align-items: flex-start;
}

.footer-contact-icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  transition: all var(--transition);
  text-decoration: none;
}

.social-icon:hover {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: white;
}

.footer-trust-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.footer-trust-item {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.4);
  transition: color var(--transition);
}

.footer-bottom-links a:hover {
  color: white;
}

/* ─────────────────────────────────────────────────────────────
   WHATSAPP FAB
───────────────────────────────────────────────────────────── */
.wa-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  transition: transform var(--transition);
}

.wa-fab:hover {
  transform: scale(1.1);
  color: white;
}

.wa-fab::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.4);
  animation: waPulse 2.5s infinite;
}

.wa-fab .wa-tooltip {
  position: absolute;
  right: 70px;
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  font-size: 0.8rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition);
}

.wa-fab:hover .wa-tooltip {
  opacity: 1;
}

/* ─────────────────────────────────────────────────────────────
   FORMS
───────────────────────────────────────────────────────────── */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--c-text);
  margin-bottom: 6px;
}

.form-label .required {
  color: var(--c-donate);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--c-text);
  background: white;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}

.form-control:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.12);
}

.form-control::placeholder {
  color: var(--c-muted);
}

.form-control.error {
  border-color: var(--c-donate);
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23546E7A' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

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

.form-error {
  color: var(--c-donate);
  font-size: 0.8rem;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-hint {
  color: var(--c-muted);
  font-size: 0.8rem;
  margin-top: 4px;
}

/* ─────────────────────────────────────────────────────────────
   ALERTS
───────────────────────────────────────────────────────────── */
.alert {
  padding: 16px 20px;
  border-radius: var(--r-sm);
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
}

.alert-success {
  background: rgba(56, 142, 60, 0.08);
  border: 1px solid rgba(56, 142, 60, 0.25);
  color: var(--c-green);
}

.alert-error {
  background: rgba(198, 40, 40, 0.07);
  border: 1px solid rgba(198, 40, 40, 0.2);
  color: var(--c-donate);
}

.alert-info {
  background: rgba(21, 101, 192, 0.07);
  border: 1px solid rgba(21, 101, 192, 0.2);
  color: var(--c-primary);
}

.alert-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────────
   ACCORDION / FAQ
───────────────────────────────────────────────────────────── */
.accordion {
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.accordion-item {
  border-bottom: 1px solid var(--c-border);
  background: white;
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--c-text);
  transition: color var(--transition);
  gap: 16px;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}

.accordion-header:hover {
  color: var(--c-primary);
}

.accordion-header.active {
  color: var(--c-primary);
}

.accordion-icon {
  flex-shrink: 0;
  font-size: 1.2rem;
  transition: transform var(--transition);
  color: var(--c-muted);
}

.accordion-header.active .accordion-icon {
  transform: rotate(45deg);
  color: var(--c-primary);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.accordion-body.active {
  max-height: 500px;
}

.accordion-body-inner {
  padding: 0 24px 20px;
  color: var(--c-muted);
  font-size: 0.92rem;
  line-height: 1.8;
}

/* ─────────────────────────────────────────────────────────────
   TIMELINE (About page)
───────────────────────────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--c-border);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-dot {
  position: absolute;
  left: -35px;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--c-primary);
  border: 3px solid white;
  box-shadow: 0 0 0 3px var(--c-border);
}

.timeline-date {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--c-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.timeline-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.timeline-desc {
  font-size: 0.88rem;
  color: var(--c-muted);
  line-height: 1.7;
}

/* ─────────────────────────────────────────────────────────────
   GALLERY
───────────────────────────────────────────────────────────── */
.gallery-grid {
  columns: 3;
  gap: 16px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: var(--r-sm);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: var(--c-border);
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.4s;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 29, 58, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
  transition: opacity var(--transition);
  padding: 16px;
  text-align: center;
}

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

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

.gallery-overlay-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.gallery-overlay-title {
  font-weight: 600;
  font-size: 0.9rem;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.filter-pill {
  padding: 7px 20px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--c-border);
  background: white;
  color: var(--c-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  font-family: var(--font-body);
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: white;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  text-align: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--r-sm);
}

.lightbox-info {
  color: white;
  margin-top: 16px;
}

.lightbox-info h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.lightbox-info p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox-close {
  top: 20px;
  right: 20px;
}

.lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ─────────────────────────────────────────────────────────────
   MODAL (Team page)
───────────────────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 29, 58, 0.8);
  z-index: 9998;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: white;
  border-radius: var(--r-card);
  max-width: 90%;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 48px;
  box-shadow: var(--shadow-xl);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--c-muted);
  line-height: 1;
  transition: color var(--transition);
}

.modal-close:hover {
  color: var(--c-text);
}

.modal-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
}

.modal-photo-large {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
}

.modal-photo-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-name {
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.modal-designation {
  color: var(--c-primary);
  font-weight: 600;
  margin-bottom: 4px;
}

.modal-qualification {
  color: var(--c-muted);
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.modal-bio {
  color: var(--c-muted);
  line-height: 1.8;
  font-size: 0.95rem;
  white-space: pre-wrap;
  text-align: justify;
}

/* ─────────────────────────────────────────────────────────────
   TABLE STYLES
───────────────────────────────────────────────────────────── */
.rbmf-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.rbmf-table th {
  background: var(--c-primary);
  color: white;
  padding: 14px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
}

.rbmf-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--c-border);
  font-size: 0.9rem;
  background: white;
}

.rbmf-table tr:last-child td {
  border-bottom: none;
}

.rbmf-table tr:hover td {
  background: var(--c-bg);
}

.table-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.table-status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.status-active {
  color: var(--c-green);
}

.status-pending {
  color: var(--c-orange);
}

.status-approved {
  color: var(--c-accent);
}

/* ─────────────────────────────────────────────────────────────
   PROGRAMME DETAIL SECTIONS
───────────────────────────────────────────────────────────── */
.programme-detail {
  padding: 80px 0;
}

.programme-detail:nth-child(even) {
  background: var(--c-bg);
}

.programme-detail:nth-child(odd) {
  background: white;
}

.programme-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.programme-detail-grid.reversed {
  direction: rtl;
}

.programme-detail-grid.reversed>* {
  direction: ltr;
}

.programme-key-points {
  margin-top: 20px;
}

.key-point {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.92rem;
  color: var(--c-muted);
}

.key-point::before {
  content: '✓';
  color: var(--c-accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.programme-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.photo-placeholder {
  height: 180px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 2rem;
}

/* ─────────────────────────────────────────────────────────────
   CONTACT / MAP
───────────────────────────────────────────────────────────── */
.map-container {
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 48px;
}

.map-container iframe {
  display: block;
  width: 100%;
}

.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: start;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-person-card {
  background: var(--c-bg);
  border-radius: var(--r-card);
  padding: 24px;
  border: 1px solid var(--c-border);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.contact-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.contact-info {
  flex: 1;
}

.contact-name {
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 2px;
}

.contact-role {
  font-size: 0.82rem;
  color: var(--c-primary);
  font-weight: 500;
  margin-bottom: 4px;
}

.contact-detail {
  font-size: 0.82rem;
  color: var(--c-muted);
}

/* ─────────────────────────────────────────────────────────────
   TOAST NOTIFICATIONS
───────────────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9997;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--c-navy);
  color: white;
  padding: 14px 24px;
  border-radius: var(--r-pill);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideUp 0.3s ease;
  min-width: 280px;
  max-width: 480px;
}

.toast-success {
  background: var(--c-green);
}

.toast-error {
  background: var(--c-donate);
}

.toast-info {
  background: var(--c-primary);
}

/* ─────────────────────────────────────────────────────────────
   ANIMATIONS / KEYFRAMES
───────────────────────────────────────────────────────────── */
@keyframes waPulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }

  70% {
    transform: scale(1.4);
    opacity: 0;
  }

  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

@keyframes floatParticle {

  0%,
  100% {
    transform: translateY(0) translateX(0);
    opacity: 0.3;
  }

  33% {
    transform: translateY(-20px) translateX(10px);
    opacity: 0.7;
  }

  66% {
    transform: translateY(-10px) translateX(-8px);
    opacity: 0.5;
  }
}

@keyframes ecgDraw {
  0% {
    stroke-dashoffset: 2000;
  }

  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes countBounce {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.06);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────────────────────────────────────────────────────
   ABOUT PAGE
───────────────────────────────────────────────────────────── */
.about-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.about-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.about-overview-grid p,
.about-vision-grid p {
  text-align: justify;
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE — Tablet
───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .programmes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-overview-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-visual {
    order: -1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .gallery-grid {
    columns: 2;
  }

  .programme-detail-grid {
    grid-template-columns: 1fr;
  }

  .programme-detail-grid.reversed {
    direction: ltr;
  }

  .modal-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .modal-photo-large {
    margin: 0 auto;
  }
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE — Mobile
───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .navbar {
    padding: 0 16px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--c-border);
  }

  .hidden-mobile {
    display: none !important;
  }

  .nav-links.nav-open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 12px 16px;
    text-align: center;
  }

  .lang-toggle {
    display: none;
  }

  /* Hide desktop donate btn; show it inside the mobile menu instead */
  .nav-donate-desktop {
    display: none;
  }

  .nav-donate-mobile {
    display: flex;
    margin-top: 8px;
    width: 100%;
  }

  .nav-donate-mobile .nav-donate-btn {
    width: 100%;
    color: #ffffff !important;
    text-align: center;
  }

  .hamburger {
    display: flex;
  }

  .brand-tagline {
    display: none;
  }

  .hero-content {
    padding: 60px 0 100px;
  }

  .hero-cta-group {
    flex-direction: column;
  }

  .hero-cta-group .btn {
    text-align: center;
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .stat-number {
    font-size: 2.4rem;
  }

  /* Trustees — stack in 2-column grid on mobile */
  .trustees-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    overflow-x: visible;
    justify-content: unset;
    gap: 16px;
    padding-bottom: 0;
  }

  .trustee-card {
    flex: unset;
    width: 100%;
    padding: 20px 12px;
  }

  /* Center last card when alone in its row (odd total) */
  .trustee-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc(50% - 8px);
    margin: 0 auto;
  }

  .trustee-photo-circle {
    width: 100px;
    height: 100px;
    font-size: 1.6rem;
  }

  .programmes-grid {
    grid-template-columns: 1fr;
  }

  .events-grid {
    grid-template-columns: 1fr;
  }

  .contact-page-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    columns: 1;
  }

  .about-vision-grid,
  .about-values-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .donate-amounts {
    gap: 8px;
  }

  .amount-custom {
    width: 140px;
  }

  .section {
    padding: 56px 0;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .testimonial-inner {
    padding: 32px 24px;
  }

  .modal-box {
    padding: 32px 24px;
  }

  .page-banner {
    padding: 48px 0 36px;
  }

  .trust-badges-bar .badges-list {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stat-card {
    padding: 24px 16px;
  }

  .stat-icon {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .container {
    padding: 0 16px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-badge {
    font-size: 0.72rem;
  }

  .donate-amounts {
    flex-direction: column;
    align-items: stretch;
  }

  .amount-btn {
    text-align: center;
  }

  .amount-custom {
    width: 100%;
  }
}

/* ─────────────────────────────────────────────────────────────
   UTILITY
───────────────────────────────────────────────────────────── */
.text-center {
  text-align: center;
}

.text-white {
  color: white !important;
}

.text-muted {
  color: var(--c-muted);
}

.text-primary {
  color: var(--c-primary);
}

.text-donate {
  color: var(--c-donate);
}

.text-accent {
  color: var(--c-accent);
}

.mt-0 {
  margin-top: 0;
}

.mt-8 {
  margin-top: 8px;
}

.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

.mt-32 {
  margin-top: 32px;
}

.mt-40 {
  margin-top: 40px;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-8 {
  margin-bottom: 8px;
}

.mb-16 {
  margin-bottom: 16px;
}

.mb-24 {
  margin-bottom: 24px;
}

.mb-32 {
  margin-bottom: 32px;
}

.mb-40 {
  margin-bottom: 40px;
}

.gap-12 {
  gap: 12px;
}

.gap-16 {
  gap: 16px;
}

.d-flex {
  display: flex;
}

.align-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.flex-wrap {
  flex-wrap: wrap;
}

.w-100 {
  width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─────────────────────────────────────────────────────────────
   PAGE-SPECIFIC COMPONENT STYLES
───────────────────────────────────────────────────────────── */

/* About Page Documents Grid */
.about-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) {
  .about-overview-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.about-vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 900px) {
  .about-vision-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
@media (max-width: 900px) {
  .document-grid {
    grid-template-columns: 1fr;
  }
}

/* Article Layout Grid & Typography */
.article-layout-grid {
  display: grid;
  grid-template-columns: 3fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.article-content-body {
  text-align: justify;
  text-justify: inter-word;
}
.article-content-body p {
  text-align: justify;
  text-justify: inter-word;
  margin-bottom: 1.2rem;
}
.article-content-body img,
.article-content-body iframe,
.article-content-body video {
  max-width: 100% !important;
  height: auto !important;
}
@media (max-width: 900px) {
  .article-layout-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Get Help Form Responsive Grid */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Team Page Profile Grid */
.profile-left-col {
  flex: 0 0 280px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-right: 1px solid var(--c-border);
  padding-right: 40px;
}
@media (max-width: 768px) {
  .profile-left-col {
    flex: 1 1 100%;
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid var(--c-border);
    padding-bottom: 24px;
  }
}

/* Home Page Float Animation */
@keyframes floatModern {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

/* Donate Page UI Styles */
.donation-hero {
  background: linear-gradient(135deg, var(--c-primary) 0%, #1a237e 100%);
  padding: 80px 0;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.donation-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('../images/pattern.png') center/cover;
  opacity: 0.1;
  animation: panBackground 30s linear infinite;
}
@keyframes panBackground {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}
.donation-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  max-width: 100%;
  margin: -60px auto 60px;
  background: white;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 10;
  overflow: hidden;
}
.donation-info {
  background: #f8fafc;
  padding: 48px;
  border-right: 1px solid var(--c-border);
}
.donation-form-wrap {
  padding: 48px;
}
.amt-btn {
  padding: 12px 24px;
  border: 2px solid var(--c-border);
  background: white;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--c-text);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.amt-btn:hover {
  border-color: var(--c-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(21, 101, 192, 0.15);
}
.amt-btn.active {
  background: var(--c-primary);
  color: white;
  border-color: var(--c-primary);
  box-shadow: 0 4px 16px rgba(21, 101, 192, 0.3);
}
.custom-amt {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--c-primary);
  border: 2px solid var(--c-primary);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  background: #f5f8ff;
}
.trust-badges {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--c-border);
  flex-wrap: wrap;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--c-muted);
}
.trust-badge i {
  font-size: 1.5rem;
  color: var(--c-success);
}
.input-icon-wrap {
  position: relative;
}
.input-icon-wrap i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--c-muted);
  font-size: 1.1rem;
}
.input-icon-wrap input,
.input-icon-wrap select {
  padding-left: 48px;
}
.amt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.donor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
@media (max-width: 900px) {
  .donation-wrapper {
    grid-template-columns: 1fr;
    margin: 20px;
  }
  .donation-info {
    border-right: none;
    border-bottom: 1px solid var(--c-border);
  }
  .donation-form-wrap,
  .donation-info {
    padding: 32px 24px;
  }
}
@media (max-width: 600px) {
  .amt-grid {
    grid-template-columns: 1fr 1fr;
  }
  .donor-grid {
    grid-template-columns: 1fr;
  }
}