.title-wrapper h1 {
  margin-bottom: 0.4em;
}

.top-photo {
  position: relative;
  width: 100%;
  height: 38.9em;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.top-photo > .title-wrapper {
  position: absolute;
  bottom: 0;
  right: 0;
  padding: 1em 2em 1.5em;
  background-color: var(--color-orange);
  color: #fff;
  border-radius: 0.7em 0 0 0;
  top: initial;
  width: 47%;
}

.top-photo .title-wrapper h3 {
  white-space: break-spaces;
  line-height: 1.4em;
}

.top-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.top-photo > div {
  position: relative;
  top: 5.55em;
}

.top-photo div.bg-image {
  width: 100%;
  height: 39em;
  position: absolute;
  top: 0;
  left: 0;
  background-repeat: no-repeat;
}

.course-description {
  display: flex;
  box-shadow: rgba(65, 39, 22, 0.1) 0 0 20px;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.course-description img {
  width: 53%;
}

.course-description > div {
  padding: 1em 3.33em;
  display: flex;
  justify-content: center;
}

.container.courses h1 {
  position: relative;
  width: max-content;
  margin-bottom: 1.25em;
}

.container.courses h1:after {
  right: -0.9em;
  bottom: -0.4em;
  background-image: url(../img/trace_small.svg);
  background-size: 2.6em 2.6em;
  width: 2.6em;
  height: 2.6em;
  content: '';
  position: absolute;
  background-repeat: no-repeat;
  z-index: -1;
}

.course-description .label {
  background-color: var(--color-orange);
  font-size: 1.8em;
  padding: 0.25em 0.3em;
  margin-bottom: 0.5em;
  color: #fff;
  border-radius: 8px;
  width: max-content;
}

.course-description .text {
  font-size: 1.33em;
  line-height: 140%;
}

.course-description .button {
  margin-top: 3.33em;
  width: 19.5em;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2em;
  margin-top: 3.9em;
  margin-bottom: 6.7em;
}

.cards .card {
  height: 13.9em;
  box-shadow: rgba(65, 39, 22, 0.1) 0 0 20px;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.33em;
}

.cards .card > div {
  max-width: 12.5em;
  text-align: center;
}

.online-course-author__wrapper {
  display: flex;
  padding: 6.7em 0;
  gap: 2.5em;
  align-items: start;
}

.online-course-author__wrapper h2 {
  color: var(--color-orange);
}

.items-wrapper {
  margin-top: 0.85em;
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.items-wrapper {
  margin-left: 1.5em;
  width: 71%;
}

.items-wrapper div {
  position: relative;
}

.items-wrapper div:before {
  position: absolute;
  background-image: url(../img/trace-orange.svg);
  background-size: 1.45em 1.45em;
  display: inline-block;
  content: '';
  width: 1.45em;
  height: 1.45em;
  background-repeat: no-repeat;
  left: -1.5em;
}

.online-course-author {
  background-color: #F8F8F8;
}

.online-course-author img {
  width: 53%;
  border-radius: var(--border-radius);
  object-fit: contain;
}

@media screen and (max-width: 600px) {

  #form {
    padding-top: 5em;
  }
  
  .top-photo {
    height: 48em;
  }
  .top-photo div.bg-image {
    background-position: 30% 100%;
    background-size: cover;
    height: 90%;
    bottom: 0;
    top: initial;
  }

  .container.courses h1 {
    max-width: 80vw;
  }
  .top-photo > .title-wrapper {
    bottom: initial;
    right: 0;
    padding: 1em 1em 1.4em;
    top: initial;
    width: 100%;
    text-align: center;
  }

  .top-photo .title-wrapper h3 {
    font-size: 1.15em;
  }

  .course-description {
    flex-direction: column;
  }

  .course-description img {
    width: 100%;
  }

  .course-description > div {
    padding: 3.9em 2em;
  }

  .course-description .button {
    margin-top: 1.9em;
    width: 100%;
  }

  .cards {
    gap: 1.5vh;
    margin-top: 2.2em;
  }


  .cards .card {
    height: 5em;
    width: 100% !important;
    font-size: 1.15em;
  }

  .cards .card > div {
    max-width: 90%;
  }

  .online-course-author__wrapper {
    padding: 5em 0;
    gap: 2.5em;
    align-items: start;
    flex-direction: column;
  }

  .online-course-author__wrapper > div {
    width: 90%;
    margin: auto;
  }

  .items-wrapper {
    width: 90%;
  }

  .online-course-author img {
    width: calc(100% - 0.9em);
  }
}

@media only screen and (max-width: 350px) and (orientation: portrait) {
  .course-description > div {
    padding: 3em 1em;
  }

  .course-description .label {
    font-size: 1.6em;
  }
}

@media only screen and (max-width: 1000px) and (orientation: landscape) {
  .top-photo {
    height: 90vh;
  }

  .top-photo div.bg-image {
    background-size: 100%;
  }

  .top-photo > .title-wrapper {
    font-size: 0.7em;
  }

  h1 {
    font-size: 2em;
  }

  .course-description {
    font-size: 0.65em;
  }

  .cards .card {
    height: 43vh;
  }

  .cards .card > div {
    font-size: 0.7em;
  }

  .online-course-author__wrapper h1 {
    font-size: 1.5em;
  }

  .items-wrapper {
    width: 90%;
    font-size: 0.7em;
  }

  .online-course-author img {
    width: 40%;
  }

  .online-course-author__wrapper {
    padding: 2.7em 0;
    gap: 1em;
  }
}
