/* ==========================================================================
   Khandelwal Yuva Jan Jagran Samiti Delhi - Core Stylesheet
   Theme: Royal Indian Crimson & Sacred Gold Luxury Aesthetic
   ========================================================================== */

:root {
  /* Color Palette */
  --primary-deep: #4D0512;
  --primary: #7A0C1E;
  --primary-light: #A31932;
  --primary-subtle: #FDF2F4;
  
  --gold-dark: #9A7512;
  --gold: #D4AF37;
  --gold-light: #F4D068;
  --gold-glow: rgba(212, 175, 55, 0.25);
  --gold-gradient: linear-gradient(135deg, #F4D068 0%, #D4AF37 50%, #AA820A 100%);
  --crimson-gradient: linear-gradient(135deg, #7A0C1E 0%, #4D0512 100%);
  --hero-gradient: linear-gradient(180deg, rgba(40, 6, 12, 0.5) 0%, rgba(25, 3, 7, 0.72) 100%);

  --saffron: #E65100;
  --saffron-light: #FF9800;
  --army-green: #1B5E20;
  --whatsapp: #25D366;
  --whatsapp-dark: #128C7E;

  /* Surfaces & Backgrounds */
  --bg-main: #FAF6EE;
  --bg-card: #FFFFFF;
  --bg-card-soft: #F9F3E5;
  --bg-dark: #1E070B;

  /* Typography Colors */
  --text-dark: #1F1416;
  --text-muted: #665255;
  --text-light: #FAF6EE;
  --text-gold: #F4D068;

  /* Border & Shadows */
  --border-gold: rgba(212, 175, 55, 0.4);
  --border-subtle: rgba(122, 12, 30, 0.1);
  --shadow-sm: 0 2px 8px rgba(77, 5, 18, 0.06);
  --shadow-md: 0 8px 24px rgba(77, 5, 18, 0.09);
  --shadow-lg: 0 16px 40px rgba(77, 5, 18, 0.14);
  --shadow-gold: 0 8px 25px rgba(212, 175, 55, 0.35);

  /* Robust Fonts with Safe System Fallbacks */
  --font-heading: 'Outfit', 'Noto Sans Devanagari', 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Poppins', 'Noto Sans Devanagari', 'Segoe UI', Roboto, sans-serif;
  --font-sacred: 'Rozha One', 'Noto Sans Devanagari', Georgia, serif;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

/* Top Shloka Bar */
.top-bar {
  background: var(--crimson-gradient);
  color: var(--text-gold);
  border-bottom: 1px solid var(--border-gold);
  padding: 6px 0;
  font-size: 0.88rem;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.vedic-shloka-text {
  font-family: var(--font-sacred);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  color: #FFF2A3;
  display: flex;
  align-items: center;
  gap: 8px;
}

.shloka-icon {
  color: var(--gold-light);
  font-size: 1.1rem;
}

.top-bar-contact {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.top-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 500;
}

.top-contact-link:hover {
  color: var(--gold-light);
}

/* Main Navigation Header */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  border-bottom: 2px solid var(--gold);
  transition: var(--transition);
}

.main-header.scrolled {
  box-shadow: var(--shadow-md);
  padding: 4px 0;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-emblem {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

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

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.25;
}

.brand-regd {
  font-size: 0.76rem;
  color: var(--gold-dark);
  font-weight: 600;
  letter-spacing: 0.3px;
}

.brand-motto {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 22px;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

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

/* Language Switcher Pill */
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card-soft);
  color: var(--primary);
  border: 1.5px solid var(--gold);
  padding: 6px 14px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.lang-btn:hover {
  background: var(--gold);
  color: #fff;
  transform: translateY(-1px);
}

.btn-nav-join {
  background: var(--crimson-gradient);
  color: #FFF !important;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(122, 12, 30, 0.25);
  border: 1px solid var(--gold);
  cursor: pointer;
}

.btn-nav-join:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(122, 12, 30, 0.35);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--primary);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  background: var(--hero-gradient), url('../assets/images/hero-banner.jpg') center/cover no-repeat;
  color: #FFFFFF;
  padding: 90px 0 110px;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, transparent 30%, rgba(30, 2, 8, 0.6) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid var(--gold-light);
  color: var(--text-gold);
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.18;
  margin-bottom: 18px;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  background: linear-gradient(180deg, #FFFFFF 40%, #FFE8A3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  font-weight: 400;
  color: #F0E6D2;
  margin-bottom: 35px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.btn-gold {
  background: var(--gold-gradient);
  color: var(--primary-deep);
  font-weight: 800;
  padding: 13px 28px;
  border-radius: 30px;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-gold:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.55);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.1);
  color: #FFF;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 30px;
  font-size: 1rem;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: var(--transition);
}

.btn-outline-light:hover {
  background: #FFF;
  color: var(--primary);
  transform: translateY(-3px);
}

.btn-army-green {
  background: var(--army-green);
  color: #FFF;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-army-green:hover {
  background: #2E7D32;
  transform: translateY(-3px);
}

/* ==========================================================================
   Impact Stats Bar
   ========================================================================== */
.stats-bar-wrapper {
  margin-top: -50px;
  position: relative;
  z-index: 10;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--bg-card);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--gold);
  overflow: hidden;
}

.stat-item {
  padding: 26px 20px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border-subtle);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ==========================================================================
   Section Headers & Common Components
   ========================================================================== */
.section {
  padding: 85px 0;
}

.section-bg-soft {
  background-color: var(--bg-card-soft);
}

.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 50px;
}

.section-badge {
  display: inline-block;
  background: var(--primary-subtle);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 20px;
  border: 1px solid rgba(122, 12, 30, 0.2);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--primary-deep);
  line-height: 1.25;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 14px auto 16px;
}

.ornament-line {
  height: 2px;
  width: 45px;
  background: var(--gold);
}

.ornament-diamond {
  width: 10px;
  height: 10px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* ==========================================================================
   Mission & Four Pillars Section
   ========================================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.pillar-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 32px 24px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--crimson-gradient);
  transition: var(--transition);
}

.pillar-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.pillar-card:hover::before {
  background: var(--gold-gradient);
  height: 6px;
}

.pillar-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  border: 1px solid rgba(122, 12, 30, 0.15);
}

.pillar-title {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--primary-deep);
  margin-bottom: 12px;
  line-height: 1.35;
}

.pillar-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   About Us & Heritage Section
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 45px;
  align-items: center;
}

.about-text-col p {
  margin-bottom: 16px;
  font-size: 1rem;
  color: #382B2E;
  line-height: 1.75;
}

.about-intro-lead {
  font-size: 1.12rem !important;
  font-weight: 600;
  color: var(--primary) !important;
}

.heritage-box {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-left: 5px solid var(--gold);
  border-radius: 12px;
  padding: 22px 24px;
  margin: 24px 0;
  box-shadow: var(--shadow-sm);
}

.heritage-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.heritage-bullets {
  list-style: none;
  margin-top: 12px;
}

.heritage-bullets li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  font-size: 0.92rem;
  color: var(--text-dark);
  font-weight: 500;
}

.heritage-bullets li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--gold-dark);
  font-weight: 800;
}

.president-quote-card {
  background: var(--crimson-gradient);
  color: #FFF;
  border-radius: 18px;
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--gold);
  position: relative;
}

.quote-icon {
  font-size: 2.8rem;
  color: var(--gold);
  line-height: 1;
  opacity: 0.4;
  margin-bottom: -10px;
}

.quote-heading {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--gold-light);
  margin-bottom: 12px;
}

.quote-body {
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #FFFDF7;
  margin-bottom: 18px;
}

.quote-author {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gold-light);
  border-top: 1px solid rgba(212, 175, 55, 0.4);
  padding-top: 12px;
}

/* ==========================================================================
   Leadership & Committee Section
   ========================================================================== */
.leaders-section {
  background: #FFFDF9;
}

.office-bearers-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 50px;
}

.leader-card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid rgba(122, 12, 30, 0.12);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  text-align: center;
}

.leader-card.featured-leader {
  border-color: var(--gold);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.22);
}

.leader-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.leader-image-wrapper {
  position: relative;
  padding-top: 10px;
  background: linear-gradient(180deg, #F9F3E5 0%, #FFFFFF 100%);
  display: flex;
  justify-content: center;
}

.leader-photo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  background-color: #EEE;
}

.leader-badge-pill {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--crimson-gradient);
  color: var(--gold-light);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 12px;
  border: 1px solid var(--gold);
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.leader-info {
  padding: 22px 14px 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.leader-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
  line-height: 1.3;
}

.leader-gotra {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 12px;
}

.leader-phone-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.leader-contact-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card-soft);
  border: 1px solid rgba(122, 12, 30, 0.1);
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
}

.leader-contact-chip a.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary-deep);
}

.leader-contact-chip a.phone-link:hover {
  color: var(--primary);
}

.wa-quick-btn {
  color: var(--whatsapp-dark);
  display: flex;
  align-items: center;
}

.wa-quick-btn:hover {
  color: var(--whatsapp);
  transform: scale(1.15);
}

/* Core Committee Section (Couples) */
.core-committee-box {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 38px 30px;
  border: 2px solid var(--gold);
  box-shadow: var(--shadow-md);
}

.committee-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.comm-title-wrap h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.comm-title-wrap p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.search-input-wrap {
  position: relative;
  min-width: 280px;
}

.search-input-wrap input {
  width: 100%;
  padding: 9px 16px 9px 38px;
  border-radius: 25px;
  border: 1.5px solid var(--border-gold);
  background: var(--bg-card-soft);
  outline: none;
  font-size: 0.88rem;
}

.search-input-wrap input:focus {
  border-color: var(--primary);
  background: #FFF;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.core-committee-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.committee-card {
  background: var(--bg-card-soft);
  border: 1px solid rgba(122, 12, 30, 0.1);
  border-radius: 12px;
  padding: 16px 18px;
  transition: var(--transition);
}

.committee-card:hover {
  background: #FFF;
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.committee-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.committee-avatar-icon {
  width: 28px;
  height: 28px;
  color: var(--gold-dark);
}

.committee-role-tag {
  font-size: 0.74rem;
  font-weight: 700;
  background: var(--primary-subtle);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 8px;
}

.committee-couple-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-deep);
  margin-bottom: 4px;
}

.committee-gotra-badge {
  font-size: 0.78rem;
  color: var(--gold-dark);
  font-weight: 700;
  margin-bottom: 8px;
}

.committee-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-subtle);
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(122, 12, 30, 0.12);
}

.committee-phones {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.comm-phone-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  background: #FFF;
  color: var(--text-dark);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.08);
}

.comm-phone-chip:hover {
  background: var(--primary);
  color: #FFF;
}

/* ==========================================================================
   Events & Initiatives Section
   ========================================================================== */
.events-filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.event-filter-btn {
  background: var(--bg-card);
  border: 1.5px solid var(--border-gold);
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 8px 18px;
  border-radius: 25px;
  cursor: pointer;
  transition: var(--transition);
}

.event-filter-btn:hover, .event-filter-btn.active {
  background: var(--crimson-gradient);
  color: #FFF;
  border-color: var(--primary-deep);
  box-shadow: 0 4px 12px rgba(122, 12, 30, 0.2);
}

.events-list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.event-card {
  background: var(--bg-card);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid rgba(122, 12, 30, 0.1);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.event-card-img-wrap {
  position: relative;
  height: 230px;
  overflow: hidden;
}

.event-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.event-card:hover .event-card-img-wrap img {
  transform: scale(1.06);
}

.event-tag-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--crimson-gradient);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 14px;
  border: 1px solid var(--gold);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.event-status-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.65);
  color: #FFF;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
}

.event-status-pill.upcoming {
  background: var(--saffron);
}

.event-status-pill.annual {
  background: var(--army-green);
}

.event-card-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.event-meta-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.84rem;
  color: var(--gold-dark);
  font-weight: 700;
  margin-bottom: 8px;
}

.event-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: 10px;
}

.event-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.event-details-highlight {
  background: var(--bg-card-soft);
  border-left: 3px solid var(--gold);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.event-details-highlight p {
  margin-bottom: 4px;
}

.event-details-highlight p:last-child {
  margin-bottom: 0;
}

.event-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.event-price-tag {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--primary-deep);
}

.event-price-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: normal;
}

/* ==========================================================================
   Photo Gallery & Lightbox
   ========================================================================== */
.gallery-filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}

.gallery-tab-btn {
  background: transparent;
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
}

.gallery-tab-btn.active, .gallery-tab-btn:hover {
  background: var(--primary);
  color: #FFF;
}

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

.gallery-item {
  position: relative;
  height: 240px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  border: 1px solid var(--border-gold);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(30, 2, 8, 0.88) 100%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  color: #FFF;
  font-weight: 600;
  font-size: 0.92rem;
  opacity: 0;
  transition: var(--transition);
}

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

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

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 2, 5, 0.92);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.lightbox-content {
  max-width: 900px;
  max-height: 85vh;
  position: relative;
  text-align: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: 12px;
  border: 2px solid var(--gold);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  margin: 0 auto;
}

.lightbox-caption {
  color: var(--gold-light);
  margin-top: 14px;
  font-size: 1.1rem;
  font-weight: 600;
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  color: #FFF;
  font-size: 2.2rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* ==========================================================================
   Contact Us & Location Section
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
}

.contact-info-card {
  background: var(--crimson-gradient);
  color: #FFF;
  border-radius: 18px;
  padding: 36px 30px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--gold);
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.contact-info-block {
  display: flex;
  gap: 16px;
}

.contact-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-detail-text h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.contact-detail-text p, .contact-detail-text a {
  font-size: 0.95rem;
  color: #FFF;
  line-height: 1.5;
}

.contact-detail-text a:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

.contact-form-card {
  background: var(--bg-card);
  border-radius: 18px;
  padding: 36px 30px;
  box-shadow: var(--shadow-md);
  border: 1.5px solid var(--border-gold);
}

.form-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1.5px solid rgba(122, 12, 30, 0.18);
  background: var(--bg-card-soft);
  font-size: 0.92rem;
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  background: #FFF;
  box-shadow: 0 0 0 3px rgba(122, 12, 30, 0.08);
}

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

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.btn-submit {
  flex: 1;
  background: var(--crimson-gradient);
  color: #FFF;
  border: 1px solid var(--gold);
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-submit:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

.btn-wa-submit {
  background: var(--whatsapp);
  color: #FFF;
  border: none;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-wa-submit:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-2px);
}

/* ==========================================================================
   Modals (Pass Booking & Volunteer Join)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(20, 2, 6, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

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

.modal-dialog {
  background: #FFF;
  border-radius: 20px;
  max-width: 580px;
  width: 100%;
  border: 2px solid var(--gold);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  animation: modalPop 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes modalPop {
  0% { transform: scale(0.9) translateY(20px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-header {
  background: var(--crimson-gradient);
  color: #FFF;
  padding: 20px 24px;
  border-bottom: 2px solid var(--gold);
  position: relative;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1.25;
}

.modal-subtitle {
  font-size: 0.84rem;
  color: #FFF2D6;
  margin-top: 2px;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  color: #FFF;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  padding: 26px 24px;
  max-height: 75vh;
  overflow-y: auto;
}

/* Stepper / Dynamic pass count */
.pass-stepper-box {
  background: var(--bg-card-soft);
  border: 1.5px solid var(--border-gold);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stepper-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stepper-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #FFF;
  border: none;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.stepper-btn:hover {
  background: var(--gold-dark);
}

.stepper-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  min-width: 30px;
  text-align: center;
}

.booking-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  background: #FFF2A3;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 18px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
  background: var(--bg-dark);
  color: #D3C4C6;
  padding: 70px 0 25px;
  border-top: 3px solid var(--gold);
}

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

.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--gold-light);
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 16px;
}

.footer-motto-tag {
  display: inline-block;
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-light);
  border: 1px solid var(--gold);
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 0.78rem;
  font-weight: 700;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: #FFF;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--gold);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.88rem;
  color: #C2B0B3;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--gold-light);
  padding-left: 5px;
}

.footer-contact-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.88rem;
}

.footer-contact-item {
  display: flex;
  gap: 10px;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 22px;
  text-align: center;
  font-size: 0.82rem;
  color: #9C898C;
}

/* ==========================================================================
   Floating Widgets & Back to Top
   ========================================================================== */
.floating-whatsapp {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 1500;
  transition: var(--transition);
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  background: var(--whatsapp-dark);
}

.floating-whatsapp svg {
  width: 32px;
  height: 32px;
}

.back-to-top-btn {
  position: fixed;
  bottom: 90px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--gold-light);
  border: 1px solid var(--gold);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1400;
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top-btn:hover {
  background: var(--gold);
  color: var(--primary);
  transform: translateY(-3px);
}

/* Toast Container */
#toast-container {
  position: fixed;
  top: 25px;
  right: 25px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--primary-deep);
  color: #FFF;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1.5px solid var(--gold);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  animation: slideInRight 0.3s ease;
  transition: opacity 0.3s ease;
}

.toast.fade-out {
  opacity: 0;
}

.toast.toast-success {
  border-color: #25D366;
}

.toast-icon {
  font-weight: bold;
  color: var(--gold-light);
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.icon-xs {
  width: 14px;
  height: 14px;
}

.icon-sm {
  width: 16px;
  height: 16px;
}

.icon-md {
  width: 22px;
  height: 22px;
}

/* Social Media Links in Footer & Contact */
.footer-social-wrap {
  margin-top: 18px;
}

.footer-social-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 10px;
  display: block;
}

.social-links-list {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.social-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-icon-btn svg {
  width: 18px;
  height: 18px;
}

.social-icon-btn:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.social-icon-btn.fb:hover { background: #1877F2; color: #FFF; border-color: #1877F2; }
.social-icon-btn.insta:hover { background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4); color: #FFF; border-color: transparent; }
.social-icon-btn.yt:hover { background: #FF0000; color: #FFF; border-color: #FF0000; }
.social-icon-btn.wa:hover { background: #25D366; color: #FFF; border-color: #25D366; }
.social-icon-btn.x:hover { background: #000000; color: #FFF; border-color: #444; }

/* ==========================================================================
   Auto Event Popup Modal (5-second Timer)
   ========================================================================== */
.event-popup-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(18, 2, 5, 0.88);
  backdrop-filter: blur(10px);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.event-popup-modal.show {
  display: flex;
  opacity: 1;
}

.event-popup-dialog {
  background: #FFF;
  border-radius: 20px;
  max-width: 520px;
  width: 100%;
  border: 2.5px solid var(--gold);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  position: relative;
  animation: popupSlideUp 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes popupSlideUp {
  0% { transform: translateY(35px) scale(0.92); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

.event-popup-banner {
  position: relative;
  height: 190px;
  overflow: hidden;
}

.event-popup-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-popup-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--crimson-gradient);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid var(--gold);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.event-popup-close-btn {
  position: absolute;
  top: 12px;
  right: 14px;
  background: rgba(0, 0, 0, 0.65);
  color: #FFF;
  border: 1px solid rgba(255, 255, 255, 0.4);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
}

.event-popup-close-btn:hover {
  background: var(--primary);
  transform: scale(1.1);
}

.event-popup-body {
  padding: 22px 24px 18px;
  text-align: center;
}

.event-popup-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: 8px;
}

.event-popup-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFF2A3;
  color: var(--primary-deep);
  padding: 4px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.event-popup-venue {
  font-size: 0.86rem;
  color: var(--gold-dark);
  font-weight: 700;
  margin-bottom: 10px;
}

.event-popup-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 18px;
}

.event-popup-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-popup-book {
  width: 100%;
  background: var(--gold-gradient);
  color: var(--primary-deep);
  font-weight: 800;
  font-size: 1rem;
  padding: 12px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  text-decoration: none;
}

.btn-popup-book:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
  color: var(--primary-deep);
}

.btn-popup-dismiss {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  cursor: pointer;
  padding: 4px;
  text-decoration: underline;
}

.btn-popup-dismiss:hover {
  color: var(--primary);
}
