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

:root {
  --primary: #E8751A;
  --primary-dark: #C5610F;
  --primary-light: #FF9A45;
  --primary-glow: rgba(232, 117, 26, 0.3);
  --secondary: #6B1D1D;
  --secondary-dark: #4A1414;
  --accent-gold: #D4A843;
  --accent-gold-light: #F0D078;
  --saffron: #FF6B00;
  --maroon: #800020;
  --text-dark: #1a1a2e;
  --text-body: #444;
  --text-light: #666;
  --text-muted: #999;
  --bg-white: #ffffff;
  --bg-light: #FFF9F0;
  --bg-warm: #FFF3E0;
  --bg-cream: #FFFAF0;
  --bg-dark: #1A0F0A;
  --bg-footer: #1A0F0A;
  --border: #E8DDD0;
  --shadow-xs: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.06);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.16);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-head: 'Playfair Display', Georgia, serif;
  --header-height: 72px;
}

[data-theme="dark"] {
  --text-dark: #F0E6D8;
  --text-body: #C4B8A8;
  --text-light: #A09888;
  --text-muted: #807060;
  --bg-white: #1A1410;
  --bg-light: #221A14;
  --bg-warm: #2A1E16;
  --bg-cream: #251C14;
  --bg-dark: #0F0A06;
  --bg-footer: #0F0A06;
  --border: #3A3028;
  --shadow-xs: 0 1px 3px rgba(0,0,0,0.2);
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.25);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.3);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.35);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.4);
  --primary-glow: rgba(232, 117, 26, 0.15);
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font);
  color: var(--text-body);
  background: var(--bg-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

a { text-decoration: none; color: var(--primary); transition: color 0.3s var(--ease); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--text-dark);
  line-height: 1.3;
  font-weight: 700;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.section, .donate-section {
  overflow-x: hidden;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s var(--ease);
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--saffron));
  color: #fff;
  box-shadow: 0 4px 15px var(--primary-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
  color: #fff;
}
.btn-secondary {
  background: var(--secondary);
  color: #fff;
}
.btn-secondary:hover {
  background: var(--secondary-dark);
  transform: translateY(-2px);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}
.btn-gold {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
  color: var(--secondary-dark);
  font-weight: 700;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 168, 67, 0.35);
}

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s var(--ease);
}
.site-header.scrolled {
  box-shadow: var(--shadow-md);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.logo-text {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.logo-text .logo-title {
  white-space: nowrap;
}
.logo-text small {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  font-family: var(--font);
  font-size: 0.5rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  margin-top: 2px;
  line-height: 1.6;
}
.logo-text small::before,
.logo-text small::after {
  content: '';
  height: 1px;
  width: 14px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  flex-shrink: 0;
}

/* ── Logo Shimmer Animation ── */
@keyframes shimmerSweep {
  0%, 80% { left: -100%; }
  100% { left: 100%; }
}
.logo {
  position: relative;
  overflow: hidden;
}
.logo::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(212,168,67,0.18) 40%, rgba(232,117,26,0.12) 60%, transparent 100%);
  animation: shimmerSweep 4s ease-in-out infinite;
  animation-delay: 2s;
  pointer-events: none;
  z-index: 1;
}

/* ── Navigation ── */
.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.main-nav a, .nav-dropdown > span {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-body);
  border-radius: var(--radius-sm);
  transition: all 0.3s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.main-nav a:hover, .nav-dropdown:hover > span {
  color: var(--primary);
  background: var(--bg-warm);
}
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-dropdown > span {
  display: inline-flex;
  align-items: center;
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s var(--ease);
  pointer-events: none;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 0.88rem;
  border-radius: 0;
}
.nav-dropdown-menu a:hover {
  background: var(--bg-warm);
}
/* ── Donate nav-dropdown split-button ── */
.main-nav .nav-dd-link {
  padding: 0 !important;
  background: none !important;
  color: inherit !important;
  text-decoration: none !important;
  border-radius: 0 !important;
  font: inherit !important;
  white-space: nowrap;
}
.main-nav .nav-dd-link:hover {
  background: none !important;
  color: inherit !important;
}
.nav-donate-dd > span {
  color: var(--primary);
  font-weight: 600;
}
.nav-dd-arrow {
  cursor: pointer;
  padding: 2px;
  border-radius: 2px;
  transition: transform 0.25s var(--ease);
}
.nav-dropdown.dd-open .nav-dd-arrow {
  transform: rotate(180deg);
}
.nav-dropdown.dd-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
/* ── Header Actions (Donate + Theme + Hamburger) ── */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nav-donate-btn {
  background: linear-gradient(135deg, var(--primary), var(--saffron));
  color: #fff !important;
  padding: 10px 24px !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.nav-donate-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px var(--primary-glow);
  color: #fff !important;
  background: linear-gradient(135deg, var(--primary), var(--saffron)) !important;
}
@keyframes navDonatePulse {
  0%, 100% { box-shadow: 0 2px 8px var(--primary-glow); }
  50% { box-shadow: 0 4px 20px rgba(232,117,26,0.5); }
}
.nav-donate-btn {
  animation: navDonatePulse 2.5s ease-in-out infinite;
}
.nav-donate-btn:hover {
  animation: none;
}

/* ── Medium screens: tighten nav ── */
@media (min-width: 993px) and (max-width: 1280px) {
  .main-nav a, .nav-dropdown > span { padding: 8px 10px; font-size: 0.82rem; }
  .nav-donate-btn { padding: 8px 16px !important; font-size: 0.8rem !important; }
  .logo-text { font-size: 1rem; }
  .logo-text small { font-size: 0.4rem; letter-spacing: 0.8px; }
  .header-inner { padding: 0 16px; }
}
@media (min-width: 993px) and (max-width: 1100px) {
  .logo-text .logo-title { font-size: 0.95rem; }
  .logo-text small { display: none; }
  .main-nav a, .nav-dropdown > span { padding: 8px 8px; font-size: 0.78rem; }
}

/* ── Mobile Nav ── */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
  padding: 8px;
}
@media (max-width: 992px) {
  .mobile-toggle { display: block; }
  html:has(.main-nav.open),
  html:has(.main-nav.open) body { overflow: hidden; }
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(300px, 85vw);
    flex-direction: column;
    background: var(--bg-white);
    padding: 80px 24px 24px;
    gap: 0;
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease), visibility 0.35s;
    box-shadow: var(--shadow-xl);
    align-items: stretch;
    justify-content: flex-start;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
    visibility: hidden;
  }
  .main-nav.open { transform: translateX(0); visibility: visible; }
  .main-nav a,
  .nav-dropdown > span {
    white-space: normal;
    word-break: break-word;
  }
  .nav-dropdown {
    flex-direction: column;
    align-items: stretch;
  }
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 16px;
    min-width: 0;
    max-width: 100%;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }
  .nav-dropdown.dd-open > .nav-dropdown-menu {
    display: block;
  }
  .mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
  }
  .mobile-overlay.show { display: block; }
  .logo-text { font-size: 1rem; }
  .logo-text small {
    font-size: 0.4rem;
    letter-spacing: 0.8px;
    gap: 3px 4px;
    margin-top: 1px;
    text-align: left;
    justify-content: flex-start;
  }
  .logo-text small::before,
  .logo-text small::after {
    width: 10px;
  }
  .logo-img { width: 36px; height: 36px; }
  .logo { gap: 8px; }
  .header-inner { padding: 0 12px; }
  .nav-donate-btn { padding: 8px 14px !important; font-size: 0.75rem !important; }
  .desktop-theme-btn { display: none; }
}
@media (max-width: 480px) {
  .logo-text { font-size: 0.85rem; }
  .logo-text small {
    font-size: 0.32rem;
    letter-spacing: 0.4px;
    gap: 2px 3px;
    text-align: left;
    justify-content: flex-start;
  }
  .logo-text small::before,
  .logo-text small::after {
    display: none;
  }
  .logo-img { width: 30px; height: 30px; }
  .logo { gap: 6px; flex-shrink: 1; min-width: 0; }
  .header-inner { padding: 0 8px; }
  .nav-donate-btn { padding: 8px 12px !important; font-size: 0 !important; gap: 0 !important; }
  .nav-donate-btn i { font-size: 1rem !important; }
  .header-actions { gap: 4px; }
}

/* ── Theme Toggle ── */
.theme-toggle {
  background: none;
  border: 2px solid var(--border);
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-body);
  font-size: 1rem;
  transition: all 0.3s var(--ease);
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.mobile-theme-toggle-item {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  margin-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--text-body);
  font-size: 0.9rem;
  font-weight: 500;
}
.mobile-theme-toggle-item span {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mobile-theme-toggle-item .mobile-theme-btn {
  margin-left: 0;
}
@media (max-width: 992px) {
  .desktop-theme-btn { display: none; }
  .mobile-theme-toggle-item { display: flex; }
}

/* ── Hero Section ── */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: var(--header-height);
}
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  will-change: opacity, transform;
  transform: scale(1.08);
}
.hero-slide.active {
  opacity: 1;
  animation: heroSlideZoom 8s linear forwards;
}
@keyframes heroSlideZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(140deg, rgba(26,15,10,0.82) 0%, rgba(128,0,32,0.45) 40%, rgba(107,29,29,0.5) 60%, rgba(232,117,26,0.15) 100%);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(26,15,10,0.8) 0%, rgba(107,29,29,0.55) 50%, rgba(232,117,26,0.2) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  max-width: 800px;
  padding: 40px 24px;
}
.hero-content h1 {
  font-size: 3.5rem;
  color: #fff;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  animation: heroFadeInUp 1s var(--ease) 0.3s both;
}
.hero-content p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 32px;
  line-height: 1.8;
  animation: heroFadeInUp 1s var(--ease) 0.6s both;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: heroFadeInUp 1s var(--ease) 0.9s both;
}
.hero-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}
.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: 2px solid rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.hero-dot.active {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  transform: scale(1.25);
}
.hero-dot:hover {
  background: rgba(255,255,255,0.7);
}
@keyframes heroFadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .hero { min-height: 70vh; }
  .hero-content h1 { font-size: 2.2rem; }
  .hero-content p { font-size: 1rem; }
}

/* ── Sections ── */
.section {
  padding: 80px 0;
}
.section-alt {
  background: var(--bg-light);
}
.section-warm {
  background: var(--bg-warm);
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}
.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent-gold));
  border-radius: 2px;
}
.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 20px auto 0;
}

/* ── Cards Grid ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: 28px;
}
.cards-grid > *,
.blog-highlight-grid > *,
.gallery-grid > *,
.festivals-grid > *,
.stats-grid > *,
.activities-grid > *,
.donate-grid > *,
.contact-grid > * {
  min-width: 0;
}
.card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
  box-shadow: var(--shadow-xs);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.card-body {
  padding: 24px;
}
.card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.card-body p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ── Schedule Table ── */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.schedule-table th {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: #fff;
  padding: 16px 20px;
  text-align: left;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.schedule-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.schedule-table tr:last-child td { border-bottom: none; }
.schedule-table tr:hover td { background: var(--bg-warm); }
.schedule-time {
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}
.schedule-closed {
  color: var(--text-muted);
  font-style: italic;
}
@media (max-width: 768px) {
  .schedule-table {
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
  }
  .schedule-table, .schedule-table tbody, .schedule-table tr, .schedule-table td, .schedule-table th {
    display: block;
    width: 100%;
  }
  .schedule-table thead { display: none; }
  .schedule-table tr {
    margin-bottom: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.25s var(--ease);
  }
  .schedule-table tr:hover {
    box-shadow: var(--shadow-md);
  }
  .schedule-table tr:hover td {
    background: inherit;
  }
  /* Time — accent header strip */
  .schedule-table td:nth-child(1),
  .schedule-table tr:hover td:nth-child(1) {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 16px;
    letter-spacing: 0.3px;
    border-bottom: none;
    text-align: left;
  }
  /* Programme — bold main text */
  .schedule-table td:nth-child(2) {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-dark);
    padding: 12px 16px 6px;
    border-bottom: none;
  }
  /* Type — inline pill badge */
  .schedule-table td:nth-child(3) {
    padding: 2px 16px 8px;
    border-bottom: none;
    font-size: 0.85rem;
  }
  /* Details — description text */
  .schedule-table td:nth-child(4) {
    padding: 0 16px 14px;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    border-bottom: none;
  }
  .schedule-table td {
    text-align: left;
    position: static;
    padding-left: 16px;
  }
  .schedule-table td::before {
    display: none;
  }
}

/* ── Seva Cards ── */
.seva-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}
.seva-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.seva-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.seva-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.seva-card-body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.seva-card-body p { color: var(--text-light); font-size: 0.92rem; flex: 1; }
.seva-card-amount {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.seva-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}
.seva-price small {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* ── Stats / Milestones ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 24px;
}
.stat-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--bg-warm), var(--bg-cream));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary);
  transition: all 0.4s var(--ease);
}
.stat-card:hover .stat-icon {
  background: linear-gradient(135deg, var(--primary), var(--saffron));
  color: #fff;
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-head);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
}

/* ── Gallery ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 16px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  min-width: 0;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  color: #fff;
  font-size: 0.9rem;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }

/* ── Lightbox ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: fixed;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  z-index: 2001;
}
.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.3); }
.lightbox-caption {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.95rem;
  text-align: center;
  max-width: 600px;
  z-index: 2001;
}

/* ── Blog ── */
.blog-card { display: flex; flex-direction: column; }
.blog-card .card-img { height: 200px; }
.blog-card .card-body { flex: 1; display: flex; flex-direction: column; }
.blog-card .card-body p { flex: 1; }
.blog-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.blog-tag {
  background: var(--bg-warm);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}
.blog-content { max-width: 780px; margin: 0 auto; line-height: 1.9; font-size: 1.05rem; }
.blog-content h2 { font-size: 1.6rem; margin: 32px 0 16px; }
.blog-content h3 { font-size: 1.3rem; margin: 24px 0 12px; }
.blog-content p { margin-bottom: 16px; }
.blog-content img { border-radius: var(--radius-md); margin: 24px 0; }
.blog-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--bg-warm);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-dark);
}

/* ── Contact Form ── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-dark);
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text-body);
  background: var(--bg-white);
  transition: all 0.3s var(--ease);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.form-textarea { min-height: 120px; resize: vertical; }
@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ── Donate Page ── */
.donate-section { padding: 120px 0 80px; }
.donate-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
@media (max-width: 768px) {
  .donate-section { padding: 100px 0 60px; }
  .donate-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .donate-info h2 { font-size: 1.5rem; }
  .donate-form-card { padding: 20px; }
  .donate-info-card { padding: 16px; }
  .amount-btn { font-size: 0.9rem; padding: 10px 8px; }
  .amount-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.donate-info,
.donate-form-card {
  min-width: 0;
}
.donate-info h2 { font-size: 2rem; margin-bottom: 16px; }
.donate-info p { margin-bottom: 16px; color: var(--text-light); }
.donate-info-card {
  background: var(--bg-warm);
  padding: 24px;
  border-radius: var(--radius-md);
  margin-top: 24px;
}
.donate-info-card h4 { margin-bottom: 12px; font-size: 1.05rem; }
.donate-info-card p {
  margin-bottom: 6px;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.donate-form-card {
  background: var(--bg-white);
  padding: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.amount-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.amount-btn {
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.amount-btn:hover, .amount-btn.active {
  border-color: var(--primary);
  background: var(--bg-warm);
  color: var(--primary);
}
@media (max-width: 420px) {
  .amount-presets { grid-template-columns: 1fr; }
}

/* ── Seva Custom Dropdown ── */
.seva-dropdown {
  position: relative;
  width: 100%;
}
.seva-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  text-align: left;
}
.seva-dropdown-trigger:hover {
  border-color: var(--primary-light);
}
.seva-dropdown-trigger:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.seva-dropdown.open .seva-dropdown-trigger {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.seva-dropdown-icon {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}
.seva-dropdown-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
  color: var(--text-dark);
}
.seva-dropdown-arrow {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.3s var(--ease-spring);
}
.seva-dropdown.open .seva-dropdown-arrow {
  transform: rotate(180deg);
}
.seva-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 320px;
  overflow-y: auto;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease-spring), visibility 0.25s;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.seva-dropdown-menu::-webkit-scrollbar { width: 6px; }
.seva-dropdown-menu::-webkit-scrollbar-track { background: transparent; }
.seva-dropdown-menu::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.seva-dropdown.open .seva-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.seva-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  text-align: left;
}
.seva-dropdown-item:hover {
  background: var(--bg-warm);
  color: var(--text-dark);
}
.seva-dropdown-item.selected {
  background: var(--bg-warm);
  color: var(--primary);
  font-weight: 600;
}
.seva-item-emoji {
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}
.seva-item-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.seva-item-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.seva-item-amt {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
  margin-top: 1px;
}

/* ── Prasadam Booking Page ── */
.prasadam-section {
  padding: 40px 0 80px;
}
.prasadam-back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--bg-white);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  color: var(--text-dark);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 40px;
  transition: all 0.4s var(--ease);
  box-shadow: var(--shadow-sm);
}
.prasadam-back-link:hover {
  background: var(--primary);
  color: #fff;
  transform: translateX(-6px);
  box-shadow: var(--shadow-md);
}
.prasadam-back-link i { transition: transform 0.3s var(--ease); }
.prasadam-back-link:hover i { transform: translateX(-4px); }

.prasadam-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}
.prasadam-form-col, .prasadam-info-col { min-width: 0; }

/* Form Card */
.prasadam-form-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.prasadam-form-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent-gold), var(--saffron));
}
.prasadam-form-title {
  font-size: 1.6rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-dark);
}
.prasadam-form-title i {
  color: var(--primary);
  font-size: 1.3rem;
}

/* Booking cutoff box */
.prasadam-cutoff-box {
  background: linear-gradient(135deg, var(--bg-warm), var(--bg-cream));
  border: 1px solid var(--accent-gold);
  border-left: 4px solid var(--accent-gold);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 28px;
}
.prasadam-cutoff-box h5 {
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.prasadam-cutoff-box h5 i { color: var(--primary); }
.prasadam-cutoff-box ul {
  list-style: none;
  padding: 0;
}
.prasadam-cutoff-box li {
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--text-body);
  position: relative;
  padding-left: 18px;
}
.prasadam-cutoff-box li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* Form fields */
.prasadam-form-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.prasadam-date-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 4px;
}

/* Price summary */
.prasadam-summary {
  background: linear-gradient(135deg, var(--bg-warm), var(--bg-cream));
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 24px;
  border: 1px solid var(--accent-gold);
  animation: prasadamSummaryIn 0.4s var(--ease-spring);
}
@keyframes prasadamSummaryIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.prasadam-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 0.95rem;
  color: var(--text-body);
}
.prasadam-summary-total {
  border-top: 2px solid var(--accent-gold);
  margin-top: 8px;
  padding-top: 12px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-dark);
}
.prasadam-summary-total span:last-child {
  color: var(--primary);
  font-size: 1.3rem;
}

/* Submit button */
.prasadam-submit-btn {
  width: 100%;
  justify-content: center;
  font-size: 1.05rem;
  padding: 16px 32px;
  position: relative;
  overflow: hidden;
}
.prasadam-submit-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}
.prasadam-submit-btn:hover::after {
  width: 300px;
  height: 300px;
}

/* Info Card */
.prasadam-info-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.prasadam-info-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--saffron));
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px var(--primary-glow);
}
.prasadam-info-title {
  font-size: 1.3rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.prasadam-info-title i { color: var(--accent-gold); }

/* Pricing table */
.prasadam-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-sm);
}
.prasadam-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.92rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.prasadam-table thead th {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: #fff;
  padding: 14px 18px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: left;
}
.prasadam-table tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text-body);
  transition: background 0.2s;
}
.prasadam-table tbody tr:last-child td { border-bottom: none; }
.prasadam-table tbody tr:nth-child(even) td {
  background: var(--bg-cream);
}
.prasadam-table tbody tr:hover td {
  background: var(--bg-warm);
}

/* Seva links */
.prasadam-seva-links {
  margin-top: 32px;
}
.prasadam-seva-links h4 {
  font-size: 1.15rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.prasadam-seva-links h4 i { color: var(--primary); }
.prasadam-seva-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--primary), var(--saffron));
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 12px;
  transition: all 0.35s var(--ease);
  box-shadow: var(--shadow-sm);
}
.prasadam-seva-link:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-lg);
  color: #fff;
}
.prasadam-seva-link i {
  font-size: 1.1rem;
  opacity: 0.85;
}

/* Responsive */
@media (max-width: 992px) {
  .prasadam-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .prasadam-form-card { padding: 28px; }
  .prasadam-info-card { padding: 28px; }
}
@media (max-width: 600px) {
  .prasadam-section { padding: 28px 0 60px; }
  .prasadam-form-card { padding: 20px; }
  .prasadam-info-card { padding: 20px; }
  .prasadam-form-title { font-size: 1.3rem; }
  .prasadam-back-link { padding: 10px 20px; font-size: 0.9rem; }
  .prasadam-table { font-size: 0.82rem; }
  .prasadam-table thead th { padding: 10px 12px; font-size: 0.78rem; }
  .prasadam-table tbody td { padding: 10px 12px; }
  .prasadam-submit-btn { font-size: 0.95rem; padding: 14px 24px; }
  .prasadam-seva-link { padding: 12px 18px; font-size: 0.88rem; }
}

/* ── Footer ── */
.site-footer {
  background: linear-gradient(180deg, #1E1410 0%, var(--bg-footer) 100%);
  color: #C4B8A8;
  padding: 64px 0 0;
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--maroon), var(--primary), var(--accent-gold), var(--saffron), var(--primary));
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-col h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
}
.footer-col p, .footer-col a {
  font-size: 0.9rem;
  color: #A09888;
  line-height: 1.8;
}
.footer-col a:hover { color: var(--primary); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { display: flex; align-items: center; gap: 8px; }
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 1rem;
  transition: all 0.3s var(--ease);
}
.footer-social a:nth-child(1):hover { background: #1877F2; box-shadow: 0 4px 16px rgba(24,119,242,0.4); }
.footer-social a:nth-child(2):hover { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); box-shadow: 0 4px 16px rgba(225,48,108,0.4); }
.footer-social a:nth-child(3):hover { background: #FF0000; box-shadow: 0 4px 16px rgba(255,0,0,0.4); }
.footer-social a:nth-child(4):hover { background: #25D366; box-shadow: 0 4px 16px rgba(37,211,102,0.4); }
.footer-social a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  color: #807060;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── Founder / Acharya Section ── */
.founder-section {
  background: var(--bg-cream);
  overflow: hidden;
}
.founder-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 56px;
  align-items: center;
}
.founder-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.founder-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 3px solid var(--accent-gold);
  border-radius: var(--radius-lg);
  pointer-events: none;
}
.founder-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s var(--ease);
}
.founder-image:hover img { transform: scale(1.03); }
.founder-content h2 {
  font-size: 2rem;
  margin-bottom: 8px;
}
.founder-title {
  color: var(--accent-gold);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-family: var(--font);
}
.founder-content p {
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 16px;
}
.founder-quote {
  border-left: 4px solid var(--accent-gold);
  padding: 20px 24px;
  margin: 24px 0;
  background: var(--bg-warm);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-dark);
  font-family: var(--font-head);
  line-height: 1.7;
}
.founder-quote cite {
  display: block;
  margin-top: 12px;
  font-size: 0.85rem;
  font-style: normal;
  color: var(--text-muted);
  font-family: var(--font);
}
@media (max-width: 768px) {
  .founder-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .founder-image { max-width: 320px; margin: 0 auto; }
}

/* ── Activities / What We Do ── */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.activity-card {
  text-align: center;
  padding: 40px 24px 32px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.activity-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent-gold));
  transform: scaleX(0);
  transition: transform 0.4s var(--ease);
}
.activity-card:hover::before { transform: scaleX(1); }
.activity-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-glow);
}
.activity-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--bg-warm), var(--bg-cream));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary);
  transition: all 0.4s var(--ease);
}
.activity-card:hover .activity-icon {
  background: linear-gradient(135deg, var(--primary), var(--saffron));
  color: #fff;
  transform: scale(1.1);
}
.activity-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.activity-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}
@media (max-width: 992px) {
  .activities-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .activities-grid { grid-template-columns: 1fr; }
}

/* ── Festivals Section ── */
.festivals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr));
  gap: 24px;
}
.festival-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.4s var(--ease);
  position: relative;
  min-width: 0;
}
.festival-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.festival-card-img {
  position: relative;
  height: 180px;
  overflow: hidden;
}
.festival-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.festival-card:hover .festival-card-img img { transform: scale(1.08); }
.festival-date-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  text-align: center;
  line-height: 1.2;
  box-shadow: var(--shadow-sm);
}
.festival-date-badge .day {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  font-family: var(--font-head);
}
.festival-date-badge .month {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.festival-major-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent-gold);
  color: var(--secondary-dark);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.festival-card-body {
  padding: 20px;
  min-width: 0;
}
.festival-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}
.festival-card-body p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
  overflow-wrap: anywhere;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.festivals-footer {
  text-align: center;
  margin-top: 36px;
}

/* ── Quote / Scripture Section ── */
.quote-section {
  background: var(--bg-warm);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.quote-section::before,
.quote-section::after {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  background: var(--accent-gold);
  opacity: 0.06;
  border-radius: 50%;
}
.quote-section::before { top: -40px; left: -40px; }
.quote-section::after { bottom: -40px; right: -40px; }
.quote-ornament {
  font-size: 2.5rem;
  color: var(--accent-gold);
  opacity: 0.5;
  margin-bottom: 20px;
}
.quote-text {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto 20px;
  position: relative;
}
.quote-source {
  font-size: 1rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
}
.quote-translation {
  font-size: 0.95rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 12px auto 0;
  line-height: 1.7;
}
@media (max-width: 768px) {
  .quote-text { font-size: 1.25rem; }
}

/* ── Blog Highlights ── */
.blog-highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: 28px;
}
.blog-highlight-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}
.blog-highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.blog-highlight-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.blog-highlight-card:hover .blog-highlight-img { transform: scale(1.03); }
.blog-highlight-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-highlight-body h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  line-height: 1.4;
}
.blog-highlight-body h3 a {
  color: var(--text-dark);
  transition: color 0.3s var(--ease);
}
.blog-highlight-body h3 a:hover { color: var(--primary); }
.blog-highlight-body .excerpt {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-highlight-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
}
.blog-highlight-meta i { color: var(--primary); }

/* ── Staggered Animation Delays ── */
.stagger-1 { transition-delay: 0.1s !important; }
.stagger-2 { transition-delay: 0.2s !important; }
.stagger-3 { transition-delay: 0.3s !important; }
.stagger-4 { transition-delay: 0.4s !important; }
.stagger-5 { transition-delay: 0.5s !important; }
.stagger-6 { transition-delay: 0.6s !important; }

/* ── Enhanced Section Header with Ornamental Divider ── */
.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent-gold));
  border-radius: 2px;
}
.section-header .section-ornament {
  display: block;
  margin-top: 16px;
  font-size: 1rem;
  color: var(--accent-gold);
  opacity: 0.4;
  letter-spacing: 8px;
}

/* ── CTA Section Enhanced ── */
.cta-section-enhanced {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section-enhanced::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");
}
.cta-section-enhanced h2 { color: #fff; position: relative; }
.cta-section-enhanced p { color: rgba(255,255,255,0.85); position: relative; }
.cta-section-enhanced .btn { position: relative; }

/* ── Hero Gradient Text ── */
.hero-content h1 .hero-highlight {
  background: linear-gradient(135deg, var(--accent-gold-light), var(--accent-gold), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Hero Decorative Lotus Divider ── */
.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 20px 0;
  color: var(--accent-gold-light);
  opacity: 0.6;
}
.hero-divider::before,
.hero-divider::after {
  content: '';
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-gold-light));
}
.hero-divider::after {
  background: linear-gradient(90deg, var(--accent-gold-light), transparent);
}

/* ── Floating Donate Button ── */
.floating-donate {
  display: flex;
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 996;
  background: linear-gradient(135deg, var(--primary), var(--saffron));
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 1.2rem;
  box-shadow: 0 6px 28px rgba(232,117,26,0.45);
  transition: all 0.4s var(--ease);
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.8);
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.floating-donate.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  animation: floatDonateHeartbeat 2.5s ease-in-out infinite;
}
.floating-donate:hover {
  box-shadow: 0 10px 36px rgba(232,117,26,0.7);
  transform: translateY(-3px) scale(1.1);
  animation: none;
  color: #fff;
}
@keyframes floatDonateHeartbeat {
  0%, 100% { transform: translateY(0) scale(1); box-shadow: 0 6px 28px rgba(232,117,26,0.45); }
  15% { transform: translateY(0) scale(1.15); box-shadow: 0 8px 34px rgba(232,117,26,0.6); }
  30% { transform: translateY(0) scale(1); }
  45% { transform: translateY(0) scale(1.1); box-shadow: 0 8px 34px rgba(232,117,26,0.55); }
  60% { transform: translateY(0) scale(1); }
}

/* ── Back to Top Button ── */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--secondary);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.35s var(--ease);
  box-shadow: var(--shadow-md);
  z-index: 997;
  display: flex;
  align-items: center;
  justify-content: center;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  transform: translateY(-3px);
  background: var(--secondary-dark);
  box-shadow: var(--shadow-lg);
}
@media (max-width: 768px) {
  .floating-donate { right: 18px; bottom: 24px; width: 50px; height: 50px; font-size: 1rem; }
  .back-to-top { right: 18px; bottom: 86px; width: 42px; height: 42px; }
}

/* ── Page Load Animation ── */
body {
  animation: pageEnter 0.6s var(--ease) both;
}
@keyframes pageEnter {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── Animations ── */
[data-animate] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-animate="fade-left"] { transform: translateX(-40px); }
[data-animate="fade-right"] { transform: translateX(40px); }
[data-animate="zoom-in"] { transform: scale(0.85); }
@media (max-width: 768px) {
  [data-animate="fade-left"],
  [data-animate="fade-right"] {
    transform: translateY(24px);
  }
  .festivals-grid {
    gap: 18px;
  }
  .festival-card-body {
    padding: 16px;
  }
  .festival-date-badge {
    top: 10px;
    left: 10px;
    padding: 5px 10px;
  }
  .festival-major-badge {
    top: 10px;
    right: 10px;
    max-width: calc(100% - 90px);
    font-size: 0.64rem;
    padding: 3px 8px;
    white-space: normal;
    text-align: center;
  }
}
[data-animate="fade-down"] { transform: translateY(-36px); }
[data-animate="flip-up"] { transform: perspective(1000px) rotateX(15deg) translateY(30px); }
[data-animate="scale-up"] { transform: scale(0.6); }
[data-animate].animated {
  opacity: 1;
  transform: none;
}

/* ── Gradient Text Effect ── */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent-gold), var(--saffron));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Shimmer Text Animation ── */
.shimmer-text {
  background: linear-gradient(90deg, var(--text-dark) 0%, var(--accent-gold) 40%, var(--primary) 60%, var(--text-dark) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerText 3s ease-in-out infinite;
}
@keyframes shimmerText {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* ── Section Decorative Dividers (Waves) ── */
.section-wave-top {
  position: relative;
}
.section-wave-top::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 48px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 48' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 48h1200V18c-200 32-400-16-600 8S200-2 0 28z' fill='%23FFF9F0'/%3E%3C/svg%3E") center/cover no-repeat;
  z-index: 1;
  pointer-events: none;
}

/* ── Glowing Card Borders ── */
.glow-card {
  position: relative;
  overflow: hidden;
}
.glow-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--primary), var(--accent-gold), var(--saffron), var(--accent-gold));
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.glow-card:hover::before {
  opacity: 1;
}
.glow-card > * {
  position: relative;
  z-index: 1;
}

/* ── Floating Decorative Shapes ── */
@keyframes floatShape {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-12px) rotate(3deg); }
  75% { transform: translateY(8px) rotate(-2deg); }
}
.decorative-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.decorative-shapes .shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  animation: floatShape 8s ease-in-out infinite;
}
.decorative-shapes .shape-1 {
  width: 200px; height: 200px;
  background: var(--primary);
  top: -60px; right: -40px;
  animation-delay: 0s;
}
.decorative-shapes .shape-2 {
  width: 120px; height: 120px;
  background: var(--accent-gold);
  bottom: -30px; left: 10%;
  animation-delay: 2s;
}
.decorative-shapes .shape-3 {
  width: 80px; height: 80px;
  background: var(--saffron);
  top: 30%; left: -20px;
  animation-delay: 4s;
}

/* ── Text Typing / Reveal Animation ── */
@keyframes typeReveal {
  from { max-width: 0; }
  to { max-width: 100%; }
}

/* ── Pulsing Glow for Icons ── */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,117,26,0.4); }
  50% { box-shadow: 0 0 0 12px rgba(232,117,26,0); }
}

/* ── Enhanced Card Hover with 3D Tilt ── */
.tilt-card {
  transition: all 0.4s var(--ease);
  transform-style: preserve-3d;
}
.tilt-card:hover {
  transform: perspective(1000px) rotateY(-3deg) rotateX(2deg) translateY(-6px);
  box-shadow: 12px 12px 40px rgba(0,0,0,0.12), -4px -4px 20px rgba(232,117,26,0.08);
}

/* ── Gradient Border Bottom for Sections ── */
.gradient-border-bottom {
  position: relative;
}
.gradient-border-bottom::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent-gold), var(--primary), transparent);
  border-radius: 2px;
}

/* ── Parallax Background ── */
@media (min-width: 769px) {
  .parallax-bg {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
  }
}

/* ── Animated Underline for Links ── */
.animated-underline {
  position: relative;
}
.animated-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s var(--ease);
}
.animated-underline:hover::after { width: 100%; }

/* ── Rainbow Border Top for Cards ── */
.rainbow-top {
  position: relative;
  overflow: hidden;
}
.rainbow-top::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--maroon), var(--primary), var(--accent-gold), var(--saffron), var(--primary));
  background-size: 200% 100%;
  animation: rainbowSlide 3s linear infinite;
}
@keyframes rainbowSlide {
  from { background-position: 0 0; }
  to { background-position: 200% 0; }
}

/* ── Morphing Background Blobs ── */
@keyframes morphBlob {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}
.morph-blob {
  animation: morphBlob 8s ease-in-out infinite;
}

/* ── Colorful Section Backgrounds ── */
.section-gradient-warm {
  background: linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-warm) 50%, rgba(212,168,67,0.08) 100%);
}
.section-gradient-saffron {
  background: linear-gradient(135deg, rgba(232,117,26,0.04) 0%, rgba(255,107,0,0.06) 50%, rgba(212,168,67,0.04) 100%);
}

/* ── Hover Scale Bounce ── */
.bounce-hover {
  transition: transform 0.3s var(--ease-spring);
}
.bounce-hover:hover {
  transform: scale(1.05);
}

/* ── Card hover lift ── */
.card, .seva-card, .festival-card, .blog-highlight-card {
  transition: all 0.4s var(--ease);
}
.card:hover, .seva-card:hover, .festival-card:hover, .blog-highlight-card:hover {
  transform: perspective(1000px) rotateY(-1.5deg) rotateX(1deg) translateY(-6px);
  box-shadow: 8px 12px 40px rgba(0,0,0,0.12), -2px -2px 20px rgba(232,117,26,0.06);
}
.activity-card, .stat-card {
  transition: all 0.4s var(--ease);
}
.stat-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 12px 32px rgba(232,117,26,0.15);
}
.activity-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

/* ── Schedule row animation ── */
.schedule-table tr {
  transition: background 0.3s var(--ease);
}

/* ── Section header animated underline ── */
.section-header h2 {
  overflow: hidden;
}
.section-header h2::after {
  transition: transform 0.6s var(--ease-out-expo);
  transform-origin: left;
}
[data-animate].animated .section-header h2::after,
.section-header[data-animate].animated h2::after {
  animation: underlineReveal 0.8s var(--ease-out-expo) 0.3s both;
}
@keyframes underlineReveal {
  from { transform: translateX(-50%) scaleX(0); }
  to { transform: translateX(-50%) scaleX(1); }
}

/* ── Stat Counter Glow on Animate ── */
.stat-card.animated .stat-icon {
  animation: statIconPulse 0.6s var(--ease-spring);
}
@keyframes statIconPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* ── Seva Card Hover Glow ── */
.seva-card:hover {
  border-color: rgba(232, 117, 26, 0.3);
  box-shadow: 0 8px 32px var(--primary-glow);
}

/* ── Utilities ── */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-gold { color: var(--accent-gold); }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.py-16 { padding-top: 16px; padding-bottom: 16px; }

/* ── Toast Notifications ── */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s var(--ease-spring);
  max-width: 380px;
}
.toast-success { background: #2E7D32; }
.toast-error { background: #C62828; }
.toast-info { background: var(--secondary); }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(100px); }
  to { opacity: 1; transform: none; }
}

/* ── Om / Decorative ── */
.ornament {
  display: block;
  margin: 0 auto 20px;
  text-align: center;
  font-size: 2rem;
  color: var(--accent-gold);
  opacity: 0.6;
}

/* ── Donor List ── */
.donor-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}
.donor-table th {
  background: var(--bg-light);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.5px;
}
.donor-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.donor-table tr:last-child td { border-bottom: none; }
.donor-table tr:hover td { background: var(--bg-warm); }

/* ── Page Banner ── */
.page-banner {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: #fff;
  padding: 120px 0 60px;
  text-align: center;
  margin-top: var(--header-height);
  position: relative;
  overflow: hidden;
}
.page-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.03'%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");
}
.page-banner h1 {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 12px;
  position: relative;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}
.page-banner p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  word-break: break-word;
  overflow-wrap: break-word;
}
@media (max-width: 768px) {
  .page-banner { padding: 100px 0 40px; }
  .page-banner h1 { font-size: 1.6rem; }
  .page-banner p { font-size: 0.95rem; }
}
@media (max-width: 480px) {
  .page-banner { padding: 90px 0 30px; }
  .page-banner h1 { font-size: 1.35rem; }
  .page-banner p { font-size: 0.85rem; }
}

/* ── Newsletter ── */
.newsletter-section {
  background: linear-gradient(135deg, var(--primary), var(--saffron), var(--primary-dark));
  background-size: 200% 200%;
  animation: gradientShift 6s ease-in-out infinite;
  padding: 60px 0;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.newsletter-section::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.06'%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");
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.newsletter-section h3 { color: #fff; font-size: 1.8rem; margin-bottom: 12px; position: relative; }
.newsletter-section p { color: rgba(255,255,255,0.9); margin-bottom: 24px; position: relative; }
.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
  position: relative;
}
.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: box-shadow 0.3s var(--ease);
}
.newsletter-form input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}
.newsletter-form button {
  padding: 14px 28px;
  background: var(--secondary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.newsletter-form button:hover {
  background: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
@media (max-width: 500px) {
  .newsletter-form { flex-direction: column; }
}

/* ── Floating Particles ── */
.particles-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  animation: particleFloat linear infinite;
}
@keyframes particleFloat {
  0% { transform: translateY(100%) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100%) rotate(360deg); opacity: 0; }
}
.particle:nth-child(odd) { background: rgba(232,117,26,0.07); }
.particle:nth-child(3n) { background: rgba(212,168,67,0.06); }

/* ── Global Background Stars ── */
.global-stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.star {
  position: absolute;
  border-radius: 50%;
  background: var(--accent-gold);
  opacity: 0;
  animation: starTwinkle ease-in-out infinite;
}
@keyframes starTwinkle {
  0%, 100% { opacity: 0; transform: scale(0.5) translateY(0); }
  30% { opacity: 0.7; transform: scale(1) translateY(-8px); }
  60% { opacity: 0.3; transform: scale(0.8) translateY(-4px); }
}
.star:nth-child(odd) { background: rgba(232,117,26,0.35); }
.star:nth-child(3n) { background: rgba(212,168,67,0.4); }
.star:nth-child(5n) { background: rgba(255,255,255,0.3); }
[data-theme="dark"] .star { opacity: 0; animation-name: starTwinkleDark; }
@keyframes starTwinkleDark {
  0%, 100% { opacity: 0; transform: scale(0.5) translateY(0); }
  30% { opacity: 0.5; transform: scale(1.2) translateY(-10px); }
  60% { opacity: 0.2; transform: scale(0.7) translateY(-5px); }
}

/* ── Shimmer Text Effect ── */
@keyframes textShimmer {
  0%, 70% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.shimmer-text {
  background: linear-gradient(90deg, var(--text-dark) 30%, var(--accent-gold) 50%, var(--text-dark) 70%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShimmer 5s ease-in-out infinite;
}
[data-theme="dark"] .shimmer-text {
  background: linear-gradient(90deg, var(--text-dark) 30%, var(--accent-gold) 50%, var(--text-dark) 70%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
}

/* ── Parallax Sections ── */
.parallax-bg {
  background-attachment: scroll;
  will-change: transform;
}
@media (min-width: 769px) {
  .parallax-bg {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
  }
}

/* ── Mobile Responsiveness Fixes ── */

/* Hero dots: expand touch target to 44px minimum */
.hero-dot { position: relative; }
.hero-dot::before {
  content: '';
  position: absolute;
  top: -16px; left: -16px; right: -16px; bottom: -16px;
}

/* Donor table: card layout on mobile */
@media (max-width: 600px) {
  .donor-table,
  .donor-table thead,
  .donor-table tbody,
  .donor-table tr,
  .donor-table th,
  .donor-table td { display: block; }
  .donor-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .donor-table tr {
    margin-bottom: 12px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
  }
  .donor-table td {
    padding: 6px 0;
    border-bottom: none;
    text-align: left;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    gap: 8px;
  }
  .donor-table td::before {
    content: attr(data-label);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-light);
    flex-shrink: 0;
  }
  .donor-table tr:hover td { background: transparent; }
}

/* Toast: prevent overflow on small screens */
@media (max-width: 480px) {
  .toast-container { left: 12px; right: 12px; top: 12px; }
  .toast { max-width: 100%; }
}

/* Lightbox: tighter positioning on small screens */
@media (max-width: 480px) {
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 12px; right: 12px; }
  .lightbox-prev, .lightbox-next { width: 40px; height: 40px; font-size: 1.2rem; }
  .lightbox-caption { font-size: 0.85rem; padding: 0 16px; }
}

/* Small mobile: tighter spacing, smaller type */
@media (max-width: 375px) {
  .section { padding: 48px 0; }
  .section-header h2 { font-size: 1.6rem; }
  .container { padding-left: 12px; padding-right: 12px; }
  .hero-content h1 { font-size: 1.8rem; }
  .hero-content p { font-size: 0.9rem; }
  .stat-number { font-size: 2rem; }
}

/* Word-wrap safety for hero headings */
.hero-content h1 { overflow-wrap: break-word; word-break: break-word; }

/* Mobile nav link touch targets */
@media (max-width: 992px) {
  .main-nav a,
  .nav-dropdown > span { min-height: 44px; display: flex; align-items: center; }
}

/* ══════════════════════════════════════════════════════
   Active Navigation Highlight
   ══════════════════════════════════════════════════════ */
.main-nav a.active-nav,
.nav-dropdown.active-nav > span {
  color: var(--primary);
  background: var(--bg-warm);
  font-weight: 600;
  position: relative;
}
.main-nav a.active-nav::after,
.nav-dropdown.active-nav > span::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2.5px;
  background: linear-gradient(90deg, var(--primary), var(--accent-gold));
  border-radius: 2px;
}
@media (max-width: 992px) {
  .main-nav a.active-nav::after,
  .nav-dropdown.active-nav > span::after {
    bottom: auto; left: 0; top: 50%; transform: translateY(-50%);
    width: 3px; height: 60%; border-radius: 2px;
  }
}
.nav-dropdown-menu a.active-nav {
  color: var(--primary);
  background: var(--bg-warm);
  font-weight: 600;
}
.nav-dropdown-menu a.active-nav::after { display: none; }

/* ══════════════════════════════════════════════════════
   Page Hero Banner (reusable inner-page hero)
   ══════════════════════════════════════════════════════ */
.page-hero {
  position: relative;
  padding: 140px 0 80px;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-warm) 100%);
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(232,117,26,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.page-hero h1 {
  font-family: var(--font-head);
  font-size: 2.8rem;
  color: var(--text-dark);
  margin-bottom: 16px;
}
.page-hero p {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}
.page-hero .hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--saffron));
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 20px;
  box-shadow: 0 8px 32px rgba(232,117,26,0.25);
}
@media (max-width: 768px) {
  .page-hero { padding: 110px 0 56px; }
  .page-hero h1 { font-size: 2rem; }
  .page-hero p { font-size: 1rem; }
}

/* ══════════════════════════════════════════════════════
   Tour Card — alternating two-column layout
   ══════════════════════════════════════════════════════ */
.tour-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}
.tour-card:last-child { border-bottom: none; }
.tour-card:nth-child(even) .tour-card-media { order: 2; }
.tour-card:nth-child(even) .tour-card-content { order: 1; }
.tour-card-content h3 {
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.tour-card-content .tour-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 16px;
}
.tour-card-content p {
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 16px;
}
.tour-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.tour-highlights li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  color: var(--text-body);
  font-size: 0.95rem;
}
.tour-highlights li::before {
  content: '\f06d';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--accent-gold);
  font-size: 0.8rem;
}
.tour-duration {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-warm);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--primary-dark);
}
@media (max-width: 768px) {
  .tour-card {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 0;
  }
  .tour-card:nth-child(even) .tour-card-media { order: 0; }
  .tour-card:nth-child(even) .tour-card-content { order: 0; }
  .tour-card-content h3 { font-size: 1.4rem; }
}

/* ── Tour Slideshow ── */
.tour-slideshow {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 420px;
  box-shadow: var(--shadow-lg);
}
.tour-slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.tour-slideshow img.active {
  opacity: 1;
}
.tour-slideshow-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}
.tour-slideshow-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  border: 2px solid rgba(255,255,255,0.7);
}
.tour-slideshow-dots span.active {
  background: #fff;
  transform: scale(1.2);
}
@media (max-width: 768px) {
  .tour-slideshow { height: 280px; }
}

/* ══════════════════════════════════════════════════════
   Book Distribution Page
   ══════════════════════════════════════════════════════ */
.book-mission-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 56px;
  align-items: center;
}
.book-mission-grid .mission-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.book-mission-grid .mission-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.book-mission-grid .mission-content h2 {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 20px;
}
.book-mission-grid .mission-content p {
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 14px;
}
.book-mission-grid .mission-content blockquote {
  border-left: 4px solid var(--accent-gold);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--bg-warm);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-body);
  font-size: 1.05rem;
  line-height: 1.7;
}
@media (max-width: 768px) {
  .book-mission-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.book-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.book-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.book-card .book-card-img {
  height: 220px;
  overflow: hidden;
  position: relative;
  background: var(--bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.book-card .book-card-img i {
  font-size: 3.5rem;
  color: var(--primary);
  opacity: 0.4;
}
.book-card .book-card-body {
  padding: 24px;
}
.book-card .book-card-body h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.book-card .book-card-body p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.6;
}

.book-stall-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 20px;
}
.book-stall-gallery .stall-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 240px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.book-stall-gallery .stall-img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}
.book-stall-gallery .stall-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── CTA Banner (shared for inner pages) ── */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--saffron));
  padding: 64px 0;
  text-align: center;
  color: #fff;
}
.cta-banner h2 {
  font-family: var(--font-head);
  font-size: 2rem;
  margin-bottom: 12px;
}
.cta-banner p {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 24px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.cta-banner .cta-info {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}
.cta-banner .cta-info span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  background: rgba(255,255,255,0.18);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
}
@media (max-width: 768px) {
  .cta-banner { padding: 48px 0; }
  .cta-banner h2 { font-size: 1.5rem; }
}
