/* ===========================
   HEADER & NAVIGATION
   =========================== */

header {
    background-color: #ffffff;
    padding: 1em 0;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#logo {
    width: 140px;
}

/* Desktop Navigation */
header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

header nav ul li {
    margin-left: 25px;
}

header nav ul li a {
    color: #003366;
    font-weight: bold;
    font-size: 1em;
    text-decoration: none;
}

header nav ul li a:hover {
    color: #0056b3;
}

/* Dropdown */
nav#desk_nav .dropdown {
    position: relative;
}

nav#desk_nav .dropdown > a {
    cursor: pointer;
    display: inline-block;
}

nav#desk_nav .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 155px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 6px;
    z-index: 999;
}

nav#desk_nav .dropdown:hover .dropdown-content {
    display: block;
}

nav#desk_nav .dropdown-content a {
    color: #156082;
    padding: 0.75rem 1rem;
    display: block;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s ease;
}

nav#desk_nav .dropdown-content a:hover {
    background-color: #f3f6f8;
}

/* Language Switcher */
.language-switcher {
    position: relative;
    z-index: 1;
}

.language-switcher span {
    color: #003366;
    font-weight: bold;
    cursor: pointer;
}

#language-select {
    padding: 5px;
    font-size: 16px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

/* Mobile Menu */
#menu_toggle {
    display: none;
    width: 30px;
    height: 25px;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
}

.bar {
    height: 4px;
    background-color: #000;
    border-radius: 2px;
    transition: 0.4s;
}

#menu_toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#menu_toggle.active .bar:nth-child(2) {
    opacity: 0;
}
#menu_toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

#mobile_nav_bar {
    display: none;
    position: absolute;
    left: -200px;
    top: 13vh;
    padding-top: 25px;
    padding-right: 25px;
    background-color: white;
    height: 100vh;
    transition: all 0.4s;
}
#mobile_nav_bar ul {
    flex-direction: column;
    gap: 30px;
}

/* Login Link */
.mobile_login {
    width: 140px;
    text-align: center;
}
.mobile_login a {
    color: black;
    font-size: 17px;
    font-weight: bold;
}

/* Responsive */
@media screen and (max-width: 850px) {
    #desk_nav {
        display: none;
    }
    .mobile_login {
        display: none;
    }
    #menu_toggle {
        display: flex;
    }
    #mobile_nav_bar {
        display: flex;
    }
}
