:root {
  --maroon-dark: #430707;
  --maroon: #7c1010;
  --maroon-soft: #9b2412;
  --saffron: #c96a12;
  --gold: #f4b400;
  --gold-light: #ffe8a2;
  --cream: #fff8ef;
  --cream-deep: #fff0da;
  --text: #3a241d;
  --muted: #6a574d;
  --white: #ffffff;
  --shadow: 0 18px 42px rgba(67, 20, 10, 0.12);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --transition: all 0.3s ease;
  --nav-gradient: linear-gradient(90deg, var(--maroon-dark), var(--maroon), var(--saffron));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(244, 180, 0, 0.09), transparent 24%),
    linear-gradient(to bottom, #fffdf9, #fff1df);
  color: var(--text);
  overflow-x: hidden;
}

body.lang-mr {
  font-family: 'Khand', sans-serif;
  line-height: 1.7;
}

body.lang-en {
  font-family: "Segoe UI", Arial, sans-serif;
}

body.lang-mr h1,
body.lang-mr h2,
body.lang-mr h3,
body.lang-mr h4,
body.lang-mr .nav-link,
body.lang-mr .nav-donate-btn,
body.lang-mr .mandal-title,
body.lang-mr .mandal-subtitle,
body.lang-mr .section-mini,
body.lang-mr .lang-text,
body.lang-mr .footer-links-list a,
body.lang-mr small,
body.lang-mr .sacred-line,
body.lang-mr .alert-label,
body.lang-mr .ticker-track span,
body.lang-mr .event-badge {
  font-family: 'Khand', sans-serif;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
}

/* HEADER */
.pravesh-header {
  background: linear-gradient(180deg, #fff9f0 0%, #fffdf9 100%);
}

.pravesh-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
}

.pravesh-left,
.pravesh-right {
  flex-shrink: 0;
}

.main-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.pravesh-center {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.title-banner {
  width: min(100%, 430px);
  max-height: 90px;
  margin: 0 auto 8px;
  object-fit: contain;
}

.sacred-line {
  margin: 0;
  font-size: 0.8rem;
  color: var(--saffron);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mandal-title {
  margin: 4px 0;
  font-size: 1.25rem;
  color: var(--maroon);
  font-weight: 900;
  line-height: 1.2;
}

.mandal-subtitle {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 600;
}

.pravesh-right {
  display: flex;
  gap: 8px;
}

.heritage-pic {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(124, 16, 16, 0.12);
  background: #fff;
  padding: 2px;
}

.gold-divider {
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* NAVBAR */
.darshan-navbar {
  background: var(--nav-gradient);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.darshan-navbar .navbar-brand,
.darshan-navbar .nav-link {
  color: #fff !important;
}

.darshan-navbar .nav-link {
  font-weight: 700;
  padding: 0.9rem 1rem !important;
  border-radius: 999px;
  transition: var(--transition);
}

.darshan-navbar .nav-link:hover,
.darshan-navbar .nav-link.active {
  color: var(--gold-light) !important;
}

.nav-live-icon {
  height: 38px;
  width: auto;
}

.nav-donate-btn {
  background: linear-gradient(135deg, #ffd54f, var(--gold));
  color: #4c2d00;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 900;
  border: none;
  box-shadow: 0 10px 20px rgba(244, 180, 0, 0.24);
}

/* FLOATING LANGUAGE TOGGLE */
.lang-floating-toggle {
  position: fixed;
  top: 150px;
  right: 16px;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--nav-gradient);
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255,255,255,0.12);
}

.lang-text {
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.lang-text-en {
  opacity: 0.65;
}

.lang-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  margin: 0;
}

.lang-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.lang-slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: rgba(255,255,255,0.22);
  border-radius: 999px;
  transition: 0.3s ease;
}

.lang-slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s ease;
}

.lang-switch input:checked + .lang-slider {
  background: var(--gold);
}

.lang-switch input:checked + .lang-slider::before {
  transform: translateX(20px);
}

body.lang-en .lang-text-mr {
  opacity: 0.65;
}

body.lang-en .lang-text-en {
  opacity: 1;
}

body.lang-mr .lang-text-mr {
  opacity: 1;
}

body.lang-mr .lang-text-en {
  opacity: 0.65;
}

/* ALERT BAR */
.top-alert-bar {
  width: 100%;
  background: var(--nav-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
  min-height: 50px;
  z-index: 999;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.alert-label {
  background: rgba(255, 255, 255, 0.08);
  padding: 12px 18px;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.alert-ticker {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.ticker-track {
  display: inline-flex;
  white-space: nowrap;
  animation: scroll-left 40s linear infinite;
}

.ticker-track span {
  padding: 0 40px;
  font-size: 15px;
  font-weight: 500;
}

@keyframes scroll-left {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.alert-ticker:hover .ticker-track {
  animation-play-state: paused;
}

/* PAGE HERO */
.page-hero-section {
  padding: 28px 0 16px;
}

.page-hero-box {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,243,220,0.96));
  border: 1px solid rgba(124, 16, 16, 0.10);
  border-radius: var(--radius-xl);
  padding: 30px 22px;
  box-shadow: var(--shadow);
}

.page-hero-box h2 {
  margin: 0;
  font-size: 2rem;
  color: var(--maroon);
  font-weight: 900;
}

.page-hero-box p:last-child {
  max-width: 720px;
  margin: 14px auto 0;
  color: var(--muted);
  line-height: 1.8;
}

/* SECTION HEAD */
.section-head {
  margin-bottom: 28px;
}

.section-mini {
  margin-bottom: 8px;
  color: var(--saffron);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 0;
  font-size: 1.9rem;
  color: var(--maroon);
  font-weight: 900;
}

/* FEATURED EVENT */
.featured-event-section {
  padding: 18px 0 54px;
}

.featured-event-box {
  display: grid;
  gap: 24px;
  align-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.97), rgba(255,242,220,0.97));
  border: 1px solid rgba(124, 16, 16, 0.10);
  border-radius: 30px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.featured-event-image-wrap {
  border-radius: 24px;
  overflow: hidden;
}

.featured-event-image {
  width: 100%;
  min-height: 320px;
  object-fit: cover;
}

.event-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff0c6, #ffe39d);
  color: var(--maroon);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.featured-event-content h3 {
  margin: 0 0 12px;
  font-size: 1.8rem;
  color: var(--maroon);
  font-weight: 900;
}

.event-meta-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}

.event-meta-list li {
  margin-bottom: 6px;
  color: var(--muted);
  line-height: 1.7;
}

.featured-event-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

/* EVENT GRID */
.events-list-section {
  padding: 0 0 58px;
}

.events-grid {
  display: grid;
  gap: 18px;
}

.event-card {
  background: linear-gradient(180deg, #fffdf8, #fff1de);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(124, 16, 16, 0.10);
}

.event-card-image-wrap {
  overflow: hidden;
}

.event-card-image {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.event-card-content {
  padding: 22px 18px;
}

.event-card-content h3 {
  margin: 0 0 10px;
  color: var(--maroon);
  font-size: 1.15rem;
  font-weight: 900;
}

.event-date {
  margin-bottom: 6px;
  color: var(--muted);
}

.event-card-content p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.75;
}

/* EVENT NOTE */
.event-note-section {
  padding: 0 0 58px;
}

.event-note-box {
  background: linear-gradient(135deg, #5b0d0d, #8d1511, #c96a12);
  color: #fff;
  border-radius: 30px;
  padding: 30px 22px;
  box-shadow: var(--shadow);
}

.event-note-box h2 {
  margin: 0;
  font-size: 2rem;
  font-weight: 900;
}

.event-note-box p:last-child {
  max-width: 760px;
  margin: 14px auto 0;
  line-height: 1.8;
  color: rgba(255,255,255,0.92);
}

/* FOOTER */
.shrine-footer-section {
  background: linear-gradient(180deg, #4a0808, #6b0f0f);
  padding: 52px 0 34px;
  color: #fff;
}

.shrine-grid {
  display: grid;
  gap: 20px;
}

.shrine-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 24px;
  padding: 22px 18px;
  backdrop-filter: blur(4px);
}

.shrine-card h4 {
  margin-bottom: 16px;
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffd87b;
}

.footer-logo {
  width: 72px;
  margin-bottom: 14px;
}

.shrine-card p,
.shrine-card a,
.footer-links-list li {
  color: rgba(255,255,255,0.88);
  line-height: 1.8;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-list li {
  margin-bottom: 8px;
}

.footer-links-list a:hover {
  color: #ffe8a3;
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.social-icons a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd54f, var(--gold));
  color: #4c2d00;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 900;
}

.site-footer {
  background: #1d1d1d;
  color: #fff;
  padding: 16px 0;
}

/* SCROLL TOP */
#scrollTopBtn {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 999;
  width: 48px;
  height: 48px;
  display: none;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--maroon), var(--saffron));
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 8px 22px rgba(124, 16, 16, 0.28);
  cursor: pointer;
}

/* TABLET */
@media (min-width: 768px) {
  .pravesh-wrap {
    padding: 16px 24px;
  }

  .title-banner {
    max-height: 110px;
  }

  .main-logo {
    width: 72px;
    height: 72px;
  }

  .mandal-title {
    font-size: 1.75rem;
  }

  .mandal-subtitle {
    font-size: 1rem;
  }

  .heritage-pic {
    width: 60px;
    height: 60px;
  }

  .page-hero-box h2,
  .section-head h2,
  .event-note-box h2 {
    font-size: 2.4rem;
  }

  .featured-event-box,
  .shrine-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* DESKTOP */
@media (min-width: 992px) {
  .pravesh-wrap {
    padding: 18px 36px;
  }

  .main-logo {
    width: 140px;
    height: 140px;
  }

  .title-banner {
    max-height: 120px;
  }

  .mandal-title {
    font-size: 2.1rem;
  }

  .heritage-pic {
    width: 82px;
    height: 82px;
  }

  .featured-event-box {
    grid-template-columns: 1.02fr 1fr;
  }

  .shrine-grid {
    grid-template-columns: 1.1fr 1fr 0.9fr;
  }
}

/* MOBILE */
@media (max-width: 768px) {
  .top-alert-bar {
    min-height: 46px;
  }

  .alert-label {
    padding: 10px 12px;
    font-size: 13px;
  }

  .ticker-track span {
    font-size: 13px;
    padding: 0 25px;
  }

  .lang-floating-toggle {
    top: 132px;
    right: 10px;
    padding: 7px 10px;
    gap: 6px;
  }

  .lang-text {
    font-size: 11px;
  }

  .lang-switch {
    width: 40px;
    height: 22px;
  }

  .lang-slider::before {
    width: 16px;
    height: 16px;
  }

  .lang-switch input:checked + .lang-slider::before {
    transform: translateX(18px);
  }
}

@media (max-width: 575px) {
  .pravesh-wrap {
    padding: 10px 10px 12px;
    gap: 8px;
  }

  .main-logo {
    width: 54px;
    height: 54px;
  }

  .pravesh-right {
    gap: 4px;
  }

  .heritage-pic {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .title-banner {
    max-height: 64px;
    margin-bottom: 6px;
  }

  .mandal-title {
    font-size: 1rem;
  }

  .mandal-subtitle {
    font-size: 0.78rem;
  }

  .page-hero-box,
  .featured-event-box,
  .event-card-content,
  .event-note-box {
    padding: 20px 16px;
  }

  .page-hero-box h2,
  .event-note-box h2 {
    font-size: 1.65rem;
  }

  .featured-event-content h3 {
    font-size: 1.4rem;
  }

  .darshan-navbar .nav-link {
    padding: 0.7rem 0.2rem !important;
  }
}