.teacher-article {
  display: flex;
  padding: 30px 0;
}
.teacher-article__image {
  flex: 0 0 220px;
  align-self: flex-start;
  overflow: hidden;
}
.teacher-article__image img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 7;
  object-fit: cover;
}
.teacher-article__info {
  flex: 1;
  min-width: 0;
  padding-left: 30px;
}
.teacher-article__info h3 {
  display: inline-block;
  margin: 0 30px 26px 0;
  color: #333;
  font-size: 18px;
}
.teacher-article__info h4 {
  display: inline-block;
  color: #666;
  font-size: 14px;
  font-weight: normal;
}
.teacher-article__body {
  padding-top: 25px;
  border-top: 1px solid #d8d8d8;
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: break-word;
}
.teacher-article__body p {
  font-size: 14pt;
  line-height: 1.8;
  text-indent: 2em;
}
.teacher-article__body img {
  max-width: 100%;
  height: auto;
}
.teacher-article__body p:has(> img),
.teacher-article__body div:has(> img) {
  text-indent: 0;
}
.teacher-list {
  margin-top: 16px;
}
.teacher-list li {
  margin-bottom: 10px;
}
.teacher-list a {
  display: flex;
  padding: 16px;
  box-sizing: border-box;
  background: #f5f5f5;
}
.teacher-list .teacher-image {
  flex: 0 0 130px;
  align-self: flex-start;
  overflow: hidden;
}
.teacher-list .teacher-image img {
  display: block;
  width: 100%;
  aspect-ratio: 100 / 151.3;
  object-fit: cover;
  transition: transform .5s ease-in-out, opacity .5s ease-in-out;
}
.teacher-list a:hover .teacher-image img {
  transform: scale(1.03);
  opacity: .9;
}
.teacher-list .teacher-info {
  flex: 1;
  min-width: 0;
  padding-left: 20px;
}
.teacher-list .teacher-info h3 {
  display: inline-block;
  position: relative;
  margin-right: 28px;
  padding: 25px 0 22px;
  color: #333;
  font-size: 16px;
}
.teacher-list .teacher-info h3::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: #165068;
  content: "";
}
.teacher-list .teacher-info h4 {
  display: inline-block;
  color: #666;
  font-size: 14px;
  font-weight: normal;
}
.teacher-list .teacher-info p {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 22px;
  color: #999;
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: break-word;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.mentor-list {
  margin-top: 16px;
}
.mentor-list ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 24px;
}
.mentor-list a {
  display: block;
  overflow: hidden;
  padding: 13px 23px;
  background: #f5f5f5;
  color: #333;
  font-size: 16px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media screen and (max-width: 991px) {
  .mentor-list ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media screen and (max-width: 767px) {
  .teacher-list .teacher-image {
    flex-basis: 100px;
  }
  @media screen and (max-width: 768px) {
    .teacher-article {
      display: block;
      padding: 20px 0;
    }
    .teacher-article__image {
      max-width: 220px;
      margin: 0 auto 10px;
    }
    .teacher-article__info {
      padding-left: 0;
    }
    .teacher-article__info h3 {
      margin-bottom: 10px;
    }
    .teacher-article__body {
      padding-top: 10px;
    }
  }
  .teacher-list .teacher-info {
    padding-left: 15px;
  }
  .teacher-list .teacher-info h3 {
    margin: 0 0 10px;
    padding: 10px 0;
  }
  .teacher-list .teacher-info h4 {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .teacher-list .teacher-info p {
    margin-top: 10px;
  }
}
@media screen and (max-width: 479px) {
  .mentor-list ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}