/* Navigation Styles for Black Background and White Text */
/* More specific selectors with higher specificity and !important to override any existing styles */
header .header-navbar.header-navbar-s2,
.nk-header .header-navbar.header-navbar-s2 {
    background-color: #fff !important;
}

/* Main menu items */
#header-menu,
.header-menu,
.header-menu.header-menu-s2 {
    background-color: #fff !important;
}

/* All menu links */
.header-menu .menu-link,
.header-menu .menu-toggle,
.header-menu .nav-link,
.header-menu .menu>li>a,
.header-menu.header-menu-s2 .menu>li>a,
.header-menu .menu-item a {
    color: #000 !important;
}

/* Hover states */
.header-menu .menu-link:hover,
.header-menu .menu-toggle:hover,
.header-menu .nav-link:hover,
.header-menu .menu>li>a:hover,
.header-menu.header-menu-s2 .menu>li>a:hover,
.header-menu .menu-item a:hover {
    color: #fff !important;
}

/* Dropdown menus */
.header-menu .menu-sub,
.header-menu .menu-drop,
.header-menu.header-menu-s2 .menu-sub,
.header-menu.header-menu-s2 .menu-drop {
    background-color: #fff !important;
}

/* Dropdown menu items */
.header-menu .menu-drop .menu-link,
.header-menu .menu-drop .nav-link,
.header-menu .menu-sub .menu-link,
.header-menu .menu-sub .nav-link,
.header-menu.header-menu-s2 .menu-sub .menu-link,
.header-menu.header-menu-s2 .menu-drop .menu-link {
    color: #000 !important;
}

/* Button text color */
.menu-btns .btn.focus span,
.menu-btns .btn span,
.menu-btns .btn.btn-secondary span,
.menu-btns .text-white {
    color: #000 !important;
}

.btn-contact {
    background-color: #fff !important;
    color: #000 !important;
    border: 3px solid blue !important;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 255, 0.2);
}

/* Hover effect */
.btn-contact:hover {
    background-color: #ffffff !important;
    /* Dark navy */
    color: #00f !important;
    /* Blue text */
    box-shadow: 0 6px 15px #fff;
}

/* Active (click) effect */
.btn-contact:active {
    transform: scale(0.97);
    box-shadow: 0 2px 6px #fff;
}


/* Login btn */
.btn-login {
    background-color: #fff !important;
    color: #000 !important;
    border: 3px solid blue !important;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 255, 0.2);
}

/* Hover effect */
.btn-login:hover {
    background-color: #ffffff !important;
    /* Dark navy */
    color: #00f !important;
    /* Blue text */
    box-shadow: 0 6px 15px rgba(155, 155, 234, 0.4);
}

/* Active (click) effect */
.btn-login:active {
    transform: scale(0.97);
    box-shadow: 0 2px 6px rgba(0, 0, 255, 0.3);
}




.header-main {
    /* border: 1px aqua solid; */
    background: #fff !important;
    width: 100%;
    overflow: hidden;
    z-index: 10;
    position: relative;
}


/* Responsive styles for different screen sizes */
/* For screens up to 1024px (large tablets and small desktops) */
@media (max-width: 1024px) {

    /* Adjust menu positioning */
    .header-menu.header-menu-s2 ul.menu {
        right: 0 !important;
    }

    /* Responsive menu class */
    .responsive-menu {
        right: 0 !important;
    }

    /* Adjust button sizes for medium screens */
    .btn-login,
    .btn-contact {
        padding: 10px 18px;
        font-size: 14px;
    }

    /* Adjust menu items spacing */
    .header-menu .menu>li>a {
        padding: 15px 10px !important;
    }

    /* Reduce dropdown menu width */
    .header-menu .menu-sub,
    .header-menu .menu-drop {
        min-width: 200px;
    }
}

/* For screens up to 768px (tablets and large phones) */
@media (max-width: 768px) {

    /* Header adjustments */
    .header-navbar.header-navbar-s2 {
        padding: 0 !important;
    }

    /* Responsive menu adjustments */
    .responsive-menu {
        right: 0 !important;
        max-width: 100%;
        padding-left: 10px;
    }

    /* Further reduce button sizes */
    .btn-login,
    .btn-contact {
        padding: 8px 15px;
        font-size: 13px;
        border-width: 2px !important;
    }

    /* Adjust menu container */
    .header-menu.header-menu-s2 {
        max-height: 85vh;
        overflow-y: auto;
    }

    /* Ensure dropdown menus are fully visible */
    .header-menu .menu-sub,
    .header-menu .menu-drop {
        max-height: none;
        overflow: visible;
    }
}

/* For screens up to 425px (mobile phones) */
@media (max-width: 425px) {

    /* Stack the header elements */
    .header-wrap {
        flex-direction: column;
    }

    /* Center logo */
    .header-logo {
        margin: 10px auto;
    }

    /* Responsive menu for small screens */
    .responsive-menu {
        width: 100%;
        padding: 0;
        margin: 0;
        text-align: center;
    }

    .responsive-menu li {
        display: block;
        width: 100%;
    }

    /* Make buttons smaller and full width */
    .btn-login,
    .btn-contact {
        padding: 8px 12px;
        font-size: 12px;
        display: block;
        width: 100%;
        margin: 5px 0;
    }

    /* Adjust menu toggle position */
    .header-nav-toggle {
        position: absolute;
        top: 20px;
        right: 20px;
    }

    /* Make dropdown menus full width */
    .header-menu .menu-sub,
    .header-menu .menu-drop {
        width: 100%;
        left: 0;
    }

    /* Adjust submenu items */
    .header-menu .menu-sub .menu-item>a {
        padding: 12px 15px;
    }
}

/* Desktop submenu toggle functionality */
/* By default, hide submenus on desktop */
@media (min-width: 992px) {
    .header-menu .menu-drop,
    .header-menu .menu-sub {
        display: none !important;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }
    
    /* Show submenus when parent has 'active' class or on hover */
    .header-menu .menu-item.active > .menu-drop,
    .header-menu .menu-item.active > .menu-sub,
    .header-menu .menu-item:hover > .menu-drop,
    .header-menu .menu-item:hover > .menu-sub {
        display: block !important;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    /* Show submenus with 'show' class */
    .header-menu .menu-drop.show,
    .header-menu .menu-sub.show {
        display: block !important;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    /* Nested submenu positioning */
    .header-menu .menu-item .menu-item > .menu-drop,
    .header-menu .menu-item .menu-item > .menu-sub {
        left: 100%;
        top: 0;
        margin-left: 1px;
    }
    
    /* Ensure proper z-index for nested dropdowns */
    .header-menu .menu-item.active {
        z-index: 10001;
    }
    
    /* Highlight active menu items */
    .header-menu .menu-item.active > .menu-link,
    .header-menu .menu-item.active > .menu-toggle {
        background-color: rgba(0, 0, 0, 0.1);
        color: #333 !important;
    }
}