.teacher-cards {
  display: grid;
  gap: 18px;
}

.teacher-card {
  display: grid;
  grid-template-columns: minmax(105px, 34%) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 28px);
  min-width: 0;
  padding: 14px;
  border: 1px solid #d8e7ee;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 32px #0a3d5810;
}

.teacher-photo-placeholder {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 12px;
  background: linear-gradient(145deg, #d9f0fa, #a8d9ef);
  color: #0b5272;
  text-align: center;
}

.teacher-initial {
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1;
}

.teacher-photo-placeholder small {
  padding-inline: 8px;
  font-size: .75rem;
  font-weight: 700;
}

.teacher-photo-frame {
  height: 190px;
  overflow: hidden;
  border-radius: 12px;
  background: #d9f0fa;
}

.teacher-photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 23%;
}

.teacher-card-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.teacher-card h3 {
  color: #0c2233;
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
}

.teacher-specialty {
  margin-top: 8px;
  color: #087eaf;
  font-weight: 800;
}

.teacher-credential {
  margin-top: 10px;
  color: #587080;
  font-size: .94rem;
  line-height: 1.45;
}

@media (min-width: 900px) {
  .teacher-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 380px) {
  .teacher-card {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    padding: 11px;
  }

  .teacher-photo-placeholder {
    min-height: 170px;
  }

  .teacher-photo-frame {
    height: 170px;
  }
}
