/* POOJASERVICE — Premium Panchang */
.panchang-page {
    --pn-maroon: #541323;
    --pn-wine: #741d32;
    --pn-gold: #d5ad65;
    --pn-gold-light: #f4dfad;
    --pn-cream: #fffaf0;
    --pn-ink: #38232a;
    --pn-muted: #927d79;
    background: #fbf6ed;
    color: var(--pn-ink);
    padding: 30px 0 65px;
    overflow: hidden;
    font-family: inherit;
}
.panchang-page * { box-sizing: border-box; }
.panchang-page .pn-wrap { max-width: 1200px; margin: auto; }
.panchang-page .pn-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 270px;
    padding: 48px 25px;
    border: 1px solid rgba(231,196,126,.45);
    border-radius: 25px;
    text-align: center;
    color: #fff8e9;
    background:
        radial-gradient(circle at 50% 0%, rgba(215,174,99,.23), transparent 38%),
        radial-gradient(circle at 10% 100%, rgba(153,56,77,.3), transparent 35%),
        linear-gradient(130deg,#32101e,#64182d 55%,#3c1426);
    box-shadow: 0 18px 48px rgba(66,20,34,.2);
}
.panchang-page .pn-hero:before,
.panchang-page .pn-hero:after {
    content: "✦  ·  ✧      ·       ✦       ·  ✧";
    position: absolute;
    z-index: -1;
    color: rgba(244,219,164,.45);
    font-size: 24px;
    letter-spacing: 20px;
    white-space: nowrap;
    animation: pn-drift 18s linear infinite;
}
.panchang-page .pn-hero:before { top: 28px; left: 0; }
.panchang-page .pn-hero:after { bottom: 25px; right: 0; animation-direction: reverse; }
.panchang-page .pn-mandala {
    position: absolute;
    width: 230px;
    height: 230px;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    border: 1px solid rgba(230,194,122,.18);
    border-radius: 50%;
    box-shadow: 0 0 0 17px rgba(230,194,122,.035),0 0 0 36px rgba(230,194,122,.025),inset 0 0 35px rgba(230,194,122,.08);
    animation: pn-rotate 65s linear infinite;
    pointer-events: none;
}
.panchang-page .pn-om {
    color: var(--pn-gold-light);
    font-size: 39px;
    line-height: 1.2;
    text-shadow: 0 0 25px rgba(241,202,122,.5);
}
.panchang-page .pn-hero h1 {
    position: relative;
    margin: 10px 0 4px;
    color: #fff8e9;
    font-size: clamp(30px,4vw,43px);
    font-weight: 800;
    letter-spacing: .3px;
}
.panchang-page .pn-hero h2 {
    color: var(--pn-gold-light);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.panchang-page .pn-hero p { color: #f1dfd1; margin: 12px 0 0; }
.panchang-page .pn-filter {
    position: relative;
    z-index: 2;
    margin: -25px auto 30px;
    max-width: 950px;
    padding: 22px;
    border: 1px solid #ead9bd;
    border-radius: 19px;
    background: #fffdf8;
    box-shadow: 0 12px 35px rgba(65,29,30,.1);
}
.panchang-page .form-label { color: var(--pn-maroon); font-size: 13px; font-weight: 750; }
.panchang-page .form-control,
.panchang-page .form-select {
    min-height: 46px;
    border: 1px solid #e6d8c5;
    border-radius: 10px;
    background-color: #fff;
    color: var(--pn-ink);
    box-shadow: none;
}
.panchang-page .form-control:focus,
.panchang-page .form-select:focus {
    border-color: var(--pn-gold);
    box-shadow: 0 0 0 3px rgba(213,173,101,.15);
}
.panchang-page .pn-btn {
    min-height: 46px;
    border: 1px solid #6b1b30;
    border-radius: 10px;
    background: linear-gradient(135deg,#79223a,#4d1427);
    color: #fff7e8;
    font-weight: 750;
    transition: transform .2s,box-shadow .2s;
}
.panchang-page .pn-btn:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 7px 17px rgba(84,19,35,.22);
}
.panchang-page .pn-date-heading {
    margin: 0 auto 25px;
    text-align: center;
}
.panchang-page .pn-date-heading h2 {
    color: var(--pn-maroon);
    font-size: clamp(21px,3vw,29px);
    font-weight: 800;
}
.panchang-page .pn-location {
    color: var(--pn-muted);
    font-size: 14px;
}
.panchang-page .pn-special {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 17px;
    border: 1px solid #e7c98e;
    border-radius: 50px;
    background: #fff3d9;
    color: #7a4a14;
    font-size: 13px;
    font-weight: 750;
}
.panchang-page .pn-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 34px 0 16px;
    color: var(--pn-maroon);
    font-size: 21px;
    font-weight: 800;
}
.panchang-page .pn-section-title:after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg,#d8b875,transparent);
}
.panchang-page .pn-card {
    position: relative;
    height: 100%;
    padding: 21px;
    overflow: hidden;
    border: 1px solid #ecdfcb;
    border-radius: 17px;
    background: linear-gradient(145deg,#fffefa,#fff9ef);
    box-shadow: 0 5px 18px rgba(69,37,31,.045);
    transition: transform .25s,border-color .25s,box-shadow .25s;
    animation: pn-rise .55s both;
}
.panchang-page .pn-card:hover {
    transform: translateY(-4px);
    border-color: #d8b875;
    box-shadow: 0 13px 27px rgba(69,37,31,.09);
}
.panchang-page .pn-card:before {
    content: "";
    position: absolute;
    top: 0;
    left: 20px;
    width: 42px;
    height: 3px;
    border-radius: 0 0 5px 5px;
    background: var(--pn-gold);
}
.panchang-page .pn-card h3 {
    margin: 0 0 13px;
    color: var(--pn-maroon);
    font-size: 16px;
    font-weight: 800;
}
.panchang-page .pn-icon {
    display: inline-flex;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border: 1px solid #efdfbd;
    border-radius: 14px;
    background: #fff2d9;
    color: #8a5923;
    font-size: 22px;
}
.panchang-page .pn-label {
    color: var(--pn-muted);
    font-size: 12px;
    font-weight: 650;
}
.panchang-page .pn-value {
    color: var(--pn-ink);
    font-size: 16px;
    font-weight: 800;
    overflow-wrap: anywhere;
}
.panchang-page .pn-sky-card { text-align: center; padding: 18px 10px; }
.panchang-page .pn-sky-card .pn-icon { border-radius: 50%; }
.panchang-page .pn-sky-card .pn-value { margin-top: 5px; font-size: 15px; }
.panchang-page .pn-item {
    padding: 10px 0;
    border-bottom: 1px dashed #eadcc8;
}
.panchang-page .pn-item:last-child { border-bottom: 0; }
.panchang-page .pn-timing {
    border-left: 3px solid #c9a25c;
    padding-left: 15px;
}
.panchang-page .pn-muhurta-card { min-height: 115px; }
.panchang-page .pn-muhurta-card .pn-value { margin-top: 9px; font-size: 17px; }
.panchang-page .pn-choghadiya {
    white-space: pre-line;
    overflow-wrap: anywhere;
    color: #514047;
    line-height: 1.9;
    font-size: 14px;
}
.panchang-page .pn-photo {
    display: block;
    width: 100%;
    max-height: 390px;
    object-fit: cover;
    border: 5px solid #fff;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(52,20,30,.12);
}
.panchang-page .pn-observance {
    padding: 13px 0;
    border-bottom: 1px dashed #eadcc8;
}
.panchang-page .pn-observance:last-child { border-bottom: 0; }
.panchang-page .pn-description {
    color: #59454a;
    line-height: 1.9;
    overflow-wrap: anywhere;
}
.panchang-page .pn-empty {
    padding: 45px 22px;
    border: 1px dashed #d7bd8d;
    border-radius: 20px;
    background: #fffdf8;
    text-align: center;
}
.panchang-page .pn-empty .pn-om { color: #a87937; }
.panchang-page .pn-note {
    margin-top: 30px;
    padding: 15px;
    border: 1px solid #eee1cb;
    border-radius: 12px;
    background: rgba(255,255,255,.65);
    color: #897975;
    font-size: 12px;
    text-align: center;
}
@keyframes pn-rotate { to { transform: translate(-50%,-50%) rotate(360deg); } }
@keyframes pn-drift { from { transform: translateX(-15px); } to { transform: translateX(25px); } }
@keyframes pn-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
    .panchang-page *, .panchang-page *:before, .panchang-page *:after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
@media (max-width: 767px) {
    .panchang-page { padding: 18px 0 40px; }
    .panchang-page .pn-hero { min-height: 225px; padding: 38px 16px; border-radius: 18px; }
    .panchang-page .pn-mandala { width: 175px; height: 175px; }
    .panchang-page .pn-filter { margin: 16px 0 25px; padding: 16px; }
    .panchang-page .pn-section-title { margin-top: 27px; font-size: 18px; }
    .panchang-page .pn-card { padding: 17px; }
    .panchang-page .pn-sky-card { padding: 15px 7px; }
}

/* ===== PANCHANG DESKTOP LAYOUT REFINEMENT ===== */
@media (min-width: 768px) {
    .panchang-page .pn-hero {
        min-height: 240px;
        padding: 30px 25px 36px;
    }

    .panchang-page .pn-mandala {
        width: 210px;
        height: 210px;
    }

    .panchang-page .pn-hero .pn-om {
        font-size: 36px;
    }

    .panchang-page .pn-hero h1 {
        margin-top: 7px;
        font-size: clamp(30px, 3.5vw, 40px);
    }

    .panchang-page .pn-hero p {
        margin-top: 8px;
    }

    .panchang-page .pn-filter {
        max-width: 1050px;
        margin: -16px auto 36px;
        padding: 18px 22px;
    }

    .panchang-page .pn-filter .row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 170px;
        gap: 16px;
        align-items: end;
        margin: 0;
    }

    .panchang-page .pn-filter .row > [class*="col-"] {
        width: auto;
        max-width: none;
        padding: 0;
    }

    .panchang-page .pn-filter .pn-btn {
        width: 100%;
        white-space: nowrap;
        font-size: 14px;
        padding: 8px 10px;
    }
}

/* ===== FINAL DESKTOP: NO HERO-FILTER OVERLAP ===== */
@media (min-width: 768px) {
    .panchang-page .pn-hero {
        margin-bottom: 0 !important;
    }

    .panchang-page .pn-filter {
        position: relative;
        margin: 24px auto 38px !important;
        top: auto;
        transform: none;
    }
}
