/* =========================================
   ROOT VARIABLES
   ========================================= */
:root {
    --sandstone: #F7F1E6;
    --sandstone-deep: #F0E7D6;
    --maroon: #6E1E2B;
    --maroon-deep: #4E141E;
    --marigold: #E7A33E;
    --gold: #A9782F;
    --ink: #2A1A12;
    --line: #DFCFAF;
    --white: #FFFDF8;
    --max-w: 1120px;
    --shadow-soft: 0 10px 30px rgba(78, 20, 30, 0.08);
    --shadow-hover: 0 15px 40px rgba(78, 20, 30, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

body {
    background: var(--sandstone);
    color: var(--ink);
    font-family: 'Mukta', sans-serif;
    font-size: 1.125rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, .display {
    font-family: 'Cormorant Garamond', serif;
    color: var(--maroon-deep);
    font-weight: 700;
    line-height: 1.2;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: 20px; }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2vw, 2rem); }
a { color: inherit; text-decoration: none; transition: all 0.3s ease; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }
::selection { background: var(--marigold); color: var(--maroon-deep); }

.reveal { opacity: 0; transform: translateY(40px); transition: all 0.9s cubic-bezier(0.25, 1, 0.5, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* =========================================
   HEADER — FULL LOGO, NO CROPPING
   ========================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(180deg, #FFFDF7 0%, #FDF6E3 100%);
    box-shadow: 0 4px 20px rgba(122, 31, 31, 0.08);
    border-bottom: 1px solid #d4a017;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 8px 4%;
    min-height: 110px;
    gap: 16px;
}

/* Brand / Logo */
.brand a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo {
    height: 100px;
    width: auto;
    max-width: 320px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(122, 31, 31, 0.12));
    transition: transform 0.3s ease;
}

.brand a:hover .brand-logo {
    transform: scale(1.04);
}

/* Desktop Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 1rem;
    font-weight: 600;
}

.nav-links a {
    position: relative;
    padding: 4px 0;
    color: var(--maroon-deep);
    white-space: nowrap;
    font-family: 'Mukta', sans-serif;
    transition: color 0.3s ease;
}
.nav-links a:hover { color: var(--maroon); }
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--marigold);
    transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }

/* Desktop Auth Buttons */
.auth-group { display: flex; align-items: center; gap: 14px; }

.btn-auth {
    font-size: 0.95rem;
    font-weight: 600;
    padding: 7px 18px;
    border-radius: 25px;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.btn-login { border: 1.5px solid var(--maroon); color: var(--maroon); }
.btn-login:hover { background: var(--maroon); color: var(--white); }
.btn-reg { background: var(--marigold); color: var(--maroon-deep); }
.btn-reg:hover { background: #d6912e; }

.nav-cta {
    background: var(--maroon);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(110,30,43,0.3);
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    white-space: nowrap;
}
.nav-cta:hover {
    background: var(--maroon-deep);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(110,30,43,0.4);
}

/* User Pill (Logged In) */
.user-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--maroon-deep);
    background: rgba(110, 30, 43, 0.05);
    padding: 4px 6px 4px 14px;
    border-radius: 30px;
    border: 1px solid var(--line);
    white-space: nowrap;
}
.btn-logout {
    font-size: 0.85rem;
    font-weight: 600;
    color: #a51d24;
    background: #fce8e6;
    border: 1px solid #f7c8c4;
    padding: 5px 14px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.25s ease;
}
.btn-logout:hover {
    background: #a51d24;
    color: #ffffff;
    border-color: #a51d24;
    transform: translateY(-1px);
}

/* Mobile-only links & hamburger (hidden desktop) */
.mobile-only { display: none; }
.mobile-nav-controls { display: none; align-items: center; gap: 10px; }

.mobile-user-link {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--maroon-deep);
    background: rgba(231, 163, 62, 0.18);
    border: 1px solid var(--gold);
    padding: 5px 12px;
    border-radius: 20px;
    text-decoration: none;
    white-space: nowrap;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.menu-btn span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--maroon-deep);
    margin: 5px 0;
    border-radius: 2px;
    transition: 0.3s;
}

/* =========================================
   CAROUSEL — HERITAGE PORTAL
   ========================================= */
.carousel-section {
    position: relative;
    width: 100%;
    min-height: 660px;
    height: calc(88vh - 70px);
    max-height: 780px;
    background:
        radial-gradient(circle at 50% 35%, rgba(255, 230, 180, 0.35) 0%, transparent 65%),
        linear-gradient(180deg,
            rgba(255, 253, 248, 0.78) 0%,
            rgba(247, 241, 230, 0.65) 50%,
            rgba(240, 231, 214, 0.82) 100%),
        url('../banner/banner1.avif') center center / cover no-repeat;
    border-bottom: 2px solid var(--line);
    overflow: hidden;
}

.portal-ornament {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
    pointer-events: none;
}

.sacred-banner {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--maroon);
    letter-spacing: 2px;
    padding: 2px 14px;
    background: rgba(255, 253, 248, 0.85);
    border: 1px solid var(--line);
    border-radius: 20px;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.85s cubic-bezier(0.65, 0, 0.35, 1);
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px 30px;
    box-sizing: border-box;
}

.portal-grid {
    max-width: var(--max-w);
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 210px 1fr 210px;
    align-items: center;
    gap: 36px;
}

.temple-pillar {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.pillar-cap {
    background: var(--maroon);
    color: var(--white);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 8px 4px;
    text-transform: uppercase;
}
.pillar-body {
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pillar-item { display: flex; flex-direction: column; }
.p-time {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--maroon-deep);
    line-height: 1.1;
}
.p-label {
    font-size: 0.8rem;
    color: #6B5744;
    font-weight: 600;
    margin-top: 2px;
}
.pillar-sep {
    height: 1px;
    background: dashed var(--line);
    width: 70%;
    margin: 0 auto;
}
.pillar-base { height: 6px; background: var(--marigold); }

.sanctum-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s;
}
.carousel-slide.active .sanctum-center {
    opacity: 1;
    transform: translateY(0);
}

.sanctum-arch {
    position: relative;
    flex: 0 0 240px;
}
.sanctum-image-wrap {
    width: 240px;
    height: 320px;
    border-radius: 120px 120px 14px 14px;
    overflow: hidden;
    border: 4px solid var(--white);
    outline: 2px solid var(--gold);
    box-shadow: var(--shadow-hover);
    background: var(--sandstone-deep);
}
.sanctum-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.6s ease;
}
.carousel-slide.active .sanctum-image-wrap img { transform: scale(1.04); }

.arch-keystone {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    background: var(--white);
    border: 1.5px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stele-card { flex: 1; text-align: left; }
.stele-subtitle {
    display: inline-block;
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
}
.stele-card h2 {
    color: var(--maroon-deep);
    font-size: clamp(2rem, 3vw, 2.7rem);
    line-height: 1.2;
    margin-bottom: 12px;
}
.stele-card p {
    color: #4A3729;
    font-size: 1.08rem;
    line-height: 1.65;
    margin-bottom: 22px;
}
.stele-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 253, 248, 0.95);
    border: 1.5px solid var(--gold);
    color: var(--maroon-deep);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(78, 20, 30, 0.1);
}
.carousel-btn:hover {
    background: var(--maroon);
    color: var(--white);
    border-color: var(--maroon);
    transform: translateY(-50%) scale(1.08);
}
.prev-btn { left: 20px; }
.next-btn { right: 20px; }

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 20;
    padding: 6px 14px;
    background: rgba(247, 241, 230, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    border: 1px solid var(--line);
}
.indicator {
    width: 32px;
    height: 4px;
    background: rgba(110, 30, 43, 0.18);
    border-radius: 2px;
    cursor: pointer;
    overflow: hidden;
}
.indicator-fill {
    height: 100%;
    width: 0%;
    background: var(--maroon);
    border-radius: 2px;
    transition: width 5s linear;
}

/* =========================================
   HERO / SECTIONS
   ========================================= */
section { padding: 70px 0; }
.section-head { margin-bottom: 44px; }
.section-head .kicker {
    color: var(--gold);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.section-head p { color: #4A3729; margin-top: 14px; font-size: 1.05rem; }

.hero { background: var(--white); padding: 60px 0; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.hero p.lead {
    font-size: 1.2rem;
    max-width: 44ch;
    color: #4A3729;
    margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }

.btn-primary {
    background: var(--maroon);
    color: var(--white);
    padding: 12px 28px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 30px;
    border: 1px solid var(--maroon);
    box-shadow: 0 4px 15px rgba(110,30,43,0.2);
    transition: all 0.3s ease;
    display: inline-block;
}
.btn-primary:hover {
    background: var(--maroon-deep);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(110,30,43,0.3);
}
.btn-secondary {
    padding: 12px 28px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid var(--gold);
    color: var(--maroon-deep);
    border-radius: 30px;
    transition: all 0.3s ease;
    display: inline-block;
}
.btn-secondary:hover {
    background: var(--gold);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(169,120,47,0.3);
}

.hero-quick {
    display: flex;
    gap: 0;
    border-top: 1px solid var(--line);
    padding-top: 22px;
    flex-wrap: wrap;
}
.hero-quick div { flex: 1; padding-right: 16px; min-width: 80px; }
.hero-quick div+div { border-left: 1px solid var(--line); padding-left: 16px; }
.hero-quick .num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: var(--maroon);
    font-weight: 700;
    line-height: 1;
}
.hero-quick .lbl { font-size: 0.9rem; font-weight: 500; color: #6B5744; margin-top: 4px; }

.arch-frame {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 520px;
    margin: 0 auto;
    justify-self: center;
    overflow: hidden;
    border-radius: 200px 200px 10px 10px;
    box-shadow: var(--shadow-hover);
    transition: transform 0.4s ease;
}
.arch-frame:hover { transform: translateY(-10px); }
.arch-frame img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
    transition: transform 0.6s ease;
}
.arch-frame:hover img { transform: scale(1.05); }
.arch-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(78,20,30,0.02), rgba(78,20,30,0.40));
    pointer-events: none;
}
.arch-frame .diya-row {
    z-index: 2;
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}
.arch-frame .diya-row span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--marigold);
    box-shadow: 0 0 10px var(--marigold);
    animation: flicker 2s infinite alternate;
}
@keyframes flicker {
    0% { opacity: 0.7; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1.1); }
}

.about { background: var(--sandstone); border-bottom: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; align-items: center; }
.about-figure {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}
.about-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.about-figure:hover img { transform: scale(1.03); }
.about-text p { color: #4A3729; margin-bottom: 16px; font-size: 1.08rem; }

.timings { background: var(--white); }
.timing-board {
    background: var(--maroon-deep);
    border: 2px solid var(--gold);
    padding: 8px;
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
}
.timing-inner {
    border: 1px solid rgba(231,163,62,0.5);
    padding: 32px 28px;
    border-radius: 8px;
}
.timing-inner h3 { color: var(--white); font-size: 1.8rem; margin-bottom: 4px; }
.timing-inner .sub {
    color: var(--marigold);
    font-size: 1rem;
    margin-bottom: 24px;
    display: block;
    font-weight: 600;
    letter-spacing: 1px;
}
.timing-rows { display: flex; flex-direction: column; }
.timing-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 14px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.2);
    color: var(--sandstone);
    transition: background 0.3s;
    flex-wrap: wrap;
    gap: 4px 8px;
}
.timing-row:hover {
    background: rgba(255,255,255,0.05);
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 4px;
}
.timing-row:last-child { border-bottom: none; }
.timing-row .name { font-size: 1.05rem; font-weight: 500; }
.timing-row .time {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    color: var(--marigold);
    font-weight: 700;
}
.timing-note {
    margin-top: 24px;
    font-size: 0.95rem;
    color: rgba(247,241,230,0.8);
    background: rgba(255,255,255,0.05);
    padding: 14px 16px;
    border-radius: 6px;
    border-left: 4px solid var(--marigold);
}

.festivals {
    background: var(--sandstone-deep);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.fest-list { display: flex; flex-direction: column; gap: 14px; }
.fest-row {
    display: grid;
    grid-template-columns: 130px 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 24px 28px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    border: 1px solid transparent;
    transition: all 0.3s ease;
}
.fest-row:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--line);
}
.fest-date {
    font-family: 'Cormorant Garamond', serif;
    color: var(--maroon);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.2;
}
.fest-date small {
    display: block;
    font-family: 'Mukta', sans-serif;
    font-size: 0.8rem;
    color: var(--gold);
    font-weight: 600;
    margin-top: 2px;
    text-transform: uppercase;
}
.fest-name { font-size: 1.2rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.fest-desc { font-size: 1rem; color: #6B5744; }
.fest-tag {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--maroon);
    border: 2px solid var(--maroon);
    padding: 6px 16px;
    border-radius: 30px;
    white-space: nowrap;
    background: transparent;
    transition: all 0.3s;
}
.fest-row:hover .fest-tag { background: var(--maroon); color: var(--white); }

.gallery { background: var(--white); }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.gallery-item {
    aspect-ratio: 1;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94);
}
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(110,30,43,0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover::after { opacity: 1; }

.visit { background: var(--sandstone); border-top: 1px solid var(--line); }
.visit-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: center; }
.info-list { display: flex; flex-direction: column; gap: 28px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; }
.info-item svg {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    color: var(--maroon);
    background: rgba(231,163,62,0.2);
    padding: 5px;
    border-radius: 50%;
}
.info-item h4 {
    font-family: 'Mukta', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 2px;
    color: var(--ink);
}
.info-item p { color: #5c4737; font-size: 1rem; line-height: 1.5; }

.map-block {
    background: var(--sandstone-deep);
    border: 2px solid var(--white);
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    box-shadow: var(--shadow-hover);
    min-height: 200px;
}
.map-block iframe { width: 100%; height: 100%; border: 0; }

/* =========================================
   FOOTER
   ========================================= */
footer {
    background: var(--maroon-deep);
    color: var(--sandstone);
    padding: 60px 0 24px;
}
.foot-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
footer h5 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    color: var(--marigold);
    margin-bottom: 16px;
}
footer .foot-about {
    color: rgba(247,241,230,0.8);
    font-size: 1rem;
    max-width: 40ch;
    line-height: 1.7;
}
footer .foot-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 1rem;
}
footer .foot-links a {
    color: rgba(247,241,230,0.8);
    position: relative;
    display: inline-block;
    width: fit-content;
}
footer .foot-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: var(--marigold);
    transition: width 0.3s;
}
footer .foot-links a:hover { color: var(--marigold); }
footer .foot-links a:hover::after { width: 100%; }
.foot-bottom {
    border-top: 1px solid rgba(247,241,230,0.15);
    padding-top: 20px;
    font-size: 0.9rem;
    color: rgba(247,241,230,0.6);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

/* =========================================
   DEVOTIONAL ANIMATIONS — BELLS, AGARBATTI, FLOWERS
   ========================================= */
.temple-bell {
    position: absolute;
    top: 0;
    z-index: 25;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-origin: top center;
    animation: bellSway 3.5s ease-in-out infinite alternate;
    transition: transform 0.3s ease;
}
.bell-left { left: 45px; animation-delay: 0.2s; }
.bell-right { right: 45px; animation-delay: 0.7s; }
.bell-chain {
    width: 2px;
    height: 55px;
    background: repeating-linear-gradient(180deg,
        var(--gold) 0, var(--gold) 6px,
        var(--maroon) 6px, var(--maroon) 10px);
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
}
.bell-body {
    position: relative;
    font-size: 2.2rem;
    line-height: 1;
    filter: drop-shadow(0 4px 8px rgba(78, 20, 30, 0.25));
    transition: transform 0.15s ease;
}
.temple-bell:hover { animation: ringFast 0.6s ease-in-out infinite alternate; }

@keyframes bellSway {
    0% { transform: rotate(4deg); }
    50% { transform: rotate(-4deg); }
    100% { transform: rotate(3deg); }
}
@keyframes ringFast {
    0% { transform: rotate(14deg); }
    100% { transform: rotate(-14deg); }
}

.sound-wave {
    position: absolute;
    bottom: -6px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--marigold);
    opacity: 0;
    pointer-events: none;
}
.temple-bell.ringing .sound-wave { animation: soundPulse 0.8s ease-out forwards; }
@keyframes soundPulse {
    0% { transform: scale(0.5); opacity: 0.9; }
    100% { transform: scale(2.2); opacity: 0; }
}

.agarbatti-stand {
    position: absolute;
    top: -24px;
    right: 18px;
    width: 14px;
    height: 26px;
    z-index: 10;
}
.stick {
    position: absolute;
    bottom: 0;
    left: 6px;
    width: 2.5px;
    height: 24px;
    background: #3e2723;
    transform: rotate(-12deg);
    border-radius: 1px;
}
.incense-glow {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 3.5px;
    height: 3.5px;
    border-radius: 50%;
    background: #ff5722;
    box-shadow: 0 0 6px #ff3d00, 0 0 10px #ff9800;
    animation: emberPulse 1.8s infinite alternate;
}
@keyframes emberPulse {
    0% { opacity: 0.6; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1.3); }
}

.smoke {
    position: absolute;
    top: -10px;
    left: 0;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, rgba(160, 150, 140, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(4px);
    opacity: 0;
    pointer-events: none;
}
.smoke-1 { animation: driftSmoke 3s infinite ease-out; }
.smoke-2 { animation: driftSmoke 3.4s infinite ease-out 1.5s; }
@keyframes driftSmoke {
    0% { transform: translate(0, 0) scale(0.6); opacity: 0.65; }
    50% { transform: translate(-10px, -22px) scale(1.4); opacity: 0.35; }
    100% { transform: translate(14px, -45px) scale(2.2); opacity: 0; }
}

.flower-shower-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 18;
}
.falling-petal {
    position: absolute;
    top: -50px;
    background-image: url('https://img.icons8.com/color/96/marigold.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 4px 6px rgba(110, 30, 43, 0.25));
    will-change: transform, top;
    pointer-events: none;
    animation: realFlowerFall linear forwards;
}
@keyframes realFlowerFall {
    0% {
        top: -60px;
        transform: translateX(0) rotate(0deg) rotateY(0deg) scale(0.8);
        opacity: 0;
    }
    12% {
        opacity: 1;
        transform: translateX(calc(var(--drift) * 0.2)) rotate(45deg) rotateY(45deg) scale(1);
    }
    85% { opacity: 0.95; }
    100% {
        top: 105%;
        transform: translateX(var(--drift)) rotate(360deg) rotateY(360deg) scale(0.9);
        opacity: 0;
    }
}

/* =========================================
   RESPONSIVE — TABLET (<= 980px)
   ========================================= */
@media (max-width: 980px) {
    .carousel-section {
        height: auto;
        min-height: unset;
        max-height: unset;
        padding: 50px 0 60px;
    }
    .portal-grid { grid-template-columns: 1fr; gap: 24px; }
    .temple-pillar { display: none; }
    .sanctum-center { flex-direction: column; text-align: center; gap: 20px; }
    .stele-card { text-align: center; }
    .stele-actions { justify-content: center; }
    .sanctum-arch { flex: 0 0 auto; }
    .sanctum-image-wrap { width: 200px; height: 270px; }
    .carousel-btn { width: 38px; height: 38px; font-size: 1rem; }
    .prev-btn { left: 8px; }
    .next-btn { right: 8px; }
}

@media (max-width: 480px) {
    .portal-ornament { display: none; }
    .stele-actions a { width: 100%; text-align: center; }
}

/* =========================================
   RESPONSIVE — TABLET (<= 860px)
   ========================================= */
@media (max-width: 860px) {
    .nav-links {
        position: fixed;
        top: 90px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid var(--line);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        padding: 0;
        box-shadow: none;
    }
    .nav-links.open {
        max-height: 480px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    .nav-links a {
        padding: 14px 28px;
        border-top: 1px solid var(--line);
        width: 100%;
        font-size: 1.05rem;
    }
    .mobile-only { display: block; }
    .auth-group { display: none !important; }
    .nav-cta { display: none; }
    .menu-btn { display: block; }
    .mobile-nav-controls { display: flex; }

    .hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .arch-frame { height: 380px; max-width: 340px; }
    .about-grid { grid-template-columns: 1fr; gap: 32px; }
    .visit-grid { grid-template-columns: 1fr; gap: 32px; }
    .fest-row { grid-template-columns: 1fr; gap: 10px; padding: 18px 20px; }
    .fest-tag { justify-self: start; }
    .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    section { padding: 50px 0; }

    .nav { min-height: 90px; padding: 6px 4%; }
    .brand-logo { height: 60px; max-width: 200px; }

    .temple-bell { top: -4px; }
    .bell-chain { height: 35px; }
    .bell-body { font-size: 1.7rem; }
    .bell-left { left: 14px; }
    .bell-right { right: 14px; }
}

/* =========================================
   RESPONSIVE — MOBILE (<= 600px)
   ========================================= */
@media (max-width: 600px) {
    .carousel-section { min-height: 100vh; max-height: 700px; }
    .slide-image { min-height: 200px; flex: 0 0 45%; }
    .slide-content { flex: 0 0 55%; padding: 20px 16px; }
    .carousel-btn { width: 34px; height: 34px; font-size: 0.9rem; }
    .prev-btn { left: 6px; }
    .next-btn { right: 6px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .hero-quick { flex-direction: column; gap: 12px; border-top: none; padding-top: 0; }
    .hero-quick div {
        padding-right: 0;
        border-left: none !important;
        padding-left: 0;
        border-bottom: 1px solid var(--line);
        padding-bottom: 12px;
    }
    .hero-quick div:last-child { border-bottom: none; padding-bottom: 0; }
    .arch-frame { height: 300px; max-width: 280px; border-radius: 120px 120px 10px 10px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions a { text-align: center; }
    .timing-inner { padding: 16px 12px; }
    .timing-row { padding: 10px 0; flex-direction: column; align-items: stretch; }
    .foot-grid { grid-template-columns: 1fr; gap: 28px; }
    .nav { padding: 6px 16px; min-height: 80px; }
    .brand-logo { height: 78px; max-width: 170px; }
    .wrap { padding: 0 16px; }
}

/* Authentication Section & Card Styling */
.auth-section {
    padding: 50px 20px;
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 30%, rgba(231, 163, 62, 0.12) 0%, transparent 70%);
}

.auth-card {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    background: var(--white);
    padding: 40px 48px;
    border-radius: 20px;
    border: 1.5px solid var(--line);
    box-shadow: 0 12px 40px rgba(78, 20, 30, 0.08);
}



/* 6-Column Grid Layout for Flexiblity */
.auth-card form.auth-form-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px 24px;
}

/* 2 items in a row: 50% width */
.grid-half {
    grid-column: span 3;
}

/* 3 items in a row: Contact, State, City */
.grid-third {
    grid-column: span 2;
}

/* Full Width for Button & Alerts */
.grid-full,
.auth-card .msg {
    grid-column: 1 / -1;
}

/* Mobile Responsive */
@media (max-width: 820px) {
    .auth-card {
        padding: 24px 18px;
    }
    
    .auth-card form.auth-form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .grid-half,
    .grid-third,
    .grid-full {
        grid-column: 1 / -1;
    }
}






.auth-card h2 { 
    color: var(--maroon-deep); 
    margin-bottom: 28px; 
    text-align: center; 
    font-size: 2.3rem;
    font-family: 'Cormorant Garamond', serif;
}

/* 2-Column Desktop Grid for inputs */
.auth-card form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 24px;
}

.form-group { 
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

/* Make submit button, alerts, and switch take full row */
.auth-card .btn,
.auth-card .switch,
.auth-card .msg {
    grid-column: 1 / -1;
}

.auth-card label { 
    display: block; 
    font-weight: 600; 
    margin-bottom: 6px; 
    color: var(--ink); 
    font-size: 0.95rem;
}

.auth-card input,
.auth-card select { 
    width: 100%; 
    padding: 12px 14px; 
    border: 1.5px solid var(--line); 
    border-radius: 8px; 
    font-size: 1rem; 
    box-sizing: border-box; 
    background: #FFFDF9; 
    font-family: 'Mukta', sans-serif;
    color: var(--ink);
    transition: all 0.25s ease;
}

.auth-card select {
    cursor: pointer;
}

.auth-card input:focus,
.auth-card select:focus { 
    outline: none; 
    border-color: var(--marigold); 
    box-shadow: 0 0 0 3px rgba(231, 163, 62, 0.18);
    background: #FFFFFF;
}

.auth-card .btn { 
    width: 100%; 
    padding: 13px; 
    background: var(--maroon); 
    color: var(--white); 
    border: none; 
    border-radius: 30px; 
    font-size: 1.08rem; 
    font-weight: 700; 
    cursor: pointer; 
    transition: 0.3s; 
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(110, 30, 43, 0.2);
}

.auth-card .btn:hover { 
    background: var(--maroon-deep); 
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(110, 30, 43, 0.3);
}

.msg { 
    padding: 12px 14px; 
    border-radius: 8px; 
    margin-bottom: 8px; 
    font-size: 0.95rem; 
}

.msg-error { 
    background: #FCE8E6; 
    color: #A51D24; 
    border: 1px solid #F7C8C4; 
}

.msg-success { 
    background: #E6F4EA; 
    color: #137333; 
    border: 1px solid #CEEAD6; 
}

.switch { 
    text-align: center; 
    margin-top: 10px; 
    font-size: 0.95rem; 
    color: var(--ink);
}

.switch a { 
    color: var(--maroon); 
    font-weight: 700; 
    text-decoration: none; 
}

.switch a:hover { 
    text-decoration: underline; 
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .auth-card {
        padding: 28px 18px;
    }
    
    .auth-card form {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Mobile User & Sitaram Jap Container */
.mobile-user-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.mobile-user-link {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--maroon-deep);
    background: rgba(231, 163, 62, 0.18);
    border: 1px solid var(--gold);
    padding: 2px 10px;
    border-radius: 12px;
    text-decoration: none;
    white-space: nowrap;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.mobile-sitaram-link {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--white);
    background: var(--maroon);
    border: 1px solid var(--gold);
    padding: 2px 10px;
    border-radius: 12px;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.3;
    box-shadow: 0 2px 4px rgba(110, 30, 43, 0.2);
    transition: background 0.3s;
}

.mobile-sitaram-link:hover {
    background: var(--maroon-deep);
    color: var(--marigold);
}


/* =========================================
   STATE WISE SITARAM COUNT SECTION
   ========================================= */
.sitaram-count-section {
    background: var(--sandstone);
    border-bottom: 1px solid var(--line);
    padding: 60px 0;
}

.sitaram-card {
    background: var(--white);
    border: 2px solid var(--line);
    border-radius: 16px;
    padding: 36px 32px;
    box-shadow: var(--shadow-soft);
    max-width: 820px;
    margin: 0 auto;
}

.sitaram-selector-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.sitaram-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--maroon-deep);
}

.custom-select-wrapper {
    position: relative;
    flex: 1;
    min-width: 240px;
}

.state-select {
    width: 100%;
    padding: 12px 18px;
    font-size: 1.05rem;
    font-family: 'Mukta', sans-serif;
    font-weight: 600;
    color: var(--maroon-deep);
    background-color: var(--white);
    border: 2px solid var(--gold);
    border-radius: 30px;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(78, 20, 30, 0.05);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236E1E2B'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 20px;
}

.state-select:focus {
    border-color: var(--maroon);
    box-shadow: 0 0 0 4px rgba(231, 163, 62, 0.25);
}

.sitaram-table-container {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--line);
}

.sitaram-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    background: var(--white);
}

.sitaram-table th {
    background: var(--maroon);
    color: var(--white);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 700;
    padding: 14px 20px;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--gold);
}

.sitaram-table td {
    padding: 16px 20px;
    font-size: 1.1rem;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
}

.sitaram-table tr:hover td {
    background-color: rgba(231, 163, 62, 0.08);
}

.col-sr {
    width: 15%;
    text-align: center;
    font-weight: 700;
    color: var(--maroon-deep);
}

.sitaram-table th.col-sr {
    text-align: center;
}

.col-state {
    width: 45%;
    font-weight: 600;
}

.col-count {
    width: 40%;
    text-align: right;
}

.sitaram-table th.col-count {
    text-align: right;
}

.highlight-count {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem !important;
    font-weight: 700;
    color: var(--maroon) !important;
    letter-spacing: 1px;
}

@media (max-width: 600px) {
    .sitaram-card {
        padding: 24px 16px;
    }
    
    .sitaram-selector-wrap {
        flex-direction: column;
        align-items: stretch;
    }
    
    .sitaram-table th, 
    .sitaram-table td {
        padding: 12px 14px;
        font-size: 0.95rem;
    }
    
    .highlight-count {
        font-size: 1.3rem !important;
    }
}

/* =========================================
   CITY DETAILS PAGE STYLING
   ========================================= */
.city-details-section {
    background: var(--sandstone);
    min-height: calc(100vh - 220px);
    padding: 40px 0 70px;
    border-bottom: 1px solid var(--line);
}

.city-details-nav {
    margin-bottom: 24px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--maroon);
    background: var(--white);
    padding: 8px 18px;
    border-radius: 25px;
    border: 1px solid var(--line);
    box-shadow: 0 2px 6px rgba(78, 20, 30, 0.05);
    transition: all 0.3s ease;
}

.back-link:hover {
    background: var(--maroon);
    color: var(--white);
    transform: translateX(-3px);
}

.city-card-custom {
    max-width: 900px;
}

.table-total-row {
    background: var(--maroon-deep);
}

.table-total-row th {
    color: var(--white);
    font-family: 'Mukta', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    padding: 16px 20px;
    border-top: 2px solid var(--gold);
    border-bottom: none;
}

.table-total-row .col-sr {
    text-align: center;
    color: var(--marigold);
}

.table-total-row .total-accent {
    color: var(--marigold) !important;
    font-size: 1.7rem !important;
}

.font-bold {
    font-weight: 600;
}