:root {
  --saffron: #d96b14;
  --saffron-dark: #a9470a;
  --brown: #8b5e34;
  --light-brown: #f1dfc9;
  --cream: #fffaf3;
  --white: #ffffff;
  --ink: #2b2118;
  --muted: #6d5d4f;
  --line: #ead8c2;
  --shadow: 0 14px 34px rgba(90, 54, 20, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans Devanagari", "Mukta", "Hind", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  background: var(--saffron-dark);
  color: var(--white);
  font-size: 0.95rem;
}

.topbar__inner,
.nav__inner,
.section,
.footer__inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar__inner {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 250, 243, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.nav__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--saffron-dark);
}

.brand__mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--saffron), var(--brown));
  box-shadow: var(--shadow);
}

.brand__logo {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 6px 16px rgba(90, 54, 20, 0.16);
}

.brand__text span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--saffron);
  color: var(--white);
  font-size: 1.6rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 8px;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--light-brown);
  color: var(--saffron-dark);
}

.hero {
  min-height: calc(100vh - 112px);
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
  color: var(--white);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(43, 33, 24, 0.78), rgba(43, 33, 24, 0.24));
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1100ms ease;
}

.hero-slide.is-active { opacity: 1; }

.hero__content {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0 54px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: #ffe4c1;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  line-height: 1.08;
}

h2 {
  color: var(--saffron-dark);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.2;
}

h3 {
  color: var(--brown);
  font-size: 1.25rem;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero .lead {
  color: #fff4e6;
  font-size: clamp(1.18rem, 3vw, 1.55rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

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

.btn--light {
  background: var(--white);
  color: var(--saffron-dark);
}

.btn--outline {
  border: 2px solid var(--saffron);
  color: var(--saffron-dark);
  background: transparent;
}

.section {
  padding: 64px 0;
}

.section--tint {
  width: 100%;
  max-width: none;
  background: var(--white);
  border-block: 1px solid var(--line);
}

.section--tint > .section__inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(90, 54, 20, 0.06);
}

.section--tint .card {
  background: var(--cream);
}

.stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-left: 5px solid var(--saffron);
}

.stat strong {
  display: block;
  color: var(--saffron-dark);
  font-size: 1.8rem;
  line-height: 1;
}

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(105deg, rgba(39, 28, 18, 0.86), rgba(65, 43, 24, 0.56)), url("../../Images/Main%20Picture.jpeg") center/cover no-repeat;
  color: var(--white);
  padding: 68px 0 48px;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: inherit;
  filter: saturate(0.95);
}

.page-hero--about { background-image: linear-gradient(105deg, rgba(39, 28, 18, 0.86), rgba(65, 43, 24, 0.56)), url("../../Images/2025%20Program%20Opening.jpeg"); }
.page-hero--events { background-image: linear-gradient(105deg, rgba(39, 28, 18, 0.86), rgba(65, 43, 24, 0.56)), url("../../Images/Certificate%20Distribution.jpeg"); }
.page-hero--gallery { background-image: linear-gradient(105deg, rgba(39, 28, 18, 0.86), rgba(65, 43, 24, 0.56)), url("../../Images/Main%20Picture.jpeg"); }
.page-hero--news { background-image: linear-gradient(105deg, rgba(39, 28, 18, 0.86), rgba(65, 43, 24, 0.56)), url("../../Images/Bharne%20Mama%20Satkar.jpeg"); }
.page-hero--matrimony { background-image: linear-gradient(105deg, rgba(39, 28, 18, 0.86), rgba(65, 43, 24, 0.56)), url("../../Images/Ahilya%20Devi%20Jayanti.jpeg"); }
.page-hero--registration { background-image: linear-gradient(105deg, rgba(39, 28, 18, 0.86), rgba(65, 43, 24, 0.56)), url("../../Images/Certificate%20Distribution%202.jpeg"); }
.page-hero--contact { background-image: linear-gradient(105deg, rgba(39, 28, 18, 0.86), rgba(65, 43, 24, 0.56)), url("../../Images/Meet%20With%20mahadev%20Jankar.jpeg"); }
.page-hero--yojana { background-image: linear-gradient(105deg, rgba(39, 28, 18, 0.86), rgba(65, 43, 24, 0.56)), url("../../Images/Dhangar%20Reservation%20Meeting.jpeg"); }

.scheme-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
}

.scheme-nav a {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--saffron-dark);
  font-weight: 800;
}

.scheme-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.scheme-card { scroll-margin-top: 104px; }
.scheme-card h3 { margin-bottom: 8px; }
.scheme-card p { margin-bottom: 10px; }
.scheme-card a { color: var(--saffron-dark); font-weight: 800; text-decoration: underline; }
.scheme-note { font-size: 0.95rem; color: var(--muted); }

.page-hero .lead {
  color: #fff4e6;
}

.event {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  align-items: start;
}

.datebox {
  min-height: 96px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--light-brown);
  color: var(--saffron-dark);
  text-align: center;
  font-weight: 900;
}

.datebox span {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.photo-tile {
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  min-height: 220px;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: zoom-in;
  box-shadow: 0 8px 20px rgba(90, 54, 20, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

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

.photo-tile img {
  width: 100%;
  height: 205px;
  object-fit: cover;
  transition: transform 320ms ease;
}

.photo-tile:hover img {
  transform: scale(1.04);
}

.photo-tile span {
  display: block;
  padding: 10px 12px 12px;
  color: var(--brown);
  font-weight: 800;
}

.photo-tile--news img {
  object-fit: contain;
  background: #f6f0e8;
}

.photo-slider {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  border-radius: 8px;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.slider-track {
  display: flex;
  height: 100%;
  transition: transform 600ms ease;
}

.slide {
  min-width: 100%;
  height: 430px;
  position: relative;
  cursor: zoom-in;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.slide__caption {
  position: absolute;
  inset: auto 0 0;
  padding: 24px;
  color: var(--white);
  font-weight: 800;
  font-size: 1.15rem;
  background: linear-gradient(transparent, rgba(43, 33, 24, 0.88));
}

.slider-control {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(43, 33, 24, 0.72);
  font-size: 1.55rem;
  cursor: pointer;
  transform: translateY(-50%);
}

.slider-control--prev { left: 14px; }
.slider-control--next { right: 14px; }

.committee-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.committee-member {
  padding: 18px;
  border-left: 4px solid var(--saffron);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(90, 54, 20, 0.06);
}

.committee-member strong,
.committee-member span {
  display: block;
}

.committee-member strong { color: var(--saffron-dark); }
.committee-member span { margin-top: 4px; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(24, 17, 10, 0.8);
  backdrop-filter: blur(9px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__content {
  width: min(980px, 100%);
  max-height: 92vh;
  position: relative;
}

.lightbox__content img {
  width: 100%;
  max-height: calc(92vh - 64px);
  object-fit: contain;
  border-radius: 8px;
  background: var(--white);
}

.lightbox__caption {
  margin: 8px 0 0;
  color: var(--white);
  font-weight: 800;
  text-align: center;
}

.lightbox__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font-size: 1.5rem;
  cursor: pointer;
}

.form {
  display: grid;
  gap: 16px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--brown);
  font-weight: 800;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 52px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

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

.notice {
  padding: 16px;
  border-radius: 8px;
  background: var(--light-brown);
  color: var(--saffron-dark);
  font-weight: 800;
}

.list {
  padding-left: 0;
  list-style: none;
}

.list li {
  padding: 10px 0 10px 30px;
  position: relative;
  border-bottom: 1px solid var(--line);
}

.list li::before {
  content: "•";
  position: absolute;
  left: 8px;
  color: var(--saffron);
  font-size: 1.4rem;
  line-height: 1;
}

.map {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: 8px;
}

.site-footer {
  background: var(--ink);
  color: #fff4e6;
  padding: 36px 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
}

.footer__inner a {
  display: block;
  margin: 6px 0;
  color: #ffe4c1;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.page-fade {
  animation: pageFade 500ms ease both;
}

@keyframes pageFade {
  from { opacity: 0; filter: blur(4px); }
  to { opacity: 1; filter: blur(0); }
}

@media (max-width: 820px) {
  .topbar__inner {
    display: none;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    inset: 72px 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

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

  .nav-links a {
    min-height: 48px;
  }

  .hero {
    min-height: 620px;
    background-position: 58% center;
  }

  .grid--3,
  .grid--2,
  .footer__inner,
  .gallery,
  .committee-grid,
  .scheme-grid {
    grid-template-columns: 1fr;
  }

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

  .actions .btn {
    width: 100%;
  }

  .slide { height: 330px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  html {
    scroll-behavior: auto;
    transition: none !important;
  }
}
