.section-teachers {
  text-align: center;
}

.teachers-box {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  max-width: 80rem;
}

.each-teacher {
  max-width: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.each-teacher-img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.each-teacher-info,
.each-coord-info {
  background: linear-gradient(rgba(51, 51, 51, 0), rgba(51, 51, 51, 1));
  height: 15rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.each-coord-info {
  height: 3rem;
}

.each-teacher-info h4 {
  margin: 10px 0px 5px 0px;
  font-size: 1.5rem;
  font-weight: 600;
  position: absolute;
  top: 0px;
}

.each-teacher-text {
  font-size: 0.7rem;
  font-weight: 300;
  position: absolute;
  top: 4.5rem;
  padding: 5px;
}

/* .section-teachers {
  text-align: center;
}

.teachers-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  max-width: 50rem;
}

.each-teacher {
  max-height: 13rem;
  display: flex;
  justify-content: center;
}

.each-teacher-img {
  width: 220px;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
}

.each-teacher-info {
  background-color: rgba(51, 51, 51, 1);
  padding: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.each-teacher-info h4 {
  margin: 10px 0px 5px 0px;
  font-size: 1.5rem;
  font-weight: 600;
  position: absolute;
  top: 0px;
}

.each-teacher-text {
  font-size: 0.7rem;
  font-weight: 300;
} */
