@use "../default/variables";

/*====================
Mainmenu Area 
=====================*/

.mainmenunav {
    ul {
        &.mainmenu {
            display: flex;
            justify-content: flex-end;
            @extend %liststyle !optional;
            flex-wrap: wrap;
            > li {
                margin: 0 15px;
                position: relative;
                > a {
                    @extend %transition !optional;
                    color: #c6c9d8;
                    font-size: 16px;
                    font-weight: 500;
                    padding: 20px 0;
                    display: inline-block;
                }
                > ul {
                    &.submenu {
                        @extend %liststyle !optional;
                        min-width: 240px;
                        height: auto;
                        position: absolute;
                        top: 100%;
                        left: 0;
                        z-index: 90;
                        opacity: 0;
                        visibility: hidden;
                        background-color: #fff;
                        box-shadow: 0 0 35px rgba(0,0,0,0.1);
                        text-align: left;
                        @extend %transition !optional;
                        padding: 12px 0;
                        border-radius: 4px;
                        li {
                            position: relative;
                            a {
                                font-size: 16px;
                                font-weight: 500;
                                padding: 5px 20px;
                                font-size: 14px;
                                display: block;
                                color: #1f1f25;
                                margin: 0 10px;
                                border-radius: 3px;
                                @extend %transition !optional;
                            }
                            &:hover {
                                > a {
                                    color: variables.$theme-color;
                                    background: rgba(249, 0, 77, 0.07);
                                }
                            }

                            .submenu {
                                @extend %liststyle !optional;
                                min-width: 240px;
                                height: auto;
                                position: absolute;
                                top: 0;
                                left: 100%;
                                z-index: 90;
                                opacity: 0;
                                visibility: hidden;
                                background-color: #fff;
                                box-shadow: 0 0 35px rgba(0,0,0,0.1);
                                text-align: left;
                                @extend %transition !optional;
                                padding: 12px 0;
                                border-radius: 4px;
                            }

                            &:hover {
                                .submenu {
                                    opacity: 1;
                                    visibility: visible;
                                }
                            }

                        }
                    }
                }
                &:hover {
                    > ul {
                        &.submenu {
                            opacity: 1;
                            visibility: visible;
                        }
                    }
                }

                &:hover {
                    > a {
                        color: variables.$theme-color;
                    }
                }
                &:first-child{
                    margin-left: 0;
                }
                &:last-child{
                    margin-right: 0;
                }
            }
        }
    }
}

.humberger-menu{
    span{
        &.text-white{
            color: #c6c9d8 !important;
            
        }
    }
}

.color-white{
    .mainmenunav {
        ul {
            &.mainmenu {
                @extend %liststyle !optional;
                > li {
                    > a {
                        color: #ffffff;
                    }
                    &:hover {
                        > a {
                            color: rgba(255,255,255,0.6);
                            @media #{variables.$md-layout} {
                                color: variables.$theme-color;
                            }
                            @media #{variables.$sm-layout} {
                                color: variables.$theme-color;
                            }
                        }
                    }
                }
            }
        }
    }
}

.color-black{
    .mainmenunav {
        ul {
            &.mainmenu {
                @extend %liststyle !optional;
                > li {
                    > a {
                        color: rgba(29, 29, 36, 1);
                    }
                    &:hover {
                        > a {
                            color: variables.$theme-color;
                        }
                    }
                }
            }
        }
    }
}


@media #{variables.$lg-layout}{
    .header-style-two .humberger-menu span.text-white {
        color: #1d1d24 !important;
    }
}

@media #{variables.$md-layout}{
    .header-style-two .humberger-menu span.text-white{
        color: #1d1d24 !important;
    }
}

@media #{variables.$sm-layout}{
    .header-style-two .humberger-menu span.text-white{
        color: #1d1d24 !important;
    }
}












