/* Main teacher section */
.teachers-container {
  max-width: 1440px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: auto;
  padding: 100px 100px 50px;
  width: 100%;
  height: 100%;
  position: relative;
  color: var(--dark-blue-1);
  transition: padding 0.3s ease;
}
.teachers-container::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  min-height: 100%;
  height: 100%;
  background: var(--white);
  z-index: -1;
}
.techers-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}
.techers-top .h3 {
  text-align: center;
}
.techers-top .caption-2 {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-1);
  background: var(--blue-2);
  width: 140px;
  height: 35px;
  border-radius: 30px;
  margin-bottom: 16px;
}
/* Teacher list */
.techers-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1fr;
  padding-top: 50px;
  gap: 30px;
  transition: grid-template-columns 0.3s ease, gap 0.3s ease;
  transition: grid-template-columns 0.3s ease, gap 0.3s ease,
    -ms-grid-columns 0.3s ease;
}
@media (max-width: 1000px) {
  .techers-list {
    grid-template-columns: repeat(2, 1fr);
    padding-top: 30px;
    gap: 30px;
  }
}
@media (max-width: 767px) {
  .teachers-container {
    padding: 70px 20px 0px;
  }
  .techers-top {
    flex-direction: column;
    align-items: center;
  }
  .techers-list {
    padding-top: 30px;
    -moz-column-gap: 8px;
    column-gap: 8px;
    row-gap: 24px;
  }
  .teachers-top-r {
    align-self: center;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 30px;
    order: 3;
  }
}
