.teacher-detail-profile__card {
  display: flex;
  flex-direction: column;
}
.teacher-detail-profile__card-main {
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.teacher-detail-profile__photo {
  width: 95%;
  max-width: 450px;

  aspect-ratio: 7 / 10;
  object-fit: cover;
  margin-bottom: 30px;
}

.teacher-detail-profile__card-header {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.teacher-detail-profile__header-line {
  height: 5px;
  background-color: #7d2322;
  width: 100%;
}

.teacher-detail-profile__name {
  width: 100%;
  font-family: "Oswald";
  color: white;
  padding: 20px 10px;
  text-align: center;
  font-size: calc(20 / 390 * 100vw);
  font-weight: 400;
}
.teacher-detail-profile__description {
  color: white;
  margin-bottom: 30px;
}
.teacher-detail-profile-info-title {
  background-color: rgb(147, 37, 35);
  color: white;
  padding: 10px;
  margin-bottom: 10px;
}

.teacher-detail-profile__card-main-top {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.teacher-detail-profile-info-description {
  color: white;
  margin-bottom: 30px;
}

.teacher-detail-profile__additional-description-title {
  color: white;
  font-size: 25px;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgb(147, 37, 35);
}

@media (min-width: 576px) {
  .teacher-detail-profile__name {
    font-size: 32px;
  }
}

@media (min-width: 768px) {
  .teacher-detail-profile__name {
    font-size: 40px;
    padding: 0;
    white-space: nowrap;
    flex: 1 1 0;
  }
  .teacher-detail-profile__card-header {
    position: absolute;
    background-color: #202020;
    top: 0;
    left: 150px;
    flex-direction: row;
    align-items: flex-end;
    padding: 0 0 20px 20px;
    width: calc(100% - 150px);
    margin: 0;
    gap: 20px;
    overflow: hidden;
  }
  .teacher-detail-profile__header-line {
    height: 20px;
    background-color: #7d2322;
    flex: 0 0 auto;
    min-width: 0;
    overflow: hidden;
  }
  .teacher-detail-profile__card-main-top {
    align-items: flex-start;
    width: 350px;
    margin-right: 30px;
  }
  .teacher-detail-profile__photo {
    border-top: 20px solid #7d2322;
    margin: 0;
    width: 100%;
  }
  .teacher-detail-profile__card-main {
    flex-direction: row;
    position: relative;
    align-items: stretch;
  }

  .teacher-detail-profile__card-main-bottom {
    padding-top: 66px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1 1 0;
  }
  .teacher-detail-profile__description {
    font-size: 18px;
  }
}

@media (min-width: 1024px) {
  .teacher-detail-profile__card-main-top {
    width: 420px;
  }
  .teacher-detail-profile__name {
    font-size: 60px;
  }
  .teacher-detail-profile__card-main-bottom {
    padding-top: 89px;
  }
  .teacher-detail-profile__description {
    font-size: 22px;
  }
}
