/* banner img */
.banner-bg {
  background: url('/ver2/images/teacher/best-english-teacher-list.webp') center center / cover no-repeat;
}

.teacher-header {
  text-align: center;
  padding: 10px 20px 0;
  background: url('/ver2/images/smooth-wall-background.png') repeat;
}

.teacher-header img {
  height: 80px;
  margin-bottom: 5px;
}

.teacher-header h2 {
  font-size: 28px;
  font-weight: bold;
  color: #1c95b4;
  margin: 0;
}

.teachers {
  padding: 30px;
  background: url('/ver2/images/smooth-wall-background.png') repeat;
}

.teacher-detail-container {
  max-width: 1000px;
  margin: 0px auto;
  padding: 0;
  background: #fff;
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  /* gap: 20px; */
  font-family: "Noto Sans", sans-serif;
}

.teacher-photo img {
  width: 250px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.teacher-main {
  flex: 1;
  min-width: 220px;
  background: #f8e27b;
  padding: 60px;
}

.teacher-name {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 16px;
}

.teacher-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.teacher-buttons button {
  border: none;
  border-radius: 8px;
  background-color:rgb(255, 255, 255);
  padding: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  flex: 1;
  min-width: 100px;
}

.teacher-buttons button span {
  display: block;
  margin-top: 4px;
  color: #1c95b4;
}

.audio-btn i {
  font-size: 20px; /* 圖示大小，可依需求放大，例如 24px、28px */
  color: #1c95b4;  /* 改為藍色，可改成你想要的色碼 */
  margin: 0 4px;
  vertical-align: middle;
}

.audio-btn:hover i {
  color: #ff6600; /* 滑鼠滑過時變橘色 */
}

.teacher-info {
  width: 100%;
  margin-top: 20px;
  padding: 10px 50px;

}

.info-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: flex-start;
  border-bottom: 1px solid #f8e27b;
  padding: 20px 0;
  line-height: 1.6;
  column-gap: 16px;  
}

.info-item strong {
  color: #1c95b4;
  text-align: left;
}

.info-item .info-content {
  word-break: break-word;
  /* white-space: pre-wrap; */
  margin: 0;           /* 加上這行 */
  line-height: 1.6;    /* 統一與 info-item 一致 */
}

/* 星等評分 */
.teacher-stars {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin-top: 4px;
}

.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;
}

/* 教育背景 */
#teacher-background {
  white-space: pre-wrap;
  line-height: 1.8;
}

/* 回上頁 */
.back-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #1c95b4;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: background-color 0.2s;
}

.back-button:hover {
  background-color: #166e87;
}

/* RWD */
@media (max-width: 768px) {
  .teacher-detail-container {
    flex-direction: column;
    align-items: center;
    padding: 10px;
  }

  .teacher-main {
    text-align: center;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
  }

  .teacher-buttons {
    flex-direction: column;
    width: 100%;
  }

  .teacher-buttons button {
    width: 100%;
  }

  .info-item {
    display: block;
    border-bottom: 1px solid #f8e27b;
    padding: 20px 0;
  }

  .info-item strong {
    display: block;
    font-weight: bold;
    color: #1c95b4;
    margin-bottom: 8px;
  }

  .info-item .info-content {
    margin-left: 0;
    white-space: pre-wrap;
    line-height: 1.6;
  }
}