.services-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.services-cards > .course-service-card:last-child {
  grid-column: auto;
}

.course-service-card .course-service-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 44px;
  margin-top: auto;
  color: #154365;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.courses-home {
  padding-block: clamp(40px, 6vw, 74px);
}

.courses-home-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 235px);
  align-items: center;
  gap: clamp(26px, 5vw, 64px);
  padding: clamp(26px, 5vw, 58px);
  border: 1px solid #344d66;
  border-top: 2px solid #c6ad78;
  border-radius: 12px;
  color: #edf2fa;
  background: radial-gradient(ellipse at 100% 0%, #1c4260, #08172b 70%);
}

.courses-home h2 {
  color: inherit;
  margin: 0 0 16px;
}

.courses-home p {
  max-width: 64ch;
  margin: 0;
  color: #c2cfe0;
  font-size: 16px;
  line-height: 1.75;
}

.courses-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.courses-home .button:not(.secondary) {
  border-color: #e6ce91;
  color: #122037;
  background: linear-gradient(120deg, #eedcaa, #c6aa6c);
}

.courses-home .button.secondary {
  border-color: #7c92ae;
  color: #eef3fa;
}

.courses-home .courses-home-form {
  margin-top: 12px;
  font-size: 14px;
}

.courses-home-form a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #eedcaa;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.courses-home-form span {
  display: block;
}

.courses-home .button:focus-visible,
.courses-home-form a:focus-visible,
.course-service-card .course-service-link:focus-visible {
  outline: 3px solid #58a0b6;
  outline-offset: 4px;
}

.courses-home-cover {
  display: block;
  width: 100%;
  max-width: 235px;
  height: auto;
  justify-self: center;
  border: 1px solid #b49c6670;
  border-radius: 8px;
  box-shadow: 0 18px 36px #0004;
}

@media (min-width: 1160px) {
  .services-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .services-cards,
  .courses-home-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .courses-home h2 {
    font-size: clamp(28px, 8vw, 39px);
  }

  .courses-home-actions .button {
    width: 100%;
  }
}
