/* =========================
        Global
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {

    font-family: Tahoma, sans-serif;
    direction: rtl;
    background: #ffffff;

}


/* =========================
        Navbar
========================= */

#navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background: white;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
    transition: .35s;
}


/* Thin Blue Line */

.top-line {
    height: 5px;
    background: #1c4eb4;
}


/* Container */

.nav-container {

    width: 82%;
    max-width: 1400px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 92px;
    transition: .35s;
}


/* =========================
        Logo
========================= */

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 62px;
    transition: .35s;
}


/* =========================
        Navigation
========================= */

.nav-links {
    display: flex;
    list-style: none;
    gap: 48px;
    align-items: center;
}


.nav-links a {
    position: relative;
    text-decoration: none;
    color: #23478f;
    font-family: 'B KOODB';
    font-size: 22px;
    font-weight: 700;
    transition: .3s;
    padding-bottom: 4px;
}


/* Underline Animation */

.nav-links a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: #2d68e3;
    transition: width .35s;
}


.nav-links a:hover {
    color: #2d68e3;
}


.nav-links a:hover::after {
    width: 100%;
}


/* =========================
    Shrink Navbar
========================= */

#navbar.shrink .nav-container {
    height: 66px;
}


#navbar.shrink .logo img {
    height: 46px;
}


/* ===================================
        Mobile Navbar
=================================== */

.hamburger {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    cursor: pointer;
    position: relative;
}


.hamburger span {
    position: absolute;
    width: 28px;
    height: 3px;
    background: #1c4eb4;
    left: 6px;
    transition: .35s;
}


.hamburger span:nth-child(1) {
    top: 10px;
}

.hamburger span:nth-child(2) {
    top: 18px;
}

.hamburger span:nth-child(3) {
    top: 26px;
}


/* X Animation */

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 18px;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 18px;
}


/* ===================================
        Responsive Navbar
=================================== */

@media (max-width: 900px) {

    .nav-container {
        height: 72px;
    }

    .logo img {
        height: 52px;
    }

    /* Put logo left and hamburger right */

    .nav-container {
        flex-direction: row-reverse;
    }

    .hamburger {
        display: block;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        overflow: hidden;
        max-height: 0;
        transition: max-height .35s ease;
        box-shadow: 0 8px 18px rgba(0, 0, 0, .08);
    }

    nav.open {
        max-height: 400px;
    }

    .nav-links {
        flex-direction: column;
        gap: 0;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #ececec;
    }

    .nav-links a {
        display: block;
        padding: 18px 25px;
        font-size: 18px;
    }

}



/* =========================
        Slideshow
========================= */

.slideshow {

    width: 100%;
    overflow: hidden;

}

.slider {

    display: flex;

    flex-direction: row;

    direction: ltr;
    transition: transform .7s ease;

}

.slide {

    min-width: 100%;
    user-select: none;

}

.slide img {

    width: 100%;
    display: block;
    aspect-ratio: 16/6;

    object-fit: cover;

    pointer-events: none;

}

/* ===========================
        Events Section
=========================== */

.events-section {

    width: 80%;

    max-width: 1400px;

    margin: 90px auto;

}


.section-title {
    text-align: center;
    color: #23478f;
    font-size: 50px;
    margin-bottom: 50px;
    font-family: 'B KOODAKO';
    font-weight: 700;
}

.section-title a {
    color: #23478f;
    text-decoration: none;
}

/* Layout */

.events-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 70px;
}


/* =====================
        Slider
===================== */

.events-slider {
    width: 45%;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
}


.events-slider-track {
    display: flex;
    direction: ltr;
    transition: transform .7s ease;
}


.event-slide {
    flex: 0 0 100%;
}


.event-slide img {
    width: 100%;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}


/* =====================
        Text
===================== */

.events-text {
    width: 55%;
}


.events-text h3 {
    color: #1c4eb4;
    font-family: 'B TITR', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-weight: 700;
    font-size: 35px;
    margin-bottom: 20px;
}


.events-text p {
    color: #444;
    font-family: 'IRANSansWeb', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 2.1;
    text-align: justify;
}

/* ===========================
        Articles Section
=========================== */

.articles-section {
    width: 80%;
    max-width: 1400px;
    margin: 100px auto;
}


.articles-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 70px;
}


/* ======================
        Text
====================== */

.articles-text {
    width: 45%;
}


.articles-text h3 {
    color: #1c4eb4;
    font-family: 'B TITR', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-weight: 700;
    font-size: 35px;
    margin-bottom: 20px;

}


.articles-text p {
    font-family: 'IRANSansWeb', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: #444;
    line-height: 2.1;
    text-align: justify;

}


/* ======================
        Grid
====================== */

.articles-grid {
    width: 58%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}


/* ======================
        Card
====================== */

.article-card {
    display: block;
    text-decoration: none;
    background: #fff;
    border: 1px solid #d7e3fb;
    border-radius: 12px;
    overflow: hidden;
    transition: .25s;
}


.article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(28, 78, 180, .15);
    border-color: #1c4eb4;
}


.article-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}


.article-card h4 {
    color: #23478f;
    font-family: 'B TITR', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-weight: 700;
    font-size: 17px;
    font-weight: 600;
    text-align: center;
    padding: 16px 12px;
    line-height: 1.7;

}

/* ===========================
    About English Upgrade
=========================== */

.about-home {

    width: 90%;
    max-width: 1400px;
    margin: 110px auto;
}


/* =====================
        Block
===================== */

.about-block {
    display: flex;
    align-items: center;
    gap: 00px;
    margin: 0px 0;

}

.about-block-odd {
    margin-right: 10%;
}

.about-block-even {
    gap: 20px;
}

.about-block.reverse {
    flex-direction: row-reverse;
}


/* =====================
        Image
===================== */

.about-image {
    width: 35%;
    flex-shrink: 0;
}


.about-image img {

    /* width: 100%; */
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
}


/* =====================
        Text
===================== */

.about-text {
    width: 45%;
}


.about-text h3 {
    color: #1c4eb4;
    font-size: 32px;
    margin-bottom: 18px;
    font-family: 'B TITR', 'Franklin Gothic Medium', Arial, Helvetica, sans-serif;
    font-weight: 700;
}


.about-text p {
    color: #444;
    font-size: 19px;
    line-height: 1.8;
    text-align: justify;
    font-family: 'IRANSansWeb', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-weight: 400;
}

/* ===================================
        Responsive Sections
=================================== */

@media (max-width: 900px) {

    /* ---------------------------------
            General
    --------------------------------- */

    .section-title {
        font-size: 30px;
        margin-bottom: 35px;
    }

    /* =================================
            EVENTS RESPONSIVE
    ================================= */
    .events-section {
        width: 85%;
        margin: 40px auto;
    }

    .events-content {
        flex-direction: column;
        gap: 35px;
    }

    .events-text {
        width: 100%;
        order: 1;
    }

    .events-slider {
        width: 100%;
        order: 2;
    }

    .events-text h3 {
        font-size: 25px;
        text-align: center;
    }

    .events-text p {
        font-size: 14px;
        line-height: 2;
    }

    /* =================================
            ARTICLES RESPONSIVE
    ================================= */
    .articles-section {
        width: 85%;
        margin: 0px auto;
    }

    .articles-content {
        flex-direction: column;
        gap: 40px;
    }

    .articles-text {
        width: 100%;
        order: 1;
    }

    .articles-grid {
        width: 100%;
        order: 2;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .articles-text h3 {
        text-align: center;
        font-size: 25px;
    }

    .articles-text p {
        font-size: 14px;
        line-height: 2;
    }

    .article-card h4 {
        font-size: 15px;
        padding: 12px 10px;
    }

    /* =================================
            ABOUT RESPONSIVE
    ================================= */
    .about-home {
        margin: 40px auto;
        margin-bottom: 0;
        width: 85%;
    }

    .about-block,
    .about-block.reverse {
        flex-direction: column;
        gap: 30px;
    }

    .about-text {
        width: 100%;
        order: 1;
    }

    .about-image {
        width: 100%;
        order: 2;
        display: flex;
        justify-content: center;
    }

    .about-image img {
        width: 75%;
        max-width: 350px;
    }

    .about-text h3 {
        text-align: center;
        font-size: 25px;
    }

    .about-text p {
        font-size: 14px;
        line-height: 2;
    }

    .about-block-odd {
        margin-right: 0;
    }

}

/* ===========================
            Footer
=========================== */

.footer {
    background: #123a8d;
    color: #eef4ff;
    margin-top: 120px;
}


.footer-container {
    width: 90%;
    max-width: 1400px;
    margin: auto;
    padding: 40px 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
}


/* =====================
        Headings
===================== */

.footer-column h3 {
    margin-bottom: 22px;
    color: white;
    font-size: 26px;
    font-family: 'B ZAR', 'Franklin Gothic Medium', Arial, Helvetica, sans-serif;
    font-weight: 700;
}


/* =====================
        Lists
===================== */

.footer-column ul {
    list-style: none;
}


.footer-column li {
    margin-bottom: 10px;
}


.footer-column a {
    color: #dbe8ff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: .25s;
    font-family: 'B Nazanin', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-weight: 500;
    font-size: 20px;
}


.footer-column a:hover {
    color: white;
    transform: translateX(-3px);
}


.footer-column img {
    width: 28px;
}


/* =====================
        Brand
===================== */

.footer-brand {
    text-align: center;
}


.footer-brand img {
    width: 120px;
    margin-bottom: 20px;
}


.footer-brand p {
    line-height: 1;
    color: #dbe8ff;
    font-family: 'B KOODAKO';
    font-size: 25px;
}

/* ===================================
        Responsive Footer
=================================== */

@media (max-width: 900px) {

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px 25px;
        text-align: center;
    }

    .footer-column {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-column ul {
        width: 100%;
    }

    .footer-column li {
        margin-right: 10px;
        margin-bottom: 12px;
    }

    .footer-column a {
        justify-content: right;
    }

    .footer-column h3 {
        font-size: 21px;
    }

    .footer-brand img {
        width: 90px;
    }

    .footer-brand p {
        font-size: 15px;
        line-height: 1.9;
    }

    .footer-bottom {
        padding: 20px 15px;
    }

    .footer-bottom p {
        font-size: 14px;
        line-height: 1.8;
    }

}

/* =====================
        Bottom
===================== */

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .18);
    text-align: center;
    padding: 5px;
}


.footer-bottom p {
    margin: 3px 0;
    color: #dbe8ff;
    font-size: 10px;
}