.academy-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-block-end: 24px;
}

.academy-section-head h2 {
  color: var(--academy-ink);
  font-size: clamp(2rem, 4vw, 2.85rem);
}

.academy-section-head p {
  max-width: 58ch;
  margin-block-start: 6px;
  color: var(--muted);
}

.academy-section-head > a {
  flex: none;
}

#study-resources {
  padding-block: clamp(34px, 6vw, 70px);
  background: var(--academy-soft);
}

#study-resources .resource-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

#study-resources .resource-button {
  grid-template-columns: 58px minmax(0, 1fr);
  align-content: center;
  align-items: center;
  min-width: 0;
  min-height: 87px;
  gap: 11px;
  padding: 9px 15px 9px 10px;
  border: 1px solid var(--academy-line);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 2px 5px #13164008;
  transition: background-color .18s, border-color .18s, box-shadow .18s, transform .18s;
}

#study-resources .resource-button::after {
  content: none;
}

#study-resources .resource-button:hover,
#study-resources .resource-button:focus-visible {
  border-color: var(--academy-accent);
  box-shadow: 0 5px 12px #13164014;
  transform: translateY(-1px);
}

#study-resources .resource-button:focus-visible {
  outline: 2px solid var(--academy-accent);
  outline-offset: 2px;
}

#study-resources .resource-button:active {
  transform: translateY(0);
}

#study-resources .resource-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background-color: var(--resource-bg);
  background-color: color-mix(in srgb, var(--resource-bg) 72%, white);
  color: var(--resource-ink);
  box-shadow: none;
}

#study-resources .resource-icon svg {
  width: 34px;
  height: 34px;
}

#study-resources .resource-button > div {
  min-width: 0;
  overflow-wrap: anywhere;
}

#study-resources .resource-button h3 {
  color: var(--academy-ink);
  font-size: 1.06rem;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: 0;
}

#study-resources .resource-button small {
  color: var(--muted);
  margin-block-start: 2px;
  font-size: .78rem;
  line-height: 1.18;
}

.academy-courses {
  padding-block: clamp(43px, 7vw, 84px);
}

.academy-course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 23px);
}

.academy-course-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--academy-line);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 7px 18px #1316400b;
}

.academy-course-card:focus-within,
.academy-course-card:hover {
  border-color: #a9aff0;
}

.academy-course-art {
  display: block;
  overflow: hidden;
  background: var(--academy-soft);
}

.academy-course-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.academy-course-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: start;
  gap: 8px;
  padding: clamp(13px, 2.2vw, 22px);
  overflow-wrap: anywhere;
}

.academy-course-copy h3 {
  color: var(--academy-ink);
  font-size: clamp(1.16rem, 2vw, 1.4rem);
  font-weight: 650;
  line-height: 1.2;
}

.academy-course-copy p {
  color: var(--muted);
  line-height: 1.5;
}

.academy-course-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 9px 12px;
  width: 100%;
  border-block-start: 1px solid var(--academy-line);
  margin-block-start: auto;
  padding-block-start: 13px;
}

.academy-course-price {
  color: var(--academy-ink);
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
}

.academy-course-price-label {
  display: block;
  color: var(--muted);
  font-size: .81rem;
  font-weight: 700;
}

.academy-course-actions .button {
  min-height: 44px;
  padding-inline: 14px;
  white-space: nowrap;
}

.academy-secondary-course {
  flex-basis: 100%;
  border-block-start: 1px dashed var(--academy-line);
  padding-block: 10px 2px;
  font-size: .94rem;
}

#mentors {
  padding-block: clamp(37px, 6vw, 70px);
}

.mentor-card {
  border-color: var(--academy-line);
  border-radius: 9px;
  box-shadow: 0 6px 16px #13164009;
}

.mentor-card:hover {
  border-color: #a9aff0;
  box-shadow: 0 9px 19px #13164014;
}

.mentor-frame {
  background-color: var(--academy-soft);
}

.mentor-copy {
  border-top-color: var(--academy-line);
}

.mentor-copy h3 {
  color: var(--academy-ink);
  font-size: clamp(1.04rem, 1.7vw, 1.22rem);
  font-weight: 650;
  line-height: 1.2;
}

.mentors.seen .mentor-copy h3 {
  animation: none;
}

.section.student-enquiry, .section.compare {
  padding-block: clamp(27px, 4.5vw, 51px);
  border-block-color: var(--academy-line);
}

.section.compare {
  background: linear-gradient(145deg, #f4f7ff 5%, #f5faf2 100%);
}

.section.compare h2 {
  max-width: 26ch;
}

.section.compare .compare-table {
  border-color: #d7e3d6;
  border-radius: 16px;
  box-shadow: 0 12px 28px #13164012;
}

.compare-table thead .comparison-feature {
  background: #edf0f8;
}

.compare-table thead .without {
  background: #fae4de;
}

.compare-table thead .with {
  background: #18583e;
}

.compare-table tbody tr:nth-child(even) .comparison-feature {
  background: #f8faf8;
}

.compare-table tbody .with {
  font-weight: 630;
}

.section.student-enquiry .student-enquiry-card {
  border-color: var(--academy-line);
  border-radius: 15px;
  box-shadow: 0 8px 22px #13164012;
}

@media (max-width: 960px) {
  #study-resources .resource-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 730px) {
  #study-resources .resource-grid, .academy-course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .academy-section-head {
    flex-wrap: wrap;
    align-items: start;
  }

  #study-resources .resource-grid {
    gap: 9px;
  }

  #study-resources .resource-button {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 8px;
    min-height: 74px;
    padding-inline: 8px;
    border-radius: 15px;
  }

  #study-resources .resource-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
  }

  #study-resources .resource-icon svg {
    width: 29px;
    height: 29px;
  }

  #study-resources .resource-button h3 {
    font-size: .97rem;
  }

  #study-resources .resource-button small {
    display: none;
  }

  .academy-course-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 350px) {
  #study-resources .resource-button {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    min-height: 102px;
    padding: 9px 10px;
  }
}

@media (max-width: 270px) {
  #study-resources .resource-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  #study-resources .resource-button {
    grid-template-columns: 50px minmax(0, 1fr);
    align-content: center;
    min-height: 64px;
  }
}
