﻿@media(max-width:1023px) {
    header {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0 8px;
        background-color:#FFFFFF;
        position: sticky;
        top: 0;
        z-index: 999;
        box-shadow: 0 0 5px 5px #80ca9140;
    }

    .menu-bar i {
        display: none;
    }

    .header_logo_menu {
        display: flex;
        justify-content: center;
        margin: 10px 0;
    }

        .header_logo_menu a img {
            height: 60px;
            display: block;
        }

    .fixedshow {
        position: fixed;
        left: 0;
        right: 0;
        width: 100%;
        top: 0;
        bottom: 0;
    }

    .menu {
        display: flex;
        flex-wrap: wrap;
    }

        .menu li {
            margin-right: 25px;
        }

    #menu_trigger {
        width: 35px;
        height: 35px;
        border-radius: 5px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: transparent;
    }

        #menu_trigger svg {
            fill: #ffffff;
            width: 24px;
            height: 24px;
        }

        #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 {
        position: fixed;
        left: 0;
        right: -100%;
        background: #FFFFFF;
        height: 100%;
        width: 80%;
        z-index: 999;
        top: 0;
        transition: all ease-in-out 0.3s;
        box-shadow: 0 0 2px 3px #e0e0e0;
    }

        .mobile-menu ul {
            transition: all ease-in-out 0.3s;
            display: block;
            margin: 0 !important;
            /*padding-top: 20px;*/
            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: #161616;
                    display: block;
                    position: relative;
                    padding: 5px;
                    font-size: 14px;
                    text-align: right;
                    margin: 5px;
                    background: #35353f;
                    border-radius: 10px;
                }

                    .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 #3c4089;
            border-top: 2px solid #3c4089;
            transform: translate(-50%, -50%) rotate(-45deg);
        }

        .mobile-menu li .submenu {
            position: absolute;
            top: 0;
            left: 100%;
            width: 100%;
            background: #FFFFFF;
            height: 100%;
            transition: all ease-in-out 0.3s;
            z-index: 1;
        }

            .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: #00000f;
                    width: 96%;
                    border-radius: 10px;
                    text-align: center;
                    background: #ffffff;
                    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%;
                    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 #00000f;
                        border-top: 2px solid #00000f;
                        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: #00000f;
                    }

        .mobile-menu li.sub-open > .submenu {
            left: 0;
        }



    ul.menu i.fas.fa-chevron-left {
        display: none;
    }

    .icon-close svg {
        position: fixed;
        z-index: 99999;
        background: #ffffff;
        top: 50%;
        left: -10%;
        border-radius: 100%;
        fill: #000;
        width: 40px;
        box-shadow: 0 2px 24px #000;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all ease-in-out 0.3s;
        transform: scale(0);
    }

    .icon-close-left {
        left: 0;
        bottom: 0;
        top: 0;
        position: fixed;
        transition: all ease-in-out 0.3s;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0, 0.48);
        z-index: 99;
    }

        .icon-close-left svg {
            transform: scale(1);
            left: 3%;
        }

    .phone_div {
        display: flex;
        font-size: 12px;
        align-items: center;
        justify-content: center;
        color: #ffffff;
    }

    .phone_div-tel {
        display: none
    }
}

/*////////////////////////////////Header-Menu///////////////////////////////////////*/

.right0 {
    right: 0;
}

@media(min-width:1024px) {
    .logo-smaller a img {
        height: 60px !important;
        position: static !important;
        transition: 0.3s
    }

    #menu_trigger, .icon-close, .back-trigger {
        display: none !important;
    }

    .menu-bar .sub-menu {
        position: relative;
    }

    .menu-bar > li > a > i {
        top: 4.5px !important;
        position: absolute;
        margin-right: 6px !important;
        font-size: 11px;
    }

    .menu-bar li ul li i {
        display: inline-block;
        position: absolute;
        left: 10px;
        top: 0;
        line-height: 35px;
        font-size: 10px;
        color: #3c4089;
        transition: all .4s ease-in-out;
    }

    .header_logo_menu {
        display: none;
    }

    .header_logo a img {
        height: 145px;
        position: absolute;
        top: -58px;
    }

    .header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        z-index: 100;
        width: 100%;
        --tw-bg-opacity: 1;
        background-color: #FFFFFF;
        position: sticky;
        top: 0;
        z-index: 999;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        margin: auto;
    }

    .menu-bar {
        display: flex
    }

        .menu-bar .normal {
            padding: 1.5rem;
            font-weight: 600;
            cursor: pointer
        }

            .menu-bar .normal:hover {
                font-weight: 700;
                color: #587abc !important;
                animation-duration:300ms;
            }

        .menu-bar .mega {
            padding: 1.5rem;
            cursor: pointer;
            font-weight: 600;
        }

            .menu-bar .mega:hover {
                font-weight: 700;
                color: #587abc !important;
                animation-duration: 300ms;
            }


    .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 {
        float: right;
        margin: 0;
        display: block;
        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;
            font-weight:600;
            line-height: 1.25rem
        }

            .menu-bar li ul li:hover a {
                color: #587abc !important;
                animation-duration: 300ms;
            }

            .menu-bar li ul a:hover {
                color: #587abc !important;
                animation-duration: 300ms;
                border-radius: 1rem;
                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: 72px;
                    z-index: 50;
                    margin: auto;
                    display: none;
                    flex-wrap: wrap;
                    width: 90%;
                    max-height: 520px;
                    overflow-y: scroll;
                    list-style-type: none;
                    border-radius: 1rem;
                    border-width: 0;
                    border-top-width: 2px;
                    border-style: solid;
                    --tw-border-opacity: 1;
                    border-color: #587abc;
                    --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: .25rem;
                    border-radius: .25rem;
                    --tw-bg-opacity: 1;
                    background-color: rgb(242 242 242/var(--tw-bg-opacity));
                    border-radius: 1rem
                }

                .menu-bar li.mega ul li a {
                    font-size: .875rem;
                    line-height: 2.25rem;
                    font-weight: 600;
                    --tw-text-opacity: 1;
                    color: #00000f;
                    transition-property: all;
                    transition-duration: 500ms;
                    transition-timing-function: cubic-bezier(.4,0,.2,1)
                }

                .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;
                            color: #587abc;
                            animation-duration: 300ms;
                        }

                .menu-bar li.normal > ul {
                    visibility: hidden;
                    position: absolute;
                    right: 0;
                    top: 69px;
                    width: 200px;
                    border-radius: 1rem;
                    border-top-width: 1px;
                    border-style: solid;
                    --tw-border-opacity: 1;
                    border-color: #90a6d2;
                    --tw-bg-opacity: 1;
                    background-color: #FFFFFF;
                    --tw-text-opacity: 1;
                    color: rgb(113 113 183/var(--tw-text-opacity));
                    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%;
                    padding: 0 8px;
                }

                .menu-bar li.normal > ul ul {
                    visibility: hidden;
                    position: absolute;
                    right: 100%;
                    top: -3px;
                    width: 200px;
                    border-radius: 1rem;
                    border-top-width: 2px;
                    border-style: solid;
                    --tw-border-opacity: 1;
                    border-color: #587abc;
                    --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;
        color: #00000f;
    }
        .menu-bar li a:hover {
            animation-duration: 300ms;
            color: #587abc;
        }
}


@media screen and (min-width: 1024px) {
    .fa.fa-plus.fa-chevron_down {
        display: none
    }

    .social_footer {
        margin-left: 50px;
    }
}

@media screen and (max-width: 1023px) {
    .menu-bar {
        list-style: none;
        border: 1px solid #587abc;
        direction: rtl;
        box-sizing: border-box;
        background-color: #FFFFFF;
        position: absolute;
        width: 96%;
        right: 2%;
        top:80px;
        display:none;
    }

        .menu-bar li {
            width: 100%;
            position: relative;
            border-bottom: 1px solid #587abc;
            margin: 0;
            line-height: 35px;
        }

            .menu-bar li i {
                display: block;
                position: absolute;
                left: 0;
                top: 0;
                width: 35px;
                height: 35px;
                border-right: 1px solid #ddd;
                text-align: center;
                color: #587abc;
                line-height: 35px;
            }

            .menu-bar li:first-child a i {
                display: none;
            }

            .menu-bar li a i {
                display: none;
            }

            .menu-bar li a {
                display: block;
                width: 100%;
                color: #000;
                text-decoration: none;
                padding-right: 15px;
                box-sizing: border-box;
                border-top: 4px solid transparent;
            }

            .menu-bar li:last-child {
                border-bottom: none;
            }

            .menu-bar li a b {
                margin-left: 5px;
            }

        .menu-bar > li > a > img {
            display: none;
        }

        .menu-bar > li.mega > ul > li > a img {
            height: 15px;
            margin-left: 5px;
            width: 22px;
        }

        .menu-bar ul {
            width: 100%;
            list-style: none;
            margin: 0;
            display: none;
            padding-left: 0;
        }
}



.toggle-menu {
    display: none;
}


@media (max-width: 1023px) {

    .toggle-menu {
        display: block;
        width: 35px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

        .toggle-menu i {
            font-size: 30px;
            color: #00000f;
        }
}

.social_footer {
    display: flex;
}

    .social_footer a {
        display: block;
        width: 25px;
        height: 25px;
        padding: 5px;
    }

