/* Language Selector Bar */
.lang-sel {
    background-color: cornflowerblue;
    display: flex;
    justify-items: flex-end;
}

/* Navbar Styling */
.navbar {
    background-color: cornflowerblue;
    height: min-content;
    padding: 10px 10px;
    position: relative;
}

/* Navbar Nav Styles */
.navbar-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

    .navbar-nav .nav-link {
        text-transform: uppercase;
        color: black;
        font-size: 18px;
    }

    .navbar-nav .nav-item {
        margin: 0px 10px;
        font-weight: 500;
        position: relative;
        transition: transform 0.2s ease;
    }

    .navbar-nav .nav-link:hover {
        color: black !important;
        transform: scale(1.2);
    }

    .navbar-nav .nav-item a {
        transition: color 0.2s ease, font-weight 0.2s ease;
    }

/* Dropdown Menu Styling */
.dropdown-menu {
    display: none;
    position: absolute;
    background: white;
    list-style: none;
    margin: 0;
    padding: 10px;
    border: 1px solid #ddd;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
    min-width: 250px;
    z-index: 999;
}

    .dropdown-menu li {
        padding: 5px 10px;
    }

    .dropdown-menu a {
        text-decoration: none;
        color: black;
        display: block;
        padding: 5px 10px;
    }

.nav-item:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a:hover {
    font-weight: bold;
}

/* Login Button */
#login {
    border: 1px solid black;
    border-radius: 10px;
    padding: 0px 15px;
    font-size: 12px;
    height: 20px;
    transition: 0.2s ease-out;
    width:max-content;
}

    #login:hover {
        background-color: #A0C878;
    }

/* Back Button (Optional) */
.navbar-back-button {
    display: none;
    background-color: #A0C878;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    margin: 10px;
    cursor: pointer;
    border-radius: 5px;
}

    .navbar-back-button:hover {
        background-color: #8EAE61;
    }

/* Custom Hamburger Toggle (Hidden by Default) */
.menu-toggle {
    display: none;
}

.navbar-toggler-custom {
    display: none;
    font-size: 28px;
    cursor: pointer;
    padding: 10px 15px;
    color: white;
}

/* Custom Collapse Panel */
.navbar-collapse-custom {
    transition: all 0.3s ease-in-out;
}

/* RESPONSIVE SECTION */
@media (max-width: 1200px) {
    .container-fluid {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 28px;
    }

    .navbar-toggler-custom {
        display: block;
        
    }

    .navbar-collapse-custom {
        display: none;
        border-radius:15px;
        flex-direction: column;
        position: absolute;
        top: 40px;
        left: 0;
        width: 100%;
        background-color: cornflowerblue;
        padding: 20px;
        z-index: 999;
    }

    /* Show menu when checkbox is checked */
    .menu-toggle:checked + .navbar-toggler-custom + .navbar-collapse-custom {
        display: flex;
    }

    .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .nav-item {
        margin: 10px 0;
    }

    /* Dropdown in mobile view */
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background-color: transparent;
        display: none;
        padding-left: 15px;
        cursor:pointer;
    }

    /* Make dropdowns open with click (focus/active) */
    .dropdown > .nav-link:hover + .dropdown-menu,
    .dropdown > .nav-link:active + .dropdown-menu {
        display: block;
        position:static;
    }

    /* Disable hover behavior in mobile */
    .nav-item:hover .dropdown-menu {
        display: block;
    }

    #login {
        position: relative;
        
        right: -15px;
    }
}
