.sub-menu--section {
    background-color: var(--doxo-blue-2);
    color: #fff;
    padding: 1px 0;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.25);
}

.post-type-archive-video .sub-menu--section {
    border-bottom: 1px solid #fff;
    padding-bottom: 0;
}

.sub-menu--container {
    padding: 0 var(--theme-content-padding);
    padding: 0 var(--theme-content-padding);
}

.sub-menu--nav {
    margin: 0;
    padding: 0;
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    font-weight: 700;
}

.sub-menu--nav li {
    transition: background-color 0.3s ease, color  0.3s ease;
}

.sub-menu--nav li a {
    display: block;
    padding: 5px 15px;
}

.sub-menu--nav li.current-menu-item {
    background: #fff;
    color: var(--doxo-blue-2);
}

.sub-menu--nav li:hover,
.sub-menu--nav li.current-menu-item:hover {
    background: var(--doxo-neutral-2);
    color: var(--doxo-blue-2);
}

@media (max-width: 991px) {
    .sub-menu--section {
        padding: 0;
        position: relative;
        /* top: var(--theme-menu-height); */
    }

    .sub-menu--nav {
        display: flex;
        flex-direction: column;
        margin-left: calc(-1 * var(--theme-content-padding));
        margin-right: calc(-1 * var(--theme-content-padding));
    }

    .sub-menu--nav li {
        width: 100%;
        padding-left: var(--theme-content-padding);
        padding-right: var(--theme-content-padding);
    }

    .sub-menu--nav li a {
        padding: 14px 0;
        font-size: 0.875rem;
    }

    .sub-menu--toggle {
        font-size: 24px;
        position: absolute;
        width: 1em;
        height: .5em;
        right: var(--theme-content-padding);
        top: 19px;
        background: #fff;
        text-indent: 50px;
        border: none;
        box-shadow: none;
        border-radius: 1em 1em 0 0;
        cursor: pointer;
        transition: all .3s;
    }

    .sub-menu--toggle:before {
        content: "";
        position: absolute;
        top: -17px;
        bottom: -17px;
        left: -5px;
        right: calc(-1 * var(--theme-content-padding));
        z-index: 1;
    }

    .first-item-active .sub-menu--toggle {
        background: var(--doxo-blue-2);
    }

    .sub-menu--active .sub-menu--toggle {
        border-radius: 0 0 1em 1em;
    }

    .sub-menu--toggle:focus {
        outline: none;
        /* background: #ccc; */
    }

    .sub-menu--nav li:first-child a {
        padding-right: 30px;
    }

    .sub-menu--nav li:not(:first-child) {
        display: none;
    }

    .sub-menu--active li:not(:first-child) {
        display: block;
    }
}

@media (min-width: 992px) {
    
    .sub-menu--toggle {
        display: none;
    }

    .sub-menu--nav { 
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    .sub-menu--nav li {
        flex: 0 1 100%;
        text-align: center;
        border-left: 1px solid #ffffff5e;
    }

    .sub-menu--nav li:last-child {
        border-right: 1px solid #ffffff5e;
    }

    .sub-menu--nav li a {
        padding: 30px 10px;
    }
}