/*----------Menu widgte Style----------*/
.max-elements-menu .menu-wrapper ul li ul {
    background: #fff;
}

.max-elements-menu .none>.menu-item {
    &.sfHover>a:before {
        display: none;
    }
}

.max-elements-menu .slide-up>.menu-item {
    &::before {
        position: absolute;
        content: "";
        left: 0;
        bottom: 0;
        width: 100%;
        height: 0%;
        background-color: #fff2;
        -webkit-transition: all 0.3s ease;
        -o-transition: all 0.3s ease;
        transition: all 0.3s ease;
    }

    &:hover {
        border-bottom: 2px solid var(--color-lightBlue);

        &::before {
            height: 100%;
        }
    }

    &.sfHover>a:before {
        display: none;
    }

    &.current-menu-ancestor {
        border-bottom: 2px solid var(--color-lightBlue);

        &::before {
            position: absolute;
            content: "";
            left: 0;
            bottom: 0;
            width: 100%;
            height: 100%;
            background-color: #fff2;
            -webkit-transition: all 0.3s ease;
            -o-transition: all 0.3s ease;
            transition: all 0.3s ease;
        }
    }
}

.max-elements-menu {
    .menu-item-desc {
        position: absolute;
        font-size: 8px;
        padding: 2px 5px;
        border-radius: 3px;
        top: 14px;
        text-transform: uppercase;
        background-color: #f8d7da;
        border-color: #f5c2c7;
        color: #dc3545;
        line-height: 1.7;
        display: inline-block;
        font-weight: 600;
        margin-left: 3px;
    }

    .navigation li.current_page_item>a {
        color: #000000;
    }

    li.menu-item-has-children>a:after {
        color: #333;
    }
}

.max-elements-menu {
    .pages_links {
        height: calc(100vh - 280px);
        overflow: auto;

        &::-webkit-scrollbar {
            height: 5px;
            width: 3px;
            background: #8169f122;
            border-radius: 10px;
        }

        &::-webkit-scrollbar-thumb {
            background: #8169f1;
            -webkit-border-radius: 0;
            border-radius: 10px;
        }

        &::-webkit-scrollbar-corner {
            background: #8169f122;
            border-radius: 10px;
        }

        li {
            opacity: 0;
            // transform: translateY(-50px);
            clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
            display: block;

            a {
                color: #222;
                font-size: calc(14px + 1.5vw);
                font-weight: bold;
                margin: 10px 0;
                position: relative;
                transition: all 0.3s linear;
                text-transform: capitalize;
                padding: 0px;
                display: inline-block;

                &::after {
                    position: absolute;
                    content: "";
                    left: 110%;
                    top: 60%;
                    width: 0;
                    height: 2px;
                    background-color: #8169f1;
                    transition: all 0.3s ease-in-out;
                }

                &:hover,
                &.current-menu-item {
                    color: #8169f1;

                    &::after {
                        width: 50px;
                    }
                }
            }

            &.current-menu-item {
                a {
                    color: #8169f1;

                    &::after {
                        width: 50px;
                    }
                }
            }
        }

        ul {
            li {
                transition: all 1s ease;

                &:nth-of-type(1) {
                    transition-delay: 0.3s;
                }

                &:nth-of-type(2) {
                    transition-delay: 0.4s;
                }

                &:nth-of-type(3) {
                    transition-delay: 0.5s;
                }

                &:nth-of-type(4) {
                    transition-delay: 0.6s;
                }

                &:nth-of-type(5) {
                    transition-delay: 0.7s;
                }

                &:nth-of-type(6) {
                    transition-delay: 0.8s;
                }

                &:nth-of-type(7) {
                    transition-delay: 0.9s;
                }

                &:nth-of-type(8) {
                    transition-delay: 1s;
                }
            }
        }
    }
}