﻿body {
  background: #f5f5f5;
}
nav.main-nav {
  position: fixed;
  z-index: 1030;
}

.banner-wrap-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 60vh;
  min-height: 320px;
  max-height: 620px;
  overflow: hidden;
}
.banner-wrap-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.teacher-section {
  padding: 0 0 50px;
}

.teacher-content {
  background: #fff;
  border: 1px solid #e8e8e8;
  padding: 25px 30px 35px;
  min-height: 600px;
}
.teacher-content .content-title {
  font-size: 1.3rem;
  color: #003370;
  font-weight: 600;
  margin: 0 0 22px;
  display: inline-block;
  line-height: 1.5;
  word-break: break-word;
}

.group-title {
  font-size: 1.1rem;
  color: #333;
  font-weight: 600;
  margin: 30px 0 18px;
  line-height: 1.4;
  display: inline-block;
}
.group-title::after {
  content: "";
  display: block;
  width: calc(100% + 16px);
  margin-top: 8px;
  border-bottom: 2px solid #003370;
}
.group-title:first-child {
  margin-top: 0;
}

.teacher-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.teacher-card {
  display: block;
  text-align: center;
  text-decoration: none;
  color: #333;
  background: #fff;
  border: 1px solid #eee;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.teacher-card:hover {
  transform: translateY(-4px);
  border-color: #cfe0f2;
  box-shadow: 0 8px 18px rgba(0, 51, 112, 0.12);
}
.teacher-card .photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #f0f2f5;
  overflow: hidden;
}
.teacher-card .photo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.teacher-card .photo-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b9c3cf;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 2px;
}
.teacher-card .info {
  padding: 10px 8px 12px;
  line-height: 1.6;
}
.teacher-card .name {
  display: inline;
  color: #003370;
  font-weight: 600;
  font-size: 1rem;
}
.teacher-card .title {
  display: inline;
  color: #888;
  font-size: 0.8rem;
  margin-left: 8px;
}

.teacher-empty {
  padding: 60px 0;
  text-align: center;
  color: #999;
  font-size: 0.95rem;
}

@media (max-width: 1199.98px) {
  .banner-wrap-img {
    height: 52vh;
  }
  .teacher-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .teacher-content {
    padding: 22px 22px 30px;
    min-height: 520px;
  }
}

@media (max-width: 991.98px) {
  .banner-wrap-img {
    height: 42vh;
    min-height: 240px;
  }
  .teacher-content {
    min-height: 0;
  }
}

@media (max-width: 767.98px) {
  .banner-wrap-img {
    height: 26vh;
    min-height: 150px;
    max-height: 220px;
  }
  .teacher-section {
    padding: 0 0 30px;
  }
  .teacher-content {
    padding: 16px 14px 22px;
  }
  .teacher-content .content-title {
    font-size: 1.15rem;
    margin-bottom: 16px;
    padding-bottom: 10px;
  }
  .group-title {
    font-size: 1.02rem;
    margin: 22px 0 14px;
  }
  .teacher-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .teacher-card .info {
    padding: 8px 4px 10px;
  }
  .teacher-card .name {
    font-size: 0.92rem;
  }
  .teacher-card .title {
    font-size: 0.74rem;
  }
}

@media (max-width: 575.98px) {
  .banner-wrap-img {
    height: 22vh;
    min-height: 130px;
  }
  .teacher-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
