/* Tệp CSS định nghĩa phong cách cho phần Đội ngũ giảng viên (Figma Node 1:2472) */

.teacher-bg-shape {
    position: absolute;
    top: -171px;
    left: 50%;
    transform: translateX(-50%);
    width: 1569px;
    height: 1046px;
    mix-blend-mode: multiply;
    opacity: 1;
    pointer-events: none;
    z-index: 1;
}

.teachers-section {
    background-color: var(--bg-soft); /* Sử dụng nền xanh nhạt toàn cục */
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.teachers-section .container {
    position: relative;
    z-index: 2; /* Đảm bảo nội dung luôn hiển thị phía trên ảnh nền */
}

/* Tiêu đề chính của section giảng viên */
.teachers-header {
    margin-bottom: 60px;
}

.teachers-title {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 36px;
    color: rgba(50, 50, 50, 0.95);
    line-height: 1.3;
}
.teachers-title strong,
.text-highlight {
    color: #00AEEF;
}

/* Đường trang trí gạch dưới tiêu đề */
.teachers-decor-line {
    width: 120px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* Khối bao ngoài của mỗi thẻ giảng viên */
.teacher-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 10px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

/* Container chứa ảnh và vòng tròn trang trí */
.teacher-avatar-container {
    position: relative;
    width: 293px;
    height: 293px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Khung ảnh avatar giảng viên */
.teacher-avatar {
    position: relative;
    width: 248px;
    height: 248px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #ffffff;
    border: 4px solid #ffffff;
    box-shadow: 0 8px 25px rgba(13, 48, 122, 0.06);
    z-index: 2;
    transition: var(--transition-smooth);
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Vòng tròn trang trí viền ngoài bao quanh avatar */
.teacher-decor-circle {
    position: absolute;
    width: 293px;
    height: 293px;
    top: 0;
    left: 0;
    z-index: 1;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Đảm bảo hình ảnh trang trí và thành phần inline SVG co giãn đúng theo kích thước của container ở mọi viewport */
.teacher-decor-circle img,
.teacher-decor-circle svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Cung viền màu xanh dương bên trái (mô phỏng theo Figma) */
.decor-arc-1 {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid transparent;
    border-left: 2px solid rgba(62, 85, 248, 0.8);
    transform: rotate(45deg);
}

/* Chấm tròn nhỏ ở điểm đầu của cung viền */
.decor-arc-1::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: rgb(62, 85, 248);
    border-radius: 50%;
    top: 14%;
    left: 14%;
}

/* Tên của giảng viên */
.teacher-name {
    font-family: var(--font-main);
    font-size: 24px;
    font-weight: 600;
    color: rgba(20, 20, 20, 0.9);
    margin: 16px 0 8px 0;
    transition: var(--transition-smooth);
}

/* Vai trò/chức vụ của giảng viên */
.teacher-role {
    font-family: var(--font-main);
    font-size: 18px;
    font-weight: 400;
    color: #3e55f8;
    margin: 0;
}

/* ==========================================================================
   HIỆU ỨNG TƯƠNG TÁC (HOVER STATES)
   ========================================================================== */

/* Xoay vòng tròn trang trí ngoài mượt mà */
.teacher-card:hover .teacher-decor-circle {
    transform: rotate(180deg);
}

/* Hiệu ứng chuyển màu vàng cho SVG trang trí khi hover */
.teacher-decor-circle svg path {
    transition: fill var(--transition-smooth);
}

.teacher-card:hover .teacher-decor-circle svg path {
    fill: var(--accent-color);
}

/* Tên giảng viên chuyển màu sang xanh ngọc */
.teacher-card:hover .teacher-name {
    color: var(--primary-color);
}

/* ==========================================================================
   THIẾT KẾ PHẢN HỒI TƯƠNG THÍCH (RESPONSIVE)
   ========================================================================== */

@media (max-width: 1200px) {
    .teacher-avatar-container {
        width: 260px;
        height: 260px;
    }
    .teacher-avatar {
        width: 215px;
        height: 215px;
    }
    .teacher-decor-circle {
        width: 260px;
        height: 260px;
    }
}

@media (max-width: 991px) {
    .teachers-section {
        /* Giảm padding trên màn hình tablet */
        padding: 40px 0 !important;
    }

    .teachers-title {
        /* Giảm cỡ chữ tiêu đề chính trên tablet */
        font-size: 30px;
    }

    .teacher-name {
        /* Giảm cỡ chữ tên giáo viên trên tablet */
        font-size: 22px;
    }

    .teacher-role {
        /* Giảm cỡ chữ chức danh trên tablet */
        font-size: 17px;
    }

    /* Tiêu đề chính của section giảng viên */
    .teachers-header {
        margin-bottom: 20px;
    }

    .teacher-bg-shape {
        /* Loại bỏ ảnh nền trang trí phía sau trên màn hình máy tính bảng và điện thoại di động */
        display: none !important;
    }
}

@media (max-width: 576px) {
    .teachers-section {
        /* Giảm padding trên màn hình di động */
        padding: 25px 0 !important;
    }
    .teachers-title {
        /* Giảm thêm cỡ chữ tiêu đề chính trên di động nhỏ */
        font-size: 24px !important;
    }
    .teacher-avatar-container {
        width: 230px;
        height: 230px;
    }
    .teacher-avatar {
        width: 190px;
        height: 190px;
    }
    .teacher-decor-circle {
        width: 230px;
        height: 230px;
    }
    .teacher-name {
        /* Giảm thêm cỡ chữ tên giáo viên trên di động nhỏ */
        font-size: 18px !important;
    }
    .teacher-role {
        /* Giảm thêm cỡ chữ chức danh trên di động nhỏ */
        font-size: 15px !important;
    }
}
