/**
 * Progressive disclosure/load-more action.
 *
 * One visual contract for Show more / Show less links across Courses, FAQs
 * and Academic Programs. Swipe/carousel affordances remain separate because
 * they are navigation controls rather than textual progressive links.
 */
.jci-progressive-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 44px;
  color: var(--color-brand-navy, #041c40);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.jci-progressive-toggle__label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: inherit;
  font-size: 16px;
  font-weight: inherit;
  line-height: inherit;
}

.jci-progressive-toggle .jci-progressive-toggle__icon {
  display: block;
  flex: 0 0 14px;
  width: 14px;
  min-width: 14px;
  max-width: 14px;
  height: 14px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  object-fit: contain;
  transform: none;
  transition: transform 160ms ease;
}

.jci-progressive-toggle:hover,
.jci-progressive-toggle:focus-visible {
  color: #2f68ff;
  text-decoration: none;
}

.jci-progressive-toggle:focus-visible {
  outline: 2px solid #2f68ff;
  outline-offset: 4px;
}

/* Standard expandable blocks switch from Show more to Show less. Rotate the
 * existing down chevron instead of swapping assets, so visual and accessible
 * state remain driven by the same aria-expanded value. */
.jci-progressive-toggle[data-jci-progressive-content-toggle][aria-expanded="true"] .jci-progressive-toggle__icon {
  transform: rotate(180deg);
}


/* Courses and Academic Programs reveal each next batch with a short, low-amplitude
 * entrance motion. Cards keep their normal layout and become interactive
 * immediately; this class only decorates the existing progressive render. */
.jci-program-card--course-grid.is-jci-progressive-reveal,
.jci-program-card--academic-index.is-jci-progressive-reveal {
  animation: jciCourseProgressiveReveal 300ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes jciCourseProgressiveReveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .jci-progressive-toggle .jci-progressive-toggle__icon {
    transition: none;
  }

  .jci-program-card--course-grid.is-jci-progressive-reveal,
  .jci-program-card--academic-index.is-jci-progressive-reveal {
    animation: none;
  }
}
