.admin-bar{
    header.site-header{
        top: 32px;
        &.is-scroll{
            top: -68px;
        }
        @media screen and (max-width: 783px) {
            top: 46px;
            &.is-scroll{
                top: -54px;
            }
        }
    }
}

// has max megamenu
#site-header{
    max-width: 100%;
    margin: 0;

    .site-navigation{
        .mega-menu-wrap{
            .max-mega-menu{
                > li.mega-menu-item > a.mega-menu-link {
                    letter-spacing: 4px;
                    font-family: $oswald-font !important;
                }

                > li.mega-menu-flyout{
                    ul.mega-sub-menu{
                        width: auto !important;
                        -webkit-box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.05) !important;
                        box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.05) !important;
                        li.mega-menu-item{
                            transition: all .4s !important;
                            a.mega-menu-link{
                                white-space: nowrap !important;
                            }
                            &:hover{
                                padding-left: 10px !important;
                            }
                        }
                    }
                }

                > li.mega-menu-megamenu {
                    > ul.mega-sub-menu{
                        position: fixed !important;
                        padding: 20px 5px !important;
                    }
                }

                .mega-menu-row{
                    .mega-menu-column{
                        > ul.mega-sub-menu{
                            > li.mega-menu-item{
                                padding: 10px 15px !important;
                            }
                        }
                    }
                }


                .widget_block{
                    h6,
                    .title{
                        color: $primary-color;
                        a{
                            color: $primary-color;
                        }
                    }
                }

                .widget_nav_menu{
                    ul.menu{
                        flex-wrap: wrap;
                        li{
                            width: 100%;
                            transition: all 0.4s;
                            a{
                                display: block;
                                background: $primary-bg-color;
                                color: #fff;
                                font-family: inherit;
                                font-size: 15px;
                                font-weight: 300;
                                padding: 2px 0;
                                line-height: 1.75em;
                                vertical-align: baseline;
                                -webkit-transition: all .4s;
                                transition: all .4s;
                                &:hover{
                                    color: $primary-color;
                                }
                            }
                            &:hover{
                                padding-left: 6px;
                            }
                        }
                    }
                }

            }
        }
    }

}

body:not(.home){
    header.site-header{
        background: #151725;
        -webkit-box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
        box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
        .site-navigation:not(:has(.max-mega-menu)){
            ul.menu{
                li{
                    a{
                        color: #fff;
                        &:hover{
                            color: $primary-color;
                        }
                    }
                }
            }
            
        }
        .site-branding .custom-logo-link img{
            //filter: invert(1);
        }
        .site-search-icon{
            .search-icon-btn{
                color: #fff;
            }
        }
    }
}
header.site-header{
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: #1E21371A;
    z-index: 99;
    padding-right: 10%;
    padding-left: 0;
    padding-top: 0;
    padding-bottom: 0;
    display: flex;
    align-items: center;
    flex-flow: row nowrap;
    .site-branding{
        padding: 5px;
        .custom-logo-link{
            width: 100px;
            display: flex;
            img{
                width: 100%;
            }
        }
    }
    .navbar-toggler{
        @media screen and (min-width: $break-lg + 0.1) {
            display: none;
        }
        padding: 4px 12px;
        border: 0;
        color: $primary-color;
        font-size: 20px;
        line-height: 1;
        max-height: max-content;
        height: auto;
        outline: none;

        .ti-close{
            display: none;
        }
        &:hover{
            background-color: transparent;
        }
        &:focus{
            background-color: transparent;
        }

        &.is-active{
            .ti-close{
                display: block;
            }
            .ti-line-double{
                display: none;
            }
        }
    }
    .site-navbar-menu{
        padding: 2px;
        display: flex;
        align-items: center;
    }
    .site-navigation:not(:has(.max-mega-menu)){
        margin-left: auto;
        margin-right: 0;

        ul.menu{
            margin-bottom: 0;
            flex-flow: row nowrap;
            li{
                .nav-link{
                    font-family: $barlow-font;
                    font-size: 14px;
                    font-weight: 500;
                    text-transform: uppercase;
                    letter-spacing: 2px;
                    line-height: 1.75em;
                    margin: 5px 5px;
                }

                a{
                    font-size: 16px;
                    font-weight: 400;
                    color: #fff;
                    padding: .5rem;
                    -webkit-transition: all .4s;
                    transition: all .4s;
                    &:hover{
                        color: $primary-color;
                    }
                }
                &.menu-item-has-children{
                    padding-right: 0;
                    &::after{
                        display: none;
                    }
                    .nav-icon{
                        padding-left: 4px;
                        font-size: 9px;
                    }
                }
                &:hover{
                    > .sub-menu{
                        opacity: 1;
                        visibility: visible;
                        -webkit-transform: translateY(0);
                        transform: translateY(0);
                    }
                }

                ul{
                    li{
                        border-bottom: 1px solid rgba(255, 255, 255, 0.025);
                        -webkit-transition: all .4s;
                        transition: all .4s;
                        &:last-child{
                            border-bottom: 0;
                        }
                        a{
                            padding: 0.5rem;
                            color: #fff;
                        }
                        &:hover{
                            padding-left: 6px;
                        }
                    }
                }
            }

            &.has-mega-menu{
                padding: 0;
                .mega-menu-active{
                    .nav-icon{
                        i{
                            display: none;
                        }
                        &::after{
                            display: inline-block;
                            width: 0;
                            height: 0;
                            margin-left: .255em;
                            vertical-align: .255em;
                            content: "";
                            border-top: 4px solid;
                            border-right: 4px solid transparent;
                            border-bottom: 0;
                            border-left: 4px solid transparent;
                        }
                    }
                }
                li{
                    &.menu-item-mega-menu{
                        position: static;
                    }
                    .mega-menu-sub-menu{
                        display: block;
                        opacity: 0;
                        visibility: hidden;
                        -webkit-transform: translateY(20px);
                        transform: translateY(20px);
                        background-color: $primary-bg-color;
                        -webkit-box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.05);
                        box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.05);
                        -webkit-transition: all .3s;
                        transition: all .3s;
                        min-width: 250px;
                        position: absolute;
                        width: 100%;
                        z-index: -1;
                        left: 0;
                        right: 0;
                        top: 100%;
                        padding: 20px 0;
                        max-height: 0;
                        overflow: auto;
                        overflow-x: hidden;

                        /* width */
                        &::-webkit-scrollbar {
                            width: 8px;
                        }

                        /* Track */
                        &::-webkit-scrollbar-track {
                            background: #f1f1f1;
                        }

                        /* Handle */
                        &::-webkit-scrollbar-thumb {
                            background: #999;
                        }

                        .mega-menu-heading{
                            text-align: center;
                            margin-bottom: 20px;
                            a{
                                font-weight: 600;
                                font-size: 20px;
                                color: $primary-color;
                                line-height: 1.25em;
                                padding: 0;
                            }
                        }

                        li{
                            flex-direction: column;
                            white-space: nowrap;
                            border: 0;
                            padding: 15px;
                            &:hover{
                                padding-left: 15px;
                            }
                            .title{
                                font-size: 20px;
                                color: $primary-color;
                                .nav-icon{
                                    display: none;
                                }
                            }
                            a{
                                padding: 0;
                            }
                        }
                        > .sub-menu{
                            padding: 0;
                            display: grid;
                            grid-template-columns: repeat(4, 1fr);
                            position: initial;
                            left: 0;
                            width: 100%;
                            transform: translateY(0);
                            box-shadow: none;
                            .sub-menu{
                                padding: 0;
                                position: initial;
                                box-shadow: none;
                                transform: translate(0,0);
                                z-index: 1;
                                li{
                                    padding: 0;
                                }
                                a{
                                    &:hover{
                                        padding-left: 6px;
                                    }
                                }
                            }
                        }
                    }
                    &:hover{
                        > .mega-menu-sub-menu{
                            opacity: 1;
                            visibility: visible;
                            -webkit-transform: translateY(0);
                            transform: translateY(0);
                            z-index: 2;
                            max-height: 70vh;
                            .sub-menu{
                                height: 100%;
                                opacity: 1;
                                visibility: visible;
                            }
                        }
                    }

                }
            }
        }

        .sub-menu{
            padding: 10px;
            display: block;
            opacity: 0;
            visibility: hidden;
            -webkit-transform: translateY(20px);
            transform: translateY(20px);
            background-color: $primary-bg-color;
            -webkit-box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.05);
            box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.05);
            -webkit-transition: all .3s;
            transition: all .3s;
            min-width: 250px;
            position: absolute;
            z-index: -1;
            left: 0;
            top: 100%;
            li{
                white-space: nowrap;
            }
            .sub-menu{
                left: 100%;
                top: 0;
            }
            @media screen and (max-width: $break-xxl){
              min-width: 180px;
            }
        }

    }

    .site-search-icon{
        .search-icon-btn{
            font-family: $oswald-font;
            font-size: 15px;
            font-weight: 300;
            color: #fff;
            text-transform: uppercase;
            letter-spacing: 4px;
            margin: 5px 5px;
            padding: 1rem .5rem;
            -webkit-transition: all .4s;
            transition: all .4s;
            &:hover{
                color: $primary-color !important;
            }
        }
    }


    &.is-scroll{
        background: $primary-bg-color;
        padding: 0 6%;
        position: fixed;
        top: -100px;
        left: 0;
        width: 100%;
        -webkit-transition: -webkit-transform .5s;
        transition: -webkit-transform .5s;
        transition: transform .5s;
        transition: transform .5s, -webkit-transform .5s;
        -webkit-transform: translateY(100px);
        transform: translateY(100px);
        -webkit-box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
        box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
        .site-branding{
            padding-right: 50px;
        }
        .site-navigation:not(:has(.max-mega-menu)) ul.menu li a{
            color: #fff;
            &:hover{
                color: $primary-color;
            }
        }
        .site-branding .custom-logo-link img{
           // filter: invert(1);
        }
        .site-search-icon{
            .search-icon-btn{
                color: #fff;
            }
        }
    }

    @media screen and (max-width: 1720px) {
        padding-right: 4%;
        .site-navigation:not(:has(.max-mega-menu)){
            ul.menu{
                li{
                    .nav-link{
                        font-size: 13px;
                        letter-spacing: 1.5px;
                        margin: 4px;
                    }
                }
                &.has-mega-menu{
                  li{
                    .mega-menu-sub-menu{
                      li{
                        white-space: normal;
                      }
                    }
                  }
                }
            }
            .sub-menu{
                li{
                    white-space: pre-wrap;
                }
            }
        }
        &.is-scroll{
            padding: 0 4%;
        }
    }

    @media screen and (max-width: $break-xxl) {
        padding-right: 2%;
        .site-navigation:not(:has(.max-mega-menu)){
            ul.menu{
                li{
                    .nav-link{
                        font-size: 12px;
                        letter-spacing: 1px;
                        margin: 3px;
                    }
                }
            }
        }
        &.is-scroll{
            padding: 0 2%;
            .site-branding{
                padding-right: 30px;
            }
        }
    }

    @media screen and (max-width: $break-xl) {
        padding-right: 15px;
        .site-navigation:not(:has(.max-mega-menu)){
            ul.menu{
                li{
                    .nav-link{
                        margin: 0;
                        font-size: 12.5px;
                        letter-spacing: 1px;
                    }
                }
            }
        }

    }

    @media screen and (max-width: $break-lg) {
        &#site-header{
            padding: 15px;
        }

        flex-wrap: wrap;
        align-items: center;
        background: $primary-bg-color;
        .site-branding{
            padding: 0;
            .custom-logo-link{
              img{
                // filter: invert(1);
              }
            }
        }
        .site-navbar-menu{
            display: none;
            overflow-x: hidden;
            overflow-y: auto;
            padding: 15px 0 30px;
            max-height: 440px;
            -ms-flex-preferred-size: 100%;
            flex-basis: 100%;
            -webkit-box-flex: 1;
            -ms-flex-positive: 1;
            flex-grow: 1;
            -webkit-box-align: center;
            -ms-flex-align: center;
            &.show{
                display: block;
            }
            /* width */
            &::-webkit-scrollbar {
                width: 8px;
            }

            /* Track */
            &::-webkit-scrollbar-track {
                background: #f1f1f1;
            }

            /* Handle */
            &::-webkit-scrollbar-thumb {
                background: #999;
            }
        }
        .site-navigation:not(:has(.max-mega-menu)){
            ul.menu{
                width: 100%;
                flex-direction: column;
                li{
                    flex-direction: column;
                    .nav-link{
                        // color: #000;
                        padding: 8px 0;
                        font-size: 15px;
                    }

                    a{
                        .nav-icon{
                            &.active{
                                i{
                                    display: inline-block;
                                    transform: rotate(180deg);
                                }
                                &::after{
                                    transform: rotate(180deg);
                                }
                            }
                        }
                    }

                    ul{
                        li{
                            a{
                                padding: 5px 15px;
                            }
                            &:hover{
                                padding-left: 0;
                                > a{
                                    padding-left: 20px;
                                }
                            }
                        }
                    }

                    &.menu-item-mega-menu{
                        .nav-icon{
                            &.active{
                                i{
                                    display: none;
                                }
                            }
                        }
                    }
                    &.menu-item-has-children{
                        .nav-icon{
                            padding-right: 5px;
                            padding-left: 5px;
                            font-size: 10px;
                        }
                    }
                }

                &.has-mega-menu{
                    li{
                        .mega-menu-sub-menu{
                            display: none;
                            opacity: 1;
                            visibility: visible;
                            -webkit-transform: translateY(0);
                            transform: translateY(0);
                            position: initial;
                            padding: 10px 0;
                            z-index: 2;
                            max-height: 100%;
                            li{
                                padding: 10px;
                                &:hover{
                                    padding-left: 10px;
                                }
                            }
                            > .sub-menu{
                                grid-template-columns: 1fr;
                                .sub-menu{
                                    display: block;
                                }
                            }


                        }
                    }
                }

                .sub-menu{
                    position: initial;
                    opacity: 1;
                    visibility: visible;
                    -webkit-transform: translateY(0);
                    transform: translateY(0);
                    display: none;
                    z-index: 2;
                    li{
                        white-space: normal;
                    }
                }
            }
        }

        &.is-scroll{
            padding: 15px;
        }

        .site-search-icon{
            .search-icon-btn{
                margin: 0;
            }
        }
    }
}
