.main-menu {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
}

.main-nav {
    border: 0;
    border-radius: 0;
    margin-bottom: 0;
    float: left;

    li.dl-active-menu {
        height: 3px;
        background-color: #f8e510;
        z-index: 1;
        position: absolute;
        top: 49px;
        padding: 0;
        transition: none;
    }

    a {
        text-transform: uppercase;
        font-size: 15px;
        font-weight: 600;
        position: relative;
        font-family: @font-family-secondary;
        color: #222;
    }

    ul {
        list-style: none;
        margin: 0;
        padding: 0;

        ul {
            transition: top 0.3s ease 0s, opacity 0.3s;
            position: absolute;
            top: 80%;
            left: 0;
            min-width: 215px;
            padding-left: 0;
            opacity: 0;
            z-index: 99;
            transform: scaleX(0);
            background-color: #fff;
            box-shadow: 1px 2px 21px 0 rgba(1, 1, 1, 0.15);

            &:before {
                content: '';
                position: absolute;
                background-color: transparent;
                top: -30px;
                left: 0;
                width: 100%;
                height: 30px;
            }

            ul {
                left: 100%;
                top: 0;
                z-index: 999;

                &:before {
                    content: '';
                    position: absolute;
                    background-color: transparent;
                    top: 0;
                    left: -10px;
                    width: 10px;
                    height: 100%;
                }
            }
        }
    }

    li {
        margin: 0;
        position: relative;

        &:first-child {
            ul {
                left: 19px;

                ul {
                    left: 100%;
                }
            }
        }

        &:hover {
            & > ul {
                top: 100%;
                opacity: 1;
                z-index: 9999;
                transform: scaleX(1);
            }

            & > a {
                color: @primary-color;
            }
        }

        li {
            padding: 12px 20px;
            border-bottom: 1px solid #e9f0fc;
            transition: 0.5s;

            &:last-child {
                border-bottom: 0;
            }

            a {
                font-size: 14px;
                display: block;

                &:before {
                    display: none;
                }
            }

            &:hover {
                background-color: #f7faff;

                a {
                    color: #222;
                }

                & > ul {
                    top: 0;
                    left: 100%;
                }
            }
        }
    }

    .menu {
        padding-left: 0;
        margin-left: -19px;
        zoom: 1;
        position: relative;

        li.dl-active-menu {
            z-index: 9;
        }

        &:after {
            content: '';
            display: table;
            clear: both;
        }

        > li {
            &.menu-item {
                padding: 23px 19px;
                float: left;

                &:hover,
                &.current-menu-item,
                &.current_page_item,
                &.current-menu-ancestor,
                &.current-menu-parent,
                &.active {
                    & > a {
                        color: @primary-color;
                    }
                }
            }
        }
    }
}

.header-v1 {
    .main-nav {
        background-color: #f7faff;

        a {
            &:before {
                position: absolute;
                content: '';
                width: 1px;
                height: 16px;
                top: 50%;
                right: -19px;
                z-index: 99;
                background-color: #e8e8e8;
                transform: translateY(-50%);
            }
        }

        li {
            &.last-child {
                a:before {
                    display: none;
                }
            }
        }
    }
}

.header-v2 {
    .main-nav {
        li.dl-active-menu {
            height: 6px;
            top: 0;
        }

        a {
            text-transform: capitalize;
        }

        .menu {
            > li {
                &.menu-item {
                    padding: 45px 19px;
                }
            }
        }
    }
}

.header-v3 {
    .site-menu {
        background-color: transparent;
        transform: translateY(50%);

        .main-menu {
            background-color: #111c55;
            padding-right: 40px;
        }
    }

    .site-contact {
        padding-bottom: 0;
    }

    .main-nav {
        .menu {
            margin-left: 20px;

            & > li {
                & > a {
                    color: #fff;
                }

                &:hover,
                &.current-menu-item,
                &.current_page_item,
                &.current-menu-ancestor,
                &.current-menu-parent,
                &.active {
                    & > a {
                        color: #fff;
                    }
                }
            }
        }

        li.dl-active-menu {
            top: 0;
        }
    }
}

.header-v4 {
    .site-menu {
        background-color: #fff;
    }

    .main-nav {
        .menu {
            & > li {
                & > a {
                    color: #222222;
                }

                &:hover,
                &.current-menu-item,
                &.current_page_item,
                &.current-menu-ancestor,
                &.current-menu-parent,
                &.active {
                    & > a {
                        color: #222222;
                    }
                }
            }
        }

        li.dl-active-menu {
            top: auto;
            bottom: 0;
        }
    }
}

.header-v5 {
    ul {
        ul {
            top: calc(~'80% + 27px');

            &:before {
                top: -57px;
                left: 0;
                height: 57px;
            }

            ul {
                left: 100%;
                top: 0;
            }
        }
    }

    li {
        &:hover {
            & > ul {
                top: calc(~'100% + 27px');
            }
        }

        li {
            &:hover {
                & > ul {
                    top: 0;
                    left: 100%;
                }
            }
        }
    }

    .main-nav {
        a {
            text-transform: capitalize;
        }

        li.dl-active-menu {
            display: none;
        }
    }
}

.header-v6 {
    .main-nav {
        li.dl-active-menu {
            top: auto;
            bottom: 0;
            height: 5px;
        }
    }
}

.header-sticky {
    .is-sticky {
        .site-menu {
            z-index: 9999 !important;
            top: 0 !important;
        }
    }
    &.admin-bar{
        .is-sticky {
            .site-menu {
                top: 32px !important;
            }
        }
    }
}

// Numeric

.numeric-navigation {
    clear: both;
    display: table;
    margin: 30px auto;
    float: none;
}

// Nav icon
.nav-mobile {
    position: relative;
}

.navbar-icon {
    transition: all 0.4s;
    height: 25px;
    width: 27px;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);

    .navbars-line {
        transition: 0.4s;
        display: inline-block;
        width: 27px;
        height: 2px;
        background-color: #222;
        position: absolute;
        top: 50%;
        left: 0;
        cursor: pointer;

        &:before,
        &:after {
            position: absolute;
            width: 100%;
            height: 2px;
            content: '';
            background-color: #222;
        }

        &:before {
            top: -8px;
        }

        &:after {
            bottom: -8px;
        }
    }
}