@import url("https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --main-color: #213368;
    --background-color: #f3f3f4;
    --text-color: #3B3663;
    --section-color: #fff;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Vazirmatn', 'sans-serif';
    background-color: var(--background-color);
}

p,
ul {
    margin-bottom: 0 !important;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 110px;
    background-color: var(--section-color);
    padding: 0px 24px;
    box-shadow: var(--box-shadow);
}

.logo {
    height: 110px;
    width: 120px;
    margin-right: 16px;
}

.logo img {
    width: 100%;
    height: 100%;
}

.navlinks {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.navlinks li {
    list-style: none;
    font-weight: bold;
    font-size: 18px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s step-start;
}

.navlinks li:hover {
    border-bottom: 2px solid var(--main-color);
}

.nav button {
    display: none;
    width: 50px;
    height: 50px;
    border: 2px solid #e7e7e9;
    background-color: transparent;
    border-radius: 5px;
}

.nav button i {
    font-size: 24px;
    color: var(--text-color);
}

.banner {
    display: flex;
    width: 100%;
    position: relative;
    background: var(--main-color);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    color: var(--section-color);
    padding: 48px 24px;
}

body.dark .banner {
    color: var(--text-color);
}

.banner_text {
    flex: 1;
    padding: 18px;
}

.banner_title {
    font-size: calc(4vw);
    margin-bottom: 12px;
    font-weight: bold;
}

.banner_description {
    font-size: calc(2vw);
    line-height: 1.2;
    margin-bottom: 24px;
    max-width: 90%;
}

.banner_slideshow {
    flex: 1;
    position: relative;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
}

.slide.active {
    opacity: 1;
}

.slide_overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 20px;
    color: var(--section-color);
}

.slide_title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--section-color);
}

.slide_description {
    font-size: 14px;
    color: var(--section-color);
}

body.dark .slide_title,
body.dark .slide_description {
    color: var(--text-color);
}

@keyframes nav_open {
    from {
        top: -300px;
    }

    to {
        top: 0px;
    }
}

@keyframes nav_close {
    from {
        top: 0px;
    }

    to {
        top: -300px;
    }
}

@media (max-width: 900px) {
    .banner {
        flex-direction: column;
        padding: 24px !important;
    }

    .banner_text {
        width: 100% !important;
        height: 350px;
        margin: 0px calc((100% - 600px) / 2);
        max-width: 600px;
        padding: 18px 0;
    }

    .banner_slideshow {
        width: 100% !important;
        height: 350px;
        margin: 0px calc((100% - 600px) / 2);
        max-width: 600px;
        flex: unset;
    }

    .nav button {
        display: block;
    }

    .navlinks {
        position: absolute;
        width: 100%;
        height: 300px;
        top: -300px;
        right: 0;
        z-index: 10;
        background-color: var(--section-color);
        box-shadow: var(--box-shadow);
        margin: unset;
        padding: 32px;
        flex-direction: column;
        align-items: start;
    }

    .navlinks button {
        position: absolute;
        top: 24px;
        left: 24px;
        border: none;
    }

    .news_container {
        grid-template-columns: repeat(2, 1fr) !important;
        grid-template-rows: repeat(4, 1fr) !important;
        gap: 24px 16px;
    }

    .logo {
        margin-right: 0;
    }
}

@media screen and (max-width: 648px) {
    .banner_text {
        margin: 0 !important;
    }

    .banner_slideshow {
        margin: 0 !important;
    }
}

@media screen and (max-width: 1000px) {
    .banner_title {
        font-size: calc(4vw + ((1000px - 100%) / 100));
    }

    .banner_description {
        font-size: calc(2vw + ((1000px - 100%) / 800));
    }
}

@media screen and (max-width: 800px) {
    .banner_title {
        font-size: calc(4vw + ((800px - 100%) / 50));
    }

    .banner_description {
        font-size: calc(2vw + ((800px - 100%) / 100));
    }
}

@media screen and (max-width: 500px) {
    .banner_title {
        font-size: calc(4vw + ((500px - 100%) / 20));
    }

    .banner_description {
        font-size: calc(2vw + ((500px - 100%) / 50));
    }
}

@media screen and (max-width: 550px) {
    .news_container {
        grid-template-columns: repeat(1, 1fr) !important;
        grid-template-rows: repeat(8, 1fr) !important;
        gap: 24px 16px;
    }

    .news_container {
        padding: 0px 10px;
    }
}

.main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 72px;
    padding: 50px 2%;
}

.main .section {
    width: 100%;
    max-width: 1500px;
}

.main .section_title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 20px;
    font-size: 2.2rem;
    font-weight: bold;
    position: relative;
    padding-bottom: 10px;
    color: var(--text-color);
}

.main .section_title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 200px;
    height: 3px;
    background-color: var(--main-color);
}

.main .section_title::after {
    background-color: var(--text-color);
}

.news_container {
    display: grid;
    position: relative;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 24px 16px;
    padding: 8px 8px 74px 8px;
}

.news {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    background-color: var(--section-color);
    box-shadow: var(--box-shadow);
    cursor: pointer;
}

.news_img {
    width: 100%;
    margin-bottom: 10px;
}

.news_img img {
    width: 100%;
    height: 100%;
    border-radius: 8px 8px 0px 0px;
    object-fit: cover;
    overflow: hidden;
}

.news_title {
    color: var(--text-color);
    font-weight: bold;
    padding-right: 5px;
}

.news_date {
    color: var(--text-color);
    padding: 0px 5px 12px 0px;
    font-size: 12px;
}

.news_container button {
    width: 200px;
    height: 50px;
    position: absolute;
    left: calc(50% - 100px);
    bottom: 0;
    border: none;
    border-radius: 8px;
    background-color: var(--main-color);
    color: var(--section-color);
}

.news_container button:hover {
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
    transform: scale(1.005);
}

.contact {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 24px 32px;
}

.contact_info {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    width: 50%;
    gap: 16px;
}

.info_item p:first-child {
    font-size: 24px;
    font-weight: bold;
    color: var(--main-color);
}

.info_item p:last-child {
    color: #6c757d;
    margin-top: 8px;
    font-size: 18px;
}

.contact_form {
    background-color: #e7e7e9;
    width: 50%;
    padding: 24px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.form_title {
    font-size: 28px;
    font-weight: bold;
    color: var(--main-color);
}

.contact_form input {
    border-radius: 8px;
    height: 50px;
}

.contact_form textarea {
    border-radius: 8px;
}

.contact_form input:focus,
.contact_form textarea:focus {
    border-color: var(--main-color);
    box-shadow: unset;
}

.contact_form button {
    width: 100%;
    height: 50px;
    border-radius: 8px;
    border: none;
    background-color: var(--main-color);
    color: var(--section-color);
    margin-top: 20px;
}

.contact_form button:hover {
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
    transform: scale(1.005);
}

.map {
    width: 100%;
    margin: 48px 0px;
    padding: 0px 48px;
}

.map iframe {
    width: 100%;
    aspect-ratio: 9/5;
    border-radius: 8px;
}

@media screen and (max-width: 768px) {
    .contact {
        flex-direction: column;
        gap: 48px;
        padding: 12px 16px;
    }

    .map {
        padding: 0px 16px;
    }

    .map iframe {
        aspect-ratio: 9/6;
    }

    .contact_info,
    .contact_form {
        width: 100%;
    }
}

footer {
    background-color: var(--section-color);
    margin: 0;
}

footer .items_container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 24px 12px;
    padding: 32px 24px;
    flex-wrap: wrap;
}

footer .item {
    display: flex;
    flex-direction: column;
}

footer .item_title {
    font-size: 24px;
    color: var(--main-color);
    font-weight: bold;
    margin-bottom: 12px !important;
}

footer .item p {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-color);
}

footer .item i {
    font-size: 22px;
}

footer a {
    text-decoration: none;
    color: var(--text-color);
}

footer h6 {
    line-height: unset;
    font-weight: unset;
    text-align: center;
    margin: 0 !important;
    padding: 6px 0px;
}

.banner_text button {
    border: none;
    background-color: rgb(228, 73, 105);
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--section-color);
    margin-left: 2px;
}

.person {
    text-align: center;
}

.person_name {
    font-size: 20px;
    font-weight: bold;
}

.person_role {
    color: #6c757d;
}

.persons_container1 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: 1fr;
    grid-column-gap: 16px;
    grid-row-gap: 0px;
    margin-top: 36px;
}

.persons_container2 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(6, 1fr);
    grid-column-gap: 16px;
    grid-row-gap: 16px;
    margin-top: 36px;
}