/* Ajustes visuais da página inicial */
.route-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.route-cards article > img,
.route-cards .route-visual {
  height: 260px;
  min-height: 260px;
  aspect-ratio: auto;
}

.route-cards article > img {
  object-fit: cover;
  object-position: center;
}

.route-cards article:first-child > img {
  object-position: center 30%;
}

.route-cards .kit-route-card > img {
  object-position: center 34%;
}

.route-cards h3 {
  font-size: 26px;
}

.route-cards article > div:last-child {
  padding: 24px;
}

@media (max-width: 1240px) {
  .route-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.home-sample {
  background: #f7f3ea;
}

.home-sample-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, .82fr);
  gap: 72px;
  align-items: center;
}

.home-sample-layout > div:first-child {
  max-width: 690px;
}

.home-sample-layout > div:first-child p {
  max-width: 590px;
  margin: 20px 0 14px;
  color: #536274;
}

.home-sample-player {
  width: 100%;
  max-width: 520px;
  justify-self: end;
  padding: 34px;
  background: #fff;
  border: 1px solid #ded8cc;
  border-top: 4px solid #bc9652;
  box-shadow: 0 18px 48px rgba(20, 43, 73, .10);
}

.home-sample-player h3 {
  margin: 9px 0 24px;
  color: #142b49;
  font: 32px/1.15 Georgia, serif;
}

.home-sample-player label {
  display: block;
  margin-bottom: 10px;
  color: #142b49;
  font-size: 13px;
  font-weight: 700;
}

.home-sample-player audio {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0 0 18px;
}

.home-sample-player .transcript {
  padding-top: 16px;
  border-top: 1px solid #e5dfd4;
}

.home-sample-player .transcript summary {
  cursor: pointer;
  color: #142b49;
  font-weight: 700;
}

.home-sample-player .transcript > div {
  margin-top: 14px;
  padding: 16px;
  background: #f7f3ea;
  color: #465568;
  font-size: 13px;
}

.home-sample-player .sample-caption {
  margin: 18px 0 0;
  color: #718096;
  font-size: 11px;
}

.teacher-story {
  background: #f7f3ea;
}

.teacher-story .teacher-layout {
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}

.teacher-story .teacher-portrait > img {
  height: 460px;
  object-position: 50% 28%;
  border-radius: 4px;
  box-shadow: none;
}

.teacher-story .teacher-portrait figcaption {
  position: static;
  padding: 17px 0 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.teacher-story .teacher-portrait figcaption strong {
  color: #142b49;
  font-size: 23px;
}

.teacher-story .teacher-portrait figcaption span {
  color: #5a6877;
  line-height: 1.5;
}

.teacher-story .teacher-copy {
  max-width: 760px;
}

.teacher-story .teacher-copy h2 {
  margin: 14px 0 24px;
  font-size: clamp(36px, 3.6vw, 48px);
  line-height: 1.14;
}

.teacher-story .teacher-copy .teacher-lead {
  color: #263c56;
  font-size: 17px;
  line-height: 1.75;
}

.teacher-story .teacher-copy p:not(.teacher-lead) {
  max-width: 700px;
  margin-top: 16px;
  line-height: 1.8;
}

.teacher-profile-list {
  max-width: 700px;
  margin: 25px 0 27px;
  padding: 19px 0 19px 20px;
  border-top: 1px solid #d8cfbf;
  border-bottom: 1px solid #d8cfbf;
  color: #526173;
  font-size: 13px;
  line-height: 1.65;
}

.teacher-profile-list li {
  margin: 8px 0;
  padding-left: 4px;
}

.teacher-profile-list strong {
  color: #142b49;
}

.teacher-story .teacher-copy .teacher-languages {
  margin: 25px 0 27px;
  padding: 16px 0;
  border-top: 1px solid #d8cfbf;
  border-bottom: 1px solid #d8cfbf;
  color: #596979;
  font-size: 13px;
  line-height: 1.7;
}

.teacher-story .teacher-copy .teacher-languages strong {
  color: #142b49;
}

.teacher-credentials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 27px 0 25px;
}

.teacher-credentials > span {
  position: relative;
  min-height: 92px;
  padding: 18px 18px 16px 52px;
  background: rgba(255, 255, 255, .75);
  border: 1px solid #dfd5c4;
}

.teacher-credentials small {
  position: absolute;
  top: 19px;
  left: 17px;
  color: #a47b3f;
  font: 15px Georgia, serif;
}

.teacher-credentials strong,
.teacher-credentials em {
  display: block;
}

.teacher-credentials strong {
  color: #142b49;
  font-size: 13px;
}

.teacher-credentials em {
  margin-top: 6px;
  color: #647180;
  font: normal 11px/1.45 Arial, sans-serif;
}

.teacher-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.teacher-actions .primary {
  min-width: 220px;
}

@media (max-width: 980px) {
  .route-cards {
    grid-template-columns: 1fr;
  }

  .route-cards article > img,
  .route-cards .route-visual {
    height: 300px;
    min-height: 300px;
  }

  .home-sample-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .home-sample-player {
    max-width: 680px;
    justify-self: start;
  }

  .teacher-story .teacher-layout {
    grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
    gap: 45px;
  }

  .teacher-story .teacher-portrait > img {
    height: 400px;
  }

  .teacher-credentials {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .route-cards article > img,
  .route-cards .route-visual {
    height: 230px;
    min-height: 230px;
  }

  .home-sample-player {
    padding: 24px;
  }

  .home-sample-player h3 {
    font-size: 27px;
  }

  .teacher-story .teacher-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .teacher-story .teacher-portrait {
    max-width: 330px;
    margin: 0 auto;
  }

  .teacher-story .teacher-portrait > img {
    height: 410px;
    box-shadow: none;
  }

  .teacher-story .teacher-portrait figcaption {
    padding-top: 15px;
  }

  .teacher-story .teacher-copy h2 {
    font-size: 35px;
  }

  .teacher-story .teacher-copy .teacher-lead {
    font-size: 15px;
  }

  .teacher-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .teacher-actions .primary {
    width: 100%;
  }
}
