.list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list__item:nth-child(1) {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #ccc;
}

.list__item {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 20px;

  .img {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 580px) {
  .list__item {
    flex-direction: column-reverse;
  }

  .list__item .img {
    margin-top: 15px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }

  .list__item .img img {
    display: flex;
    border-radius: 50%;
    border: 1px solid rgb(126, 126, 126);
    width: 30%;
    height: auto;
    margin-bottom: 1rem;
  }

  .list__item .img img:nth-child(2) {
    margin-left: 20px;
  }
}

@media (min-width: 581px) {
  li:nth-child(even) {
    flex-direction: row-reverse;
  }

  .list__item .img img {
    border-radius: 50%;
    border: 1px solid rgb(126, 126, 126);
    width: 80%;
    height: auto;
    margin-bottom: 1rem;
  }

  .list__item .img:nth-child(odd) {
    margin-right: 10px;
  }

  .list__item .img:nth-child(even) {
    margin-left: 10px;
  }
}

.list__item {
  .content {
    flex: 0 0 70%;
  }

  h3 {
    font-size: 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
  }

  p {
    margin: 0;
    color: #666;
    font-size: clamp(0.75rem, 0.6739rem + 0.3478vw, 1rem);
    line-height: initial;

    &.lecturer {
      margin-top: 10px;
    }
  }
}

@media (max-width: 992px) {
  h2 {
    text-align: center;
  }
}
