.site-header nav .active {
  color: var(--pink);
}

.site-header nav {
  gap: clamp(15px, 2vw, 30px);
  font-size: .94rem;
}

.learning-formats {
  padding: 105px clamp(24px, 7vw, 112px);
  background: #fff;
}

.formats-heading {
  max-width: 850px;
  margin-bottom: 46px;
}

.formats-heading h2 {
  margin-bottom: 18px;
  color: var(--deep);
  font-size: clamp(2.35rem, 4.4vw, 4.25rem);
  letter-spacing: -.045em;
}

.formats-heading > p:last-child {
  max-width: 760px;
  color: #6c5d73;
  font-size: 1.08rem;
}

.format-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.format-card {
  display: flex;
  flex-direction: column;
  min-height: 350px;
  padding: 38px;
  border-radius: 26px;
  overflow: hidden;
  color: #fff;
  box-shadow: 0 22px 55px rgba(42, 18, 59, .12);
}

.format-presencial {
  background: linear-gradient(145deg, #b12b80, #7133a8);
}

.format-online {
  background: linear-gradient(145deg, #7133a8, #3f2267);
}

.format-label {
  align-self: flex-start;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.format-card h3 {
  margin: auto 0 15px;
  font-size: clamp(2rem, 3vw, 3rem);
}

.format-card p {
  max-width: 540px;
  color: rgba(255, 255, 255, .84);
}

.format-card a {
  align-self: flex-start;
  margin-top: 12px;
  font-weight: 800;
}

.format-card a:hover {
  transform: translateX(5px);
}

.online-origin {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: -10px 0 28px;
  color: #5f4968;
}

.online-origin span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #f5e8f3;
  color: #b12b80;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.online-origin a {
  color: var(--violet);
  font-weight: 800;
}

.online-services {
  padding: 100px clamp(24px, 7vw, 112px);
  background: #fff;
}

.online-services-heading {
  max-width: 820px;
  margin-bottom: 42px;
}

.online-services-heading h2 {
  margin-bottom: 16px;
  color: var(--deep);
  font-size: clamp(2.25rem, 4vw, 3.8rem);
  letter-spacing: -.04em;
}

.online-services-heading > p:last-child {
  color: #6c5d73;
  font-size: 1.05rem;
}

.online-services-grid {
  display: grid;
  grid-template-columns: minmax(0, 760px);
  gap: 20px;
}

.online-services-grid article {
  display: flex;
  flex-direction: column;
  min-height: 350px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--soft);
}

.online-services-grid article > span {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin-bottom: 48px;
  border-radius: 50%;
  background: var(--lilac);
  color: var(--violet);
  font-weight: 800;
}

.online-services-grid h3 {
  margin-bottom: 12px;
  color: var(--deep);
  font-size: 1.7rem;
}

.online-services-grid p {
  color: #6c5d73;
}

.online-services-grid strong {
  margin: auto 0 18px;
  color: var(--violet);
  font: 800 1.7rem Manrope, sans-serif;
}

.online-services-grid strong small {
  font: 700 .85rem "DM Sans", sans-serif;
}

.course-location {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: -20px 0 38px;
  padding: 24px 28px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 20px;
  background: rgba(255, 255, 255, .08);
}

.course-location span {
  display: block;
  color: #ffadd9;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.course-location strong {
  display: block;
  margin: 3px 0;
  font: 800 1.2rem Manrope, sans-serif;
}

.course-location p {
  margin: 0;
  color: #d9c9e2;
  font-size: .9rem;
}

.course-location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.course-location-actions a {
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 800;
  white-space: nowrap;
}

.course-location-actions a:last-child {
  border-color: #25d366;
  background: #25d366;
}

.course-location-actions a:hover {
  border-color: #fff;
  background: #fff;
  color: var(--deep);
}

@media (max-width: 900px) {
  .format-grid {
    grid-template-columns: 1fr;
  }

  .online-services-grid {
    grid-template-columns: 1fr;
  }

  .course-location {
    align-items: flex-start;
    flex-direction: column;
  }

  .format-card {
    min-height: 310px;
  }
}

@media (max-width: 600px) {
  .learning-formats {
    padding: 72px 22px;
  }

  .online-services {
    padding: 72px 22px;
  }

  .format-card {
    min-height: 300px;
    padding: 28px;
  }
}
