/* =========================================================
   ARIYANA TEACHERS PAGE
========================================================= */

.aryana-teachers-page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 70px;
    box-sizing: border-box;
    direction: rtl;
    font-family: "Ramin", sans-serif;
    color: #333333;
}

/* =========================================================
   HERO
========================================================= */

.aryana-teachers-hero {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 28px;
    isolation: isolate;
}

.aryana-teachers-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* =========================================================
   HERO DARK OVERLAY
========================================================= */

.aryana-teachers-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
    z-index: 1;
}

/* =========================================================
   HERO TITLE
========================================================= */

.aryana-teachers-hero-content {
    position: absolute;
    left: 0;
    top: 50px;
    transform: translateX(-24px);
    right: 0;
    z-index: 2;
    text-align: center;
}

.aryana-teachers-hero-content h1 {
    margin: 0;
    color: #ffffff;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.6;
    text-shadow: 0 2px 7px rgba(0, 0, 0, .35);
}

.aryana-teachers-hero-content p {
    margin: 2px 0 0;
    color: #ffffff;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.8;
    text-shadow: 0 1px 5px rgba(0, 0, 0, .35);
}

/* =========================================================
   TEACHERS SECTION
========================================================= */

.aryana-teachers-section {
    width: 100%;
    margin-top: 80px;
}

/* =========================================================
   TEACHERS GRID
========================================================= */

.aryana-teachers-grid {

    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    column-gap: 40px;
    row-gap: 70px;
    align-items: start;
}

/* =========================================================
   TEACHER CARD
========================================================= */

.aryana-teacher-card {

    position: relative;
    width: 100%;
    margin-top: 75px;
    height: 260px;
    /* ارتفاع کارت */
    background: #ffffff;
    border-radius: 18px;
    padding: 0 12px 18px;
    box-sizing: border-box;
    text-align: center;
    border: 1px solid #eeeeee;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

/* =========================================================
   TEACHER IMAGE
========================================================= */

.aryana-teacher-image {

    position: relative;
    width: 78%;
    height: 205px;
    margin: -75px auto 0;
    overflow: hidden;
    border-radius: 16px;
    background: #f5f5f5;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.aryana-teacher-image img {

    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* =========================================================
   IMAGE HOVER
========================================================= */

.aryana-teacher-card:hover .aryana-teacher-image {
    transform: translateY(-8px) scale(1.05);
}

/* =========================================================
   TEACHER INFO
========================================================= */

.aryana-teacher-info {

    padding: 15px 4px 0;
}

/* =========================================================
   TEACHER NAME
========================================================= */

.aryana-teacher-info h3 {

    margin: 0 0 7px;
    color: #555555;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.7;
    white-space: nowrap;
}

/* =========================================================
   SUBJECT
========================================================= */

.aryana-teacher-subject {

    display: block;
    min-height: auto;
    color: #555555;
    font-size: 14px;
    line-height: 1.8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =========================================================
   EXPERIENCE
========================================================= */

.aryana-teacher-experience {

    display: block;
    margin-top: 6px;
    color: #555555;
    font-size: 14px;
    line-height: 1.8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

    .aryana-teachers-grid {
        max-width: 900px;
        grid-template-columns: repeat(4, 1fr);
        column-gap: 25px;
        row-gap: 90px;
    }

}


@media (max-width: 850px) {

    .aryana-teachers-grid {
        max-width: 680px;
        grid-template-columns: repeat(3, 1fr);
        column-gap: 25px;
        row-gap: 90px;
    }

}

@media (max-width: 768px) {

    .aryana-teachers-hero {
        width: 95%;
        margin: 0 auto;
        border-radius: 22px;
        overflow: hidden;
    }

    .aryana-teachers-hero-image {
        position: relative;
        inset: auto;
        width: 100%;
        height: 130px;
        object-fit: cover;
        object-position: 7% center;
        border-radius: 22px;
    }

    .aryana-teachers-hero-overlay {
        display: none;
    }

    .aryana-teachers-hero-content {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        transform: none;
        padding: 28px 10px 10px;
        text-align: center;
    }

    .aryana-teachers-hero-content h1 {
        font-size: 24px;
        color: #ff0048;
        text-shadow: none;
    }

    .aryana-teachers-hero-content p {
        display: none;
    }
}

@media (max-width: 620px) {

    .aryana-teachers-section {
        margin-top: 10px;
    }

    .aryana-teachers-page {
        padding-left: 15px;
        padding-right: 15px;
        padding-bottom: 150px;
    }

    .aryana-teachers-hero {
        border-radius: 22px;
    }

    .aryana-teachers-hero-content h1 {
        margin-bottom: 0;
    }

    .aryana-teacher-subject,
    .aryana-teacher-experience {
        font-size: 13px;
    }

    .aryana-teachers-grid {
        width: 100%;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 17px;
        row-gap: 105px;
    }

    .aryana-teacher-card {
        width: 100%;
        min-width: 0;
        height: 225px;
        padding: 0 5px 12px;
        margin-top: 10px;
    }

    .aryana-teacher-image {
        width: 75%;
        height: 170px;
        margin: -75px auto 0;
    }


}


@media (max-width: 420px) {

    .aryana-teachers-grid {
        column-gap: 15px;

    }

    .aryana-teacher-card {
        width: 100%;
        min-width: 0;
        height: 225px;
    }

    .aryana-teacher-image {
        height: 160px;
    }

}