/* ===== Teachers Section ===== */

/* Left */
.teacher-left {
  padding: 32px;
  background: transparent;
  border-radius: 24px;
}

.teacher-left-title {
  margin: 0;
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.04em;
  color: #ffffff;
}

.teacher-left-sub {
  margin-top: 18px;
  font-size: clamp(20px, 2.7vw, 31px);
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  color: #c4b5fd;
}

/* Right: Vertical rolling card deck */
.teacher-right {
  position: relative;
  height: 550px;
  overflow: hidden;
}

.teacher-track {
  transition: transform .5s ease;
  will-change: transform;
}

.teacher-card {
  height: 440px;
  margin-bottom: 20px;
  border-radius: 24px;
  padding: 30px;
  box-sizing: border-box;
  background: rgba(255,255,255,0.06);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  color: #fff;
}

/* Card variants */
.teacher-feature-card {
  background: linear-gradient(135deg, #1e0a50 0%, #2d1070 100%);
}

.teacher-service-card {
  background: linear-gradient(135deg, #0d1545 0%, #1a1265 100%);
}

.profile-showcase {
  background: linear-gradient(135deg, #220a48 0%, #380f68 100%);
}

.teacher-video-card {
  background: linear-gradient(135deg, #0a1a40 0%, #160a50 100%);
}

/* 카드 내 텍스트 밝게 */
#강사 .teacher-feature-title,
#강사 .teacher-card-title,
#강사 .teacher-profile-title,
#강사 .teacher-video-title { color: #ffffff; }

#강사 .teacher-feature-list li,
#강사 .teacher-feature-desc,
#강사 .teacher-card-sub,
#강사 .teacher-profile-sub { color: #c4b5fd; }

#강사 .filter-box h4 { color: #e2d9f3; }

#강사 .filter-box select {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
}

#강사 .filter-box button {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 700;
  cursor: pointer;
}

/* ===== 강사 추천 관리 이미지 롤러 ===== */
#강사 .teacher-image-roller {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border-radius: 16px;
  margin-top: 16px;
}

#강사 .tir-track {
  display: flex;
  align-items: center;
  height: 100%;
  transition: transform 0.5s ease;
  will-change: transform;
}

#강사 .tir-item {
  flex-shrink: 0;
  width: 20%;
  height: 75%;
  border-radius: 12px;
  overflow: hidden;
  opacity: 0.45;
  transform: scale(0.82);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.5s ease;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.10);
}

#강사 .tir-item.tir-active {
  opacity: 1;
  transform: scale(1.35);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
  z-index: 2;
}

#강사 .tir-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== 동영상이력서 카드 ===== */
.teacher-video-card {
  background: linear-gradient(135deg, #0a1a40 0%, #160a50 100%);
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden;
}

.teacher-video-title {
  flex-shrink: 0;
  margin: 0 0 6px;
}

.teacher-video-sound-row {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  margin-bottom: 8px;
}

.teacher-video-sound-btn {
  flex: 1;
  font-size: 10px;
  padding: 4px 6px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  color: #e2d9f3;
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
}

.teacher-video-grid {
  display: flex;
  gap: 8px;
  flex: 1;
  min-height: 0;
}

#강사 .teacher-video {
  flex: 1;
  width: 0;
  min-width: 0;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

@media (max-width: 900px) {
  .teacher-left-sub {
    text-align: left;
  }
}
