nav {
    box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.05);
}

nav > div:first-child {
    padding: clamp(10px, 1.12vw, 21px) 0.8rem;
}
nav > div:last-child {
    padding: clamp(10px, 0.75vw, 14px) 0.8rem;
}
nav > div:first-child {
    background-color: var(--primary);
}
nav > div:first-child > div {
    gap: clamp(25px, 3.67vw, 70px);
}

/* LOCALE SELECT */
#locale-select-js {
    position: relative;
}
#locale-select-js > select {
    background: none;
    border: none;
    color: white;
    width: clamp(50px, 2.89vw, 55px);
}
#locale-select-js::before {
    position: absolute;
    content: "";
    width: clamp(21px, 1.22vw, 23px);
    height: 100%;
    background-image: url("../images/icons/globe-icon.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
/* END LOCALE SELECT */

nav img {
    height: clamp(70px, 5.91vw, 113px);
    width: auto;
}

nav > div:last-child a {
    display: inline-block;
    color: var(--primary);
    padding-bottom: clamp(14px, 2.63vw, 20px);
}

nav a {
    position: relative;
}
nav a:not(.no-underline)::before {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    background-color: white;
    transition: width 0.2s;
}
nav > div:last-child a::before {
    background-color: var(--primary);
}

nav a:hover::before,
nav a.active::before {
    width: 100%;
}

#toggle-navbar-target {
    overflow: hidden;
    height: 0;
    padding-top: 0;
    transition: height 0.3s, padding-top 0.3s;
}
#toggle-navbar-target.open {
    padding-top: clamp(25px, 2.11vw, 40px);
    height: auto;
}

/* OPEN/CLOSE SIDEBAR BUTTON */
#toggle-navbar-js {
    background: none;
    border: solid 1px var(--primary);
    border-radius: 5px;
    width: clamp(35px, 2.37vw, 45px);
    display: flex;
    flex-direction: column;
    gap: clamp(4px, 0.29vw, 5px);
    padding: clamp(6px, 0.44vw, 8px) clamp(5px, 0.44vw, 8px);
    cursor: pointer;
    margin-top: 20px;
}
#toggle-navbar-js > span {
    position: relative;
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary);
    border-radius: 10px;
    transition: transform 0.2s, top 0.2s;
    top: auto;
}
#toggle-navbar-js.active > span:first-child {
    top: clamp(7.5px, 0.52vw, 9.5px);
    transform: rotateZ(45deg);
}
#toggle-navbar-js.active > span:nth-child(2) {
    visibility: hidden;
}
#toggle-navbar-js.active > span:last-child {
    top: clamp(-6.5px, -0.36vw, -6.2px);
    transform: rotateZ(-45deg);
}
/* END OPEN/CLOSE SIDEBAR BUTTON */

@media (min-width: 992px) {
    #toggle-navbar-target {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        height: auto !important;
        padding: 0 !important;
        overflow: visible;
    }

    nav > div {
        display: flex;
        align-items: center;
    }
    nav > div > a:nth-child(3) {
        order: 3;
    }
    nav > div:last-child a {
        padding: 0;
    }

    nav .seperator {
        padding: 0 clamp(10px, 1.54vw, 29px);
    }
    nav .seperator:nth-child(6) {
        display: none;
    }

    #toggle-navbar-js {
        display: none !important;
    }
}

@media (max-width: 575.98px) {
    #toggle-navbar-target.open {
        /* height: clamp(260px, 48.64vw, 280px); */
        height: clamp(380px, 59.16vw, 340px);
    }
}
