﻿/*Common Css For Menu*/

.cmmenu > ul {
    display: block;
    margin: 0;
}

.cmmenu ul li {
    position: relative;
    float: none;
    height: auto;
    display: block;
    margin-top: 5px;
}

    .cmmenu ul li:before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        background-color: var(--menuhoverbg);
        border-radius: 0 15px 15px 0;
        display: inline-block;
        z-index: 0;
        transition: all 0.4s ease-in-out;
        right: 100%;
    }

    .cmmenu ul li:hover:before {
        right: 0px;
    }

    .cmmenu ul li a {
        text-decoration: none;
        white-space: nowrap;
        color: var(--menufontcolor);
        font-size: 16px;
        font-weight: 400;
        padding: 12px 15px;
        position: relative;
        display: flex;
        align-items: center;
        transition: all 0.4s ease-in-out;
    }

        .cmmenu ul li a span {
            padding-right: 10px;
            line-height: 20px;
            font-size: 26px;
        }

    .cmmenu ul li:hover a {
        color: var(--menuhoverfontcolor);
    }

.cmmenu ul ul li a {
    min-width: 170px;
    padding: 10px 0px;
    margin: 5px 20px;
    font-size: 15px;
    color: var(--menufontcolor);
    border-top: 1px solid rgba(0,0,0,.3);
    position: relative;
    transition: all 0.4s ease-in-out;
}


/*Common Css For Menu*/
.cmmenu .logo {
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    padding: 10px;
    float: none;
    position: relative;
    display: block;
    text-align: center;
    border-bottom: 1px solid #e9e9e9;
}

    .cmmenu .logo a img {
        display: inline-block;
        max-width: 150px;
    }

    .cmmenu .logo a {
        display: flex;
        align-items: center;
        gap: 20px;
        justify-content: center;
    }

        .cmmenu .logo a span {
            font-size: 16px;
            line-height: 20px;
            font-weight: 600;
            text-align: left;
            color: #374766;
        }

.cmmenu ul {
    padding: 10px;
    z-index: 9;
    overflow-y: auto;
}

    .cmmenu ul li {
        width: 100%;
    }

    .cmmenu ul ul li,
    .cmmenu li:hover > ul > li {
        height: auto;
        margin: 0;
    }

        .cmmenu ul ul li a, .cmmenu ul ul li a:hover {
            font-size: 14px;
        }

    .cmmenu ul ul,
    .cmmenu ul ul ul {
        display: none;
        position: relative;
        left: 0;
        bottom: 0px;
        top: 0;
        width: 100%;
        transform: translateY(0);
        margin: 0;
        text-align: left;
        opacity: 1;
        z-index: 1;
        visibility: visible;
        border: none;
        background: transparent;
        padding: 0;
        box-shadow: none;
        transition: all 0s ease-in-out;
        transition-delay: 0s;
    }

        .cmmenu > ul > li.has-sub > a:after,
        .cmmenu > ul > li.has-sub > a:before,
        .cmmenu ul ul > li.has-sub > a:after,
        .cmmenu ul ul > li.has-sub > a:before {
            display: none
        }

.cmmenu #head-mobile {
    display: block;
    padding: 12px;
    color: #333333;
    cursor: pointer;
    font-size: 12px;
    font-weight: 400;
}



.cmmenu .ddmenu-button.menu-opened {
    position: fixed;
    top: 0;
    left: 270px;
    width: 30px;
    height: 30px;
    background-color: var(--prcolor);
    transform: translate(0);
    border-radius: 0;
}

    .cmmenu .ddmenu-button.menu-opened:after {
        transition: all .4s ease;
        top: 13px;
        border: 0;
        height: 2px;
        left: 4px;
        width: 20px;
        background: #ffffff;
        transform: rotate(45deg);
    }

    .cmmenu .ddmenu-button.menu-opened:before {
        top: 15px;
        left: 4px;
        height: 2px;
        width: 20px;
        transform: rotate(-45deg);
        background: #fff;
    }

.cmmenu .submenu-button {
    position: absolute;
    z-index: 99;
    right: 0;
    top: 0;
    display: block;
    height: 47px;
    width: 100%;
    cursor: pointer;
}

    .cmmenu .submenu-button:after {
        position: absolute;
        top: 50%;
        left: 95%;
        font-size: 18px;
        font-weight: 600;
        transform: translate(-50%,-50%);
        font-family: "Material Icons";
        content: '\e5cf';
        color: var(--menufontcolor);
    }

    .cmmenu .submenu-button.submenu-opened:after {
        content: '\e5ce';
    }



@media screen and (max-width: 991.98px) {
    .cmmenu .ddmenu-button {
        width: 28px;
        height: 20px;
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
        z-index: 8;
        border-radius: 4px;
    }

        .cmmenu .ddmenu-button:after {
            position: absolute;
            top: 0;
            bottom: 0px;
            display: block;
            width: 28px;
            border-top: 3px solid var(--prcolor);
            border-bottom: 3px solid var(--prcolor);
            content: '';
        }

        .cmmenu .ddmenu-button:before {
            transition: all .4s ease;
            content: "";
            display: block;
            position: absolute;
            width: 100%;
            height: 3px;
            top: 50%;
            margin-top: -2px;
            left: 0;
            background: var(--prcolor);
        }

    .cmmenu {
        display: block !important;
        position: relative;
    }

        .cmmenu > ul {
            position: fixed;
            left: 0;
            top: 0;
            background-color: #ffffff;
            width: 270px;
            min-height: 100vh;
            box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
        }
}
