@media screen and (max-width: 1399px) {
    .noScroll {
        overflow: hidden;
    }
}

header {
    z-index: 9999;
    box-shadow: 0px 3px 6px #00000029;
    top: 0;

    ol,
    ul,
    li {
        list-style: none;
        padding: 0;
        margin: 0;
        color: #3B3B3A;
        font-size: 16px;
    }
}

.site-logo {
    min-width: 120px;
    width: fit-content;
    max-width: 180px;
    height: auto;

    img {
        transition: all 250ms ease-in-out;
    }
}

.nav-item {
    font-size: 16px;

    &:first-child {
        margin-left: 0;
    }
}

.dropdownPanel {
    display: none;
    position: absolute;
    top: 90px;
    background-color: #fff;
    overflow: hidden;
    transition: all 500ms ease-in-out;
    border-radius: 0 0 5px 5px;
    padding-top: 1rem;

    a {
        font-size: 16px;
        line-height: 2rem;
    }

    .submenu {
        height: 0;
        overflow: hidden;
        transition: all 500ms ease;
        background-color: #f1f1f1;
    }
}

.dropdownPanelAnimation {
    animation: dropDown 500ms ease-in-out forwards;
    transform-origin: top center;
}

@keyframes dropDown {
    0% {
        transform: scaleY(0);
    }

    80% {
        transform: scaleY(1.1);
    }

    100% {
        transform: scaleY(1);
    }
}

.menu-items {
    /* padding: 1rem 0; */
    font-weight: 500;

    &:first-child {
        padding: 0;
    }

    a {
        display: grid;
        padding: 0.25rem 1rem;
        width: 100%;
    }
}

#language-switcher a {
    font-size: 16px;
    font-weight: bold;
}

.burger-icon {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    right: 0;
    z-index: 9999;
}

.burger-icon-line {
    display: block;
    width: 30px;
    height: 3px;
    margin: 0 0 10px 0;
    background: #26408b;
    transition: all 0.5s ease-out;
}

.burger-icon-line:last-child {
    margin: 0;
}

.close .burger-icon-line:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.close .burger-icon-line:nth-child(2) {
    opacity: 0;
}

.close .burger-icon-line:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.submenu-item>a {
    display: inline-block;
}

.nav-item,
.grand-link,
.submenu-item>a {
    color: black;
}

.nav-item:hover,
.grand-link:hover,
.submenu-item>a:hover {

    color: #e78a25 !important;
}

.menu-items a:hover {
    background: #f8f9fa;

}

@media screen and (min-width: 1400px) {
    .burger-icon {
        display: none;
    }

    .navbar-nav {
        justify-content: end;
        flex-direction: row !important;
        align-items: center;
        gap: 2rem;
    }

    .back-button {
        display: none;
    }


    .dropdownPanel {
        top: 165px !important;
    }
}

@media screen and (max-width: 1399px) {
    .navbar-nav {
        flex-direction: column !important;
        align-items: center;
        background-color: #fff;
        z-index: 2;
        top: 95px;
        right: 0;
        left: 0;
        width: 0;
        transition: height 0.5s ease, width 0.5s ease, visibility 0.2s ease;
        height: 0;
        visibility: hidden;
        pointer-events: none;
        position: fixed;
        max-width: 100dvw;
        gap: 2rem;
        /* padding-top: 3rem; */
    }

    .dropdownPanel-inner {
        justify-content: center;
    }

    /* .logged-in .navbar-nav {
        top: 127px;
    } */

    .hiddenNav {
        max-width: 100dvw;
        width: 100%;
        height: 100%;
        top: 0px;
        visibility: visible;
        z-index: 9999;
        pointer-events: all;
        flex-direction: column !important;
        padding-top: 3rem;
    }

    /* .logged-in .hiddenNav {
        height: 100%;
        top: 127px;
    } */

    .dropdownPanel {
        top: 0;
        height: 100vh;
        width: 100vw;
        padding-top: 3rem;
    }

    .nav-item {
        padding: 0;
    }

    .back-button {
        padding: 10px 15px;
        border-radius: 100%;
    }

    .menu-items {
        gap: 2rem;
        overflow: auto;
        height: 80dvh;
    }

    .navbar-collapse {
        position: unset !important;
    }
}

/* @media screen and (max-width: 783px) {
    .logged-in .hiddenNav {
        top: 141px;
    }

    .logged-in .navbar-nav {
        top: 141px;
    }
} */

@media screen and (max-width: 768px) {
    .custom-logo-link img {
        height: 60px !important;
    }

    .logo-header {
        height: 35px !important;
    }
}


.wpml-ls-legacy-list-horizontal a,
.wpml-ls-legacy-list-horizontal {
    padding: 0 !important;
}

.wpml-ls-statics-shortcode_actions ul {
    display: flex;
    gap: 0.5rem;
}

.wpml-ls-legacy-list-horizontal a {
    display: flex !important;
}