:root {
  --saffron: #E65100;
  --saffron-light: #FF8F3D;
  --maroon: #7A1F1F;
  --maroon-dark: #5A1414;
  --gold: #C9A227;
  --cream: #FFF8EF;
  --cream-dark: #FBEFDA;
  --text-dark: #2C1E12;
  --text-muted: #6B5B4B;
  --white: #FFFFFF;
  --border-soft: #EADFCB;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(122, 31, 31, 0.08);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: 'Poppins', 'Noto Sans Devanagari', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Noto Sans Devanagari', 'Poppins', sans-serif;
  color: var(--maroon);
  margin: 0 0 0.6em;
  font-weight: 600;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------------- Top strip ---------------- */
.top-strip {
  background: var(--maroon-dark);
  color: #F3E3C3;
  font-size: 13px;
}
.top-strip-inner {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  padding: 6px 20px;
}

/* ---------------- Header ---------------- */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-om {
  font-size: 34px;
  color: var(--saffron);
  font-family: 'Yatra One', cursive;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand-hi {
  font-size: 19px;
  font-weight: 700;
  color: var(--maroon);
}
.brand-en {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: 0.2s;
}
.main-nav a:hover { color: var(--saffron); border-color: var(--saffron); }

.btn-donate-nav {
  background: var(--saffron);
  color: #fff !important;
  padding: 9px 20px !important;
  border-radius: 30px;
  border-bottom: none !important;
}
.btn-donate-nav:hover { background: var(--maroon); color: #fff !important; }

.nav-toggle { display: none; }
.nav-burger { display: none; font-size: 26px; cursor: pointer; color: var(--maroon); }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-size: 15px;
  transition: 0.2s;
}
.btn-primary { background: var(--saffron); color: #fff; }
.btn-primary:hover { background: var(--maroon); }
.btn-outline { background: transparent; border: 2px solid #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--maroon); }

/* ---------------- Hero ---------------- */
.hero {
  background: radial-gradient(circle at 50% 0%, var(--maroon) 0%, var(--maroon-dark) 60%, #3d0d0d 100%);
  color: #fff;
  padding: 100px 0 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "ॐ";
  position: absolute;
  font-family: 'Yatra One', cursive;
  font-size: 480px;
  color: rgba(255,255,255,0.04);
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  line-height: 1;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  color: #fff;
  font-size: 40px;
  margin-bottom: 10px;
}
.hero p.sub {
  font-size: 17px;
  color: #F3E3C3;
  max-width: 640px;
  margin: 0 auto 30px;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------------- Hero Slider ---------------- */
.hero-slider {
  position: relative;
  height: clamp(300px, 42vw, 420px);
  overflow: hidden;
  background: var(--maroon-dark);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease;
  overflow: hidden;
}
.hero-slide.active { opacity: 1; visibility: visible; z-index: 1; }
.hero-slide-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Blurred, zoomed-in copy of the same image as a full-bleed backdrop
   (jaisa professional sliders me hota hai) taaki container hamesha bhara
   hua dikhe, background-size aur position se full coverage rehti hai. */
.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(22px) brightness(0.55);
  transform: scale(1.15);
}
/* Foreground image "contain" mode me hai - poori photo hamesha dikhegi,
   kabhi bhi upar-neeche se crop/cut nahi hogi. */
.hero-slide-media-contain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
}
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(90,20,20,0.35), rgba(61,13,13,0.55));
  z-index: 1;
}
.hero-slide-content {
  position: relative;
  z-index: 2;
  height: 100%;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 16px 20px;
  box-sizing: border-box;
  overflow: hidden;
}
.hero-slide-content h1 {
  color: #fff;
  font-size: clamp(20px, 3.4vw, 34px);
  line-height: 1.3;
  margin: 0 0 8px;
}
.hero-slide-content p.sub {
  font-size: clamp(12.5px, 1.5vw, 16px);
  line-height: 1.5;
  color: #F3E3C3;
  max-width: 640px;
  margin: 0 auto 14px;
}
.hero-slide-content .hero-buttons { margin-top: 4px; }
.hero-slide-content .btn { padding: 9px 22px; font-size: 14px; }

.hero-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}
.hero-slider-arrow:hover { background: rgba(255,255,255,0.3); }
.hero-slider-arrow.prev { left: 16px; }
.hero-slider-arrow.next { right: 16px; }

.hero-slider-dots {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.hero-slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: 0.2s;
}
.hero-slider-dot.active { background: var(--saffron); width: 22px; border-radius: 6px; }

@media (max-width: 600px) {
  .hero-slider { height: clamp(240px, 62vw, 320px); }
  .hero-slide-content { padding: 10px 16px; }
  .hero-slide-content h1 { font-size: clamp(17px, 5vw, 22px); margin-bottom: 5px; }
  .hero-slide-content p.sub { font-size: 12px; margin-bottom: 10px; }
  .hero-slide-content .btn { padding: 8px 18px; font-size: 13px; }
  .hero-slider-arrow { width: 30px; height: 30px; font-size: 12px; }
  .hero-slider-dots { bottom: 10px; }
}

/* ---------------- Sections ---------------- */
section { padding: 70px 0; }
.section-title { text-align: center; margin-bottom: 46px; }
.section-title span.tag {
  display: inline-block;
  color: var(--saffron);
  font-weight: 600;
  letter-spacing: 1.5px;
  font-size: 13px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-title h2 { font-size: 30px; }
.section-title p { color: var(--text-muted); max-width: 620px; margin: 10px auto 0; }

.bg-cream-dark { background: var(--cream-dark); }
.bg-maroon { background: var(--maroon); color: #F3E3C3; }
.bg-maroon h2, .bg-maroon h3 { color: #fff; }

/* ---------------- About preview / cards ---------------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.about-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 4px solid #fff; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-soft);
  text-align: center;
}
.card .icon-circle {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--cream-dark);
  color: var(--saffron);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin: 0 auto 16px;
}
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--text-muted); margin: 0; }

/* ---------------- Timings table ---------------- */
.timing-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.timing-table th, .timing-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
  font-size: 15px;
}
.timing-table th { background: var(--maroon); color: #fff; font-weight: 500; }
.timing-table tr:last-child td { border-bottom: none; }

/* ---------------- Gallery ---------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
  background: var(--cream-dark);
  cursor: zoom-in;
  transition: transform 0.2s;
}
.gallery-item:hover { transform: scale(1.03); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------- Lightbox ---------------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(20,5,5,0.94);
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox-img {
  max-width: 88vw;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 34px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}
.lightbox-arrow:hover { background: rgba(255,255,255,0.3); }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
.lightbox-counter {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  text-align: center;
  color: #F3E3C3;
  font-size: 13px;
  letter-spacing: 0.5px;
}

@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)); gap: 8px; }
  .lightbox-arrow { width: 36px; height: 36px; font-size: 14px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 10px; right: 14px; font-size: 28px; }
}

/* ---------------- Committee ---------------- */
.committee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 26px;
}
.member-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-align: center; border: 1px solid var(--border-soft); }
.member-photo { width: 100%; aspect-ratio: 1/1; background: var(--cream-dark); display: flex; align-items: center; justify-content: center; color: var(--saffron); font-size: 42px; font-weight: 600; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-info { padding: 16px; }
.member-info h3 { font-size: 16px; margin-bottom: 4px; }
.member-info p { font-size: 13px; color: var(--text-muted); margin: 0; }

/* ---------------- Forms ---------------- */
.form-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
  max-width: 620px;
  margin: 0 auto;
  border: 1px solid var(--border-soft);
}
.form-control, .form-select, textarea.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border-soft);
  border-radius: 8px;
  font-family: inherit;
  font-size: 16px;
  margin-bottom: 16px;
  background: #fff;
  color: var(--text-dark);
  -webkit-appearance: none;
  appearance: none;
}
.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--saffron);
}
label.field-label { font-size: 13.5px; font-weight: 600; color: var(--maroon); margin-bottom: 6px; display: block; }
.amount-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.amount-chip {
  padding: 9px 18px;
  border-radius: 30px;
  border: 1.5px solid var(--saffron);
  color: var(--saffron);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  background: #fff;
}
.amount-chip.active, .amount-chip:hover { background: var(--saffron); color: #fff; }

/* ---------------- Alerts ---------------- */
.alert { padding: 14px 18px; border-radius: 8px; margin: 20px 0; font-size: 14.5px; }
.alert-success { background: #E4F6E9; color: #1E6B3C; border: 1px solid #B7E5C4; }
.alert-error { background: #FBE7E7; color: #A32D2D; border: 1px solid #F0BABA; }

/* ---------------- Receipt ---------------- */
.receipt-box {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--border-soft);
}
.receipt-head {
  background: var(--maroon);
  color: #fff;
  padding: 30px;
  text-align: center;
}
.receipt-head .om { font-size: 32px; color: var(--gold); }
.receipt-body { padding: 30px; }
.receipt-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--border-soft); font-size: 15px; }
.receipt-row:last-child { border-bottom: none; }
.receipt-row .label { color: var(--text-muted); }
.receipt-total { background: var(--cream-dark); padding: 18px 30px; display: flex; justify-content: space-between; font-size: 18px; font-weight: 700; color: var(--maroon); }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--maroon-dark); color: #E8D9BE; margin-top: 60px; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding: 50px 20px 30px;
}
.footer-col h3, .footer-col h4 { color: #fff; margin-bottom: 14px; }
.footer-col a { display: block; margin-bottom: 8px; font-size: 14px; color: #E8D9BE; }
.footer-col a:hover { color: var(--gold); }
.footer-col p { font-size: 14px; margin: 0 0 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 16px 0; text-align: center; font-size: 13px; }

/* ---------------- Responsive ---------------- */

@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; gap: 30px; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }

  .nav-burger { display: block; z-index: 60; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 20px 20px;
    box-shadow: var(--shadow);
    gap: 4px;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
  .nav-toggle:checked ~ .main-nav { display: flex; }
  .main-nav a { padding: 12px 4px; border-bottom: 1px solid var(--border-soft); }
  .main-nav a:last-child { border-bottom: none; }
  .btn-donate-nav { text-align: center; margin-top: 6px; }

  .hero h1 { font-size: 28px; }
  .hero { padding: 70px 0 60px; }
  .hero::before { font-size: 300px; top: -90px; }

  section { padding: 50px 0; }
  .section-title h2 { font-size: 24px; }

  .about-img > div { height: 240px !important; font-size: 44px !important; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }

  .timing-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
  .timing-table th, .timing-table td { white-space: nowrap; }

  .top-strip-inner {
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 16px;
    text-align: center;
  }
  .top-strip-inner span { font-size: 12px; }

  .header-inner { padding: 10px 16px; flex-wrap: wrap; }
  .brand { gap: 8px; }
  .brand-om { font-size: 26px; }
  .brand-hi { font-size: 15px; }
  .brand-en { font-size: 10px; }

  .hero { padding: 54px 0 46px; }
  .hero h1 { font-size: 22px; line-height: 1.35; }
  .hero .sub { font-size: 14.5px; padding: 0 6px; }
  .hero-buttons { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-buttons .btn { width: 100%; }
  .hero::before { font-size: 220px; top: -60px; }

  section { padding: 40px 0; }
  .section-title { margin-bottom: 30px; }
  .section-title h2 { font-size: 21px; }
  .section-title p { font-size: 13.5px; }

  .cards-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .card { padding: 20px 14px; }
  .card h3 { font-size: 15px; }
  .card p { font-size: 13px; }

  .committee-grid { grid-template-columns: 1fr 1fr; gap: 16px; }

  .timing-table th, .timing-table td { padding: 10px 14px; font-size: 13.5px; }

  .form-card { padding: 22px 18px; }
  .amount-chips { gap: 8px; }
  .amount-chip { padding: 8px 14px; font-size: 13px; }

  .receipt-head { padding: 22px 18px; }
  .receipt-body { padding: 20px 18px; }
  .receipt-row { flex-direction: column; gap: 3px; padding: 10px 0; }
  .receipt-row span:last-child { font-weight: 600; word-break: break-word; }
  .receipt-total { padding: 16px 18px; font-size: 16px; flex-wrap: wrap; gap: 6px; }

  .footer-inner { padding: 40px 16px 24px; gap: 26px; }
  .footer-col h3 { font-size: 17px; }

  .btn { padding: 11px 22px; font-size: 14px; }
}

@media (max-width: 400px) {
  .cards-grid { grid-template-columns: 1fr; }
  .committee-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 20px; }
  .brand-en { display: none; }
}
