/* =====================
   Sanatan Theme Styles
   ===================== */
:root {
    --saffron: #d97706;
    /* gerua */
    --saffron-700: #b45309;
    --maroon: #7a1f1f;
    --maroon-900: #581616;
    --gold: #d4af37;
    --cream: #fffaf0;
    --ink: #1f2937;
    --card: #ffffff;
    --ring: rgba(212, 175, 55, 0.4);
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: 'Noto Serif', 'Noto Serif Devanagari', serif;
    background: var(--cream);
    color: var(--ink);
}

.container {
    width: min(1120px, 94%);
    margin: 24px auto
}

/* Banner */
.banner {
    position: relative;
    width: 100%;
    max-height: 300px;
    overflow: hidden;
    border-bottom: 4px double var(--gold)
}

.banner img {
    width: 100%;
    height: 300px;
    display: block;
    filter: saturate(1.05) contrast(1.02)
}

.banner .overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 18px;
    background: linear-gradient(to top, rgba(0, 0, 0, .45), rgba(0, 0, 0, 0));
    color: #fff
}

.banner h1 {
    margin: 0;
    font-size: clamp(26px, 5vw, 44px);
    letter-spacing: .5px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .35)
}

.banner p {
    margin: 6px 0 0;
    opacity: .95
}

.sanatan-gradient::before {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 6px;
    background: linear-gradient(90deg, var(--saffron), var(--gold), var(--maroon));
}

/* Om medallion */
.logo-om {
    position: absolute;
    top: 14px;
    left: 14px;
    background: radial-gradient(circle at 35% 35%, var(--gold) 0%, #f6e7a1 40%, var(--gold) 70%);
    color: #7a1f1f;
    border: 3px solid var(--gold);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25)
}

/* Mantra ticker */
.mantra-bar {
    background: linear-gradient(90deg, var(--maroon-900), var(--maroon));
    color: #fef3c7;
    border-top: 1px solid rgba(255, 255, 255, .15);
    border-bottom: 1px solid rgba(0, 0, 0, .15);
    overflow: hidden
}

.mantra-track {
    white-space: nowrap;
    display: inline-block;
    padding: 8px 0;
    animation: scroll 28s linear infinite;
    font-size: 14px
}

@keyframes scroll {
    0% {
        transform: translateX(100%)
    }

    100% {
        transform: translateX(-100%)
    }
}

/* Nav */
.nav {
    display: flex;
    gap: 16px;
    padding: 10px 16px;
    background: #fff0e6;
    border-bottom: 1px solid rgba(122, 31, 31, .15);
    position: sticky;
    top: 0;
    z-index: 9
}

.nav a {
    position: relative;
    text-decoration: none;
    color: var(--maroon);
    padding: 6px 10px;
    border-radius: 10px;
    font-weight: 600
}

.nav a:hover {
    color: #fff;
    background: linear-gradient(90deg, var(--saffron), var(--maroon));
    box-shadow: 0 0 0 2px var(--ring) inset
}

/* Cards & UI */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px
}

.card {
    background: var(--card);
    border: 1px solid rgba(212, 175, 55, .35);
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04)
}

.card h2,
.card h3 {
    margin-top: 0;
    color: var(--maroon)
}

.btn {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--gold);
    background: #fff;
    cursor: pointer;
    text-decoration: none;
    color: var(--maroon);
    font-weight: 600
}

.btn:hover {
    background: #fff7e6
}

.btn-solid {
    background: linear-gradient(90deg, var(--saffron), var(--maroon));
    color: #fff;
    border-color: transparent
}

.btn-solid:hover {
    filter: brightness(1.05)
}

.btn-outline {
    background: #fff;
    color: var(--maroon);
    border: 2px solid var(--maroon)
}

.input,
.select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(122, 31, 31, .25);
    border-radius: 10px;
    background: #fff
}

.label {
    display: block;
    margin: 6px 0;
    font-weight: 700;
    color: var(--maroon)
}

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

.list li {
    padding: 8px 0;
    border-bottom: 1px dashed rgba(212, 175, 55, .45)
}

.notice-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #3b2f2f
}

.notice-link:hover {
    text-decoration: underline;
    color: var(--maroon)
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    border-radius: 12px;
    border: 2px solid rgba(212, 175, 55, .35);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06)
}

.form {
    max-width: 560px;
    margin: 0 auto
}

.auth {
    max-width: 420px;
    margin: 24px auto
}

/* Footer */
.site-footer {
    margin-top: 28px;
    padding: 18px 12px;
    background: #fff0e6;
    border-top: 2px solid var(--gold);
    text-align: center
}

.footer-mantra {
    margin-top: 6px;
    font-weight: 700;
    color: var(--maroon)
}

/* Utility */
.dev {
    font-family: 'Noto Serif Devanagari', 'Noto Serif', serif
}
/* About split layout */
.about-split {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center
}

.about-text {
    flex: 1 1 320px
}

.about-slider {
    flex: 1 1 320px
}

/* Simple slider */
.slider {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 2px solid rgba(212, 175, 55, .35)
}

.slides {
    display: flex;
    transition: transform .5s ease
}

.slide {
    min-width: 100%
}

.slide img {
    display: block;
    width: 100%;
    height: 400px
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: rgba(0, 0, 0, .35);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    cursor: pointer
}

.slider-nav:hover {
    background: rgba(0, 0, 0, .5)
}

.slider-nav.prev {
    left: 8px
}

.slider-nav.next {
    right: 8px
}

.slider-dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    padding: 8px
}

.slider-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: 1px solid #fff;
    background: rgba(0, 0, 0, .3);
    cursor: pointer
}

.slider-dots .dot.active {
    background: #fff
}
/* Minimal CSS lightbox using :target */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .85);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 50
}

.lightbox img {
    max-width: 92vw;
    max-height: 90vh;
    border-radius: 12px;
    border: 2px solid rgba(212, 175, 55, .35)
}

.lightbox:target {
    display: flex
}

.lb-close {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 28px;
    color: #fff;
    text-decoration: none;
    background: rgba(0, 0, 0, .5);
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center
}
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 14px
}

.tag {
    padding: 6px 10px;
    border: 1px solid rgba(212, 175, 55, .45);
    border-radius: 999px;
    background: #fff;
    cursor: pointer
}

.tag.is-active {
    background: linear-gradient(90deg, var(--saffron), var(--maroon));
    color: #fff;
    border-color: transparent
}
/* Masonry Gallery */
.masonry {
    column-count: 1;
    column-gap: 16px
}

@media (min-width:640px) {
    .masonry {
        column-count: 2
    }
}

@media (min-width:900px) {
    .masonry {
        column-count: 3
    }
}

@media (min-width:1200px) {
    .masonry {
        column-count: 4
    }
}

.masonry-item {
    display: inline-block;
    margin: 0 0 16px;
    width: 100%;
    break-inside: avoid;
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    border: 2px solid rgba(212, 175, 55, .35);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06)
}

/* Expanded (lightbox) view */
.expander {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .88);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 60
}

.expander img {
    max-width: 92vw;
    max-height: 90vh;
    border-radius: 14px;
    border: 2px solid rgba(212, 175, 55, .45)
}

.expander:target {
    display: flex
}

.exp-close {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 28px;
    color: #fff;
    text-decoration: none;
    background: rgba(0, 0, 0, .5);
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center
}
/* Tabs */
.tabs {
    display: flex;
    gap: 8px;
    margin: 8px 0 14px;
    flex-wrap: wrap
}

.tabs.sub {
    margin-top: 4px
}

.tab {
    padding: 8px 12px;
    border: 1px solid rgba(212, 175, 55, .45);
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    font-weight: 600
}

.tab.is-active {
    background: linear-gradient(90deg, var(--saffron), var(--maroon));
    color: #fff;
    border-color: transparent
}

.tabpanel {
    display: block
}

.tabpanel[hidden] {
    display: none
}
/* Tabs */
.tabs {
    display: flex;
    gap: 8px;
    margin: 8px 0 14px;
    flex-wrap: wrap
}

.tabs.sub {
    margin-top: 4px
}

.tab {
    padding: 8px 12px;
    border: 1px solid rgba(212, 175, 55, .45);
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    font-weight: 600
}

.tab.is-active {
    background: linear-gradient(90deg, var(--saffron), var(--maroon));
    color: #fff;
    border-color: transparent
}

.tabpanel {
    display: block
}

.tabpanel[hidden] {
    display: none
}
.embed {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: auto;
    border-radius: 12px;
    border: 1px solid #eee;
    overflow: hidden;
}

.embed.ratio-7x4 {
    padding-top: 57.142857%;
}

/* 400/700 */
.embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}
/* Responsive notice card */
.notice-card {
    /* mobile-first: take full width */
    flex: 1 1 100%;
    max-width: 100%;
    margin-inline: auto;
}

/* medium screens: give it a comfy width cap */
@media (min-width: 640px) {
    .notice-card {
        flex: 1 1 420px;
        max-width: 420px;
    }
}

/* large screens: slightly wider if you like */
@media (min-width: 1024px) {
    .notice-card {
        flex: 1 1 480px;
        max-width: 480px;
    }
}

/* optional: tidy heading + list spacing inside the card */
.notice-card h3 {
    font-size: clamp(16px, 2.6vw, 20px);
    margin: 0 0 8px;
}

.notice-card .list {
    max-height: none;
    /* let it expand naturally on mobile */
    overflow: visible;
    /* remove scroll if your widget adds it */
}

@media (min-width: 768px) {
    .notice-card .list {
        max-height: 300px;
        /* re-enable scroll on bigger screens if desired */
        overflow: auto;
    }
}



/* Phone: give banner more height so artwork breathes */
@media (max-width: 768px) {
    .banner {
        aspect-ratio: 1080 / 700;
    }

    /* taller on mobile */
    .banner::after {
        background: linear-gradient(180deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, .1) 55%, rgba(0, 0, 0, 0));
    }
}



/* Small screens: make nav scrollable chips */
@media (max-width: 640px) {
    .nav.sanatan-nav {
        overflow-x: auto;
        flex-wrap: nowrap;
        /* single row */
        justify-content: flex-start;
        gap: 10px;
        padding: 10px;
        scroll-snap-type: x mandatory;
    }

    .nav.sanatan-nav a {
        scroll-snap-align: start;
    }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .nav.sanatan-nav a {
        transition: none;
    }
}