/*
Theme Name: HempuriDham
Theme URI: https://hempuridham.com/
Author: HempuriDham
Description: Modern responsive spiritual theme for Hempuri Dham / Dhyan Kendra.
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: hempuridham
*/
:root {
    --hd-primary: #a86416;
    --hd-gold: #d49a3a;
    --hd-cream: #fffaf1;
    --hd-paper: #fff;
    --hd-ink: #2d241c;
    --hd-muted: #71675d;
    --hd-border: #eadfce;
    --hd-shadow: 0 18px 50px rgba(68, 45, 20, .10);
    --hd-radius: 22px;
    --hd-max: 1200px
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--hd-cream);
    color: var(--hd-ink);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.7
}

a {
    color: var(--hd-primary);
    text-decoration: none
}

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

.container {
    width: min(100% - 36px, var(--hd-max));
    margin: auto
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 250, 241, .94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(234, 223, 206, .75)
}

.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--hd-ink);
    font-weight: 800;
    font-size: 21px
}

.brand-mark {
    width: 43px;
    height: 43px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #e4b45d, #a86416);
    color: #fff;
    font-size: 20px;
    box-shadow: 0 8px 20px rgba(168, 100, 22, .25)
}

.custom-logo {
    max-height: 54px;
    width: auto
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0
}

.main-nav a {
    display: block;
    padding: 10px 13px;
    color: #45382c;
    font-size: 14px;
    font-weight: 650;
    border-radius: 12px
}

.main-nav a:hover,
.main-nav .current-menu-item>a {
    background: #f5ead9;
    color: var(--hd-primary)
}

.menu-toggle {
    display: none;
    border: 1px solid var(--hd-border);
    background: #fff;
    padding: 9px 12px;
    border-radius: 12px;
    font-size: 20px
}

.hero {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: radial-gradient(circle at 75% 20%, rgba(212, 154, 58, .22), transparent 32%), linear-gradient(135deg, #fffaf1 0%, #f8ead7 100%)
}

.hero:before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(168, 100, 22, .11) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(to right, #000, transparent 70%)
}

.hero-media {
    position: absolute;
    inset: 0;
    overflow: hidden
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .22
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 24px 0
}

.eyebrow {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 7px 13px;
    border-radius: 999px;
    background: #fff3df;
    border: 1px solid #efd5ac;
    color: var(--hd-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase
}

.hero h1 {
    font-family: Georgia, serif;
    font-size: clamp(44px, 7vw, 78px);
    line-height: 1.03;
    margin: 22px 0 18px;
    letter-spacing: -.035em
}

.hero h1 span {
    color: var(--hd-primary)
}

.hero p {
    font-size: 18px;
    color: #62574c;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 21px;
    border-radius: 999px;
    font-weight: 750;
    border: 1px solid transparent;
    transition: .25s ease
}

.btn-primary {
    background: var(--hd-primary);
    color: #fff;
    box-shadow: 0 10px 24px rgba(168, 100, 22, .22)
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #8d5412;
    color: #fff
}

.btn-outline {
    background: #fff;
    color: var(--hd-primary);
    border-color: #e5cfb0
}

.btn-outline:hover {
    transform: translateY(-2px);
    background: #fff7ec
}

.section {
    padding: 88px 0
}

.section-alt {
    background: #fff
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 35px
}

.section-kicker {
    font-size: 12px;
    letter-spacing: .15em;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--hd-primary)
}

.section h2 {
    font-family: Georgia, serif;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.15;
    margin: 8px 0
}

.section-intro {
    color: var(--hd-muted);
    /* max-width: 650px */
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center
}

.media-card {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--hd-shadow);
    background: #ead9c1;
    min-height: 380px
}

.media-card img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.about-copy p {
    color: var(--hd-muted)
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px
}

.card {
    background: #fff;
    border: 1px solid var(--hd-border);
    border-radius: var(--hd-radius);
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(68, 45, 20, .05);
    transition: .28s ease
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hd-shadow)
}

.card-thumb {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, #f3dfc0, #e9c58c);
    overflow: hidden
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s
}

.card:hover .card-thumb img {
    transform: scale(1.05)
}

.card-body {
    padding: 21px
}

.card h3 {
    margin: 0 0 7px;
    font-size: 20px
}

.meta {
    font-size: 13px;
    color: #887a6b
}

.quote {
    padding: 48px;
    border-radius: 30px;
    background: linear-gradient(135deg, #7f4a13, #bd7b25);
    color: #fff;
    position: relative;
    overflow: hidden
}

.quote:after {
    content: "☼";
    position: absolute;
    right: 40px;
    top: 5px;
    font-size: 150px;
    opacity: .08
}

.quote p {
    font: italic 27px/1.45 Georgia, serif;
    /* max-width: 850px; */
    margin: 0
}

.quote strong {
    display: block;
    margin-top: 15px;
    font-size: 13px;
    letter-spacing: .12em;
    text-transform: uppercase
}

.audio-list {
    display: grid;
    gap: 12px
}

.audio-item {
    padding: 15px 18px;
    border: 1px solid var(--hd-border);
    border-radius: 17px;
    background: #fff
}

.audio-item h3 {
    font-size: 16px;
    margin: 0 0 8px
}

.audio-item audio {
    width: 100%
}

.ebook-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px
}

.book-cover {
    aspect-ratio: 3/4;
    background: linear-gradient(145deg, #8f5516, #e0ac58);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding: 20px;
    text-align: center;
    font: 700 22px Georgia, serif
}

.event-card {
    padding: 25px;
    background: #fff;
    border: 1px solid var(--hd-border);
    border-radius: 20px
}

.date-badge {
    display: inline-grid;
    place-items: center;
    min-width: 62px;
    height: 62px;
    border-radius: 16px;
    background: #fff2df;
    color: var(--hd-primary);
    font-weight: 800
}

.gallery-grid {
    columns: 3 280px;
    column-gap: 16px
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 16px;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    background: #eee
}

.gallery-item img {
    width: 100%;
    transition: .45s
}

.gallery-item:hover img {
    transform: scale(1.04)
}

.cta {
    padding: 70px 30px;
    text-align: center;
    background: linear-gradient(135deg, #fff4e2, #f2dfc3);
    border: 1px solid #ecd8b8;
    border-radius: 30px
}

.cta h2 {
    margin-top: 0
}

.site-footer {
    background: #241b13;
    color: #d9cdbf;
    padding: 60px 0 25px
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 35px
}

.site-footer h3 {
    color: #fff;
    margin-top: 0
}

.site-footer a {
    color: #d9cdbf
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    margin-top: 40px;
    padding-top: 20px;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    gap: 20px
}

.page-hero {
    padding: 24px 0;
    background: linear-gradient(135deg, #fff7eb, #f1dfc4);
    text-align: center
}

.page-hero h1 {
    font: 700 clamp(40px, 6vw, 64px)/1.1 Georgia, serif;
    margin: 10px 0
}

.breadcrumbs {
    font-size: 13px;
    color: #7e6f60
}

.content-area {
    padding: 70px 0
}

.entry-content {
    /* max-width: 850px; */
    margin: auto
}

.entry-content h2,
.entry-content h3 {
    font-family: Georgia, serif
}

.entry-content p {
    color: #5e5449
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px
}

.field {
    display: grid;
    gap: 7px
}

.field.full {
    grid-column: 1/-1
}

.field label {
    font-size: 13px;
    font-weight: 700
}

.field input,
.field textarea,
.field select {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid var(--hd-border);
    border-radius: 13px;
    background: #fff;
    font: inherit
}

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

.notice {
    padding: 15px 18px;
    border-radius: 14px;
    background: #eff8ee;
    border: 1px solid #cfe4cc;
    margin-bottom: 20px
}

.loading-screen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #fffaf1;
    display: grid;
    place-items: center;
    transition: opacity .5s, visibility .5s
}

.loading-screen.is-hidden {
    opacity: 0;
    visibility: hidden
}

.loader {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 3px solid #ecd8b8;
    border-top-color: var(--hd-primary);
    animation: spin 1s linear infinite
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .7s ease, transform .7s ease
}

.reveal.visible {
    opacity: 1;
    transform: none
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

@media(max-width:900px) {
    .main-nav {
        display: none
    }

    .main-nav.is-open {
        display: block;
        position: absolute;
        left: 18px;
        right: 18px;
        top: 70px;
        background: #fffaf1;
        border: 1px solid var(--hd-border);
        border-radius: 18px;
        padding: 10px;
        box-shadow: var(--hd-shadow)
    }

    .main-nav.is-open ul {
        display: block
    }

    .main-nav.is-open a {
        padding: 12px
    }

    .menu-toggle {
        display: block
    }

    .grid-2 {
        grid-template-columns: 1fr
    }

    .cards {
        grid-template-columns: repeat(2, 1fr)
    }

    .ebook-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(max-width:600px) {
    .container {
        width: min(100% - 26px, var(--hd-max))
    }

    .hero {
        min-height: 610px
    }

    .hero-content {
        padding: 65px 0
    }

    .hero h1 {
        font-size: 46px
    }

    .section {
        padding: 65px 0
    }

    .section-head {
        display: block
    }

    .cards,
    .ebook-grid,
    .form-grid {
        grid-template-columns: 1fr
    }

    .footer-grid {
        grid-template-columns: 1fr
    }

    .footer-bottom {
        display: block
    }

    .footer-bottom>* {
        margin: 7px 0
    }

    .quote {
        padding: 32px 24px
    }

    .quote p {
        font-size: 22px
    }

    .media-card {
        min-height: 300px
    }
}

.text-right {
    text-align: right
}

.text-center {
    text-align: center
}

/* HempuriDham lightbox */
.hd-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(20, 14, 9, .92);
    z-index: 99998;
    display: grid;
    place-items: center;
    padding: 20px;
    cursor: zoom-out
}

.hd-lightbox img {
    max-width: 95vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, .35)
}

/* v1.2 content UI */
.category-section {
    margin-bottom: 76px
}

.category-section:last-child {
    margin-bottom: 0
}

.bhajan-list {
    max-width: 900px
}

.bhajan-row {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    border: 1px solid var(--hd-border);
    border-radius: 18px;
    background: #fff;
    margin-bottom: 12px;
    box-shadow: 0 5px 18px rgba(68, 45, 20, .04)
}

.bhajan-info {
    flex: 1;
    min-width: 0
}

.bhajan-info h3 {
    margin: 0 0 4px;
    font-size: 18px
}

.bhajan-play {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--hd-primary);
    color: #fff;
    cursor: pointer;
    font-size: 17px;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(168, 100, 22, .22);
    transition: .2s ease
}

.bhajan-play:hover {
    transform: scale(1.06)
}

.bhajan-play.is-playing {
    background: #6d4112
}

.bhajan-play.large {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
    font-size: 22px
}

.bhajan-hidden-audio {
    display: none !important
}

.single-bhajan-player {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
    padding: 18px 20px;
    background: #fff8eb;
    border: 1px solid var(--hd-border);
    border-radius: 20px;
    font-weight: 700
}

.ebook-action {
    margin-top: 15px
}

.btn-small {
    min-height: 40px;
    padding: 0 17px;
    font-size: 14px
}

.single-book-cover {
    max-width: 420px;
    height: auto;
    border-radius: 18px;
    box-shadow: var(--hd-shadow);
    margin-bottom: 24px
}

.gallery-item {
    position: relative
}

.gallery-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px;
    background: linear-gradient(transparent, rgba(20, 14, 9, .82));
    color: #fff;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    opacity: 0;
    transition: .25s ease
}

.gallery-item:hover .gallery-overlay {
    opacity: 1
}

.gallery-overlay h3 {
    margin: 0;
    font-size: 16px
}

.hd-lightbox-close {
    position: fixed;
    top: 22px;
    right: 25px;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #22180f;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    z-index: 2
}

.hd-lightbox img {
    max-width: 94vw;
    max-height: 88vh;
    object-fit: contain
}

@media(max-width:600px) {
    .bhajan-row {
        padding: 14px
    }

    .bhajan-play {
        width: 44px;
        height: 44px;
        flex-basis: 44px
    }

    .gallery-overlay {
        opacity: 1
    }

    .category-section {
        margin-bottom: 55px
    }
}

/* Bhajan category heading: centered title with elegant separators */
.bhajan-category-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    width: 100%;
    margin: 0 auto 32px;
    text-align: center
}

.bhajan-category-title h2 {
    margin: 0;
    font-size: clamp(28px, 3.2vw, 42px);
    line-height: 1.15;
    white-space: nowrap;
    text-align: center
}

.bhajan-category-line {
    height: 1px;
    background: var(--hd-border);
    flex: 1;
    max-width: 260px;
    position: relative
}

.bhajan-category-line:after {
    content: "";
    position: absolute;
    top: -2px;
    left: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--hd-primary);
    transform: translateX(-50%)
}

.category-section .section-intro {
    margin: 10px auto 0;
    text-align: center;
    max-width: 680px
}

.category-section .bhajan-list {
    width: 100%;
    max-width: 900px;
    margin: 0 auto
}

@media(max-width:700px) {
    .bhajan-category-title {
        gap: 12px;
        margin-bottom: 24px
    }

    .bhajan-category-title h2 {
        font-size: 28px
    }

    .bhajan-category-line {
        max-width: none
    }

    .category-section .bhajan-list {
        max-width: 100%
    }
}


/* v1.2.3 unified category styling */
.category-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    width: 100%;
    margin: 0 auto 34px;
    text-align: center
}

.category-divider span {
    height: 1px;
    background: var(--hd-border);
    flex: 1;
    max-width: 260px;
    position: relative
}

.category-divider span:first-child:after,
.category-divider span:last-child:after {
    content: "";
    position: absolute;
    top: -2px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--hd-primary)
}

.category-divider span:first-child:after {
    right: 0
}

.category-divider span:last-child:after {
    left: 0
}

.category-divider h2 {
    margin: 0;
    font: 700 clamp(28px, 3.2vw, 42px)/1.15 Georgia, serif;
    white-space: nowrap;
    text-align: center
}

.category-description {
    margin: -10px auto 28px;
    text-align: center
}

.ebook-grid {
    align-items: start
}

.ebook-card .card-body {
    display: flex;
    flex-direction: column;
    min-height: 150px
}

.ebook-card .ebook-action {
    margin-top: auto;
    padding-top: 15px
}

.bhajan-no-audio {
    font-size: 13px;
    color: #9a8877;
    padding: 8px 0
}

.empty-state {
    text-align: center;
    color: var(--hd-muted)
}

@media(max-width:700px) {
    .category-divider {
        gap: 12px;
        margin-bottom: 24px
    }

    .category-divider h2 {
        font-size: 28px
    }

    .category-divider span {
        max-width: none
    }
}