/********************************************************************************/ /* Best Teachers */

.teacher-swiper-thumb {
    width: 88px;
    height: 360px;
    position: relative;
    margin-top: 71px;
}

.teacher-swiper-thumb:before {
    content: " ";
    width: 88px;
    height: 99px;
    --start_color: var(--bg_color);
    --mid_color: color-mix(in srgb, var(--bg_color) 70%, transparent);
    background: linear-gradient(to bottom, var(--start_color) 0, var(--mid_color) 55%, transparent 100%);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 99;
}

.teacher-swiper-thumb:after {
    content: " ";
    width: 88px;
    height: 99px;
    --start_color: var(--bg_color);
    --mid_color: color-mix(in srgb, var(--bg_color) 70%, transparent);
    background: linear-gradient(to top, var(--start_color) 0, var(--mid_color) 50%, transparent 100%);
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 99;
}

.teacher-swiper-thumb img {
    border-radius: 12px;
    border: 1px solid #ffffff;
    width: 88px;
    height: 80px;
    object-fit: cover;
}

.teacher-swiper-thumb .swiper-wrapper {
    display: flex;
    flex-direction: column;
}

.teacher-swiper {
    width: calc(100% - 88px);
    padding-right: 16px;
}
.teacher-swiper .swiper-wrapper{
    height: max-content;
}
.teacher-list-wrap {
    margin-top: 40px;
}

.teacher-box {
    background: #fff;
    margin-right: 113px;
    margin-bottom: 49px;
    padding: 48px 196px 48px 49px;
    border-radius: 32px;
    position: relative;
    height: 100%;
}

.teacher-box > img {
    border-radius: 24px;
    border: 6px solid #ffffff;
    position: absolute;
    right: -113px;
    top: 71px;
    width: 310px;
    height: 360px;
    object-fit: cover;
}

.teacher-box-head {
    padding-bottom: 20px;
    --border-color: color-mix(in srgb, var(--dark_gray_color) 20%, transparent);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    margin-bottom: 32px;
}

.teacher-box-head:before {
    content: " ";
    width: 5px;
    height: 5px;
    background: var(--border-color);
    border-radius: 100%;
    position: absolute;
    bottom: -3px;
    left: -3px;
}

.teacher-box-head:after {
    content: " ";
    width: 5px;
    height: 5px;
    background: var(--border-color);
    border-radius: 100%;
    position: absolute;
    bottom: -3px;
    right: -3px;
}

.teacher-box-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.teacher-box-info b {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary_color);
}

.teacher-box-info span {
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
    color: var(--dark_gray_color);
    margin-top: 20px;
}

.teacher-box-btn-warp {
    display: flex;
    gap: 16px;
}

.teacher-box-wrap {
    padding-right: 47px;
}

.teacher-box-btn-warp .btn-2-icon {
    padding: 6px;
}

.teacher-box-body b {
    font-size: 16px;
    font-weight: 500;
    color: var(--primary_color);
    line-height: 28px;
    margin-bottom: 20px;
    display: block;
}

.teacher-box-body ol {
    margin: 0;
    padding-right: 15px;
}

.teacher-box-body ol li {
    font-size: 14px;
    font-weight: 400;
    line-height: 30px;
    color: var(--dark_gray_color);
    list-style: decimal;
    display: list-item;
}

.teacher-box-body .text {
    font-size: 14px;
    font-weight: 400;
    line-height: 30px;
    color: var(--dark_gray_color);
}

.teacher-swiper-prev:after,
.teacher-swiper-next:after {
    font-family: swiper-icons;
    text-transform: none !important;
    letter-spacing: 0;
    font-variant: initial;
    line-height: 1;
    font-size: 25px;
}

.swiper-rtl .teacher-swiper-next:after {
    content: 'prev';
}

.swiper-rtl .teacher-swiper-prev:after {
    content: 'next';
}

.teacher-swiper-prev,
.teacher-swiper-next {
    z-index: 999;
    height: 88px;
    width: 27px;
    left: 50% !important;
    transform: translateX(-50%) rotate(90deg);
    color: var(--primary_color);
    position: absolute;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.teacher-swiper-next {
    top: -27px !important;
}

.teacher-swiper-prev {
    top: unset;
    right: unset !important;
    bottom: -27px !important;
}



@media (max-width: 1399px) {
    .teacher-box {
        padding: 35px 196px 35px 35px;
    }

}


@media (max-width: 1199px) {

    .teacher-box-head {
        flex-wrap: wrap;
        gap: 20px;
    }
}
@media (max-width: 991px) {

    .teacher-swiper {
        width: 100%;
        padding: 0;
    }

    .teacher-list-wrap {
        margin-top: 32px;
        display: block !important;
        background: #ffffff;
        border-radius: 24px;
        padding: 16px;
    }

    .teacher-swiper-thumb {
        width: 100%;
        max-width: 330px;
        height: 80px;
        position: relative;
        margin-top: 0;
    }

    .teacher-swiper-thumb .swiper-wrapper {
        flex-direction: row;
    }

    .teacher-swiper-prev, .teacher-swiper-next {
        top: 50% !important;
        transform: translateY(-50%) rotate(0deg);
    }

    .teacher-swiper-prev {
        left: unset !important;
        right: 0 !important;
    }

    .teacher-swiper-next {
        left: 0 !important;
    }

    .teacher-swiper-thumb:before {
        top: 50% !important;
        transform: translateY(-50%) rotate(90deg);
        left: unset;
        --start_color: #fff;
        --mid_color: rgba(255, 255, 255, 0.7);
    }

    .teacher-swiper-thumb:after {
        top: 50% !important;
        transform: translateY(-50%) rotate(90deg);
        right: unset;
        --start_color: #fff;
        --mid_color: rgba(255, 255, 255, 0.7);
    }

    .teacher-box-wrap {
        padding: 0;
        margin: 32px 0 0;
    }

    .teacher-box {
        margin: 0;
        padding: 0;
    }

    .teacher-box > img {
        position: relative;
        width: 100%;
        max-width: 330px;
        height: auto;
        right: unset;
        top: unset;
        margin: 10px auto 0;
        display: block;
        border: 0;
    }

    .teacher-box-head {
        flex-direction: column;
    }

    .teacher-box-btn-warp {
        flex-direction: column;
        width: 100%;
        justify-content: center;
        align-items: center;
    }

    .teacher-box-btn-warp .btn {
        justify-content: center;
        width: 100%;
        max-width: 330px;
    }

    .teacher-box-btn-warp .btn.btn-2-icon {
        justify-content: space-between;
    }

    .teacher-box-info span {
        margin: 20px 0;
    }

    .teacher-box-body {
        flex-direction: column-reverse;
    }

    .teacher-box-body .text {
        margin-bottom: 20px;
    }
}
