﻿body, html {
    overflow-x: hidden;
}

body, ul {
    padding: 0;
    margin: 0;
}

@font-face {
    font-family: iranSans;
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src: url("/assets/fonts/Vazir-FD.ttf") format("truetype");
}

@font-face {
    font-family: Michroma;
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src: url("/assets/fonts/Michroma.ttf") format("truetype");
}

body {
    direction: rtl;
    text-align: right;
}

a, h1, h2, h3, li, p, span {
    font-family: iranSans;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
}

.banner {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background-image: url(/assets/img/c207359f2cfc1d051e47b4a741591b5fca180c37.jpg);
    background-size: cover !important;
    background-repeat: no-repeat;
    display: flex;
    flex-wrap: wrap;
}

    .banner::before {
        content: "";
        position: absolute;
        width: 100%;
        height: 100%;
        background: #0000007d;
        display: block;
        top: 0;
    }

    .banner .top {
        width: 100%;
        max-width: 90rem;
        margin: auto;
        z-index: 1;
        display: flex;
        justify-content: space-between;
        padding: 1rem;
        align-items: center;
    }

        .banner .top .logo a {
            position: relative;
            width: 320px;
            display: block;
        }

            .banner .items .box a span img, .banner .top .logo a img {
                width: 100%;
                height: 100%;
            }

        .banner .top .logo h1 {
            color: #fff;
            font-size: 1.5rem;
            text-align: center;
            margin: 0;
            visibility: hidden;
            display: none;
        }

        .banner .top .menu {
            display: flex;
            justify-content: center;
            flex-direction: column;
            align-items: flex-end;
        }

            .banner .top .menu .flag, .banner .top .menu ul li {
                align-items: center;
                position: relative;
                display: flex;
            }

            .banner .top .menu .flag {
                width: 70px;
                border-radius: 4px;
                overflow: hidden;
                flex-direction: row-reverse;
                justify-content: space-between;
                margin-bottom: 1rem;
            }

                .banner .top .menu .flag img {
                    width: 40px;
                    height: 100%;
                }

                .banner .items .box a:hover h2, .banner .top .menu .flag span {
                    color: #fff;
                }

    .banner .items .box a:hover span {
        box-shadow: 0px 0px 11px 0px #adadad;
    }

    .banner .top .menu ul {
        display: flex;
    }

        .banner .top .menu ul li {
            margin: 0 2rem 0 0;
            background: #da2d2d;
            border-radius: 16px;
            transition: 0.5s;
        }

            .banner .top .menu ul li a {
                color: #fff;
                margin: auto;
                padding: 6px 2rem;
                display: flex;
                align-items: center;
                text-align: center;
            }

                .banner .top .menu ul li a.submenu {
                    background: url(../images/down-arrow.png) center left no-repeat;
                    background-position: 5px center;
                }

            .banner .top .menu ul li > ul {
                position: absolute;
                flex-direction: column;
                background: #da2d2d;
                transform: translateY(5rem);
                align-items: flex-start;
                top: 4px;
                right: 0;
                opacity: 0;
                display: none;
                border-radius: 8px;
                overflow: hidden;
                width: 100%;
                z-index: 12;
                transition: 0.5s;
            }

                .banner .top .menu ul li > ul li {
                    margin: 0;
                    text-align: center;
                    width: 100%;
                }

                    .banner .top .menu ul li > ul li a {
                        font-size: 13px;
                        padding: 6px 0rem !important;
                        width: 100%;
                        text-align: center;
                        display: flex;
                        justify-content: center;
                    }

    .banner .top .menu li:hover > ul {
        opacity: 1 !important;
        display: flex !important;
        transform: translateY(2rem) !important;
    }

    .banner .items {
        width: 100%;
        position: relative;
        display: flex;
        max-width: 90rem;
        margin: auto;
        top: -3rem;
        justify-content: center !important;
    }

        .banner .items .box {
            margin: 0;
            padding: 2rem 1rem;
            width: 20%;
            height: 50%;
            display: flex;
            justify-content: center;
        }

            .banner .items .box a {
                max-width: 20rem;
                border-radius: 1rem;
                width: 100%;
                height: 100%;
                margin: auto;
                padding: 2rem 0.5rem;
                background-color: #fafafa;
                text-align: center;
                display: flex;
                flex-direction: column;
                flex-wrap: wrap;
                justify-content: center;
                align-items: center;
                transition: 0.5s;
            }

                .banner .items .box a:hover {
                    transform: translateY(-4rem);
                    background-color: #00006694;
                }

                .banner .items .box a h2 {
                    color: #006;
                    font-weight: 700;
                    font-size: 1.2rem;
                    text-align: center;
                    margin-bottom: 0.5rem;
                }

                .banner .items .box a h3 {
                    font-size: 1rem;
                    font-weight: 600;
                    color: #969696;
                    font-family: Michroma;
                }

                .banner .items .box a span {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    padding: 1rem;
                    width: 6rem;
                    height: 6rem;
                    border-radius: 100%;
                    box-shadow: -7px -7px 20px 0 #fff, 8px 8px 18px 0 hsla(0, 0%, 60%, 0.48);
                    margin-bottom: 1rem;
                    background-color: #fafafa;
                }

@media (max-width: 768px) {
    .banner .top {
        flex-wrap: wrap;
        justify-content: center;
    }

        .banner .top .logo {
            margin-bottom: 1rem;
        }

            .banner .top .logo a {
                width: auto;
            }

        .banner .top .menu {
            flex-direction: column-reverse;
            align-items: center;
            width: 100%;
        }

            .banner .top .menu ul {
                flex-direction: column;
            }

                .banner .top .menu ul li {
                    margin: 0 0 1rem;
                }

    .banner .items {
        flex-wrap: wrap;
    }

        .banner .items .box {
            width: 100%;
        }

            .banner .items .box a {
                flex-direction: initial;
                flex-wrap: nowrap;
                padding: 0 0.5rem;
                max-width: unset;
            }

                .banner .items .box a span {
                    position: absolute;
                    right: 0;
                    width: 4rem;
                    height: 4rem;
                    box-shadow: rgb(255 255 255) 0px 0px 4px 0px, rgb(153 153 153 / 48%) 8px 8px 18px 0px;
                    transform: translate(-0.3rem, 0.5rem);
                }

                .banner .items .box a > div {
                    position: relative;
                    left: 0;
                    padding: 0.5rem 0;
                    transform: translateX(-2.5rem);
                }

                    .banner .items .box a > div h2 {
                        margin: 0;
                    }

                    .banner .items .box a > div h3 {
                        margin: 0;
                        font-size: 0.8rem;
                    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .banner .items .box a {
        padding: 1rem 0.5rem;
    }

        .banner .items .box a span {
            margin-bottom: 1rem;
            width: 5rem;
            height: 5rem;
        }

        .banner .items .box a > div {
            min-height: 124px;
        }
}
