/* Flow layout accommodates any number of API paths and multiline names. */
.programs-hero-showcase {
  min-width: 0;
}

#showcaseLearningPaths {
  position: relative;
  inset: auto;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
}

#showcaseLearningPaths .showcase-program {
  position: relative;
  inset: auto;
  min-width: 0;
  justify-content: center;
  padding: 12px;
  animation: none;
}

#showcaseLearningPaths .showcase-program b,
#showcaseLearningPaths .showcase-program small {
  max-width: 100%;
  overflow-wrap: anywhere;
}

#showcaseLearningPaths .showcase-core {
  position: relative;
  inset: auto;
  grid-column: 1 / -1;
  justify-self: center;
  transform: none;
  margin-block: 4px;
}

#showcaseLearningPaths .showcase-program:last-child:nth-child(even) {
  grid-column: 1 / -1;
  width: calc((100% - 18px) / 2);
  justify-self: center;
}

@media (max-width: 560px) {
  .programs-hero-showcase {
    transform: none;
    margin-block: 0;
    min-height: 0;
  }

  #showcaseLearningPaths {
    gap: 14px;
  }

  #showcaseLearningPaths .showcase-program:last-child:nth-child(even) {
    width: calc((100% - 14px) / 2);
  }
}

.programs-hero-showcase > .showcase-core { position: relative; inset: auto; transform: none; margin: 0 auto 24px; }
.programs-hero-showcase:has(> .showcase-core) { display: flex; flex-direction: column; justify-content: center; }
