/* Shared review treatment for the homepage preview and full stories page. */
.student-review {
  display: flex;
  height: 100%;
  min-width: 0;
  flex-direction: column;
  margin: 0;
  padding: var(--space-6) 0 var(--space-7);
}

.student-review__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.student-review__label {
  color: var(--c-brand);
  font-size: 12px;
  font-weight: var(--fw-semibold);
  line-height: 16px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.student-review__quote {
  order: -1;
  height: 50px;
  color: var(--c-brand);
  font-size: 88px;
  font-weight: var(--fw-semibold);
  line-height: .72;
}

.student-review blockquote {
  min-width: 0;
  margin: var(--space-5) 0 var(--space-7);
  color: var(--c-heading);
  font-size: 18px;
  font-weight: var(--fw-medium);
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.student-review blockquote p {
  margin: 0;
}

.student-review figcaption {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--c-border);
  color: var(--c-heading);
  font-size: 16px;
  font-weight: var(--fw-semibold);
  line-height: 24px;
}

.student-review__link {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  margin-top: var(--space-2);
  color: var(--c-brand);
  font-size: 15px;
  font-weight: var(--fw-semibold);
  line-height: 22px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.student-review__link:hover {
  color: var(--c-heading);
}

.student-review__link:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 3px;
}

.page-student-stories {
  background: var(--c-bg);
  color: var(--c-body);
}

.page-student-stories h1,
.page-student-stories h2 {
  text-align: left;
  text-transform: none;
}

.student-stories-hero {
  background: var(--c-heading);
}

.student-stories-hero__copy {
  gap: var(--space-5);
}

.student-stories__eyebrow {
  margin: 0;
  color: var(--c-white);
  font-size: 12px;
  font-weight: var(--fw-semibold);
  line-height: 16px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.student-stories-hero h1 {
  max-width: 550px;
  margin: 0;
  color: var(--c-white);
  font-size: clamp(48px, 5vw, 72px);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.student-stories-hero__copy > p:not(.student-stories__eyebrow) {
  max-width: 480px;
  margin: 0;
  color: var(--c-white);
  font-size: 20px;
  line-height: 30px;
}

.student-stories-hero .btn {
  margin-top: var(--space-3);
}

.student-stories-hero__media img {
  object-position: 50% 52%;
}

.student-stories__listing {
  padding: var(--space-12) var(--site-gutter);
  scroll-margin-top: var(--space-12);
}

.student-stories__inner {
  width: min(1280px, 100%);
  margin-inline: auto;
}

.student-stories__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--space-8);
  margin: var(--space-9) 0 0;
  padding: 0;
  list-style: none;
}

.student-stories__item {
  min-width: 0;
  border-bottom: 1px solid var(--c-border);
  scroll-margin-top: var(--space-12);
}

.student-stories__item:target .student-review {
  outline: 3px solid var(--c-brand);
  outline-offset: 3px;
}

.student-stories__empty {
  margin: var(--space-9) 0 0;
  font-size: 18px;
  line-height: 28px;
}

@media (min-width: 961px) {
  .student-stories-hero.split-media-hero--content-fit > .student-stories-hero__media {
    min-height: 540px;
  }
}

@media (max-width: 900px) {
  .student-stories__listing {
    padding-block: var(--space-9);
  }

  .student-stories__grid {
    grid-template-columns: 1fr;
    margin-top: var(--space-7);
  }
}

@media (max-width: 700px) {
  .student-review blockquote {
    font-size: 16px;
    line-height: 25px;
  }

  .student-stories-hero h1 {
    font-size: 44px;
    line-height: 1.12;
  }

  .student-stories-hero__copy > p:not(.student-stories__eyebrow) {
    font-size: 17px;
    line-height: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-testimonials__control {
    transition: none;
  }
}
