.main-mobile-navigation{
    .nb-navbar{
        > .menu-item{
            >a{
                padding-left: 15px !important;
                padding-right: 15px !important;
            }
        }
    }
}
.nb-navbar {
    text-transform: uppercase;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 0;
    margin-bottom: 0;
    list-style-type: none;
    padding-left: 0;
    ul {
        list-style-type: none;
    }
    .menu-item{
        @include media-breakpoint-down(sm){
            > a{
                border-bottom: 1px solid #444 !important;
                padding: 5px 0;
                display: block;
            }
            .sub-menu{
                margin-left: 15px;
            }
        }
    }
    > .menu-item {
        position: relative;
        &:first-child {
            span {
                padding-left: 0;
            }
        }
        > a {
            padding-left: 12px;
            padding-right: 12px;
           
        }
        @include media-breakpoint-up(md){
            &:first-child a{
                padding-left: 0;
            }
            &:last-child a{
                padding-right: 0;
            }
        }
    }
    >.menu-item{
        &.menu-item-has-children{
            position: relative;
            .menu-item{
                &.menu-item-has-children{
                    position: relative;
                    // &:nth-child()
                }
            }

            // .sub-menu{
            //     &:nth-child(2n+1){
            //         left: 0;
            //     }
            //     &:nth-child(2n){
            //         top:-100%;
            //         left: -100%;
            //     }
            // }
        }
    }

    .sub-menu {
        display: none;
        @include media-breakpoint-up(md){
            min-width: 220px;
            position: absolute;
            top: 100%;
            left: 0;    
            padding:15px;
            background-color: #fff;
            z-index: 1000;
            border-radius: 5px;
            -webkit-background-clip: padding-box;
            background-clip: padding-box;
            box-shadow: 0 3px 5px rgba(0,0,0,0.25);
        }
        

        .sub-menu {
            top: 0 !important;
            left: 98%;
        }
        > .menu-item {
            padding-top: 5px;
            padding-bottom: 5px;
        }
        > .menu-item {
            &:last-child {
                border-bottom: 0;
            }
        }
    }
    .menu-item-has-children {
        @include media-breakpoint-down(sm) {
            &:after {
                content: "\f107";
                font-family: "fontello";
                display: inline-block;
                position: absolute;
                top: 0;
                right: 10px;
                font-size: 20px;
            }
            &:hover{
                > .sub-menu{
                    display: none;
                }
            }
            &.open, &.open:hover{
                > .sub-menu{
                    display: block;
                }
            }
            > a{
                padding-right: 30px !important;
            }
        }
        > a {
            position: relative;
            @include media-breakpoint-up(md){
                &:after {
                    content: "\f107";
                    font-family: "fontello";
                    display: inline-block;
                    margin-left: 5px;
                }
            }
        }
        &:hover{
            > .sub-menu{
                display: block;
            }
        }
    }
}

.nb-navbar, .nb-header-sub-menu {
    padding-left: 0;
    list-style-type: none;
    .sub-menu {
        > .menu-item:not(:last-child) {
            border-bottom: 1px solid;
        }
    }
}

.nb-header-sub-menu {
    margin: 0;
    > li {
        display: inline-block;
        position: relative;
        > a {
            padding-right: 12px;
        }
        &.menu-item-has-children {
            span {
                position: relative;
            }
            &:hover{
                .sub-menu{
                    display: block;
                }
            }
        }
        &:not(:first-child), &:not(:last-child) {
            > a {
                padding-left: 12px;
            }
        }
    }
    .sub-menu {
        min-width: 120px;
        display: none;
        position: absolute;
        left: 0px;
        top: 100%;
        padding: 10px 20px 15px;
        background-color: #fff;
        z-index: 1000;
        border-radius: 5px;
        background-clip: padding-box;
        box-shadow: 0 3px 5px rgba(0, 0, 0, 0.25);
        .menu-item {
            a {
                display: block;
                padding-top: 8px;
                padding-bottom: 8px;
            }
        }
        .sub-menu {
            top: 0 !important;
            left: 98%;
        }
    }
    .menu-item-has-children > a span:after {
        content: "\f107";
        font-family: "fontello";
        margin-left: 5px;
    }
}
.menu-section{
    .main-navigation{
        @include media-breakpoint-down(sm) {
            .menu-main-menu-wrap{
                @include transition('medium');
                position: fixed;
                left: -100%;
                top: 0;
                bottom: 0;
                padding: 50px 0 0;
                width: 300px;
                z-index: 9;
                background: #0c0c0c;
                overflow: auto;
                .nb-navbar{
                    display: block;
                }
                .menu-main-menu-title{
                    border-bottom: 3px double #444;
                    padding: 0 15px;
                    margin-bottom: 20px;
                    position: relative;
                    h3{
                        color: #fff;
                        margin: 0 0 5px;
                    }
                    .icon-cancel-circle{
                        position: absolute;
                        top: 0;
                        right: 15px;
                        font-size: 22px;
                        color: #fff;
                        @include opacity(0.7);
                        &:hover{
                            @include opacity(1);
                        }
                    }
                }
            }
        }
        @include media-breakpoint-up(md){
            .mobile-toggle-button{
                display: none;
            }
            .menu-main-menu-wrap{
                .menu-main-menu-title{
                    display: none;
                }
            }
        }
    }
}