.list-teachers__title {
  margin-bottom: 2.4rem;
}

.list-teachers__wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
  -webkit-box-pack: start;
      -ms-flex-pack: start;
          justify-content: flex-start;
  gap: 2.4rem;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

.list-teachers-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 1.6rem;
  padding: 3.9rem;
  border: 0.1rem solid #ebebeb;
  border-radius: 1.6rem;
  width: calc((100% - 7.2rem) / 4);
  cursor: pointer;
  -webkit-transition: 0.3s border;
  transition: 0.3s border;
}

.list-teachers-item:hover {
  border-color: #00cd7a;
}

.list-teachers-item:hover > .list-teachers-item__name {
  color: #00cd7a;
}

.list-teachers-item--linked {
  cursor: default;
}

.list-teachers-item__img {
  width: 20rem;
  border-radius: 50%;
}

.list-teachers-item__name {
  color: #000000;
  text-align: center;
  -webkit-transition: 0.3s color;
  transition: 0.3s color;
}

.list-teachers-item__position {
  color: rgba(0, 0, 0, 0.5);
  text-align: center;
}

.list-teachers-item__button {
  margin-top: auto;
  visibility: hidden;
  opacity: 0;
  -webkit-transform: translateY(0.8rem);
      -ms-transform: translateY(0.8rem);
          transform: translateY(0.8rem);
  -webkit-transition: 0.3s opacity, 0.3s visibility, 0.3s -webkit-transform;
  transition: 0.3s opacity, 0.3s visibility, 0.3s transform;
}

.list-teachers-item:hover > .list-teachers-item__button,
.list-teachers-item:focus-within > .list-teachers-item__button {
  visibility: visible;
  opacity: 1;
  -webkit-transform: translateY(0);
      -ms-transform: translateY(0);
          transform: translateY(0);
}

@media screen and (max-width: 568px) {
  .list-teachers__title {
    margin-bottom: 1.6rem;
  }

  .list-teachers__wrapper {
    gap: 1.6rem;
  }

  .list-teachers-item {
    width: 100%;
  }

  .list-teachers-item__img {
    width: 16rem;
  }

  .list-teachers-item__button {
    visibility: visible;
    opacity: 1;
    -webkit-transform: none;
        -ms-transform: none;
            transform: none;
  }
}
