.et-l--header ul {
    list-style-type: none !important;
    padding: 0 !important;
}


.xin-menu-container {
    position: relative;
    width: 100%;
}

.xin-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;

    .menu-item {
        position: relative;
        margin: 0;
        padding: 0;

        a {
            display: block;
            text-decoration: none;
            color: var( --dark );
            transition: all 0.3s ease;
        }
    }

    /* Top Level Menu */
    & > .menu-item {

        & > a {
            font-size: 18px;
            padding: 20px 0px;

            &:before {
                background: none repeat scroll 0 0 transparent;
                bottom: -5px;
                content: "";
                display: block;
                height: 2px;
                left: 0;
                position: absolute;
                background: var(--dark);
                transition: width 0.3s ease 0s, left 0.3s ease 0s;
                width: 0;
            }

            &:hover {
                &:before {
                    width: 99%;
                }
            }
        }
    }

    /* Sub Menu */
    .submenu-wrapper {
        opacity: 0;
        pointer-events: none;
        position: absolute;
        top: 105%;
        left: 50%;
        transform: translateX(-50%);
        min-width: 670px;
        background: #fff;
        box-shadow: 1px 6px 12px 4px rgba(38,39,39,0.08);
        border-radius: 8px;
        z-index: 1000;
        padding: 15px 10px;
        transition: all 0.1s ease-in-out;

        .xin-submenu {
            list-style: none;
            margin: 0;
            display: grid;
            grid-template-columns: 1fr 1fr;

            .menu-item a {
                width: 100%;
                display: flex;
                align-items: center;
                gap: 15px;
                padding: 22px 20px;
                font-size: 17px;
                font-weight: 600;

                .icon {
                    font-size: 22px;
                }

                &:hover {
                    color: var( --gray )
                }
            }

            /* Caret for dropdown */
            &:before,
            &:after {
                transition: all .25s ease-in-out;
                content: "";
                pointer-events: none;
                display: block;
                position: absolute;
                left: 51%;
                transform: translateX(-50%);
                margin-left: -10px;
                border-radius: 4px;
                z-index: -1;
                top: -2px;
                width: 20px;
                height: 20px;
            }

            &:before {
                position: absolute;
                transform: rotate(45deg) translateX(-50%);
                box-shadow: 0 4px 12px 0 rgba(38, 39, 39, 0.08);
                background: var(--white);
            }

            &:after {
                top: 0;
                left: 51%;
                transform: translateX(-50%);
                width: 3rem;
                height: 1.8rem;
                background: var(--white);
            }
        }

        /* Invisible block for hover */
        &:before {
            content: "";
            width: 100%;
            height: 20px;
            background: transparent;
            position: absolute;
            left: 0;
            top: -20px;
        }
    }

    .has-submenu:hover > .submenu-wrapper {
        opacity: 1;
        pointer-events: auto;
    }
}
