/* ## MENU-OPENER ## */
.menu-opener {
    display: none;
    position: fixed;
    z-index: 16000;
    right: 10px;
    top: 7px;
    width: 35px;
    height: 35px;
    cursor: pointer;
    background: var(--color-primary);
    border: 1px solid var(--color-white);
    color: var(--color-white);
    border-radius: 3px;
}

.menu-opener span {
    display: block;
    position: absolute;
    height: 1px;
    left: 5px;
    width: calc(100% - 10px);
    background: var(--color-white);
    border-radius: 3px;
    opacity: 1;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.menu-opener span:nth-child(1) {top: 8px;}
.menu-opener span:nth-child(2), .menu-opener span:nth-child(3) {top: 17px;}
.menu-opener span:nth-child(4) {top: 25px;}
.menu-opener.open span:nth-child(1) {top: 12px; width: 0; left: 50%;}
.menu-opener.open span:nth-child(2) {transform: rotate(45deg);}
.menu-opener.open span:nth-child(3) {transform: rotate(-45deg);}
.menu-opener.open span:nth-child(4) {top: 10px; width: 0; left: 50%;}

.sm-menu .sub-arrow {
    position: absolute;
    top: 50%;
    margin-top: -15px;
    left: auto;
    right: 12px;
    width: 30px;
    height: 30px;
    overflow: hidden;
    font: bold 20px/28px monospace !important;
    text-align: center;
    text-shadow: none;
    border: 1px solid transparent;
    border-right: 1px solid var(--color-primary);
    border-top: 1px solid var(--color-primary);
    cursor: pointer;
}

.sm-menu li a:hover span.sub-arrow, .sm-menu li a:focus span.sub-arrow, .sm-menu li a.current span.sub-arrow, .sm-menu li a.highlighted span.sub-arrow {
    border-right-color: var(--color-white);
    border-top-color: var(--color-white);
}

.sm-menu a.highlighted .sub-arrow:before {
    display: block;
    content: '-';
}

/* ONLY DEKSTOP */
@media all and (min-width: 992px) {
    .top-menu {
        text-align: unset;
        height: 50px;
        z-index: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
    }

    .sm-menu {display: flex; align-items: center; gap: 30px;}
    .sm-menu li {font-size: 16px; line-height: normal; margin: 0; position: relative; z-index: 10; text-align: center;}
    .sm-menu li a {
        position: relative;
        z-index: 9999;
        color: var(--color-default);
        display: block;
        cursor: pointer;
        font-weight: 600;
        top: 0;
    }
    .sm-menu > li > a {
        padding: 5px 0;
        border-bottom: 2px solid transparent;
        height: 30px;
        display: flex;
        align-items: center;
        transition: border 0.2s ease-in-out;
    }

    .sm-menu li a.has-submenu {
        padding-right: 20px;
    }
    .sm-menu li a span.sub-arrow {
        top: 50%;
        margin-top: -6px;
        right: 5px;
        width: 8px;
        height: 8px;
        transform: rotate(135deg);
        border-radius: 0;
    }

    .sm-menu ul {
        position: absolute;
        z-index: 9998;
        display: none;
        width: 12em;
        padding: 10px 0;
        min-width: 200px !important;
        background: var(--color-primary);
        border-radius: 0 8px 8px 8px;
        text-align: left;
        font-size: 15px;
        text-transform: initial;
        margin-top: -9px !important;
    }

    .sm-menu ul li {float: none; margin: 0 15px; text-align: left; text-transform: none;}
    .sm-menu ul li a {padding: 5px 0; color: var(--color-white);  z-index: 9997;}
    .sm-menu ul li a:hover, .sm-menu ul li a.current {opacity: 0.7;}
    .sm-menu span.scroll-up,
    .sm-menu span.scroll-down {
        position: absolute;
        display: none;
        visibility: hidden;
        overflow: hidden;
        background: var(--color-heading);
        height: 20px;
    }
    .sm-menu .scroll-up:hover .scroll-up-arrow, .sm-menu .scroll-up:hover .scroll-down-arrow {
        border-color: transparent transparent var(--color-default) transparent;
    }
    .sm-menu .scroll-down:hover .scroll-down-arrow {
        border-color: var(--color-white) transparent transparent transparent;
    }
    .sm-menu .scroll-up-arrow, .sm-menu .scroll-down-arrow {
        position: absolute;
        top: 0;
        left: 50%;
        margin-left: -6px;
        width: 0;
        height: 0;
        overflow: hidden;
        border-width: 6px;
        border-style: dashed dashed solid dashed;
        border-color: transparent transparent var(--color-white) transparent;
    }
    .sm-menu .scroll-down-arrow {
        top: 8px;
        border-style: solid dashed dashed dashed;
        border-color: var(--color-white) transparent transparent transparent;
    }

    .sm-menu > li > a:hover, .sm-menu > li > a:focus, .sm-menu > li > a.current, .sm-menu > li > a.highlighted {
        color: var(--color-default);
        border-color: var(--color-default);
    }
}

@media all and (max-width: 1299px) and (min-width: 991px) {
    .sm-menu li {font-size: 14px;}
}

/* ONLY MOBILE */
@media all and (max-width: 991px) {
    body.open-menu {overflow-y: hidden;}
    .menu-opener {display: block;}
    .top-menu {
        position: fixed;
        z-index: 998;
        background: var(--color-primary);
        top: 50px;
        left: 0;
        width: 100%;
        height: 0%;
        opacity: 0;
        visibility: hidden;
        -webkit-transition: opacity .35s, visibility .35s, height .35s;
        transition: opacity .35s, visibility .35s, height .35s;
        overflow: hidden;
        margin-top: 0;
        backdrop-filter: blur(8px);
        padding-top: 10px;
        text-align: left;
    }
    .top-menu.open {
        opacity: 1;
        visibility: visible;
        height: calc(100dvh - 50px);
        overflow-y: auto;
    }

    .sm-menu > li {font-size: 14px; line-height: normal; border-bottom: 1px solid rgba(255, 255, 255, .5); margin: 0;}
    .sm-menu li a {display: block; color: var(--color-white); padding: 10px 15px; position: relative; font-weight: 600;}
    .sm-menu li > a.current {color: var(--color-primary-hover);}
    .sm-menu ul {display: none; padding-left: 30px; padding-bottom: 10px; margin-bottom: 0;}
    .sm-menu .has-submenu.current + ul {display: block;}
    .sm-menu ul li {margin: 0; text-transform: none;}
    .sm-menu ul li a {padding: 10px 0; font-weight: 600;}
    .top-menu.open li {animation-name: fadeInUp; animation-duration: 0.5s;}

    .sm-menu .sub-arrow {border: none; background: rgba(255, 255, 255, 0.1);}
    .sm-menu .sub-arrow::before {content: '+';}
}

@media all and (max-width: 991px) {
}

@media all and (max-width: 767px) {
}

@media all and (max-width: 479px) {
}
