.fc-universe-hero {
  width: min(calc(100% - 32px), 1068px);
  aspect-ratio: 3 / 1;
  margin: 18px auto 0;
  overflow: hidden;
  border-radius: 8px;
  background: #eef2f6;
}

.fc-universe-hero picture,
.fc-universe-hero img {
  display: block;
  width: 100%;
  height: 100%;
}

.fc-universe-hero img {
  object-fit: cover;
}

.fc-course-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(720px, 78vw);
  grid-template-columns: none;
  gap: 14px;
  overflow-x: auto;
  padding: 2px 2px 14px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.fc-featured-course {
  display: grid;
  grid-template-columns: 42% 58%;
  min-height: 310px;
  scroll-snap-align: start;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(22, 30, 45, .08);
}

.fc-course-poster {
  height: 100%;
  min-height: 310px;
  aspect-ratio: auto;
}

.fc-featured-copy {
  min-width: 0;
  padding: 20px;
}

.fc-featured-copy h2 {
  margin-top: 10px;
  font-size: 1.23rem;
}

.fc-featured-copy > p:not(.fc-course-meta) {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.fc-course-stats {
  margin: 14px 0 12px;
  gap: 13px;
  font-size: .78rem;
}

.fc-course-price {
  margin-bottom: 14px;
}

.fc-discover {
  min-height: 48px;
  font-size: .9rem;
}

.fc-favorite {
  margin-top: 7px;
  font-size: .78rem;
}

@media (max-width: 720px) {
  .fc-universe-hero {
    width: calc(100% - 24px);
    aspect-ratio: 32 / 15;
    margin-top: 12px;
  }

  .fc-breadcrumb {
    min-height: 46px;
  }

  .fc-filter-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 142px;
    grid-template-columns: none;
    gap: 8px;
    overflow-x: auto;
    padding: 14px 12px 16px;
    scrollbar-width: none;
  }

  .fc-filter-grid::-webkit-scrollbar {
    display: none;
  }

  .fc-filter-grid label {
    height: 56px;
  }

  .fc-popular {
    padding: 4px 12px 44px;
  }

  .fc-popular-head {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
  }

  .fc-popular-head h1 {
    margin: 0;
    font-size: 1.22rem;
  }

  .fc-sort {
    display: none;
  }

  .fc-course-grid {
    grid-auto-columns: min(88vw, 520px);
    gap: 10px;
  }

  .fc-featured-course {
    grid-template-columns: 41% 59%;
    min-height: 252px;
    margin: 0;
  }

  .fc-course-poster {
    min-height: 252px;
    aspect-ratio: auto;
  }

  .fc-popular-badge {
    top: 10px;
    left: 10px;
    padding: 6px 9px;
    font-size: .58rem;
  }

  .fc-featured-copy {
    padding: 13px 12px;
  }

  .fc-course-meta {
    font-size: .58rem;
  }

  .fc-featured-copy h2 {
    margin: 7px 0 5px;
    font-size: .98rem;
    line-height: 1.18;
  }

  .fc-featured-copy > p:not(.fc-course-meta),
  .fc-course-stats,
  .fc-favorite {
    display: none;
  }

  .fc-course-price {
    gap: 7px;
    margin: auto 0 10px;
  }

  .fc-course-price b {
    padding: 4px 5px;
    font-size: .64rem;
  }

  .fc-course-price strong {
    font-size: 1rem;
  }

  .fc-course-price del {
    display: none;
  }

  .fc-discover {
    min-height: 42px;
    padding: 0 7px;
    font-size: .72rem;
    text-align: center;
  }
}

@media (max-width: 390px) {
  .fc-course-grid {
    grid-auto-columns: 91vw;
  }

  .fc-featured-course,
  .fc-course-poster {
    min-height: 236px;
  }
}

/* Editorial catalogue treatment inspired by established learning platforms. */
.fc-course-grid {
  padding-top: 5px;
}

.fc-featured-course {
  position: relative;
  border: 1px solid #cfd9df;
  border-top: 4px solid #087f83;
  background: #f2f6f7;
  box-shadow: 0 11px 28px rgba(16, 37, 51, .12);
}

.fc-course-poster {
  background: #dce6e9;
}

.fc-course-poster::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: #f2bd29;
}

.fc-featured-copy {
  background: #f2f6f7;
}

.fc-course-meta {
  color: #51626c;
}

.fc-featured-copy h2 {
  color: #112f3e;
}

.fc-course-stats span {
  padding: 5px 7px;
  border: 1px solid #d4dee3;
  border-radius: 4px;
  background: rgba(255, 255, 255, .74);
}

.fc-course-price {
  padding-top: 10px;
  border-top: 1px solid #cfd9df;
}

.fc-discover {
  background: #087f83;
  box-shadow: 0 8px 18px rgba(8, 127, 131, .2);
}

.fc-featured-course:nth-child(even) {
  border-top-color: #d2492f;
  background: #f7f3ee;
}

.fc-featured-course:nth-child(even) .fc-featured-copy {
  background: #f7f3ee;
}

.fc-featured-course:nth-child(even) .fc-discover {
  background: #243b53;
}

/* The Formation catalogue keeps its original stacked card layout. */
.fc-course-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: row;
  grid-auto-columns: auto;
  gap: 22px;
  overflow: visible;
  padding: 5px 0 0;
  scroll-snap-type: none;
}

.fc-featured-course,
.fc-featured-course:nth-child(even) {
  width: 100%;
  min-height: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid #e0e0e0;
  border-top: 1px solid #e0e0e0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(22, 30, 45, .1);
  scroll-snap-align: none;
}

.fc-course-poster {
  min-height: 0;
  height: auto;
  aspect-ratio: 3 / 2;
  background: #101827;
}

.fc-course-poster::after {
  display: none;
}

.fc-featured-copy,
.fc-featured-course:nth-child(even) .fc-featured-copy {
  flex: 1;
  padding: 22px 26px 26px;
  background: #fff;
}

.fc-course-stats span {
  padding: 0;
  border: 0;
  background: transparent;
}

.fc-course-price {
  padding-top: 0;
  border-top: 0;
}

.fc-discover,
.fc-featured-course:nth-child(even) .fc-discover {
  background: #008f91;
  box-shadow: 0 10px 23px rgba(0, 143, 145, .2);
}

@media (max-width: 780px) {
  .fc-course-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .fc-featured-course,
  .fc-featured-course:nth-child(even) {
    max-width: 620px;
    margin-inline: auto;
  }
}

@media (max-width: 720px) {
  .fc-course-grid {
    grid-auto-columns: auto;
    gap: 16px;
  }

  .fc-featured-course,
  .fc-featured-course:nth-child(even) {
    min-height: 0;
  }

  .fc-course-poster {
    min-height: 0;
    aspect-ratio: 3 / 2;
  }

  .fc-featured-copy,
  .fc-featured-course:nth-child(even) .fc-featured-copy {
    padding: 18px;
  }

  .fc-featured-copy h2 {
    font-size: 1.3rem;
  }

  .fc-featured-copy > p:not(.fc-course-meta) {
    display: -webkit-box;
  }

  .fc-course-stats,
  .fc-favorite {
    display: flex;
  }

  .fc-course-price {
    margin: 0 0 20px;
  }

  .fc-course-price del {
    display: inline;
  }

  .fc-discover {
    min-height: 48px;
    font-size: .9rem;
  }
}

@media (max-width: 390px) {
  .fc-course-grid {
    grid-auto-columns: auto;
  }

  .fc-course-stats {
    display: grid;
  }
}
