﻿@media(max-width:1023px) {
    .menu-bar i {
        display: none;
    }

    .menu {
        display: flex;
        flex-wrap: wrap;
    }

        .menu li {
            margin-right: 25px;
        }

    #menu_trigger .menulines {
        margin-top: 9px;
        position: relative;
        display: block;
    }

        #menu_trigger .menulines, #menu_trigger .menulines:before, #menu_trigger .menulines:after {
            content: "";
            height: 2px;
            width: 30px;
            border-radius: 5px;
            background: #fff;
        }

            #menu_trigger .menulines:before, #menu_trigger .menulines:after {
                position: absolute;
                left: 0;
            }

            #menu_trigger .menulines:before {
                top: -9px;
            }

            #menu_trigger .menulines:after {
                top: 9px;
            }

    .mobile-menu {
        right: -100%;
        background: rgb(211,233,255);
        background: linear-gradient(196deg, rgba(211,233,255,1) 0%, rgba(255,232,196,1) 100%);
    }

        .mobile-menu ul {
            transition: all ease-in-out 0.3s;
            display: block;
            margin: 0 !important;
            list-style: none;
            padding-right: 0;
        }

            .mobile-menu ul .header__logo__menu img {
                width: 150px;
            }

            .mobile-menu ul li {
                margin: 0;
            }

                .mobile-menu ul li a {
                    color: #333333;
                    display: block;
                    position: relative;
                    padding: 5px;
                    font-size: 14px;
                    text-align: right;
                    margin: 5px;
                    /*border-bottom: 1px solid rgb(42, 87, 161, 0.3);*/
                }

                    .mobile-menu ul li a .navtrigger {
                        position: absolute;
                        left: 0;
                        top: 0;
                        bottom: 0;
                        width: 100%;
                    }

        .mobile-menu li a .navtrigger:before {
            content: "";
            position: absolute;
            top: 45%;
            left: 18px;
            height: 8px;
            width: 8px;
            border-left: 2px solid #6a2262;
            border-top: 2px solid #6a2262;
            transform: translate(-50%, -50%) rotate(-45deg);
        }

        .mobile-menu li .submenu {
            position: fixed;
            top: 0;
            right: -100%;
            width: 80%;
            background: #fff;
            height: 100%;
            transition: all ease-in-out 0.3s;
            z-index: 1;
            overflow-y: auto;
        }

            .mobile-menu li .submenu li {
                font-size: 14px;
            }

            .mobile-menu li .submenu .backmenu-row {
                position: relative;
                font-size: 15px;
                margin: 5px;
                height: 70px;
                margin-bottom: 12px;
            }

                .mobile-menu li .submenu .backmenu-row .back-trigger {
                    font-style: normal;
                    color: #ffffff;
                    width: 96%;
                    border-radius: 4px;
                    text-align: center;
                    background: #6a2262;
                    height: 35px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    position: relative;
                    border-bottom: none;
                }

                .mobile-menu li .submenu .backmenu-row span {
                    padding: 0;
                    width: 100%;
                    background: #fab902;
                    height: 35px;
                    display: block;
                    border-radius: 5px;
                }

                    .mobile-menu li .submenu .backmenu-row span:before {
                        content: "";
                        position: absolute;
                        top: 17px;
                        right: 2px;
                        height: 8px;
                        width: 8px;
                        border-left: 2px solid #333;
                        border-top: 2px solid #333;
                        transform: translate(-50%, -50%) rotate(135deg);
                    }

                    .mobile-menu li .submenu .backmenu-row span:after {
                        content: "بازگشت";
                        position: absolute;
                        right: 21px;
                        text-align: right;
                        top: 7px;
                        font-size: 15px;
                        color: #333;
                    }

        .mobile-menu li.sub-open > .submenu {
            right: 0;
        }



    ul.menu i.fas.fa-chevron-left {
        display: none;
    }

    .icon-close svg {
        left: -10%;
        transform: scale(0);
    }

    .icon-close-left svg {
        transform: scale(1);
        left: 3%;
    }

    .phone_div-tel {
        display: none
    }
}

/*////////////////////////////////Header-Menu///////////////////////////////////////*/

@media(min-width: 1024px) {
    .back-trigger {
        display: none !important;
    }

    .menu-bar .sub-menu {
        position: relative;
    }

    .menu-bar > li > a {
        font-weight: 600;
    }

        .menu-bar > li > a:hover {
            color: #fab902;
        }

        .menu-bar > li > a > i {
            top: 5px;
            position: absolute;
            margin-right: 3px;
            font-size: 11px;
            transform: rotate(-90deg);
        }

    .menu-bar li ul li i {
        display: inline-block;
        position: absolute;
        left: 10px;
        top: 0;
        line-height: 35px;
        font-size: 10px;
        color: #fab902;
        transition: all .4s ease-in-out;
    }

    .header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: sticky;
        z-index: 100;
        width: 100%;
        --tw-bg-opacity: 1;
        background-color: #fff;
        /*border-bottom: 2px solid #e40613;*/
        padding-left: 3.5rem;
        padding-right: 3.5rem;
        left: 0;
        right: 0;
        margin: auto;
        top: 0;
    }

    .menu-bar {
        display: flex
    }

        .menu-bar .normal {
            padding: 1.5rem 0px;
        }

        .menu-bar .normal {
            cursor: pointer
        }

            .menu-bar .normal:hover {
                font-weight: 700
            }

        .menu-bar .mega {
            cursor: pointer
        }

            .menu-bar .mega:hover {
                font-weight: 700
            }

        .menu-bar .mega {
            padding: 1.5rem 0px;
        }

    .phone_div {
        display: flex;
        align-items: center
    }

        .phone_div .phone_div-tel {
            display: none
        }

        .phone_div .phone_div-tel {
            display: block
        }

        .phone_div .phone_div-icon {
            display: block;
            height: 2rem;
            width: 4rem
        }

    .menu {
        display: flex;
        height: 3.5rem;
        width: 3.5rem
    }

    .menu {
        display: none
    }

    .menu-bar {
        margin: 0;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        align-items: center;
        gap: 30px;
        height: 100%;
        width: 100%;
        list-style-type: none;
        padding: 0;
        direction: rtl
    }

        .menu-bar ul li {
            line-height: 2.5em !important
        }

        .menu-bar li {
            float: none;
            margin: 0;
            display: inline-block;
            height: 100%;
            font-size: .875rem;
            line-height: 1.25rem
        }

            .menu-bar li ul a:hover {
                background-color: #6a2262;
                color: #fab902;
                transition: all 200ms ease-in-out;
                border-radius: 8px;
                width: 100%;
                display: block
            }

            .menu-bar li.normal {
                position: relative
            }

            .menu-bar li.mega, .menu-bar li.normal {
                position: relative
            }

                .menu-bar li.mega:hover > ul {
                    visibility: visible;
                    display: flex;
                    opacity: 1
                }

                    .menu-bar li.mega:hover > ul ul {
                        visibility: visible
                    }

                .menu-bar li.mega > ul {
                    visibility: hidden;
                    position: fixed;
                    left: 0;
                    right: 0;
                    top: 65px;
                    z-index: 50;
                    margin: auto;
                    display: none;
                    flex-wrap: wrap;
                    width: 90%;
                    max-height: 520px;
                    overflow-y: scroll;
                    list-style-type: none;
                    border-radius: 10px;
                    border-width: 0;
                    border-style: solid;
                    --tw-border-opacity: 1;
                    border-color: rgb(223 38 46/var(--tw-border-opacity));
                    --tw-bg-opacity: 1;
                    background-color: rgb(255 255 255/var(--tw-bg-opacity));
                    background-repeat: no-repeat;
                    padding: 1rem;
                    line-height: 25px;
                    opacity: 0;
                    --tw-shadow: 0 10px 15px -3px rgb(0 0 0/.1),0 4px 6px -4px rgb(0 0 0/.1);
                    --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);
                    box-shadow: var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);
                    transition-property: all;
                    transition-timing-function: cubic-bezier(.4,0,.2,1);
                    transition-duration: 300ms
                }

                    .menu-bar li.mega > ul > li {
                        float: left;
                        min-width: 160px;
                        padding-left: 1rem;
                        padding-bottom: .25rem;
                        line-height: 35px
                    }

                .menu-bar li.mega ul li {
                    float: left;
                    min-width: 20%;
                    padding-left: 1rem;
                    padding-bottom: .25rem;
                    font-size: .875rem;
                    line-height: 1.25rem;
                    line-height: 30px
                }

                .menu-bar li.mega > ul > li > a {
                    margin-bottom: 0.25rem;
                    border-radius: 0.25rem;
                    --tw-bg-opacity: 1;
                    background-color: #f2f2f2;
                    border-radius: 10px;
                }

                .menu-bar li.mega ul li a {
                    font-size: .875rem;
                    line-height: 2.25rem;
                    font-weight: 600;
                    --tw-text-opacity: 1;
                    color: #333;
                    transition-property: all;
                    transition-duration: 500ms;
                    transition-timing-function: cubic-bezier(.4,0,.2,1)
                }

                    .menu-bar li.mega ul li a:hover {
                        color: #fab902;
                    }

                .menu-bar li.mega ul li ul {
                    position: static;
                    float: right;
                    display: flex;
                    width: 100%;
                    transform: none;
                    list-style-type: none;
                    flex-direction: column;
                    border-width: 0;
                    --tw-bg-opacity: 1;
                    background-color: rgb(251 251 251/var(--tw-bg-opacity));
                    padding: 0;
                    opacity: 1;
                    border-radius: 1rem
                }

                    .menu-bar li.mega ul li ul li {
                        list-style-type: none;
                        padding: 0
                    }

                        .menu-bar li.mega ul li ul li:hover {
                            font-weight: 700
                        }

                .menu-bar li.normal > ul {
                    visibility: hidden;
                    position: absolute;
                    right: 0;
                    top: 69px;
                    width: 235px;
                    border-radius: 8px;
                    border-style: solid;
                    --tw-border-opacity: 1;
                    --tw-bg-opacity: 1;
                    background-color: rgb(255 255 255/var(--tw-bg-opacity));
                    --tw-text-opacity: 1;
                    color: #333;
                    opacity: 0;
                    --tw-shadow: 0 10px 15px -3px rgb(0 0 0/.1),0 4px 6px -4px rgb(0 0 0/.1);
                    --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);
                    box-shadow: var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);
                    transition-property: all;
                    transition-duration: 300ms;
                    transition-timing-function: cubic-bezier(.4,0,.2,1)
                }

                .menu-bar li.normal:hover > ul {
                    visibility: visible;
                    z-index: 50;
                    opacity: 1
                }

                .menu-bar li.normal > ul li {
                    position: relative;
                    float: right;
                    display: block;
                    height: auto;
                    width: 100%
                }

                .menu-bar li.normal > ul ul {
                    visibility: hidden;
                    position: absolute;
                    right: 100%;
                    top: -3px;
                    width: 200px;
                    border-radius: 8px;
                    border-style: solid;
                    --tw-border-opacity: 1;
                    --tw-bg-opacity: 1;
                    background-color: rgb(255 255 255/var(--tw-bg-opacity));
                    opacity: 0;
                    --tw-shadow: 0 4px 6px -1px rgb(0 0 0/.1),0 2px 4px -2px rgb(0 0 0/.1);
                    --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);
                    box-shadow: var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);
                    transition-property: all;
                    transition-timing-function: cubic-bezier(.4,0,.2,1);
                    transition-duration: 150ms
                }

                .menu-bar li.normal > ul li:hover > ul {
                    visibility: visible;
                    opacity: 1
                }

                .menu-bar li.normal > ul ul li {
                    position: relative;
                    float: right;
                    display: block;
                    height: auto;
                    width: 100%
                }

    .menu-bar-link {
        position: relative;
        display: flex;
        height: 100%;
        align-items: center;
        font-weight: 700
    }

    .menu-bar li a {
        text-align: right;
        width: 100%;
        position: relative;
        display: block;
        padding-right: 5px;
    }
}

@media (min-width: 1300px) {
    .menu-bar li a {
        padding-right: 10px;
    }
}

@media (min-width: 1300px) {
    .menu-bar {
        gap: 40px;
    }
}

@media (min-width: 1500px) {
    .menu-bar {
        gap: 60px;
    }
}

@media (min-width: 1600px) {
    .menu-bar {
        gap: 70px;
    }
}
