/* Hero carousel, from the Figma Continuum frame (Hero / careers → Carousel / life at Dicoding). The peek carousel
   itself is .lp-carousel (carousel.css); the hero adds a dot label above the active slide and a caption beside the
   counter and prev/next below. Autoplays every 6s, pauses on hover or focus, and holds still under reduced motion. */

.lp-hero-carousel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-bottom: 4rem;
}

.lp-hero-slide__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  line-height: 1.125rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--lp-ui-text-primary);
  opacity: 0;
  transition: opacity 300ms ease;
}

.lp-hero-slide__label::before {
  content: '';
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--primary);
}

.lp-carousel__slide.is-active .lp-hero-slide__label {
  opacity: 1;
}

.lp-hero-carousel__footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: var(--slide-w);
  margin: 0 auto;
}

.lp-hero-carousel__caption {
  padding: 0.25rem 0 0.25rem 1.5rem;
  border-left: 1px solid var(--lp-ui-border-secondary);
  min-height: 9.5rem;
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--lp-ui-text-tertiary);
}

@media (min-width: 48rem) {
  .lp-hero-carousel__footer { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 3rem; }
  .lp-hero-carousel__caption { min-height: 6rem; padding-top: 1.25rem; }
  .lp-hero-carousel__footer .lp-carousel__controls { padding-top: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-hero-slide__label { transition: none; }
}
