/* ===== MEGA MENU STYLES ===== */

/* Base Mega Menu Styles */
.mega-menu-item {
    position: static;
}
.menu_mega_sec {
    padding: 0px 30px;
}
/*.mega-menu-dropdown {*/
/*    position: absolute;*/
/*    top: 100%;*/
/*    left: 0;*/
/*    right: 0;*/
/*    width: 100vw;*/
/*    max-width: none;*/
/*    border: none;*/
/*    border-radius: 0;*/
/*    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);*/
/*    padding: 0;*/
/*    margin-top: 0;*/
/*    background: #ffffff;*/
/*    z-index: 1050;*/
/*    opacity: 0;*/
/*    visibility: hidden;*/
/*    transform: translateY(-10px);*/
/*    transition: all 0.3s ease;*/
/*}*/

.mega-menu-dropdown{
  position: fixed !important;     /* viewport se attach */
    top: 90px !important;           /* adjust karo: header ki height ke barabar */
    left: 0;
    right: 0;
    width: 100%;         /* viewport ki width le lega, scrollbar safe */
    max-width: none;
    box-sizing: border-box;
    border: none;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 0;
    margin: 0;
    background: #fff;
    z-index: 9999;
    /* agar aap animation chahte ho to ye rakh sakte ho */
    transform: translateY(0) !important;
    opacity: 1;
    visibility: visible;
    transition: all 2.25s ease;
    min-height:515px;
}
.cs_nav .cs_nav_list ul.mega-menu-list {
    position: relative;
    border: none;
    box-shadow: 0 0 0 0;
    padding: 0;
    opacity: 1;
    visibility: visible;
}

.cs_nav .cs_nav_list ul.mega-menu-list li a {
padding:3px 10px;
}
.cs_nav .cs_nav_list ul.mega-menu-list li a:hover {
color:var(--accent);
text-decoration:underline;
}

.mega-menu-item:hover .mega-menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Tabbed Mega Menu Layout */
.mega-menu-sidebar {
    background: #f8f9fa;
    border-right: 1px solid #ff550078;
    padding: 2rem 0;
    min-height: 480px;
    border-radius: 5px 0 0 5px;
}

.mega-menu-sidebar-title {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    padding: 0 1.5rem;
}

.mega-menu-tabs {
    display: flex;
    flex-direction: column;
}

.mega-menu-tab {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: #495057;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.mega-menu-tab:hover {
    background-color: #e9ecef;
    color: var(--accent);
}

.mega-menu-tab.active {
    background-color: #ffffff;
    color: var(--accent);
    border-left-color: var(--accent);
    font-weight: 600;
}

.mega-menu-tab.active::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #ffffff;
}

.mega-menu-tab i:first-child {
    width: 20px;
    text-align: center;
}

.mega-menu-tab .bi-chevron-right {
    font-size: 0.75rem;
    opacity: 0.6;
    transition: transform 0.2s ease;
}

.mega-menu-tab:hover .bi-chevron-right,
.mega-menu-tab.active .bi-chevron-right {
    transform: translateX(3px);
    opacity: 1;
}

/* Content Area */
.mega-menu-content {
    padding: 0 2rem;
    background: #ffffff;
}

.mega-menu-content-title {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mega-menu-tab-content {
    display: none;
}

.mega-menu-tab-content.active {
    display: block;
    /*animation: fadeInUp 0.3s ease;*/
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mega Menu Typography */
.mega-menu-subtitle {
    color: #495057;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.mega-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-list li {
    margin-bottom: 0.5rem;
}

.mega-menu-link {
    color: #6c757d;
    text-decoration: none;
    font-size: 16px;
    padding: 0.375rem 0;
    display: block;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.mega-menu-link:hover {
    color: #0d6efd;
    text-decoration: none;
    padding-left: 0.5rem;
}

/* Footer Section */
.mega-menu-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.mega-menu-view-all {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}

.mega-menu-view-all:hover {
    color: #0a58ca;
    text-decoration: none;
}

.mega-menu-view-all i {
    transition: transform 0.2s ease;
}

.mega-menu-view-all:hover i {
    transform: translateX(3px);
}

/* Mobile Mega Menu Styles */
.mobile-mega-menu {
    display: none;
}

.mobile-mega-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1060;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-mega-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-mega-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: #ffffff;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mobile-mega-overlay.active .mobile-mega-content {
    transform: translateX(0);
}

.mobile-mega-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: between;
    align-items: center;
    background: #f8f9fa;
}

.mobile-mega-close {
    margin-left: auto;
}

.mobile-mega-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.mobile-mega-footer {
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

/* Mobile Menu Levels */
.mobile-menu-level {
    display: none;
}

.mobile-menu-level.active {
    display: block;
    animation: slideInLeft 0.3s ease;
}
li.nav-item.dropdown.mega-menu-item .dropdown-toggle::after {
    content: "";
    display: inline-block;
    height: 6px;
    width: 6px;
    border: 2px solid currentColor;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    border-left: 0;
    border-top: 0;
    margin-left: 6px;
    position: relative;
    top: -1px;
    border-radius: 0px 0px 2px 0px;
}


@media (min-width: 1000px) {
    .nav-item.dropdown:hover .mega-menu-dropdown {
  display: block !important;
  opacity: 1;
  visibility: visible;
}
}















@keyframes slideInRight {
    from {
        transform: translateX(20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.mobile-menu-item {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.mobile-menu-item:hover {
    background-color: #f8f9fa;
}

.mobile-menu-item span {
    font-weight: 500;
    color: #2c3e50;
}

.mobile-menu-back {
    padding: 1rem;
    color: #0d6efd;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-weight: 500;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 1rem;
}

.mobile-menu-back:hover {
    background-color: #f8f9fa;
}

.mobile-menu-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.mobile-submenu-section {
    margin-bottom: 2rem;
}

.mobile-submenu-title {
    color: #495057;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background: #e9ecef;
    border-radius: 4px;
}

.mobile-menu-link {
    display: block;
    padding: 0.75rem 1rem;
    color: #6c757d;
    text-decoration: none;
    border-bottom: 1px solid #f8f9fa;
    transition: all 0.2s ease;
}

.mobile-menu-link:hover {
    color: var(--accent);
    text-decoration:underline;
    background-color: #f8f9fa;
    text-decoration: none;
    padding-left: 1.5rem;
}

/* Responsive Behavior */
@media (max-width: 991.98px) {
    .mega-menu-dropdown {
        display: none !important;
    }
    
    .mobile-mega-menu {
        display: block;
    }
    
    .navbar-nav .dropdown-toggle::after {
        display: none;
    }
}

@media (min-width: 992px) {
    .mobile-mega-menu {
        display: none !important;
    }
}

/* Navbar Enhancements */
.navbar {
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
}

.nav-link {
    /*font-weight: 500;*/
    transition: color 0.2s ease;
    color:#010f34;
}

.nav-link:hover {
    color: var(--accent) !important;
}

/* Dropdown Arrow Animation */
.dropdown-toggle::after {
    transition: transform 0.2s ease;
}

.mega-menu-item:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Accessibility Improvements */


.mobile-menu-item:focus {
    outline: 2px solid #0d6efd;
    outline-offset: -2px;
}

/* Loading Animation */
.mega-menu-dropdown::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent) ;
    background-size: 200% 100%;
    animation: loading 2s linear infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Hover Effects for Icons */
.mega-menu-title i,
.mega-menu-subtitle i {
    transition: transform 0.2s ease;
}

.mega-menu-title:hover i,
.mega-menu-subtitle:hover i {
    transform: scale(1.1);
}

/* Custom Scrollbar for Mobile Menu */
.mobile-mega-body::-webkit-scrollbar {
    width: 6px;
}

.mobile-mega-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.mobile-mega-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.mobile-mega-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
.mobile-mega-footer .btn-primary {
    background: var(--accent);
    border: 1px solid var(--accent);
}

.mobile-mega-footer .btn-outline-primary {
    border: 1px solid var(--accent);
    color: var(--accent);
}
.for_just_mbl img {
    width: 100%;
    max-width: 280px;
    display: block !important;
}











/* Tablet Specific Styles */
@media (min-width: 768px) and (max-width: 991.98px) {
    .mega-menu-dropdown .col-md-6 {
        margin-bottom: 2rem;
    }
    .cs_nav .cs_nav_list {
        padding-top: 120px !important;
    }
    .mobile-mega-content {
        max-width: 100%;
    }
    .mobile-mega-footer {
    display: flex;
    gap: 20px;
}
li.nav-item.dropdown.mega-menu-item .dropdown-toggle::after {
    content: "";
    display: inline-block;
    height: 8px;
    width: 8px;
    border: 2px solid currentColor;
    -webkit-transform: rotate(45deg);
    transform: rotate(318deg);
    border-left: 0;
    border-top: 0;
    margin-left: 6px;
    position: relative;
    top: 3px;
    border-radius: 0px 0px 2px 0px;
}
}

/* Large Screen Optimizations */
@media (min-width: 1400px) {
    .mega-menu-dropdown {
        padding:22px 0;
    }
    
    .container {
        max-width: 1320px;
    }
}

/* Print Styles */
@media print {
    .mega-menu-dropdown,
    .mobile-mega-menu {
        display: none !important;
    }
}

@media (min-width: 1400px) {
    .mega-menu-dropdown {
        padding:22px 0;
    }
    
    .container {
        max-width: 1320px;
    }
}
@media (max-width: 767px) {
.mobile-mega-content {
    max-width:100%;
    z-index: 999999;
}

.mobile-menu-back {
    padding: 1rem 0;
    color: var(--accent);
}
.mobile-submenu-title {
    color: #fff;
    background: var(--accent);
}
li.nav-item.dropdown.mega-menu-item .dropdown-toggle::after {
    content: "";
    display: inline-block;
    height: 8px;
    width: 8px;
    border: 2px solid currentColor;
    -webkit-transform: rotate(45deg);
    transform: rotate(318deg);
    border-left: 0;
    border-top: 0;
    margin-left: 6px;
    position: relative;
    top: 3px;
    border-radius: 0px 0px 2px 0px;
}
}
