/* ==========================================================================
   Shivaji Happy Club Foundation - Component Stylesheet
   Reusable UI Components: Header, Footer, Modals, Cards, Forms, Sliders, Lightbox
   ========================================================================== */

/* ==========================================================================
   Top Utility Bar
   ========================================================================== */
.topbar {
  background-color: var(--blue-900);
  color: var(--neutral-300);
  font-size: 0.825rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.45rem 0;
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--neutral-300);
  transition: color var(--transition-fast);
}
.topbar-link:hover {
  color: var(--saffron-400);
}

.topbar-badge {
  background: rgba(22, 163, 74, 0.2);
  color: #86EFAC;
  border: 1px solid rgba(22, 163, 74, 0.4);
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ==========================================================================
   Main Header & Navigation
   ========================================================================== */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all var(--transition-normal);
  border-bottom: 2px solid var(--neutral-100);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

/* Brand Logo */
.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-emblem {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #000;

  border: 2px solid var(--saffron-500);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(234, 88, 12, 0.3);
  flex-shrink: 0;
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.brand:hover .brand-emblem {
  transform: scale(1.06);
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.45);
}

.brand-emblem svg {
  width: 28px;
  height: 28px;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  display: block;
  transition: transform var(--transition-fast);
}

.brand-fallback-badge {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #EA580C 0%, #C2410C 100%);
  color: #FFFFFF;
  font-weight: 800;
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
  border-radius: 50%;
  user-select: none;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.3);
}


.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--blue-900);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.brand-name span {
  color: var(--saffron-600);
}

.brand-tagline {
  font-size: 0.725rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--neutral-500);
}

/* Desktop Navigation */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--neutral-700);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--accent-saffron);
  background-color: var(--saffron-50);
}

.nav-link.active {
  color: var(--accent-saffron);
  font-weight: 700;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0.85rem;
  right: 0.85rem;
  height: 3px;
  background: var(--accent-saffron);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Mobile Menu Toggle Button */
.menu-toggle {
  display: none;
  background: transparent;
  padding: 0.5rem;
  color: var(--neutral-800);
  font-size: 1.5rem;
  border-radius: var(--radius-sm);
}
.menu-toggle:hover {
  background: var(--neutral-100);
}

/* Mobile Navigation Drawer */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.mobile-nav-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  max-width: 85vw;
  height: 100%;
  background: var(--white);
  z-index: 10001;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-nav-backdrop.open .mobile-nav-drawer {
  right: 0;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  border-bottom: 1px solid var(--neutral-200);
}

.mobile-close-btn {
  font-size: 1.5rem;
  padding: 0.25rem 0.5rem;
  color: var(--neutral-500);
  border-radius: var(--radius-sm);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  gap: 0.35rem;
}

.mobile-nav-link {
  padding: 0.85rem 1rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--neutral-800);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  background: var(--saffron-50);
  color: var(--accent-saffron);
}

.mobile-nav-footer {
  margin-top: auto;
  padding: 1.25rem;
  border-top: 1px solid var(--neutral-200);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (max-width: 991px) {
  .nav-menu { display: none; }
  .header-actions .btn { display: none; }
  .menu-toggle { display: block; }
}

/* ==========================================================================
   Hero Section (Home Page)
   ========================================================================== */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0A192F 0%, #0F2C59 60%, #1E3A8A 100%);
  color: var(--white);
  padding: 6.5rem 0 5.5rem 0;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--saffron-500) 0%, var(--white) 50%, var(--green-600) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(234, 88, 12, 0.2);
  border: 1px solid rgba(234, 88, 12, 0.5);
  color: #FFD2A8;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(4px);
}

.hero-title {
  color: var(--white);
  font-size: clamp(2.3rem, 4.2vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-title span {
  color: var(--saffron-400);
}

.hero-description {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  margin-bottom: 2.25rem;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-stats-quick {
  display: flex;
  gap: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
}

.hero-stat-num {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--saffron-400);
  line-height: 1.1;
}

.hero-stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

/* Hero Right Featured Card */
.hero-card {
  background: rgba(255, 255, 255, 0.97);
  color: var(--neutral-900);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
}

.hero-card-header {
  margin-bottom: 1.25rem;
}

.hero-card-tag {
  display: inline-block;
  background: var(--saffron-100);
  color: var(--saffron-700);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.5rem;
}

.hero-card-title {
  font-size: 1.4rem;
  color: var(--blue-900);
  margin-bottom: 0.5rem;
}

.hero-card-desc {
  font-size: 0.95rem;
  color: var(--neutral-600);
  margin-bottom: 1.5rem;
}

.hero-cause-progress {
  margin-bottom: 1.5rem;
}

.progress-bar-wrap {
  height: 8px;
  background: var(--neutral-200);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--saffron-500), var(--saffron-600));
  border-radius: var(--radius-full);
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--neutral-700);
}

@media (max-width: 991px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ==========================================================================
   Impact Statistics Counter Section
   ========================================================================== */
.stats-section {
  background: var(--white);
  box-shadow: var(--shadow-md);
  margin-top: -3.5rem;
  position: relative;
  z-index: 10;
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  border: 1px solid var(--neutral-200);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem;
  border-right: 1px solid var(--neutral-200);
}

.stat-card:last-child {
  border-right: none;
}

.stat-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--saffron-50);
  color: var(--saffron-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--blue-900);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--neutral-700);
  margin-bottom: 0.35rem;
}

.stat-sub {
  font-size: 0.8rem;
  color: var(--neutral-500);
}

@media (max-width: 991px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card:nth-child(2) { border-right: none; }
}
@media (max-width: 576px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-card { border-right: none; border-bottom: 1px solid var(--neutral-200); padding-bottom: 1.5rem; }
  .stat-card:last-child { border-bottom: none; }
  .stats-section { margin-top: -1.5rem; padding: 1.5rem 1rem; }
}

/* ==========================================================================
   Work / Causes Cards
   ========================================================================== */
.card-work {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--neutral-200);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.card-work:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(234, 88, 12, 0.4);
}

.card-work-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.card-work-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-work:hover .card-work-img img {
  transform: scale(1.05);
}

.card-work-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(15, 44, 89, 0.85);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}

.card-work-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-work-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--blue-50);
  color: var(--blue-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -2.75rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.card-work-title {
  font-size: 1.3rem;
  color: var(--blue-900);
  margin-bottom: 0.75rem;
}

.card-work-desc {
  font-size: 0.95rem;
  color: var(--neutral-600);
  margin-bottom: 1.25rem;
  line-height: 1.6;
  flex-grow: 1;
}

.card-work-meta {
  border-top: 1px solid var(--neutral-100);
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   Event Cards
   ========================================================================== */
.card-event {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--neutral-200);
  display: flex;
  transition: all var(--transition-normal);
}

.card-event:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(30, 58, 138, 0.3);
}

.card-event-img {
  width: 38%;
  min-height: 240px;
  position: relative;
}

.card-event-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-event-date {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--white);
  color: var(--blue-900);
  text-align: center;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.card-event-date-day {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--saffron-600);
}

.card-event-date-month {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--neutral-700);
}

.card-event-body {
  width: 62%;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

.card-event-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}

.status-upcoming { color: var(--saffron-600); }
.status-completed { color: var(--neutral-500); }

.card-event-title {
  font-size: 1.25rem;
  color: var(--blue-900);
  margin-bottom: 0.75rem;
}

.card-event-info {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: var(--neutral-600);
  margin-bottom: 1rem;
}

.card-event-info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-event-desc {
  font-size: 0.925rem;
  color: var(--neutral-600);
  margin-bottom: 1.25rem;
  line-height: 1.5;
  flex-grow: 1;
}

@media (max-width: 768px) {
  .card-event { flex-direction: column; }
  .card-event-img { width: 100%; height: 200px; }
  .card-event-body { width: 100%; }
}

/* ==========================================================================
   Filter Tabs / Pills
   ========================================================================== */
.filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.6rem 1.35rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.925rem;
  font-weight: 600;
  background: var(--white);
  color: var(--neutral-700);
  border: 1px solid var(--neutral-200);
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--blue-800);
  color: var(--blue-800);
}

.filter-btn.active {
  background: var(--blue-800);
  color: var(--white);
  border-color: var(--blue-800);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Gallery Grid & Lightbox
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  height: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  background: var(--neutral-200);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 44, 89, 0.9) 0%, rgba(15, 44, 89, 0.2) 60%, transparent 100%);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: var(--white);
  transition: opacity var(--transition-fast);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--saffron-400);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.gallery-overlay-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
}

@media (max-width: 991px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 35, 0.95);
  backdrop-filter: blur(8px);
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  padding: 2rem;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 900px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img-wrap {
  width: 100%;
  max-height: 70vh;
  display: flex;
  justify-content: center;
}

.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
}

.lightbox-caption {
  margin-top: 1rem;
  color: var(--white);
  text-align: center;
}

.lightbox-caption h4 {
  color: var(--white);
  margin-bottom: 0.25rem;
}

.lightbox-caption p {
  color: var(--neutral-400);
  font-size: 0.9rem;
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  background: transparent;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.lightbox-nav-btn:hover {
  background: var(--saffron-600);
}

.lightbox-prev { left: -65px; }
.lightbox-next { right: -65px; }

@media (max-width: 768px) {
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-close { top: -35px; }
}

/* ==========================================================================
   Donation Specific Styles
   ========================================================================== */
.donation-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--neutral-200);
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.amount-btn {
  padding: 1rem 0.5rem;
  background: var(--neutral-50);
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue-900);
  text-align: center;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.amount-btn:hover {
  border-color: var(--saffron-500);
  background: var(--saffron-50);
}

.amount-btn.active {
  background: var(--saffron-50);
  border-color: var(--saffron-600);
  color: var(--saffron-700);
  box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.2);
}

@media (max-width: 576px) {
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
}

.custom-amount-wrap {
  position: relative;
  margin-bottom: 1.5rem;
}

.currency-prefix {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--neutral-500);
}

.custom-amount-input {
  width: 100%;
  padding: 1rem 1rem 1rem 2.75rem;
  border: 2px solid var(--neutral-300);
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue-900);
  transition: border-color var(--transition-fast);
}

.custom-amount-input:focus {
  border-color: var(--saffron-600);
  outline: none;
}

.donation-impact-hint {
  background: var(--green-50);
  border: 1px solid var(--green-100);
  color: var(--green-700);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}

.bank-details-card {
  background: #F8FAFC;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--neutral-200);
  font-size: 0.95rem;
}
.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  color: var(--neutral-500);
  font-weight: 500;
}

.detail-val {
  font-weight: 700;
  color: var(--neutral-900);
  text-align: right;
}

.upi-box {
  background: var(--white);
  border: 2px dashed var(--saffron-300);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Frequency Toggle Buttons (One-Time Gift vs Monthly Seva Supporter) */
.freq-toggle-container {
  display: flex;
  gap: 0.5rem;
  background: var(--neutral-100);
  padding: 0.35rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  border: 1px solid var(--neutral-200);
}

.freq-btn {
  flex: 1;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--neutral-600);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.freq-btn:hover {
  color: var(--blue-900);
  background: rgba(255, 255, 255, 0.6);
}

.freq-btn.active {
  background: var(--white);
  color: var(--blue-900);
  box-shadow: var(--shadow-sm);
  border-color: rgba(15, 44, 89, 0.15);
}

.freq-btn.active[data-freq="monthly"] {
  color: var(--saffron-700);
  border-color: rgba(234, 88, 12, 0.3);
}

.monthly-seva-notice {
  animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Dynamic Live UPI QR Code */
.upi-dynamic-qr-card {
  background: var(--white);
  border: 2px solid var(--blue-100);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0.65rem auto 0.85rem auto;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  width: 100%;
  max-width: 210px;
}

.upi-dynamic-qr-card:hover {
  border-color: var(--saffron-400);
  box-shadow: var(--shadow-md);
}

.dynamic-qr-wrapper {
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
}

.dynamic-qr-wrapper canvas {
  display: block !important;
  margin: 0 auto;
  border-radius: 4px;
}

.dynamic-qr-wrapper img {
  display: none !important;
}

.qr-scan-guide {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue-900);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16A34A;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
  animation: pulseGreen 1.8s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

.qr-amount-pill {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 100%);
  color: var(--white);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 6px rgba(15, 44, 89, 0.15);
}

.qr-amount-pill .highlight-amt {
  color: #FDBA74;
  font-size: 1.15rem;
  font-family: var(--font-heading);
}

.qr-freq-chip {
  background: var(--saffron-600);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  letter-spacing: 0.4px;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--blue-50);
  color: var(--blue-700);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--blue-100);
  transition: all var(--transition-fast);
}

.copy-btn:hover {
  background: var(--blue-100);
}

/* ==========================================================================
   Form Controls
   ========================================================================== */
.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.form-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.925rem;
  color: var(--neutral-800);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--neutral-800);
  background: var(--white);
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--blue-700);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
  outline: none;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--neutral-500);
  margin-top: 0.35rem;
}

/* ==========================================================================
   Timeline / Milestones (About Us)
   ========================================================================== */
.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--saffron-200);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  width: 50%;
}

.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 3rem;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 3rem;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--saffron-600);
  border: 4px solid var(--white);
  box-shadow: 0 0 0 3px var(--saffron-200);
  z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-dot { right: -10px; }
.timeline-item:nth-child(even) .timeline-dot { left: -10px; }

.timeline-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--neutral-200);
}

.timeline-year {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--saffron-600);
  background: var(--saffron-50);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
}

.timeline-title {
  font-size: 1.2rem;
  color: var(--blue-900);
  margin-bottom: 0.5rem;
}

.timeline-desc {
  font-size: 0.925rem;
  color: var(--neutral-600);
}

@media (max-width: 768px) {
  .timeline::before { left: 20px; }
  .timeline-item { width: 100%; left: 0 !important; padding-left: 50px !important; padding-right: 0 !important; text-align: left !important; }
  .timeline-dot { left: 10px !important; }
}

/* ==========================================================================
   Leadership / Team Cards
   ========================================================================== */
.card-team {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--neutral-200);
  text-align: center;
  padding: 2rem 1.5rem;
  transition: all var(--transition-fast);
}

.card-team:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-500);
}

.team-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  margin: 0 auto 1.25rem auto;
  border: 4px solid var(--saffron-100);
  overflow: hidden;
  background: var(--neutral-100);
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-name {
  font-size: 1.25rem;
  color: var(--blue-900);
  margin-bottom: 0.25rem;
}

.team-role {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--saffron-600);
  margin-bottom: 0.75rem;
}

.team-bio {
  font-size: 0.9rem;
  color: var(--neutral-600);
  line-height: 1.5;
}

/* ==========================================================================
   General Modal System
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 15000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  position: relative;
  transform: scale(0.95);
  transition: transform var(--transition-fast);
}

.modal-backdrop.active .modal-card {
  transform: scale(1);
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--neutral-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.35rem;
  color: var(--blue-900);
}

.modal-close-btn {
  font-size: 1.5rem;
  color: var(--neutral-400);
  cursor: pointer;
}
.modal-close-btn:hover {
  color: var(--neutral-800);
}

.modal-body {
  padding: 1.75rem;
}

.modal-footer {
  padding: 1.25rem 1.5rem;
  background: var(--neutral-50);
  border-top: 1px solid var(--neutral-200);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--blue-900);
  color: var(--neutral-300);
  padding-top: 4.5rem;
  border-top: 4px solid var(--saffron-500);
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background: var(--saffron-500);
}

.footer-about p {
  color: var(--neutral-300);
  font-size: 0.925rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-link {
  color: var(--neutral-300);
  font-size: 0.925rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.footer-link:hover {
  color: var(--saffron-400);
  transform: translateX(3px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.925rem;
  color: var(--neutral-300);
}

.footer-contact-item svg {
  color: var(--saffron-400);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--saffron-600);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.75rem 0;
  font-size: 0.875rem;
  color: var(--neutral-400);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-links a {
  color: var(--neutral-400);
}
.footer-legal-links a:hover {
  color: var(--saffron-400);
}

@media (max-width: 991px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
}
/* ==========================================================================
   Language Switcher Component
   ========================================================================== */
.lang-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-left: 0.5rem;
}

.lang-switch-btn {
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--neutral-300);
  background: transparent;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.lang-switch-btn:hover {
  color: var(--white);
}

.lang-switch-btn.active {
  background: var(--saffron-600);
  color: var(--white);
}


/* ==========================================================================
   Print Optimization & Dedicated Receipt/Certificate Isolation Rules
   Ensures ONLY the receipt or certificate prints, hiding entire website layout
   ========================================================================== */
@media print {
  @page {
    size: A4 portrait;
    margin: 10mm 15mm;
  }

  /* Force exact background colors, logos, and borders */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  html, body {
    background: #FFFFFF !important;
    color: #000000 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 11pt !important;
    line-height: 1.4 !important;
  }

  /* 1. Global Print Hide: Always hide web navigation, headers, footers, buttons, and floating widgets */
  .topbar,
  .site-header,
  .site-footer,
  .floating-lang-pill,
  .mobile-nav-backdrop,
  .menu-toggle,
  .skip-link,
  .hero-buttons,
  .modal-close-btn,
  .modal-footer,
  .no-print,
  button,
  .btn,
  .modal-backdrop:not(.active) {
    display: none !important;
  }

  /* 2. When printing with an active modal (Receipt or Volunteer Badge):
     Completely suppress the main page content, hero, forms, etc. */
  body.modal-open main,
  body.modal-open #main-content,
  body.printing-receipt main,
  body.printing-receipt #main-content,
  body.printing-badge main,
  body.printing-badge #main-content,
  body:has(.modal-backdrop.active) main,
  body:has(.modal-backdrop.active) #main-content {
    display: none !important;
  }

  body.modal-open > *:not(.modal-backdrop.active),
  body:has(.modal-backdrop.active) > *:not(.modal-backdrop.active) {
    display: none !important;
  }

  /* 3. Container formatting for the active modal */
  .modal-backdrop.active {
    position: static !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 auto !important;
    overflow: visible !important;
  }

  .modal-backdrop.active .modal-card {
    position: relative !important;
    display: block !important;
    box-shadow: none !important;
    border: 2px solid #0F2C59 !important;
    border-radius: 8px !important;
    width: 100% !important;
    max-width: 680px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    background: #FFFFFF !important;
    color: #000000 !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    overflow: visible !important;
  }

  /* Specific Receipt Styling on Print */
  .receipt-header {
    background: #0F2C59 !important;
    color: #FFFFFF !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    border-bottom: 3px solid #EA580C !important;
    padding: 1rem 1.25rem !important;
  }

  .receipt-header h3,
  .receipt-header span {
    color: #FFFFFF !important;
  }

  .receipt-body {
    padding: 1.5rem !important;
    background: #FFFFFF !important;
    color: #000000 !important;
  }

  .receipt-legal-note {
    background: #F8FAFC !important;
    border: 1px solid #CBD5E1 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Specific Volunteer Certificate / ID Badge Styling on Print */
  .volunteer-certificate-sheet {
    background: linear-gradient(135deg, #0F2C59 0%, #173B6F 100%) !important;
    color: #FFFFFF !important;
    border: 3px double #F97316 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    margin: 0 auto !important;
    max-width: 520px !important;
  }

  .modal-backdrop.active .volunteer-modal-card {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    max-width: 540px !important;
  }

  .modal-backdrop.active .volunteer-modal-card .modal-body {
    padding: 0 !important;
    background: transparent !important;
  }


  .volunteer-certificate-sheet * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }


  .placeholder-tag {
    border: none !important;
    background: transparent !important;
    color: #000 !important;
  }
}


/* ==========================================================================
   Floating Language Switcher - Compact Circular FAB with Smooth Hover Expand
   Resting state: Small 48px circle showing centered language globe icon
   Hover/Focus state: Smoothly expands horizontally revealing language options
   Mouse leave state: Smoothly collapses back to small 48px circle
   ========================================================================== */
.floating-lang-pill {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 48px;
  height: 48px;
  box-sizing: border-box;
  padding: 0 12px;
  border-radius: 9999px;
  background: var(--blue-900);
  border: 2px solid var(--saffron-500);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s ease,
              transform 0.25s ease,
              border-color 0.25s ease;
}

.floating-lang-label {
  display: inline-flex;
  align-items: center;
  color: var(--saffron-400);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  gap: 0;
  transition: gap 0.3s ease;
}

.floating-lang-label svg {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px;
  min-height: 20px;
  flex-shrink: 0;
  stroke: var(--saffron-400) !important;
  stroke-width: 2.2;
  display: block;
  transition: transform 0.35s ease, stroke 0.25s ease;
}

.floating-lang-label span {
  display: inline-block;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: middle;
  transition: max-width 0.32s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.25s ease;
}

.floating-lang-pill .lang-switch {
  display: inline-flex;
  align-items: center;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
  margin: 0;
  padding: 0;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
  transition: max-width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.28s ease;
}

.floating-lang-pill .lang-switch-btn {
  padding: 0.22rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
}

/* Hover, Keyboard Focus-visible, and Touch Expanded States */
.floating-lang-pill:hover,
.floating-lang-pill:has(:focus-visible),
.floating-lang-pill.is-expanded {
  width: 212px;
  padding: 0 10px 0 12px;
  gap: 8px;
  transform: translateY(-2px);
  border-color: var(--saffron-400);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45);
}

.floating-lang-pill:hover .floating-lang-label,
.floating-lang-pill:has(:focus-visible) .floating-lang-label,
.floating-lang-pill.is-expanded .floating-lang-label {
  gap: 6px;
}

.floating-lang-pill:hover .floating-lang-label svg,
.floating-lang-pill:has(:focus-visible) .floating-lang-label svg,
.floating-lang-pill.is-expanded .floating-lang-label svg {
  stroke: var(--saffron-400) !important;
  transform: rotate(15deg);
}

.floating-lang-pill:hover .floating-lang-label span,
.floating-lang-pill:has(:focus-visible) .floating-lang-label span,
.floating-lang-pill.is-expanded .floating-lang-label span {
  max-width: 50px;
  opacity: 1;
}

.floating-lang-pill:hover .lang-switch,
.floating-lang-pill:has(:focus-visible) .lang-switch,
.floating-lang-pill.is-expanded .lang-switch {
  max-width: 135px;
  opacity: 1;
  pointer-events: auto;
  margin-left: auto;
}

@media print {
  .floating-lang-pill {
    display: none !important;
  }
}


