/* 강사 소개 페이지 전용 스타일 */
.teacher-section {
    padding: 60px 0 80px;
    background-color: #f8f9fa;
}

.teacher-card-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
}

.teacher-card-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.teacher-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.teacher-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.teacher-img-wrap {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 비율 유지 */
    background-color: #151c2c; /* 이미지 배경 */
    overflow: hidden;
}

.teacher-img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.teacher-card:hover .teacher-img-wrap img {
    transform: scale(1.05);
}

.teacher-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.teacher-category {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffb703;
    background: #151c2c;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    align-self: flex-start;
}

.teacher-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
}

.teacher-name strong {
    font-size: 1.6rem;
    color: #0d6efd;
    font-weight: 800;
}

.teacher-info-divider {
    height: 1px;
    background: #e2e8f0;
    margin-bottom: 16px;
}

.teacher-ability {
    font-size: 0.95rem;
    font-weight: 700;
    color: #334155;
    line-height: 1.5;
    margin-bottom: 10px;
    word-break: keep-all;
}

.teacher-career {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 0;
    word-break: keep-all;
}

@media (max-width: 768px) {
    .teacher-section { padding: 40px 0 60px; }
    .teacher-content { padding: 18px; }
    .teacher-name { font-size: 1.2rem; }
    .teacher-name strong { font-size: 1.4rem; }
}