/* 讲师板块整体样式 */


/* 轮播容器 - 适配21:9比例 */
.instructor-carousel {
    position: relative;
    width: 100%;
    height: 480px; /* 21:9 比例适配 */
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* 轮播轨道 */
.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

/* 轮播项 */
.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s ease;
    transform: translateX(50px);
}

.carousel-item.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* 讲师资料卡片 */
.instructor-profile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding: 52px;
    /*background-color: #fff;*/
    box-sizing: border-box;
}

/* 讲师图片容器 - 固定比例 */
.instructor-img-container {
    flex: 0 0 320px;
    height: 380px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.instructor-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.instructor-profile:hover .instructor-img-container img {
    transform: scale(1.05);
}

/* 讲师详情 */
.instructor-details {
    flex: 1;
    padding-left: 40px;
    max-width: calc(100% - 360px);
}

.instructor-details h3 {
    font-size: 1.8rem;
    color: #ffffff;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.instructor-title {
    font-size: 1.1rem;
    color: #f3f6f9;
    margin: 0 0 20px 0;
    font-style: italic;
    border-left: 3px solid #007bff;
    padding-left: 15px;
}

.instructor-bio {
    font-size: 1rem;
    line-height: 1.8;
    color: #f3f6f9;
    margin: 0;
    text-align: justify;
}

/* 轮播按钮 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgb(255 255 255 / 19%);
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #333;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.carousel-btn:hover {
    background-color: #007bff;
    color: #fff;
}

.prev-btn {
    left: 0px;
}
.prev-btn .fas{
color: white;
}
.next-btn .fas{
color: white;
}
.next-btn {
    right: 0px;
}

/* 轮播指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator-dot.active {
    background-color: #007bff;
    width: 30px;
    border-radius: 6px;
}

/* 响应式适配 */
@media (max-width: 1200px) {
    .instructor-carousel {
        height: 420px;
    }
    .instructor-img-container {
        flex: 0 0 280px;
        height: 340px;
    }
    .instructor-details {
        max-width: calc(100% - 320px);
    }
}

@media (max-width: 992px) {
    .instructor-carousel {
        height: 580px;
    }
    .instructor-profile {
        flex-direction: column;
        padding: 30px;
    }
    .instructor-img-container {
        flex: 0 0 260px;
        width: 100%;
        max-width: 300px;
        margin-bottom: 20px;
    }
    .instructor-details {
        max-width: 100%;
        padding-left: 0;
        text-align: center;
    }
    .instructor-title {
        text-align: left;
    }
    .instructor-bio {
        text-align: left;
    }
}

@media (max-width: 576px) {
    .instructor-carousel {
        height: 500px;
    }
    .instructor-profile {
        padding: 20px;
    }
    .instructor-img-container {
        flex: 0 0 220px;
    }
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .instructor-details h3 {
        font-size: 1.5rem;
    }
    .instructor-title {
        font-size: 1rem;
    }
    .instructor-bio {
        font-size: 0.9rem;
    }
}

