.teacher-section {
  position: relative;
  background: linear-gradient(180deg, #f7f9fc, #fff 72%);
}

.teacher-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.teacher-section-head p {
  max-width: 48ch;
  margin: 0;
  color: var(--muted);
}

.teacher-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.teacher-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(17, 42, 65, 0.08);
}

.teacher-card > img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  object-position: center 18%;
}

.teacher-card-copy {
  align-self: center;
  min-width: 0;
  padding: 18px;
}

.teacher-level {
  margin: 0 0 6px;
  color: var(--blue2);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.4;
}

.teacher-card h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.2;
}

.teacher-handle {
  display: inline-block;
  margin-top: 5px;
  color: var(--blue2);
  font-size: 0.82rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.teacher-card-copy > p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.teacher-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.teacher-contact p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.legacy-section-anchor {
  position: absolute;
  inset-block-start: 0;
}

@media (max-width: 1020px) {
  .teacher-grid {
    grid-template-columns: 1fr;
  }

  .teacher-card {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  }
}

@media (max-width: 680px) {
  .teacher-section-head {
    display: block;
  }

  .teacher-section-head > p {
    margin-top: 10px;
  }

  .teacher-card {
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  }

  .teacher-card > img {
    min-height: 150px;
  }

  .teacher-card-copy {
    padding: 14px;
  }

  .teacher-card h3 {
    font-size: 1.05rem;
  }

  .teacher-card-copy > p:last-child {
    font-size: 0.82rem;
  }

  .teacher-contact {
    align-items: stretch;
    flex-direction: column;
  }

  .teacher-contact .btn {
    width: 100%;
    text-align: center;
  }
}