/* =========================================================
   TEACHER PROFILE
========================================================= */

.teacher-profile-main {
    direction: rtl;
    background: #F3F4F6;
    padding: 190px 0 100px;
    min-height: 100vh;
    padding-bottom: 23vh;
}


/* =========================================================
   Back
========================================================= */

.teacher-profile-back {
    width: 100%;
    margin: 0 auto 25px;
}

.teacher-profile-back a {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: #3B409A;

    font-size: 13px;
    font-weight: 600;

    opacity: 1;
}

.teacher-profile-back a:hover {
    color: #303680;
}

.teacher-profile-back svg {
    transition: .25s ease;
}

.teacher-profile-back a:hover svg {
    transform: translateX(4px);
}


/* =========================================================
   Hero Card
========================================================= */

.teacher-profile-card {
    position: relative;

    width: 100%;
    /* max-width: 1200px; */

    min-height: 310px;

    margin: 0 auto;

    padding: 70px 50px 35px;

    background: #FFFFFF;

    border-radius: 30px;

    box-shadow: 0 12px 40px rgba(40, 50, 100, .08);

    overflow: hidden;

    text-align: center;
}


/* پس‌زمینه تزئینی */

.teacher-profile-bg-shape {
    position: absolute;

    width: 430px;
    height: 430px;

    right: -140px;
    top: -210px;

    border-radius: 50%;

    background: #D9E8FF;

    opacity: .65;

    z-index: 0;
}

.teacher-profile-bg-shape::after {
    content: "";

    position: absolute;

    width: 280px;
    height: 280px;

    left: -500px;
    top: 250px;

    border-radius: 50%;

    background: #E8EEFC;
}


/* =========================================================
   Avatar
========================================================= */

.teacher-profile-avatar {
    position: relative;
    z-index: 3;

    width: 145px;
    height: 145px;

    margin: -5px auto 20px;

    padding: 4px;

    background: #FFFFFF;

    border-radius: 50%;

    box-shadow:
        0 8px 25px rgba(30,40,80,.16);
}

.teacher-profile-avatar img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 50%;
}


/* =========================================================
   Main Info
========================================================= */

.teacher-profile-main-info {
    position: relative;
    z-index: 2;
}

.teacher-profile-gender {
    display: block;

    margin-bottom: 3px;

    color: #777;

    font-size: 12px;
}

.teacher-profile-main-info h1 {
    margin: 0;

    color: #333;

    font-size: 30px;

    font-weight: 800;

    line-height: 1.7;
}

.teacher-profile-position {
    margin: 3px 0 15px;

    color: #666;

    font-size: 14px;
}


/* =========================================================
   Tags
========================================================= */

.teacher-profile-tags {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    flex-wrap: wrap;
}

.teacher-profile-tags span {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 25px;

    padding: 2px 11px;

    border: 1px solid #A3AAD4;

    border-radius: 20px;

    color: #4C55A7;

    font-size: 10px;

    background: #FBFCFF;
}


/* =========================================================
   Stats
========================================================= */

.teacher-profile-stats {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 600px;

    margin: 30px auto 0;

    padding-top: 25px;

    border-top: 1px solid #EEEEF3;

    display: flex;

    align-items: center;
    justify-content: center;
}

.teacher-stat {
    min-width: 140px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 3px;
}

.teacher-stat strong {
    color: #3B409A;

    font-size: 21px;

    font-weight: 800;
}

.teacher-stat span {
    color: #777;

    font-size: 10px;
}

.teacher-stat-divider {
    width: 1px;
    height: 35px;

    background: #E5E5EA;
}


/* =========================================================
   Resume Content
========================================================= */

.teacher-profile-content {
    width: 90%;

    max-width: 1200px;

    margin: 35px auto 0;

    display: flex;

    flex-direction: column;

    gap: 18px;
}


/* =========================================================
   Resume Box
========================================================= */

.teacher-resume-box {
    position: relative;

    padding: 27px 30px;

    background: #FFFFFF;

    border-radius: 22px;

    box-shadow:
        0 7px 25px rgba(40,50,100,.06);

    overflow: hidden;
}

.teacher-resume-box::before {
    content: "";

    position: absolute;

    right: 0;
    top: 0;

    width: 4px;
    height: 100%;

    background: #3B409A;

    border-radius: 0 20px 20px 0;
}


/* =========================================================
   Title
========================================================= */

.teacher-resume-title {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 18px;
}

.teacher-title-icon {
    width: 39px;
    height: 39px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #EAF0FC;

    border-radius: 12px;
}

.teacher-resume-title h2 {
    margin: 0;

    color: #353535;

    font-size: 17px;

    font-weight: 800;
}


/* =========================================================
   Text
========================================================= */

.teacher-resume-text {
    margin: 0;

    color: #6C6C6C;

    font-size: 13px;

    line-height: 2.2;

    text-align: justify;
}


/* =========================================================
   Two Columns
========================================================= */

.teacher-resume-grid {
    width: 100%;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 18px;
}


/* =========================================================
   Resume List
========================================================= */

.teacher-resume-list {
    display: flex;

    flex-direction: column;

    gap: 12px;
}

.teacher-resume-list-item {
    display: flex;

    align-items: flex-start;

    gap: 10px;
}

.teacher-resume-list-item > span {
    width: 7px;
    height: 7px;

    margin-top: 8px;

    flex-shrink: 0;

    border-radius: 50%;

    background: #5962B7;
}

.teacher-resume-list-item p {
    margin: 0;

    color: #707070;

    font-size: 12px;

    line-height: 2;
}


/* =========================================================
   Subjects
========================================================= */

.teacher-subjects {
    display: flex;

    gap: 10px;

    flex-wrap: wrap;
}

.teacher-subjects span {
    padding: 9px 17px;

    border-radius: 14px;

    color: #4852A5;

    font-size: 11px;

    border: 1px solid #C4C9E5;

    background: #F9FAFF;
}


/* =========================================================
   Skills
========================================================= */

.teacher-skills {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 12px;
}

.teacher-skill {
    display: flex;

    align-items: center;

    gap: 10px;

    padding: 12px 14px;

    background: #F8F9FD;

    border-radius: 13px;

    color: #656565;

    font-size: 11px;
}

.teacher-skill-check {
    width: 25px;
    height: 25px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: #E5EAFB;

    border-radius: 8px;
}


/* =========================================================
   Responsive
========================================================= */

@media (max-width: 850px) {

    .teacher-profile-main {
        padding-top: 150px;
    }

    .teacher-profile-card {
        width: 92%;

        padding: 60px 25px 30px;
    }

    .teacher-profile-main-info h1 {
        font-size: 25px;
    }

    .teacher-resume-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 600px) {

    .teacher-profile-main {
        padding-top: 125px;
        padding-bottom: 60px;
    }

    .teacher-profile-back {
        width: 92%;
    }

    .teacher-profile-card {
        border-radius: 22px;

        padding: 50px 16px 25px;
    }

    .teacher-profile-avatar {
        width: 120px;
        height: 120px;
    }

    .teacher-profile-main-info h1 {
        font-size: 21px;
    }

    .teacher-profile-position {
        font-size: 12px;
    }

    .teacher-profile-stats {
        margin-top: 22px;

        padding-top: 20px;
    }

    .teacher-stat {
        min-width: auto;

        flex: 1;
    }

    .teacher-stat strong {
        font-size: 17px;
    }

    .teacher-stat span {
        font-size: 8px;
    }

    .teacher-resume-box {
        padding: 22px 17px;
        border-radius: 18px;
    }

    .teacher-resume-title h2 {
        font-size: 15px;
    }

    .teacher-resume-text {
        font-size: 11px;
    }

    .teacher-skills {
        grid-template-columns: 1fr;
    }

}