.panchang-page {
    min-height: 100vh;
    padding: 100px 20px 60px;
}

.panchang-container {
    max-width: 1000px;
    margin: 0 auto;
}


/* HERO */

.panchang-hero {
    text-align: center;
    margin-bottom: 26px;
}

.panchang-hero h1 {
    margin: 0 0 22px;

    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
}

.panchang-hero-accent {
    background:
        linear-gradient(90deg,
            #ff8a8a,
            #ff5c9c);

    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.panchang-hero-sub {
    color: rgba(255, 255, 255, 0.55);
    font-weight: 700;
}


/* SEARCH BAR */

.panchang-search-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;

    gap: 10px;

    max-width: 720px;
    margin: 0 auto 16px;

    padding: 10px;

    border-radius: 20px;

    background: rgba(255, 255, 255, 0.05);

    border: 1px solid rgba(255, 255, 255, 0.14);
}

.panchang-search-field {
    flex: 1 1 240px;

    text-align: left;
}

.panchang-search-field .mb-3 {
    margin-bottom: 0 !important;
}

.panchang-search-date {
    display: flex;
    align-items: center;
    gap: 8px;

    flex: 0 0 auto;

    height: 48px;

    padding: 0 14px;

    border-radius: 12px;

    border: 1px solid rgba(255, 255, 255, 0.16);

    background: rgba(255, 255, 255, 0.06);
}

.panchang-search-date input {
    border: 0;
    outline: none;

    background: transparent;

    color: white;

    font-size: 14px;

    color-scheme: dark;
}

.panchang-search-btn {
    flex: 0 0 auto;

    height: 48px;

    padding: 0 24px;

    border: 0;
    border-radius: 12px;

    background:
        linear-gradient(90deg,
            #fff18b,
            #ffe52f);

    color: #111;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;
}

.panchang-summary-row {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 16px;

    flex-wrap: wrap;

    font-size: 14px;
}

.panchang-location {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 6px 16px;

    border-radius: 20px;

    font-size: 13px;
    font-weight: 600;

    background: rgba(255, 255, 255, 0.08);

    border: 1px solid rgba(255, 255, 255, 0.15);
}

.panchang-date-label {
    opacity: 0.75;
}


/* ERROR */

.panchang-error {
    margin: 0 0 20px;

    padding: 10px 12px;

    border-radius: 8px;

    background: rgba(255, 50, 50, 0.12);

    color: #ff9b9b;

    font-size: 13px;

    text-align: center;
}


/* SUN / MOON TIMING CARDS */

.panchang-timing-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 14px;

    margin-bottom: 20px;
}

.panchang-timing-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;

    padding: 20px 14px;

    border-radius: 16px;

    text-align: center;

    background: linear-gradient(
        135deg,
        rgba(255,255,255,.08),
        rgba(255,255,255,.03)
    );

    border: 1px solid rgba(255,255,255,.15);
}

.panchang-timing-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    border-radius: 50%;

    font-size: 20px;
}

.panchang-timing-card.tone-sunrise .panchang-timing-icon {
    background: linear-gradient(135deg, #ffb84d, #ff7a1a);
}

.panchang-timing-card.tone-sunset .panchang-timing-icon {
    background: linear-gradient(135deg, #ff7a7a, #c23a3a);
}

.panchang-timing-card.tone-moonrise .panchang-timing-icon {
    background: linear-gradient(135deg, #4a4a5a, #1c1c28);
}

.panchang-timing-card.tone-moonset .panchang-timing-icon {
    background: linear-gradient(135deg, #a78bfa, #6d28d9);
}

.panchang-timing-label {
    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.5px;
    text-transform: uppercase;

    opacity: 0.6;
}

.panchang-timing-value {
    font-size: 16px;
    font-weight: 700;

    color: #ffe600;
}


/* SECTION CARD */

.panchang-section-card {
    position: relative;

    padding: 24px;
    margin-bottom: 20px;

    border-radius: 16px;

    background: linear-gradient(
        135deg,
        rgba(255,255,255,.08),
        rgba(255,255,255,.03)
    );

    border: 1px solid rgba(255,255,255,.15);

    overflow: hidden;
}

.panchang-section-card::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;
    right: 0;

    height: 3px;

    background: rgba(255, 255, 255, 0.12);
}

.panchang-section-card.accent-red::before {
    background: linear-gradient(90deg, #ff5c5c, #ff8a8a);
}

.panchang-section-card.accent-yellow::before {
    background: linear-gradient(90deg, #ffe600, #ffb84d);
}

.panchang-section-card h2 {
    margin: 0 0 18px;
    font-size: 18px;
}

.panchang-heading-sub {
    font-weight: 400;
    opacity: 0.6;
    font-size: 14px;
}


/* TWO COLUMN LAYOUT */

.panchang-two-col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);

    gap: 20px;
    margin-bottom: 20px;
}

.panchang-two-col .panchang-section-card {
    margin-bottom: 0;
}


/* KEY / VALUE TABLE */

.panchang-kv-table {
    width: 100%;
    border-collapse: collapse;
}

.panchang-kv-table td {
    padding: 12px 14px;

    font-size: 13px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.panchang-kv-table tr:nth-child(odd) td {
    background: rgba(255, 100, 60, 0.06);
}

.panchang-kv-table tr:nth-child(even) td {
    background: rgba(90, 220, 130, 0.05);
}

.panchang-kv-table tr:last-child td {
    border-bottom: 0;
}

.panchang-kv-label {
    font-weight: 700;

    white-space: nowrap;

    width: 1%;
}

.panchang-kv-value {
    opacity: 0.9;
}

.panchang-muhurat-table .panchang-kv-label {
    width: 40%;
}

.panchang-muhurat-range {
    font-size: 12px;
    white-space: nowrap;
}

.panchang-subheading {
    margin: 18px 0 10px;

    font-size: 13px;
    font-weight: 700;

    opacity: 0.7;
}

.panchang-subheading:first-of-type {
    margin-top: 0;
}

.panchang-empty {
    margin: 0;
    font-size: 13px;
    opacity: 0.6;
}


/* TABLES (Choghadiya / Hora) */

.panchang-table-wrap {
    overflow-x: auto;

    margin-bottom: 6px;
}

.panchang-table {
    width: 100%;
    min-width: 420px;

    border-collapse: collapse;
}

.panchang-table th,
.panchang-table td {
    padding: 10px 12px;

    text-align: left;

    font-size: 13px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.panchang-table th {
    opacity: 0.6;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.4px;
    font-size: 11px;
}

.choghadiya-nature {
    display: inline-block;

    padding: 3px 10px;

    border-radius: 20px;

    font-size: 11px;
    font-weight: 700;

    text-transform: capitalize;

    background: rgba(255, 255, 255, 0.08);
}

.choghadiya-nature.good,
.choghadiya-nature.auspicious,
.choghadiya-nature.shubh {
    color: #6be08a;
    background: rgba(90, 220, 130, 0.15);
}

.choghadiya-nature.bad {
    color: #ffb066;
    background: rgba(255, 176, 102, 0.15);
}

.choghadiya-nature.evil,
.choghadiya-nature.inauspicious,
.choghadiya-nature.ashubh {
    color: #ff7ab6;
    background: rgba(255, 60, 130, 0.14);
}

.choghadiya-nature.neutral {
    color: #ffd76a;
    background: rgba(255, 215, 106, 0.12);
}


/* CURRENT CHOGHADIYA */

.choghadiya-now-card {
    display: flex;
    align-items: center;
    gap: 18px;

    padding: 20px 24px;

    border-radius: 14px;

    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, .08),
        rgba(255, 255, 255, .03)
    );

    border: 1px solid rgba(255, 255, 255, .15);

    margin-bottom: 20px;
}

.choghadiya-now-icon {
    font-size: 28px;
}

.choghadiya-now-label {
    display: block;

    font-size: 12px;
    opacity: 0.6;

    margin-bottom: 4px;
}

.choghadiya-now-name {
    font-size: 22px;
    font-weight: 800;
}

.choghadiya-now-time {
    margin-left: 10px;

    font-size: 14px;
    opacity: 0.75;
}

.choghadiya-now-badge {
    display: inline-block;

    margin-left: 8px;
    padding: 2px 8px;

    border-radius: 10px;

    background: #ffd400;
    color: #241300;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.4px;
}

.panchang-row-active {
    outline: 1px solid #ffd400;
    outline-offset: -1px;

    border-radius: 8px;
}


/* LEGEND */

.choghadiya-legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;

    margin: 8px 0 20px;

    font-size: 13px;
    opacity: 0.8;
}

.choghadiya-legend-label {
    font-weight: 700;
    opacity: 0.6;
}

.choghadiya-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.choghadiya-legend-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.choghadiya-legend-dot.good { background: #6be08a; }
.choghadiya-legend-dot.neutral { background: #ffd76a; }
.choghadiya-legend-dot.bad { background: #ffb066; }
.choghadiya-legend-dot.evil { background: #ff7ab6; }

.choghadiya-color.good { color: #6be08a; }
.choghadiya-color.neutral { color: #ffd76a; }
.choghadiya-color.bad { color: #ffb066; }
.choghadiya-color.evil { color: #ff7ab6; }


/* HORA PLANET COLORS */

.hora-planet.sun { color: #ffd76a; }
.hora-planet.moon { color: #8ab4ff; }
.hora-planet.mars { color: #ff7ab6; }
.hora-planet.mercury { color: #6be08a; }
.hora-planet.jupiter { color: #ffb066; }
.hora-planet.venus { color: #ff8adf; }
.hora-planet.saturn { color: #b39bff; }


/* FESTIVALS */

.panchang-festival-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.panchang-festival-item {
    display: flex;
    flex-direction: column;
    gap: 4px;

    padding: 14px 16px;

    border-radius: 12px;

    background: rgba(255, 255, 255, 0.05);

    border: 1px solid rgba(255, 255, 255, 0.1);
}

.panchang-festival-item strong {
    font-size: 14px;
    color: #ffe600;
}

.panchang-festival-item span {
    font-size: 13px;
    opacity: 0.75;
    line-height: 1.6;
}


/* RESULT CALLOUT */

.panchang-callout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;

    padding: 28px 24px;
    margin-bottom: 20px;

    border-radius: 20px;

    text-align: center;

    background: linear-gradient(
        135deg,
        rgba(255, 92, 92, 0.16),
        rgba(255, 255, 255, 0.03)
    );

    border: 1px solid rgba(255, 92, 92, 0.3);
}

.panchang-callout.auspicious {
    background: linear-gradient(
        135deg,
        rgba(90, 220, 130, 0.16),
        rgba(255, 255, 255, 0.03)
    );

    border-color: rgba(90, 220, 130, 0.3);
}

.panchang-callout-label {
    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.6px;
    text-transform: uppercase;

    opacity: 0.6;
}

.panchang-callout-value {
    font-size: clamp(24px, 4vw, 34px);
    font-weight: 800;

    color: #ff8a8a;
}

.panchang-callout.auspicious .panchang-callout-value {
    color: #6be08a;
}

.panchang-callout-note {
    max-width: 520px;

    font-size: 13px;
    line-height: 1.6;

    opacity: 0.75;
}


/* EDUCATIONAL CONTENT */

.panchang-edu-section p {
    margin: 0 0 14px;

    font-size: 14px;
    line-height: 1.75;

    opacity: 0.85;
}

.panchang-edu-section p:last-child {
    margin-bottom: 0;
}

.panchang-edu-section h3 {
    margin: 20px 0 10px;
    font-size: 15px;
}

.panchang-edu-section h3:first-child {
    margin-top: 0;
}

.panchang-edu-list {
    margin: 0 0 14px;
    padding-left: 20px;

    font-size: 14px;
    line-height: 1.8;

    opacity: 0.85;
}

.panchang-edu-list li {
    margin-bottom: 4px;
}


/* FAQ */

.panchang-faq-item {
    padding: 14px 0;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.panchang-faq-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.panchang-faq-item strong {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
}

.panchang-faq-item p {
    margin: 0;

    font-size: 13px;
    line-height: 1.7;

    opacity: 0.75;
}


/* REFERENCE TABLE STRONG COLUMN */

.panchang-table td strong,
.panchang-table th {
    white-space: nowrap;
}


/* LAGNA CHART + RELATED PAGES */

.panchang-chart-row {
    align-items: stretch;
}

.panchang-chart-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 220px;

    padding: 20px;

    border-radius: 12px;

    text-align: center;

    background: rgba(255, 255, 255, 0.04);

    border: 1px dashed rgba(255, 255, 255, 0.15);
}

.panchang-chart-placeholder p {
    margin: 0;

    font-size: 13px;
    opacity: 0.6;
}

.panchang-chart-wrap {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 220px;

    padding: 16px;

    border-radius: 12px;

    background: rgba(255, 255, 255, 0.04);

    border: 1px solid rgba(255, 255, 255, 0.1);
}

.panchang-chart-wrap img {
    display: block;
    width: 100%;
    max-width: 360px;
    background-color: #fff;
    border-radius: 8px;
}

.panchang-related-card {
    padding: 24px;

    border-radius: 16px;

    background: linear-gradient(
        135deg,
        rgba(255,255,255,.08),
        rgba(255,255,255,.03)
    );

    border: 1px solid rgba(255,255,255,.15);
}

.panchang-related-title {
    display: block;

    margin-bottom: 16px;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.6px;
    text-transform: uppercase;

    opacity: 0.55;
}

.panchang-related-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.panchang-pill {
    padding: 10px 18px;

    border-radius: 30px;

    font-size: 13px;
    font-weight: 600;

    color: white;
    text-decoration: none;

    background: rgba(255, 255, 255, 0.06);

    border: 1px solid rgba(255, 255, 255, 0.15);

    transition: 0.2s ease;
}

.panchang-pill:hover {
    color: #111;
    background: #ffe600;
    border-color: #ffe600;
}


/* MOBILE */

@media (max-width: 768px) {
    .panchang-page {
        padding: 90px 14px 40px;
    }

    .panchang-timing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .panchang-section-card {
        padding: 18px;
    }

    .panchang-two-col {
        grid-template-columns: 1fr;
    }

    .panchang-search-bar {
        flex-direction: column;
    }

    .panchang-search-date,
    .panchang-search-btn {
        width: 100%;
        justify-content: center;
    }
}
