/* banner img */
.banner-bg {
  background: url('/ver2/images/teacher/teacher-banner.webp') center center / cover no-repeat;
}

.common-header h2 span {
    color: #f26a8d;
}

.common-header p {
    margin-top: 10px;
    line-height: 1.8;
    font-size: 15px;
}

.feature-bg {
  background: #f0f8ff;
}

.caption-bg {
    border: 1px solid #30619f
}

/* 招募 */
.recruit-wrapper {
  padding: 30px 20px;
}

.recruit-flex {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.recruit-img {
  flex: 1 1 0px;
  max-width: 500px;
}

.recruit-img img {
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.recruit-info {
  flex: 1 1 400px;
  max-width: 600px;
  text-align: left;
}

.recruit-info h3 {
  font-size: 20px;
  font-weight: bold;
  margin: 10px 0 8px;
}

.recruit-info p {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin: 0 0 16px;
}

/* 老師清單 */
.teacher-wapper {
  max-width: 1300px;
}

.teacher-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 30px 0;
}

.teacher-card-v2 {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s;
  padding: 10px;
}

.teacher-card-v2:hover {
  transform: translateY(-4px);
}

.card-top {
  display: flex;
  align-items: center;
  padding: 0;
  position: relative;
  height: 200px;
}

.teacher-photo {
  width: 200px;
  height: 200px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.teacher-photo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.play-audio {
  position: absolute;
  bottom: 12px;
  left: 155px; 
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #48d7d7;
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.play-audio i {
  font-size: 16px;
}

.teacher-summary {
  background: #f9e88f;
  padding: 20px 16px 20px 110px;  
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
  position: relative;
  z-index: 0; 
  margin-left: -100px; 
}

.teacher-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.teacher-stars {
  display: flex;
  gap: 2px;
}

.star {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: transparent;
  position: relative;
}

.star::before {
  content: "\f005"; /* fa-star */
  font-family: FontAwesome;
  color: #ccc; /* 灰色為背景星星 */
  position: absolute;
  top: 0;
  left: 0;
}

.star.full::before {
  color: #f44336; /* 紅色滿星 */
}

.star.half::before {
  background: linear-gradient(to right, #f44336 50%, #ccc 50%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.heart-icon {
  font-size: 20px;
  color: #aaa;
}

.teacher-name {
  font-weight: bold;
  font-size: 20px;
  margin: 8px 0 4px;
}

.teacher-lang {
  font-size: 14px;
  margin-bottom: 8px;
}

.teacher-detail-btn {
  margin-top: auto; 
  padding-top: 45px; 
  text-align: right;
}

.btn-detail {
  font-size: 14px;
  background: #333;
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  text-decoration: none;
  display: inline-block;
}

.card-bottom {
  padding: 16px 16px 3px;
  font-size: 14px;
  line-height: 1.6;
}

.card-bottom .info-row {
  display: flex;
  align-items: flex-start;
  font-size: 14px;
  margin-bottom: 6px;
  line-height: 1.6;
}

.card-bottom .info-label {
  flex: 0 0 72px; /* 或你想固定的寬度，對齊冒號 */
  font-weight: bold;
  color: #000;
}

.card-bottom .info-text {
  flex: 1;
  color: #333;
}

.info-text.info-truncate {
  display: -webkit-box;
  -webkit-line-clamp: 2;     
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

.teacher-more-btn-wrap {
  text-align: center;
  margin-top: 20px;
}

.teacher-more-btn {
  display: inline-block;
  background-color: #2c68b3;
  color: #fff;
  font-size: 16px;
  padding: 12px 28px;
  border-radius: 28px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease;
}

.teacher-more-btn:hover {
  background-color: #1f4d85;
}

/* 平板 */
@media (max-width: 991px) {
  .teacher-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 手機版 RWD */
@media (max-width: 768px) {
  /* 招募 */
  .recruit-flex {
    flex-direction: column;
    gap: 24px;
    text-align: left;
  }

  .recruit-img,
  .recruit-info {
    max-width: 100%;
  }

  .recruit-info h3 {
    margin-top: 0;
  }

  /* 老師清單 */
  .teacher-grid {
    grid-template-columns: 1fr;
  }

}