body {
    background-color: #fdfbf7;
}

body.home-page-bg {
    background-image: url('../homeimage/header_bg.png');
    background-size: 110% auto;
    background-repeat: no-repeat;
    background-position: top center;
    background-attachment: scroll;
}

.custom-header {
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1000;
    max-width: 1320px;
    height: 70px;
    margin: 0 auto;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    display: flex;
    align-items: center;
}

.custom-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    width: 100%;
    height: 100%;
}

.brand-logo img {
    height: 36px;
    width: auto;
}

.nav-center {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.nav-center ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-center ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 15px;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    font-family: 'Inter', sans-serif;
}

.nav-center ul li a:hover {
    color: #fd7e14;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-astro-action {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid #eee;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    font-weight: 600;
    background: #fff;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-astro-action:hover {
    border-color: #fd7e14;
    color: #fd7e14;
    text-decoration: none;
    background: #fff8f5;
}

.icon-btn {
    font-size: 18px;
    color: #333;
    cursor: pointer;
    position: relative;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.icon-btn:hover {
    color: #fd7e14;
}

.icon-btn .badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #fd7e14;
    color: #fff;
    font-size: 9px;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.custom-header .dropdown-menu {
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 10px;
    margin-top: 10px;
    min-width: 220px;
    animation: fadeIn 0.2s ease-out;
}

.custom-header .dropdown-item {
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 14px;
    color: #444;
    transition: all 0.2s;
}

.custom-header .dropdown-item:hover {
    background-color: #fff8f5;
    color: #fd7e14;
}

.custom-header .dropdown-toggle::after {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991px) {
    .custom-header {
        max-width: 100%;
        border-radius: 0;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
        height: 70px;
        padding: 0;
    }

    .custom-navbar {
        padding: 0 15px;
    }

    .nav-center,
    .header-right {
        display: none !important;
    }

    .mobile-toggle {
        display: block !important;
        font-size: 24px;
        color: #333;
        cursor: pointer;
    }
}

/* PANCHANG SECTION START - Compact & Fixed Layout */
.panchang-section-wrapper {
    background-color: transparent;
    padding: 0;
    position: relative;
    padding-top: 20px;
    /* Reduced top padding */
}

.hanging-lamp-left {
    position: absolute;
    top: 0px;
    /* Anchored to top edge */
    left: -45px;
    /* Aligned with the left curve edge */
    width: 90px;
    height: auto;
    z-index: 5;
    animation: swing 3s infinite ease-in-out alternate;
    pointer-events: none;
}

@media (max-width: 991px) {
    .hanging-lamp-left {
        display: none !important;
        /* Hide on mobile as requested */
    }
}

@keyframes swing {
    0% {
        transform: rotate(3deg);
        transform-origin: top center;
    }

    100% {
        transform: rotate(-3deg);
        transform-origin: top center;
    }
}

.panchang-content {
    text-align: center;
    position: relative;
    z-index: 2;
    padding-bottom: 0;
}

/* Headings */
.panchang-title {
    font-size: 32px;
    /* Smaller font */
    font-weight: 700;
    color: #222;
    margin-bottom: 5px;
    font-family: 'Playfair Display', serif;
}

.panchang-title span {
    color: #e65100;
}

.panchang-datetime {
    color: #333;
    font-size: 14px;
    margin-bottom: 30px;
    /* Reduced margin */
    font-weight: 600;
}

/* Sun/Moon Cards */
.sun-moon-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    /* Reduced margin */
    flex-wrap: wrap;
}

.sm-card {
    background: #fff;
    border-radius: 8px;
    padding: 10px 15px;
    /* Compact padding */
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 180px;
    /* Compact width */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    /* Softer shadow */
    transition: transform 0.3s;
    border: none;
}

.sm-card:hover {
    transform: translateY(-3px);
}

.sm-icon {
    width: 36px;
    /* Smaller icon */
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    background: #e65100;
}

.sm-info {
    text-align: left;
}

.sm-info h5 {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    color: #000;
}

.sm-info p {
    font-size: 12px;
    color: #666;
    margin: 0;
    font-weight: 500;
}

/* Details Grid - Compact */
.panchang-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 60px;
    row-gap: 12px;
    /* Compact row gap */
    max-width: 750px;
    margin: 0 auto 30px auto;
    /* Reduced margin */
    text-align: left;
    background: transparent;
    padding: 0;
    border: none;
}

.pd-row {
    font-size: 13px;
    /* Smaller text */
    /* color: #444; */
    border-bottom: 1px dotted #ddd;
    padding-bottom: 1px;
    /* display: flex; */
    /* justify-content: space-between; */
}

.pd-row:last-child,
.pd-row:nth-last-child(2):nth-child(odd) {
    border-bottom: none;
}

.pd-label {
    font-weight: 700;
    color: #222;
    font-family: 'Inter', sans-serif;
    /* min-width: 50px; */
}

/* CTA Button - Compact */
.panchang-cta {
    display: inline-block;
    background: #ef6c00;
    color: #fff !important;
    padding: 10px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: capitalize;
    font-size: 14px;
    text-decoration: none !important;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(239, 108, 0, 0.3);
}

.panchang-cta:hover {
    background: #d84315;
    transform: translateY(-2px);
}

/* Bottom Graphic (Carousel Background) - Compact */
/* Bottom Graphic (Carousel Background) - Taller Container with Pseudo Background */
/* Bottom Graphic (Carousel Background) - Compact for Single Screen View */
.panchang-bottom-graphic {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    height: 300px;
    /* Reduced from 380px */
    width: 95%;
    max-width: 1200px;
    position: relative;
    margin: 25px auto 0 auto;
    display: flex;
    justify-content: center;
    overflow: hidden;
    z-index: 10;
}

/* The actual Orange Pill Background - Smaller */
.panchang-bottom-graphic::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    /* Reduced from 300px */
    background: #ef6c00;
    border-radius: 100px;
    /* Adjusted radius */
    box-shadow: 0 10px 30px rgba(230, 81, 0, 0.2);
    z-index: 0;
}

/* Navigation Arrows - Center of Pill */
.oval-arrow {
    position: absolute;
    bottom: 100px;
    /* Center of 200px pill */
    transform: translateY(50%);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    z-index: 50;
    background: transparent;
    transition: opacity 0.3s;
    opacity: 0.8;
}

.oval-arrow:hover {
    opacity: 1;
}

.arrow-left {
    left: 40px;
}

.arrow-right {
    right: 40px;
}

/* Carousel Slider */
/* Carousel Slider */
.panchang-slider {
    position: absolute;
    bottom: -15%;
    width: 100% !important;
    left: 0;
    height: 100%;
    z-index: 10;
}

.panchang-slider .owl-stage-outer {
    overflow: visible !important;
}

.panchang-slider .item {
    text-align: center;
    transition: all 0.5s ease;
    opacity: 0.5;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 100%;
    transform: scale(0.65);
    transform-origin: bottom center;
    /* CRITICAL: Anchors scaling to bottom */
    filter: brightness(0.8);
    padding-bottom: 30px;
    /* Slight padding from very bottom edge */
}

/* Active side items */
.panchang-slider .owl-item.active .item {
    opacity: 0.6;
}

/* Side Images */
.panchang-slider .item img {
    max-height: 160px;
    /* Increased slightly */
    width: auto !important;
    transition: all 0.5s ease;
}

/* Center Item styling (Active) - Popout */
.panchang-slider .owl-item.center .item {
    transform: scale(1.0);
    transform-origin: bottom center;
    opacity: 1;
    z-index: 100;
    filter: brightness(1);
    padding-bottom: 10px;
    /* Push center item slightly further down if needed */
}

/* Center Image - Smaller but popped out */
.panchang-slider .owl-item.center .item img {
    max-height: 240px;
    /* Reduced from 340px */
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    margin-bottom: 0;
}

.panchang-slider .owl-nav,
.panchang-slider .owl-dots {
    display: none !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .panchang-content .panchang-title {
        font-size: 20px;
        margin-bottom: 5px;
    }

    .panchang-datetime {
        font-size: 11px !important;
        margin-bottom: 10px !important;
    }

    /* 2x2 Grid for Sun/Moon Cards */
    .sun-moon-cards {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-bottom: 15px;
        padding: 0 10px;
    }

    .sm-card {
        padding: 5px;
        min-width: 0;
        /* Prevents overflow */
    }

    .sm-icon {
        width: 30px;
        height: 30px;
        font-size: 14px;
        margin-right: 8px;
    }

    .sm-info h5 {
        font-size: 11px;
    }

    .sm-info p {
        font-size: 10px;
    }

    .panchang-details-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
        gap: 5px;
        margin-bottom: 10px;
    }

    .pd-row,
    .pd-label {
        font-size: 12px;
    }

    .panchang-cta {
        margin-bottom: 15px;
    }

    .btn-detailed-panchang {
        font-size: 13px;
        padding: 8px 20px;
    }

    /* Hide body background on mobile */
    body {
        background-image: none !important;
    }

    /* Carousel Adjustments */
    .panchang-bottom-graphic {
        height: 215px;
        width: 100%;
        border-radius: 20px;

    }

    /* Force hide arrows on mobile */
    .panchang-slider .owl-nav {
        display: none !important;
        visibility: hidden !important;
    }

    .panchang-slider {
        bottom: -5px;
        /* Better alignment */
    }

    .panchang-slider .item {
        transform: scale(0.55);
        padding-bottom: 25px;
    }

    .panchang-slider .owl-item.center .item {
        transform: scale(0.85);
        padding-bottom: 5px;
    }

    .panchang-slider .owl-item.center .item img {
        max-height: 170px;
        /* Visible images */
        margin-bottom: 0px;
    }

    /* Fix button overlap */
    .panchang-cta {
        margin-bottom: 15px;
        position: relative;
        z-index: 20;
        /* Ensure button is clickably above graphic */
    }
}

.dropdown-item-group {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.dropdown-menu-custom {
    display: none;
    position: absolute;
    top: 100%;
    left: 0 !important;
    right: auto !important;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px;
    min-width: 200px;
    z-index: 1001;
    animation: fadeIn 0.2s ease-out;
}

.dropdown-item-group:hover .dropdown-menu-custom {
    display: block;
}

.dropdown-menu-custom a {
    display: block !important;
    padding: 8px 12px !important;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    border-radius: 4px;
}

.dropdown-menu-custom a:hover {
    background: #fff8f5;
    color: #fd7e14;
}

.language-selector-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    margin-top: 3%;
}

.goog-te-gadget-simple {
    margin: 0 !important;
    padding: 0 !important;
}

li.dropdown-item-group {
    height: 100%;
    display: flex;
    align-items: center;
}

@media (max-width: 767px) {
    .wrapper {
        padding-top: 3% !important;
    }
}

@media (max-width: 576px) {
    .wrapper {
        padding-top: 0px !important;
    }
}