/* .navbar-light .navbar-nav .nav-link.active {
    color: rgba(32, 129, 232, 0.9) !important;
} */
.navbar-light .navbar-nav .nav-link:hover {
    color: black !important;
}

/* .navbar-light .navbar-nav .nav-link {
    color: white !important;
} */

.activeChildMenu {
    color: rgba(32, 129, 232, 0.9);
}

.btn-outline-success:hover {
    color: #198754;
    background-color: #fff;
    border-color: #198754;
}

.success:hover {
    cursor: default;
    color: black;
}

.success {
    text-decoration: none;
    color: white;
    cursor: default;
}

.staticMenu {
    cursor: pointer !important;
    font-size: 15px;
}

.footer:hover {
    color: black;
}

.childMenuClass {
    color: black;
}

.footer-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
}

.footerActive {
    color: rgba(0, 0, 0, 0.9);
    text-decoration: none;
}

.footerClass {
    text-decoration: none;
    color: white;
    cursor: pointer;
}

.footerClass:hover {
    color: black;
}

@media (max-width: 767px) {
    .center-mobile {
        text-align: center;
    }

    .submenu {
        margin-right: 26px;
    }
    
    /* Mobile search input equal spacing */
    .d-md-none .search-container {
        padding-left: 12px;
        padding-right: 15px;
    }
}

.center-mobile {
    text-align: center;
}

.submenucontent {
    margin-left: 20px;
}

.webViewStyle {
    display: flex !important;
}

/* Style for mobile view */
.mobileViewStyle {
    display: block !important;
}

.collapse-toggle {
    display: flex;
    flex-direction: column;
}

.collapse-btn {
    cursor: pointer;
    margin-bottom: 10px;
}

.childMenuHeader {
    font-size: 15px;
    cursor: pointer;
}

.slick-next {
    width: 34px !important;
    right: -25px !important;
}

.slick-prev {
    left: -24px !important;
    width: 34px !important;
}

.slick-prev:before, .slick-next:before {
    color: black !important;
}

#LanguageMenu {
  margin-bottom: -6px;
  margin-left: 0px;
}

.singleRecordBody {
    cursor: default;
}

.language-english {
    cursor: pointer;
}

.language-gujarati {
    cursor: pointer;
}

.language-hindi {
    cursor: pointer;
}

/* Language Selection Active States - Matching Sidebar Menu Style */
.language-hindi.active,
.language-gujarati.active,
.language-english.active {
    background-color: #f9edca !important;
    color: black !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    padding: 8px 12px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24) !important;
}

.language-hindi:hover,
.language-gujarati:hover,
.language-english:hover {
    background-color: #fff8f0 !important;
    color: #f97201 !important;
    border-radius: 4px !important;
    padding: 8px 12px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

/* Prevent hover effect on active language buttons */
.language-hindi.active:hover,
.language-gujarati.active:hover,
.language-english.active:hover {
    background-color: #f9edca !important;
    color: black !important;
    cursor: default !important;
}

/* Default language link styling */
.language-hindi,
.language-gujarati,
.language-english {
    padding: 8px 12px !important;
    margin: 0 2px !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    display: inline-block !important;
    color: rgb(255, 255, 255) !important;
}

/* Language container positioning - Move to far right corner */
#LanguageMenu .navbar-nav.d-flex.mb-0.flex-row.flex-lg-row {
    justify-content: flex-end !important;
    margin-left: auto !important;
    width: 100% !important;
}

/* Ensure language links container is positioned to the right */
#LanguageMenu .col-lg-4.col-md-4.col-sm-12.col-12 {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
}

/* Position the entire language menu to the right */
#LanguageMenu .container .row {
    justify-content: space-between !important;
    align-items: center !important;
}

/* Ensure language navigation items are aligned to the right */
#LanguageMenu .navbar-nav {
    margin-left: auto !important;
    flex-direction: row !important;
}

/* Mobile Menu Marquee Styling */
.mobile-menu-marquee {
    display: none;
}

@media (max-width: 991.98px) {
    .mobile-menu-marquee {
        display: block !important;
    }
    
    .mobile-menu-marquee marquee {
        animation: marquee-scroll 30s linear infinite;
    }
    
    .mobile-menu-marquee a {
        transition: color 0.3s ease;
    }
    
    .mobile-menu-marquee a:hover {
        color: #f9edca !important;
        text-decoration: none;
    }
}

/* Hide mobile marquee on desktop */
@media (min-width: 992px) {
    .mobile-menu-marquee {
        display: none !important;
    }
}

.navbar-toggler {
    margin-right: 10px;
}

.sidebar-menu-container {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-right: 20px;
}

.sidebar-header {
    background: #f97201;
    color: #ffffff;
    text-align: center;
    padding: 12px 15px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #ffffff;
}

.sidebar-menu-list { padding: 0; margin: 0; }
.sidebar-menu-item { border-bottom: 1px solid #f0f0f0; }
.sidebar-menu-item:last-child { border-bottom: none; }

.sidebar-link {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.sidebar-link:hover {
    background: #fff8f0;
    color: #f97201;
    text-decoration: none;
    padding-left: 20px;
}

.sidebar-link.active {
    background: #f9edca;
    color: #000000;
    font-weight: 600;
}

/* Search suggestions dropdown - ensure it appears above menus */
.search-suggestions {
    z-index: 2005 !important;
    display: block; /* visibility toggled via inline display */
    background: #ffffff;
    border: 2px solid #f97201d4; /* orange border */
    border-radius: 8px;
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden; /* remove horizontal scrollbar */
    box-shadow: 0 8px 20px rgba(249, 114, 1, 0.25);
}

/* Suggestion items - orange/white theme */
.search-suggestions .dropdown-item {
    color: #222 !important;
    padding: 10px 14px !important;
    white-space: nowrap; /* keep one line */
    overflow: hidden; /* clip long text */
    text-overflow: ellipsis; /* add ellipsis instead of scrollbar */
}

.search-suggestions .dropdown-item:hover,
.search-suggestions .dropdown-item:focus,
.search-suggestions .dropdown-item.active {
    background-color: #f97201d4 !important;
    color: #fff !important;
}

.search-suggestions .dropdown-item + .dropdown-item {
    border-top: 1px solid rgba(249, 114, 1, 0.2);
}

/* Ensure header has higher stacking context than content, but below suggestions */
.horizontal-menu-section {
    position: relative;
    z-index: 1000;
}

.navbar_Menu {
    text-align: left;
}

#childMenuBody {
    padding: 10px !important;
}

.list-unstyled h6 a {
    white-space: normal; /* Allow text to wrap to the next line */
    overflow: hidden; /* Hide any overflowing text */
    display: block; /* Display the text as a block element to enable text wrapping */
    max-width: 100%; /* Ensure text does not exceed the container width */
}

/* Responsive Navbar Styles */
.navbar {
    min-height: auto;
    overflow: visible; /* Allow dropdowns to overflow */
}

.navbar .container-fluid {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    overflow: visible; /* Allow dropdowns to overflow */
}

#mainMenu {
    display: flex;
    flex-wrap: nowrap;
    overflow: hidden;
    width: 100%;
    align-items: center;
    justify-content: flex-start;
    min-height: 40px;
    box-sizing: border-box;
}

#mainMenu .nav-item {
    flex-shrink: 0;
    max-width: none;
}

#mainMenu .nav-link {
    display: block;
    white-space: nowrap;
    box-sizing: border-box;
    padding-left: 12px;
    padding-right: 12px;
    /* Removed text-overflow and overflow to show full text */
}

/* Allow menu items to expand to their natural width */
#mainMenu .menu-item {
    flex-shrink: 0;
    /* Removed max-width to allow full text display */
}

#moreMenuDropdown {
    flex-shrink: 0;
    margin-left: 5px; /* Small margin from the last visible item */
}

#moreDropdown {
    min-width: 140px;
    text-align: center;
    background-color: rgba(0,0,0,0.15) !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
    padding: 8px 16px !important;
    font-weight: 600 !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
}

/* More Menu Dropdown Styles - Simplified */
#moreMenuItems {
    min-width: 250px !important;
    max-width: 350px !important;
    background-color: #e6641a !important;
    border: 3px solid rgba(255,255,255,0.9) !important;
    border-radius: 10px !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6) !important;
    padding: 10px 0 !important;
    margin: 0 !important;
    z-index: 10000 !important;
    position: absolute !important;
    top: calc(100% + 5px) !important;
    right: 0 !important;
    left: auto !important;
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    transform: translateY(-10px) !important;
    transition: all 0.3s ease !important;
}

/* Show dropdown */
#moreMenuItems.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.dropdown-item {
    color: white !important;
    padding: 14px 20px !important;
    font-size: 15px !important;
    border-bottom: 2px solid rgba(255,255,255,0.3) !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: block !important;
    white-space: nowrap !important;
    background-color: transparent !important;
}

.dropdown-item:last-child {
    border-bottom: none !important;
}

.dropdown-item:hover {
    padding-left: 28px !important;
    /* background-color: rgba(0,0,0,0.4) !important;*/
    /* color: #ffffff !important;*/
    /* transform: translateX(8px) !important;*/
/*    box-shadow: inset 4px 0 0 #ffffff !important;*/
}

.dropdown-item:focus {
    background-color: rgba(0,0,0,0.3) !important;
    color: white !important;
    outline: none !important;
}

.dropdown-item.active {
    background-color: rgba(32, 129, 232, 0.4) !important;
    color: white !important;
    position: relative !important;
}

.dropdown-item.active::before {
    content: "●";
    position: absolute;
    left: 8px;
    color: #2081e8;
    font-size: 12px;
}

/* More Menu Button Hover Effect */
#moreDropdown:hover {
    background-color: rgba(0,0,0,0.3) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
}

/* Simplified Hover Rules */
#moreMenuDropdown:hover #moreMenuItems {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

#moreMenuDropdown:hover #moreDropdown {
    background-color: rgba(0,0,0,0.3) !important;
    transform: translateY(-2px) !important;
}

/* Dropdown Animation */
@keyframes dropdownFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Improve dropdown positioning */
#moreMenuDropdown .dropdown-menu {
    right: 0 !important;
    left: auto !important;
    top: 100% !important;
    position: absolute !important;
    transform: none !important;
}

/* Ensure More Menu container is positioned correctly */
#moreMenuDropdown {
    position: relative !important;
}

/* Ensure proper spacing */
.navbar-nav .nav-item + .nav-item {
    margin-left: 0;
}

/* Mobile responsive adjustments */
@media (max-width: 991.98px) {
    .navbar {
        flex-direction: column;
    }
    
    .navbar-toggler {
        border: none;
        padding: 4px 8px;
    }
    
    .navbar-collapse {
        width: 100%;
    }
}

/* Ensure menu items have consistent styling */
.navbar-nav .nav-link {
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: black !important;
}

/* .navbar-nav .nav-link.active {
    color: rgba(32, 129, 232, 0.9) !important;
} */

/* ===== Custom Scrollbar - Orange Theme (applies across site) ===== */
/* Custom scrollbar for card body content and search suggestions */
.bhakti-card-body::-webkit-scrollbar,
.sidebar-menu-list::-webkit-scrollbar,
.search-suggestions::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
.bhakti-card-body::-webkit-scrollbar-track,
.sidebar-menu-list::-webkit-scrollbar-track,
.search-suggestions::-webkit-scrollbar-track {
    background: #ffe7d5; /* light orange track */
    border-radius: 8px;
}
.bhakti-card-body::-webkit-scrollbar-thumb,
.sidebar-menu-list::-webkit-scrollbar-thumb,
.search-suggestions::-webkit-scrollbar-thumb {
    background-color: #f97201; /* primary orange */
    border-radius: 8px;
    border: 2px solid #ffe7d5; /* creates spacing effect */
}
.bhakti-card-body::-webkit-scrollbar-thumb:hover,
.sidebar-menu-list::-webkit-scrollbar-thumb:hover,
.search-suggestions::-webkit-scrollbar-thumb:hover {
    background-color: #e26200; /* darker on hover */
}

/* Firefox - for card body content and search suggestions */
.bhakti-card-body,
.sidebar-menu-list,
.search-suggestions {
    scrollbar-color: #f97201 #ffe7d5; /* thumb track */
}

.panchangCardHeader {
    background-color: #f97201d4;
    cursor: default;
    padding: 0px;
}

.panchang-widget-container { 
    border: 1px solid #e9ecef; 
    border-radius: .375rem; 
    margin-bottom: .75rem; 
    background: white;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}
.panchang-widget {
    padding: 0;
}
.panchang-widget iframe {
    height: 500px !important;
    margin-left: 26% !important;
    border: none !important;
    display: block;
    margin: 0 auto;
    zoom: 1.3;
    -moz-transform: scale(1.3);
    -moz-transform-origin: 0 0;
    -webkit-transform: scale(1.4);
    -webkit-transform-origin: 0 0;
    -o-transform: scale(1.3);
    -o-transform-origin: 0 0;
}

@media (max-width: 767px) {
    .panchang-widget iframe {
        height: 500px !important;
        margin-left: -23% !important;
        border: none !important;
        display: block;
        margin: 0 auto;
        zoom: 1.3;
        -moz-transform: scale(1.3);
        -moz-transform-origin: 0 0;
        -webkit-transform: scale(1.3);
        -webkit-transform-origin: 0 0;
        -o-transform: scale(1.3);
        -o-transform-origin: 0 0;
    }

    .panchang-widget-container::after {
        content: '' !important;
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 21% !important;
        background: white !important;
        z-index: 10 !important;
    }
}
.panchang-widget-container {
    padding: 0 !important;
    margin: 0;
    overflow: hidden;
    position: relative;
}
/* Hide the copyright footer by overlaying it */
.panchang-widget-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 90px;
    background: white;
    z-index: 10;
}