/* Common Styles for National Hindu Temple Federation */

/* Base styles */
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: #2C2C2C;
  background: #F7F5F0;
  overflow-x: hidden;
  font-size: 1.05rem;
}

/* Improved readability for paragraph text */
p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.font-serif {
  font-size: 1.05rem;
  line-height: 1.7;
}

.text-stone {
  font-size: 1.02rem;
}

.text-sm {
  font-size: 0.95rem;
}

.text-xs {
  font-size: 0.9rem;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: #290705;
}

a {
  color: #290705;
  transition: color .2s;
}

a:hover {
  color: #b08a2e;
}

:focus-visible {
  outline: 3px solid #d9ad44;
  outline-offset: 3px;
  border-radius: 2px;
}

[lang="ta"] * {
  font-family: 'Noto Sans Tamil', sans-serif !important;
}

[lang="hi"] * {
  font-family: 'Noto Sans Devanagari', sans-serif !important;
}

/* Hide non-English content by default - will be shown via JavaScript on language change */
[lang="ta"],
[lang="hi"] {
  display: none;
}

/* Scroll Progress */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #d9ad44, #ff6b2b);
  z-index: 9999;
  transition: width .1s linear;
}

/* Back to Top */
#back-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 42px;
  height: 42px;
  background: #290705;
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, background .2s, transform .2s;
  box-shadow: 0 4px 14px rgba(41, 7, 5, .3);
}

#back-top.show {
  opacity: 1;
  pointer-events: auto;
}

#back-top:hover {
  background: #d9ad44;
  color: #290705;
  transform: translateY(-3px);
}

/* Ornamental Divider */
.om-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 auto;
}

.om-divider::before,
.om-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d9ad44, transparent);
}

.om-sym {
  font-size: 1.4rem;
  color: #d9ad44;
  line-height: 1;
}

/* Eyebrow */
.eyebrow {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #b08a2e;
  font-family: 'Inter', sans-serif !important;
}

/* Heading Accent */
.heading-accent {
  position: relative;
  display: inline-block;
}


.reveal.visible .heading-accent::after,
.reveal-stagger.visible .heading-accent::after {
  transform: none;
}

/* Active Nav Link */
#navMenu a.nav-active {
  color: #d9ad44 !important;
  background: rgba(255, 255, 255, .06);
}

@media (min-width:1024px) {
.nav-link {
    position: relative;
    font-size: 1rem;
  }

  .nav-link::after {
    content: '';
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 2px;
    height: 2px;
    background: #d9ad44;
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .3s cubic-bezier(.22,1,.36,1);
  }

  .nav-link:hover::after,
  .nav-link.nav-active::after {
    transform: scaleX(1);
  }
}


/* Sticky Header */
#mainNav.nav-stuck {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: 0 6px 24px rgba(41, 7, 5, .28);
  animation: navDrop .35s cubic-bezier(.22, 1, .36, 1);
}

#navSpacer {
  display: none;
}

#navSpacer.active {
  display: block;
}

@keyframes navDrop {
  from {
    transform: translateY(-100%)
  }
  to {
    transform: translateY(0)
  }
}

/* Hamburger Menu */
.nav-toggle-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(.22,1,.36,1);
  position: relative;
  z-index: 50;
}

.nav-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(217, 173, 68, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -6px rgba(0,0,0,.4);
}

.nav-toggle-btn[aria-expanded="true"] {
  background: rgba(217, 173, 68, 0.16);
  border-color: rgba(217, 173, 68, 0.65);
}

.nav-toggle-btn span {
  display: block;
  height: 2px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-toggle-btn[aria-expanded="true"] span {
  background: #d9ad44;
}

.nav-toggle-btn span:nth-child(1) {
  width: 100%;
}

.nav-toggle-btn span:nth-child(2) {
  width: 70%;
}

.nav-toggle-btn span:nth-child(3) {
  width: 85%;
}

.nav-toggle-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.nav-toggle-btn[aria-expanded="true"] span:nth-child(3) {
  width: 100%;
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Overlay (scrim behind drawer) */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(86,20,31,.55), rgba(20,3,3,.72) 70%);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 35;
  opacity: 0;
  transition: opacity 0.35s ease;
  cursor: pointer;
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}

/* Hide mobile menu brand on desktop */
.mobile-menu-brand {
  display: none !important;
}

/* Icons + chevrons are drawer-only */
.nav-ico,
.nav-chevron {
  display: none;
}

@media (max-width:1023px) {
  .nav-toggle-btn {
    display: flex;
  }

  body.mobile-menu-open .nav-toggle-btn {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 50;
    background: rgba(217, 173, 68, 0.16);
  }

  #navMenu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: min(88vw, 380px);
    height: 100vh;
    height: 100dvh;
    background:
      radial-gradient(circle at 100% 0%, rgba(217,173,68,.10), transparent 45%),
      linear-gradient(165deg, rgba(41, 7, 5, 0.99) 0%, rgba(20, 3, 1, 0.99) 100%);
    padding: 5.5rem 1.1rem 1.5rem;
    overflow-y: auto;
    margin: 0;
    transform: translateX(100%);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: -12px 0 40px rgba(0, 0, 0, .35);
    border-left: 1px solid rgba(217, 173, 68, 0.18);
    z-index: 40;
    gap: 0.3rem;
  }

  /* Faint watermark emblem, purely decorative */
  #navMenu::after {
    content: '?';
    position: absolute;
    right: -1.2rem;
    bottom: -2rem;
    font-size: 12rem;
    line-height: 1;
    color: rgba(217, 173, 68, 0.05);
    pointer-events: none;
    font-family: 'EB Garamond', serif;
  }

  #navMenu.open {
    transform: translateX(0);
  }

  .mobile-menu-brand {
    display: flex !important;
    align-items: center;
    gap: .6rem;
    padding-bottom: .85rem;
    margin-bottom: .35rem;
    border-bottom: 1px solid rgba(217, 173, 68, 0.25);
  }

  .mobile-menu-brand img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
  }

  .mobile-menu-brand .om-sym {
    color: rgba(217, 173, 68, .5);
    font-size: 1.8rem;
  }

  .mobile-menu-brand-text {
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
  }

  .nav-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    font-size: .95rem;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(217, 173, 68, .85);
    transition: background .25s ease, color .25s ease, transform .25s cubic-bezier(.22,1,.36,1);
  }

  .nav-chevron {
    display: inline-flex;
    margin-left: auto;
    font-size: .8rem;
    color: rgba(217, 173, 68, .8);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity .25s ease, transform .25s cubic-bezier(.22,1,.36,1);
  }

  #navMenu a {
    padding: .6rem .85rem;
    margin: 3px 0;
    display: flex;
    align-items: center;
    gap: .8rem;
    font-size: 1.02rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    text-align: left;
    width: 100%;
    border-bottom: none;
    border-radius: 10px;
    position: relative;
    opacity: 0;
    transform: translateX(24px);
    transition: color 0.2s ease, background 0.2s ease, opacity 0.4s ease, transform 0.4s ease;
  }

  #navMenu.open a {
    opacity: 1;
    transform: translateX(0);
  }

  #navMenu.open li:nth-child(2) a { transition-delay: .06s; }
  #navMenu.open li:nth-child(3) a { transition-delay: .10s; }
  #navMenu.open li:nth-child(4) a { transition-delay: .14s; }
  #navMenu.open li:nth-child(5) a { transition-delay: .18s; }
  #navMenu.open li:nth-child(6) a { transition-delay: .22s; }
  #navMenu.open li:nth-child(7) a { transition-delay: .26s; }
  #navMenu.open li:nth-child(8) a { transition-delay: .30s; }
  #navMenu.open li:nth-child(9) a { transition-delay: .34s; }

  #navMenu a:hover,
  #navMenu a:active {
    color: #f0d698;
    background: rgba(217, 173, 68, 0.08);
  }

  #navMenu a:hover .nav-ico {
    background: rgba(217, 173, 68, 0.85);
    color: #290705;
    transform: scale(1.08);
  }

  #navMenu a:hover .nav-chevron {
    opacity: 1;
    transform: translateX(0);
  }

  #navMenu a.nav-active {
    background: rgba(217, 173, 68, 0.1);
  }

  #navMenu a.nav-active .nav-ico {
    background: #d9ad44;
    color: #290705;
  }

  #navMenu a.nav-active::after {
    content: '';
    position: absolute;
    left: -1.1rem;
    top: .3rem;
    bottom: .3rem;
    width: 3px;
    background: #d9ad44;
    border-radius: 0 3px 3px 0;
  }

  #navMenu li {
    list-style: none;
    width: 100%;
  }

  /* "Join Us" gets a standout pill treatment to draw the eye to the primary action */
  .mobile-menu-cta {
    margin-top: .5rem;
    padding-top: .65rem;
    border-top: 1px solid rgba(217, 173, 68, 0.18);
  }

  .mobile-menu-cta a {
    background: linear-gradient(135deg, #d9ad44, #b08a2e);
    color: #290705 !important;
    font-weight: 700;
    box-shadow: 0 8px 20px -8px rgba(217, 173, 68, .55);
  }

  #navMenu .mobile-menu-cta a:hover,
  #navMenu .mobile-menu-cta a:active {
    background: linear-gradient(135deg, #f0d698, #d9ad44) !important;
    color: #1a0301 !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -6px rgba(217, 173, 68, .65);
  }

  #navMenu .mobile-menu-cta a:hover .nav-ico {
    background: rgba(26, 3, 1, 0.25);
    color: #1a0301;
  }

  #navMenu .mobile-menu-cta a:hover .nav-chevron {
    color: #1a0301;
  }

  .mobile-menu-cta .nav-ico {
    background: rgba(41, 7, 5, 0.18);
    color: #290705;
  }

  body.mobile-menu-open {
    overflow: hidden;
  }
}

@media (max-width:1023px) and (prefers-reduced-motion: reduce) {
  #navMenu,
  #navMenu a,
  .nav-toggle-btn,
  .mobile-menu-overlay {
    transition: none !important;
  }
}

/* Animations */
@-webkit-keyframes fadeUp {
  from {
    opacity: 0;
    -webkit-transform: translateY(24px);
    transform: translateY(24px)
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
    transform: translateY(0)
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px)
  }
  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@-webkit-keyframes float {
  0%, 100% {
    -webkit-transform: translateY(0);
    transform: translateY(0)
  }
  50% {
    -webkit-transform: translateY(-10px);
    transform: translateY(-10px)
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0)
  }
  50% {
    transform: translateY(-10px)
  }
}

@-webkit-keyframes lamp {
  0%, 100% {
    -webkit-transform: rotate(-6deg);
    transform: rotate(-6deg)
  }
  50% {
    -webkit-transform: rotate(6deg);
    transform: rotate(6deg)
  }
}

@keyframes lamp {
  0%, 100% {
    transform: rotate(-6deg)
  }
  50% {
    transform: rotate(6deg)
  }
}

@-webkit-keyframes shimmer {
  from {
    background-position: -200% 0
  }
  to {
    background-position: 200% 0
  }
}

@keyframes shimmer {
  from {
    background-position: -200% 0
  }
  to {
    background-position: 200% 0
  }
}

@-webkit-keyframes heroGradientDrift {
  0%, 100% { background-position: 0% 0%, center; }
  50% { background-position: 100% 60%, center; }
}

@keyframes heroGradientDrift {
  0%, 100% { background-position: 0% 0%, center; }
  50% { background-position: 100% 60%, center; }
}

@-webkit-keyframes gradientDrift {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 60%; }
}

@keyframes gradientDrift {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 60%; }
}

.hero-eyebrow {
  -webkit-animation: fadeUp .8s .15s both;
  animation: fadeUp .8s .15s both;
}

.hero-h1 {
  -webkit-animation: fadeUp .8s .3s both;
  animation: fadeUp .8s .3s both;
}

.hero-sub {
  -webkit-animation: fadeUp .8s .45s both;
  animation: fadeUp .8s .45s both;
}

.hero-btns {
  -webkit-animation: fadeUp .8s .6s both;
  animation: fadeUp .8s .6s both;
}

.hero-timing {
  -webkit-animation: fadeUp .8s .75s both;
  animation: fadeUp .8s .75s both;
}

.lamp-anim {
  display: inline-block;
  -webkit-animation: lamp 3s ease-in-out infinite;
  animation: lamp 3s ease-in-out infinite;
  -webkit-transform-origin: top center;
  transform-origin: top center;
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  -webkit-transform: translateY(32px) scale(.98);
  transform: translateY(32px) scale(.98);
  -webkit-transition: opacity .7s cubic-bezier(.22, 1, .36, 1), -webkit-transform .7s cubic-bezier(.22, 1, .36, 1);
  transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1);
}

.reveal.visible {
  opacity: 1;
  -webkit-transform: translateY(0) scale(1);
  transform: translateY(0) scale(1);
}

.reveal-stagger>* {
  opacity: 0;
  -webkit-transform: translateY(24px);
  transform: translateY(24px);
  -webkit-transition: opacity .6s cubic-bezier(.22, 1, .36, 1), -webkit-transform .6s cubic-bezier(.22, 1, .36, 1);
  transition: opacity .6s cubic-bezier(.22, 1, .36, 1), transform .6s cubic-bezier(.22, 1, .36, 1);
}

.reveal-stagger.visible>*:nth-child(1) {
  opacity: 1;
  -webkit-transform: none;
  transform: none;
  -webkit-transition-delay: .05s;
  transition-delay: .05s
}

.reveal-stagger.visible>*:nth-child(2) {
  opacity: 1;
  -webkit-transform: none;
  transform: none;
  -webkit-transition-delay: .15s;
  transition-delay: .15s
}

.reveal-stagger.visible>*:nth-child(3) {
  opacity: 1;
  -webkit-transform: none;
  transform: none;
  -webkit-transition-delay: .25s;
  transition-delay: .25s
}

.reveal-stagger.visible>*:nth-child(4) {
  opacity: 1;
  -webkit-transform: none;
  transform: none;
  -webkit-transition-delay: .35s;
  transition-delay: .35s
}

.reveal-stagger.visible>*:nth-child(5) {
  opacity: 1;
  -webkit-transform: none;
  transform: none;
  -webkit-transition-delay: .45s;
  transition-delay: .45s
}

.reveal-stagger.visible>*:nth-child(6) {
  opacity: 1;
  -webkit-transform: none;
  transform: none;
  -webkit-transition-delay: .55s;
  transition-delay: .55s
}

/* HERO */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(41, 7, 5, .95) 0%, rgba(74, 26, 26, .78) 45%, rgba(176, 138, 46, .3) 100%),
    url('../images/hero-banner.png') center/cover no-repeat;
  background-size: 200% 200%, cover;
  -webkit-animation: heroGradientDrift 18s ease-in-out infinite;
  animation: heroGradientDrift 18s ease-in-out infinite;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23B08A2E' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 60%;
  height: 110%;
  background: radial-gradient(circle, rgba(176, 138, 46, .14) 0%, transparent 65%);
  pointer-events: none;
  -webkit-animation: float 7s ease-in-out infinite;
  animation: float 7s ease-in-out infinite;
  transform-origin: center;
}

/* Timing Bar */
.timing-bar {
  background: rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(176, 138, 46, .3);
  border-radius: 12px;
  padding: .9rem 1.5rem;
}

/* Section Bands */
.section-maroon {
  background: linear-gradient(135deg, #290705 0%, #1A0301 55%, #1A0301 100%);
  background-size: 180% 180%;
  -webkit-animation: gradientDrift 20s ease-in-out infinite;
  animation: gradientDrift 20s ease-in-out infinite;
}

.nav-bg {
  background: linear-gradient(90deg, #290705 0%, #4A1A1A 55%, #1A0301 100%);
}

.footer-bg {
  background: linear-gradient(160deg, #1A0301 0%, #290705 60%, #4A1A1A 100%);
  background-size: 180% 180%;
  -webkit-animation: gradientDrift 26s ease-in-out infinite;
  animation: gradientDrift 26s ease-in-out infinite;
}

/* Deity / Pooja Cards */
.deity-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(41, 7, 5, .08);
  transition: transform .3s, box-shadow .3s;
  border-bottom: 4px solid #B08A2E;
}

.deity-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(41, 7, 5, .15);
}

.deity-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform .5s;
}

.deity-card:hover img {
  transform: scale(1.04);
}
.hover\:bg-maroon-dk:hover{background: #d9ad44 !important;}
/* Team Cards (portrait framed like a deity aureole/prabhavali) */
.team-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.35rem 1.75rem 1rem;
  text-align: center;
  box-shadow: 0 2px 20px rgba(41, 7, 5, .08);
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s;
  margin-top:90px
}
.about-image{padding:10px;border-radius: 999;background: #fff;}
.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 42px rgba(41, 7, 5, .16);
}

.team-photo {
  width: 150px;
  height: 150px;
  margin: 0 auto 1.1rem;
  position: relative;
  top:-85px;
  margin-bottom: -55px;
}

.team-photo::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from 200deg, #B08A2E 0deg, #C85A14 90deg, #B08A2E 180deg, #D9B45C 270deg, #B08A2E 360deg);
}

.team-photo::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid #FFFDF7;
}

.team-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #FFFDF7;
  display: block;
  object-position: top;
}

.team-badge {
  display: inline-flex;
  align-items: center;
  background: #FBEDE4;
  color: #A34A12;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .32rem .85rem;
  border-radius: 999px;
  margin-bottom: .7rem;
}

.team-divider {
  width: 2rem;
  height: 2px;
  background: linear-gradient(90deg, #B08A2E, #C85A14);
  margin: .7rem auto;
  border-radius: 2px;
}
/* ═══ Team Hierarchy — State › Region › District › Zone ═══ */
.team-state-block { margin-bottom: 4.5rem; }

.team-state-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  margin-bottom: 2.25rem;
  background: linear-gradient(120deg, #56141f 0%, #3A0D15 100%);
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(58,13,21,.18);
}
.team-state-header .state-icon {
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #d9ad44;
  color: #3A0D15;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.team-state-header h3 {
  color: #fff;
  font-size: 1.35rem;
  margin: 0;
  letter-spacing: .02em;
}
.team-state-header .state-line { flex: 1; height: 1px; background: rgba(217,173,68,.35); }

/* Region (e.g. Cauvery Delta) — threaded with a vertical line + node dot */
.team-region-block {
  position: relative;
  margin: 0 0 2.25rem 1.25rem;
  padding-left: 1.75rem;
  border-left: 2px solid #d9ad44;
}
.team-region-block::before {
  content: '';
  position: absolute;
  left: -6px; top: .35rem;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #d9ad44;
  box-shadow: 0 0 0 3px #FAF6F0;
}
.team-region-header {
  font-family: 'EB Garamond', serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: #56141f;
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.team-region-header i { color: #C85A14; font-size: .95rem; }

/* District (e.g. Nagapattinam) — soft dashed card, sits inside the region */
.team-district-block {
  position: relative;
  margin: 0 0 1.5rem 0;
  padding: 1.1rem 1.35rem;
  background: rgba(255,255,255,.55);
  border: 1px dashed rgba(163,74,18,.35);
  border-radius: 10px;
}
.team-district-header {
  font-family: 'EB Garamond', serif;
  font-weight: 600;
  font-size: 1rem;
  color: #A34A12;
  margin-bottom: .9rem;
  display: flex;
  align-items: center;
  gap: .45rem;
}
.team-district-header i { font-size: .85rem; color: #d9ad44; }

/* Zone (e.g. Vedaranyam) — small uppercase pill, nested inside district */
.team-zone-block { margin: 0 0 1rem 0; }
.team-zone-label {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-family: 'Inter', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8C7B6A;
  padding: .3rem .75rem;
  background: #FBF3DE;
  border-radius: 999px;
  margin-bottom: .75rem;
}
.team-zone-label i { font-size: .68rem; }

/* When a state/region/district/zone row only has a single office bearer,
   don't let it stretch to 1/3 of the full section width and leave a huge
   empty gap beside the card — shrink the row to fit the card and center it. */
#state-team .flex.flex-wrap:has(> .team-card:only-child) {
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}
#state-team .flex.flex-wrap:has(> .team-card:only-child) > .team-card {
  width: 100% !important;
}

@media (max-width: 640px) {
  .team-region-block { margin-left: .5rem; padding-left: 1.1rem; }
  .team-district-block { padding: .9rem 1rem; }
}
.pooja-card {
  background: #fff;
  border-radius: 10px;
  border-left: 4px solid #C85A14;
  box-shadow: 0 2px 14px rgba(41, 7, 5, .07);
  transition: transform .3s, box-shadow .3s;
  padding: 1.25rem 1.5rem;
}

.pooja-card:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(41, 7, 5, .12);
}

/* Festival Cards */
.festival-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 14px rgba(41, 7, 5, .07);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}

.festival-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(41, 7, 5, .14);
}

.festival-card::before {
  content: '';
  display: block;
  height: 5px;
  background: linear-gradient(90deg, #B08A2E, #C85A14);
}

/* Magazine Cards */
.mag-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(41, 7, 5, .07);
  transition: transform .3s, box-shadow .3s;
}

.mag-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(41, 7, 5, .13);
}

.mag-card img {
  width: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s;
}

.mag-card:hover img {
  transform: scale(1.04);
}

/* Join Cards */
.join-card {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(176, 138, 46, .25);
  border-radius: 12px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background .3s, transform .3s;
}

.join-card:hover {
  background: rgba(255, 255, 255, .13);
  transform: translateY(-4px);
}

/* Form Styles */
.form-field {
  width: 100%;
  border: 1.5px solid #d9cebf;
  border-radius: 6px;
  padding: .7rem 1rem;
  font-size: .92rem;
  outline: none;
  background: #FAF6F0;
  transition: border-color .2s, box-shadow .2s;
  font-family: inherit;
  color: #3a2e20;
}

.form-field:focus {
  border-color: #d9ad44;
  box-shadow: 0 0 0 3px rgba(217, 173, 68, .15);
  background: #fff;
}

.form-field::placeholder {
  color: #b09a7a;
}

/* App Form Section */
.app-label {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  color: #290705;
  margin-bottom: .3rem;
}

.app-check {
  display: flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
  line-height: 1.4;
}

.app-check input {
  accent-color: #290705;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.app-form-section {
  font-family: 'Cinzel', Georgia, serif;
  font-size: .8rem;
  font-weight: 700;
  color: #B08A2E;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 1px solid #EFE7D5;
  padding-bottom: .5rem;
  margin-top: .5rem;
}

/* App Modal */
.app-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.app-modal.open {
  display: flex;
}

.app-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(58, 46, 32, .55);
  backdrop-filter: blur(2px);
}

.app-modal-panel {
  position: relative;
  background: #FFFDF7;
  border-radius: 1rem;
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  box-shadow: 0 25px 60px rgba(58, 46, 32, .35);
  display: flex;
  flex-direction: column;
}

.app-modal-scroll {
  overflow-y: auto;
  padding: 2.25rem;
}

.app-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #EFE7D5;
  color: #290705;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background .2s;
}

.app-modal-close:hover {
  background: #C85A14;
  color: #fff;
}

/* Donate Option */
.donate-option {
  border: 2px solid #e8d5b8;
  border-radius: 10px;
  padding: 1.25rem;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s;
  text-align: center;
}

.donate-option:hover {
  border-color: #B08A2E;
  background: #FBF3DE;
  transform: translateY(-3px);
}

.donate-option.selected {
  border-color: #C85A14;
  background: #FBEDE4;
}

/* Footer */
.footer-link:hover {
  color: #d9ad44;
  padding-left: 4px;
}

.footer-social:hover {
  background: #d9ad44;
  border-color: #d9ad44;
  color: #290705;
}

/* File Upload */
.file-upload {
  position: relative;
  border: 2px dashed #d9cebf;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  background: #FAF6F0;
  transition: border-color .2s, background .2s;
}

.file-upload:hover {
  border-color: #d9ad44;
  background: #F7F5F0;
}

.file-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: #5C5040;
  font-size: .85rem;
  cursor: pointer;
}

.file-upload-label i {
  font-size: 1.5rem;
  color: #B08A2E;
}

.file-list {
  margin-top: .5rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.file-list-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  color: #290705;
}

/* Member Card */
.member-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  box-shadow: 0 2px 14px rgba(41, 7, 5, .07);
  transition: transform .3s, box-shadow .3s, border-color .3s;
  border: 2px solid #e8d5b8;
}

.member-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(41, 7, 5, .12);
}

.member-card.selected {
  border-color: #C85A14;
  background: #FBEDE4;
}

.member-icon {
  font-size: 2rem;
  margin-bottom: .5rem;
}

/* Fee Badge */
.fee-badge {
  display: inline-block;
  background: #FBEDE4;
  color: #A34A12;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .25rem .7rem;
  border-radius: 999px;
  margin-bottom: .5rem;
}

/* Mobile Hero */
@media (max-width:575px) {
  .hero {
    min-height: 100svh;
  }
}

/* Temple Services Section */
.svc-root *{ box-sizing: border-box; }
.svc-root{ font-family: 'Mukta', -apple-system, sans-serif; color: #2C2C2C; }
.svc-root img{ max-width: 100%; display: block; }

/* Service Hero */
.svc-hero{
  background: #290705;
  color: #FAF6EE;
  padding: 76px 24px 0;
  position: relative;
  text-align: center;
}
.svc-hero-inner{ max-width: 680px; margin: 0 auto; padding-bottom: 64px; }
.svc-eyebrow{
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #d9ad44;
  font-weight: 600;
  display: block;
  margin-bottom: 18px;
}
.svc-h1{
  font-family: 'Yatra One', serif;
  font-weight: 400;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.2;
  margin: 0 0 18px;
}
.svc-hero-sub{
  font-size: 17px;
  line-height: 1.65;
  color: #EFDDCF;
  margin: 0 0 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.svc-hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* Service Buttons */
.svc-btn{
  position: relative;
  overflow: hidden;
  font-family: 'Mukta', -apple-system, sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s cubic-bezier(.22,1,.36,1), background .25s ease, border-color .25s ease, color .25s ease;
}
.svc-btn::before{
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.4), transparent);
  transform: skewX(-20deg);
  transition: left .6s cubic-bezier(.22,1,.36,1);
  pointer-events: none;
}
.svc-btn:hover::before{ left: 130%; }
.svc-btn svg{ width: 17px; height: 17px; position: relative; z-index: 1; }
.svc-btn span{ position: relative; z-index: 1; }
.svc-btn:hover{ transform: translateY(-3px); }
.svc-btn:active{ transform: translateY(-1px) scale(.97); transition-duration: .12s; }
.svc-btn-primary{ background: #d9ad44; color: #132239; }
.svc-btn-primary:hover{ background: #b08a2e; box-shadow: 0 14px 28px -10px rgba(176,138,46,.5); }
.svc-btn-ghost{ background: transparent; color: #FAF6EE; border-color: rgba(250,246,238,0.5); }
.svc-btn-ghost:hover{ border-color: #FAF6EE; background: rgba(250,246,238,0.08); box-shadow: 0 10px 24px -10px rgba(0,0,0,.3); }
.svc-btn:focus-visible{ outline: 2.5px solid #2F6FED; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce){
  .svc-btn, .svc-btn::before{ transition: none !important; }
  .svc-btn:hover{ transform: none; }
}

.svc-hero-divider{ display: block; width: 100%; height: auto; margin-bottom: -1px; }

/* Services */
.svc-services{ background: #FAF6EE; padding: 12px 24px 80px; }
.svc-wrap{ max-width: 1080px; margin: 0 auto; }

.svc-section-head{ text-align: center; max-width: 560px; margin: 0 auto 48px; }
.svc-section-head .svc-eyebrow{ color: #b08a2e; }
.svc-h2{
  font-family: 'Yatra One', serif;
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 34px);
  margin: 0 0 12px;
  color: #290705;
}
.svc-section-head p{
  font-size: 15.5px;
  line-height: 1.6;
  color: #5A6A7A;
  margin: 0;
}

.svc-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px 28px;
}

.svc-card{
  background: #FFF;
  border-radius: 100px 100px 14px 14px;
  padding: 56px 20px 25px;
  text-align: center;
  position: relative;
  margin-top: 32px;
  box-shadow: 0 2px 20px rgba(41, 7, 5, .08);
  transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s cubic-bezier(.22,1,.36,1);
}

.svc-card:hover{
  transform: translateY(-10px);
  box-shadow: 0 24px 45px rgba(41, 7, 5, .18);
}

.svc-icon{
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #56141f;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 5px #FAF6EE;
  transition: background .4s ease, box-shadow .4s ease;
}
.svc-icon svg{ width: 28px; height: 28px; color: #d9ad44; transition: transform .45s cubic-bezier(.34,1.56,.64,1), color .4s ease; }

.svc-card:hover .svc-icon{
  background: #d9ad44;
  box-shadow: 0 0 0 5px #FAF6EE, 0 8px 18px rgba(217, 173, 68, .4);
}
.svc-card:hover .svc-icon svg{
  color: #56141f;
  transform: scale(1.12) rotate(-8deg);
}

.svc-card h3{
  transition: color .3s ease;
}
.svc-card:hover h3{
  color: #56141f;
}
.svc-card p{
  font-size: 1.02rem;
  line-height: 1.6;
  color: #5c5040;
  margin: 0;
}

/* Testimonial */
.svc-testimonial{ background: #E8EDF2; padding: 64px 24px; }
.svc-quote-wrap{ max-width: 620px; margin: 0 auto; text-align: center; }
.svc-quote-mark{ font-family: 'Yatra One', serif; font-size: 48px; color: #b08a2e; line-height: 1; margin-bottom: 8px; }
.svc-quote{
  font-family: 'Yatra One', serif;
  font-weight: 400;
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.5;
  color: #132239;
  margin: 0 0 18px;
}
.svc-quote-author{ font-size: 14px; color: #5A6A7A; font-weight: 500; }

/* Trust indicators */
.svc-trust{ background: #FAF6EE; padding: 0 24px 72px; }
.svc-trust-row{
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.svc-pill{
  display: flex;
  align-items: center;
  gap: 9px;
  background: #FFFDF8;
  border: 1px solid #D9CEBF;
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 13.5px;
  font-weight: 500;
  color: #2C2C2C;
}
.svc-pill svg{ width: 16px; height: 16px; color: #b08a2e; flex-shrink: 0; }

/* CTA banner */
.svc-cta{
  background: #1A0301;
  color: #FAF6EE;
  padding: 56px 24px;
  text-align: center;
}
.svc-cta h2{
  font-family: 'Yatra One', serif;
  font-weight: 400;
  font-size: clamp(24px, 3vw, 30px);
  margin: 0 0 14px;
}
.svc-cta p{
  font-size: 15.5px;
  color: #EFDDCF;
  margin: 0 0 28px;
}
.svc-cta-contact{
  margin-top: 22px;
  font-size: 14px;
  color: #E7CFBE;
}
.svc-cta-contact a{ color: #d9ad44; text-decoration: none; font-weight: 600; }
.svc-cta-contact a:hover{ text-decoration: underline; }
.svc-cta-contact span{ margin: 0 10px; opacity: 0.5; }

@media (max-width: 560px){
  .svc-hero{ padding-top: 56px; }
  .svc-card{ padding-top: 50px; }
  .svc-cta-contact span{ display: block; margin: 6px 0; opacity: 0; height: 0; }
}

/* Service Cards - Modern UI */
.service-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 16px rgba(41, 7, 5, .07);
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s;
  border-top: 4px solid #d9ad44;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(41, 7, 5, .13);
}
.service-card:focus-within {
  outline: 2px solid #d9ad44;
  outline-offset: 2px;
}

/* Form Section */
.form-section {
  font-family: 'Cinzel', Georgia, serif;
  font-size: .8rem;
  font-weight: 700;
  color: #B08A2E;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 1px solid #EFE7D5;
  padding-bottom: .5rem;
  margin-top: 1rem;
  margin-bottom: .75rem;
}

/* Event Section Styles */
.evt-section *{ box-sizing: border-box; }
.evt-section{
  background: #F5F6F8;
  color: #290705;
  font-family: 'Inter', -apple-system, sans-serif;
  padding: 64px 24px;
}
.evt-wrap{ max-width: 1120px; margin: 0 auto; }
.evt-header{ margin-bottom: 40px; max-width: 620px; }
.evt-eyebrow{
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b08a2e;
  display: block;
  margin-bottom: 14px;
}
.evt-title{
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  margin: 0 0 12px;
  color: #290705;
}
.evt-sub{
  font-size: 16px;
  line-height: 1.6;
  color: #5A6A7A;
  margin: 0;
}

/* Event Controls */
.evt-controls{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  border-top: 1px solid #E4E6EA;
  border-bottom: 1px solid #E4E6EA;
  padding: 16px 0;
}
.evt-filters{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.evt-chip{
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 500;
  background: transparent;
  border: 1px solid #E4E6EA;
  color: #5A6A7A;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.evt-chip:hover{ border-color: #A34A12; color: #b08a2e; }
.evt-chip[aria-pressed="true"]{
  background: #A34A12;
  border-color: #A34A12;
  color: #fff;
}

/* Event Search */
.evt-search{
  position: relative;
  min-width: 220px;
  flex: 0 1 260px;
}
.evt-search input{
  width: 100%;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 14px;
  padding: 9px 14px 9px 34px;
  border: 1px solid #E4E6EA;
  border-radius: 8px;
  background: #FFFFFF;
  color: #290705;
}
.evt-search svg{
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px; height: 15px;
  color: #5A6A7A;
  pointer-events: none;
}

/* Event Grid */
.evt-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* Event Card */
.evt-card{
  background: #FFFFFF;
  border: 1px solid #E4E6EA;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  padding: 0;
  width: 100%;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.evt-card:hover{
  border-color: #C7CBD3;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(27,36,48,0.07);
}
.evt-card:focus-visible{
  outline: 2.5px solid #2F6FED;
  outline-offset: 2px;
}

.evt-media{ position: relative; height: 250px; background: #1B2430; overflow: hidden; }
.evt-media img{ width: 100%; height: 100%; object-fit: cover; display: block; }

.evt-badge{
  position: absolute;
  top: 12px;
  left: 12px;
  background: #FFFFFF;
  color: #6E5017;
  border-radius: 8px;
  padding: 7px 10px 6px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.evt-badge .day{
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  font-size: 18px;
  line-height: 1;
}
.evt-badge .mon{
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
  color: #B98B2E;
}

.evt-body{ padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }



.evt-meta{
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13.5px;
  color: #5A6A7A;
}
.evt-meta span{ display: flex; align-items: center; gap: 7px;font-size: 14px; }
.evt-meta svg{ width: 13px; height: 13px; flex-shrink: 0; color: #56141f; }

.evt-desc{
  font-size: 1.02rem;
  line-height: 1.55;
  color: #5c5040;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.evt-link{
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
  color: #56141f;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.evt-link svg{ width: 13px; height: 13px; transition: transform 0.15s ease; }
.evt-card:hover .evt-link svg{ transform: translateX(3px); }

/* Event Detail Page */
.evt-detail-card{
  background: #FFFFFF;
  border: 1px solid #E4E6EA;
  border-radius: 14px;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
}

.evt-detail-media{ position: relative; height: 300px; background: #1B2430; overflow: hidden; }
.evt-detail-media img{ width: 100%; height: 100%; object-fit: cover; display: block; }

.evt-detail-badge{
  position: absolute;
  top: 16px;
  left: 16px;
  background: #FFFFFF;
  color: #6E5017;
  border-radius: 8px;
  padding: 8px 12px 7px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.evt-detail-badge .day{
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  font-size: 24px;
  line-height: 1;
}
.evt-detail-badge .mon{
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 3px;
  color: #B98B2E;
}

.evt-detail-category{
  position: absolute;
  bottom: 16px;
  right: 16px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(41, 7, 5, 0.55);
  padding: 6px 10px;
  border-radius: 6px;
}

.evt-detail-body{ padding: 32px 36px 36px; }

.evt-detail-title{
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 32px;
  line-height: 1.25;
  margin: 0 0 20px;
  color: #290705;
}

.evt-detail-meta{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid #E4E6EA;
  border-bottom: 1px solid #E4E6EA;
  margin-bottom: 24px;
}

.evt-meta-item{ display: flex; gap: 12px; align-items: flex-start; }
.evt-meta-item svg{ width: 18px; height: 18px; color: #b08a2e; flex-shrink: 0; margin-top: 2px; }
.evt-meta-item .label{
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5A6A7A;
  margin-bottom: 3px;
}
.evt-meta-item .value{ font-size: 15px; font-weight: 500; color: #290705; }

.evt-detail-desc{
  font-size: 16px;
  line-height: 1.7;
  color: #5A6A7A;
  margin: 0 0 30px;
}

.evt-actions{ display: flex; flex-wrap: wrap; gap: 12px; }

.evt-btn{
  position: relative;
  overflow: hidden;
  font-family: 'Inter', -apple-system, sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 8px;
  border: 1px solid #E4E6EA;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s cubic-bezier(.22,1,.36,1), background .25s ease, border-color .25s ease, color .25s ease;
}
.evt-btn::before{
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.4), transparent);
  transform: skewX(-20deg);
  transition: left .6s cubic-bezier(.22,1,.36,1);
  pointer-events: none;
}
.evt-btn:hover::before{ left: 130%; }
.evt-btn svg{ width: 16px; height: 16px; position: relative; z-index: 1; }
.evt-btn span{ position: relative; z-index: 1; }
.evt-btn:hover{ transform: translateY(-3px); }
.evt-btn:active{ transform: translateY(-1px) scale(.97); transition-duration: .12s; }
.evt-btn-primary{ background: #A34A12; border-color: #A34A12; color: #fff; }
.evt-btn-primary:hover{ background: #8A3A12; border-color: #b08a2e; box-shadow: 0 14px 26px -10px rgba(163,74,18,.5); }
.evt-btn-secondary{ background: #FFFFFF; color: #290705; }
.evt-btn-secondary:hover{ border-color: #5A6A7A; box-shadow: 0 10px 22px -10px rgba(0,0,0,.2); }
.evt-btn:focus-visible{ outline: 2.5px solid #2F6FED; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce){
  .evt-btn, .evt-btn::before{ transition: none !important; }
  .evt-btn:hover{ transform: none; }
}

/* Back Link */
.back-link{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #A34A12;
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 20px;
  transition: color 0.2s;
}
.back-link:hover{ color: #b08a2e; }
.back-link svg{ width: 16px; height: 16px; }

/* Event Empty State */
.evt-empty{
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  color: #5A6A7A;
  font-size: 14px;
}

/* Responsive Event Styles */
@media (max-width: 640px){
  .evt-section{ padding: 40px 16px; }
  .evt-detail-media{ height: 200px; }
  .evt-detail-body{ padding: 24px 20px 28px; }
  .evt-detail-title{ font-size: 26px; }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    -webkit-animation: none !important;
    animation: none !important;
    -webkit-transition: none !important;
    transition: none !important;
  }

  .reveal,
  .reveal-stagger>* {
    opacity: 1 !important;
    -webkit-transform: none !important;
    transform: none !important;
  }
}

/* Button Micro-Interactions */
a, button {
  -webkit-tap-highlight-color: transparent;
}

/* -- Unified Button Animation System (.btn-anim) --
   Drop this class onto any <a> or <button> alongside its existing
   colour/spacing classes to get a consistent hover shine, lift,
   glow and press feedback across the whole site. */
.btn-anim {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform .3s cubic-bezier(.22,1,.36,1),
              box-shadow .3s cubic-bezier(.22,1,.36,1),
              background-color .3s ease,
              color .3s ease,
              border-color .3s ease;
}

/* Diagonal light sweep */
.btn-anim::before {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.4), transparent);
  transform: skewX(-20deg);
  transition: left .65s cubic-bezier(.22,1,.36,1);
  z-index: 1;
  pointer-events: none;
}

.btn-anim:hover::before {
  left: 130%;
}

/* Keep text/icons above the sweep layer */
.btn-anim > * {
  position: relative;
  z-index: 2;
}

.btn-anim:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -10px rgba(58, 13, 21, .38);
  background-color: #ffffff;
  color: #56141f;      /* maroon */
  border-color: #56141f;
}

.btn-anim:hover svg,
.btn-anim:hover i {
  color: #ffffff;
}

.btn-anim:active {
  transform: translateY(-1px) scale(.97);
  transition-duration: .12s;
  box-shadow: 0 6px 14px -6px rgba(58, 13, 21, .3);
}

.btn-anim:focus-visible {
  outline: 2.5px solid #2F6FED;
  outline-offset: 3px;
}

/* Optional: wrap a trailing arrow/icon in <span class="btn-arrow"> to
   have it nudge forward on hover, e.g. View Full Team <span class="btn-arrow">?</span> */
.btn-arrow {
  display: inline-block;
  transition: transform .3s cubic-bezier(.22,1,.36,1);
}

.btn-anim:hover .btn-arrow {
  transform: translateX(4px);
}

/* Filled maroon/gold buttons get a touch more lift + a warm glow tuned to their tone */
.btn-anim.bg-gold:hover,
.btn-anim.svc-btn-primary:hover {
  box-shadow: 0 14px 30px -10px rgba(176, 138, 46, .45);
}

.btn-anim.bg-maroon:hover {
  box-shadow: 0 14px 30px -10px rgba(58, 13, 21, .45);
}

@media (prefers-reduced-motion: reduce) {
  .btn-anim,
  .btn-anim::before,
  .btn-arrow {
    transition: none !important;
  }
  .btn-anim:hover {
    transform: none;
  }
  .svc-card,
  .svc-icon,
  .svc-icon svg,
  .svc-card h3 {
    transition: none !important;
  }
  .svc-card:hover {
    transform: none;
  }
  .svc-card:hover .svc-icon svg {
    transform: none;
  }
}


/* Generic tactile feedback for touch devices on cards */
@media (hover:none) {
  .deity-card:active,
  .team-card:active,
  .festival-card:active,
  .mag-card:active,
  .pooja-card:active {
    transform: scale(.98);
    transition: transform .15s ease;
  }
}

/* Icon Micro-Interactions */
.bg-saffron-lt {
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease;
}

.pooja-card:hover .bg-saffron-lt,
.flex.items-start.gap-3.bg-saffron-lt:hover {
  transform: scale(1.12) rotate(-5deg);
  box-shadow: 0 6px 16px rgba(200, 90, 20, .2);
}

.mag-card img {
  transition: transform .5s cubic-bezier(.22,1,.36,1);
}

.mag-card:hover img {
  transform: scale(1.08);
}

.festival-card .bg-maroon {
  transition: transform .3s cubic-bezier(.22,1,.36,1);
}

.festival-card:hover .bg-maroon {
  transform: scale(1.08) rotate(-3deg);
}

/* Responsive Section Rhythm (mobile) */
@media (max-width:767px) {
  main > section:not(.hero) {
    padding-top: 3.25rem !important;
    padding-bottom: 3.25rem !important;
  }

  .hero-btns {
    flex-direction: column;
  }

  .hero-btns a {
    text-align: center;
    width: 100%;
  }

  h1, h2, h3 {
    letter-spacing: normal;
  }
}

/* About Section Image Responsive */
@media (max-width:1023px) {
  .about-image {
    height: auto !important;
  }
}


@media (max-width:575px) {
  
  .about-absolute-elements {
    display: none;
  }
}

/* Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(217,173,68,.3);
  border-top-color: #d9ad44;
  border-radius: 9999px;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Loading screen */
#loading-screen {
  transition: opacity .5s ease;
}

/* Language Selector Button */
.lang-btn {
  transition: all 0.2s ease;
}

.lang-btn.bg-gold {
  background: #d9ad44;
  color: #132239;
  border-color: #d9ad44;
}

.lang-btn:hover {
  background: #d9ad44;
  color: #132239;
  border-color: #d9ad44;
}

/* Back button */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #5C5040;
  text-decoration: none;
  font-size: .85rem;
  transition: color .2s;
}

.back-btn:hover {
  color: #A34A12;
}

/* Submit button */
.submit-btn {
  width: 100%;
  background: #290705;
  color: #fff;
  font-weight: 600;
  padding: .85rem 1rem;
  border-radius: .5rem;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .1s;
}

.submit-btn:hover {
  background: #1A0301;
}

.submit-btn:active {
  transform: scale(.98);
}

/* Success page button */
.success-btn {
  display: inline-block;
  background: #290705;
  color: #fff;
  font-weight: 600;
  padding: .75rem 1.5rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: background .2s;
}

.success-btn:hover {
  background: #1A0301;
}

/* Marquee Scroll */
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
