.carousel {
  position: relative;
  overflow: hidden;
  max-width: 1100px;
  margin: 0 auto;
  /* Matches .carousel__slide img height so the section reserves its space while
     /api/carousel is in flight, instead of collapsing and then shifting layout. */
  min-height: 280px;
}

.carousel__track {
  display: flex;
  transition: transform 0.4s ease;
}

.carousel__slide {
  position: relative;
  flex: 0 0 100%;
}

.carousel__slide img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.carousel__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40%;
  /* Alpha lives in the gradient's own colour stops rather than on the element, so
     the band is translucent while the headline and CTA stay at full opacity.
     Mirrors --gradient-primary (tokens.css) with each stop at 0.75 alpha. */
  background: linear-gradient(
    135deg,
    rgba(255, 138, 61, 0.75) 0%,
    rgba(232, 70, 29, 0.75) 60%,
    rgba(200, 30, 92, 0.75) 100%
  );
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: var(--space-md);
}

.carousel__overlay h2 {
  color: #fff;
  margin: 0;
  font-size: 18px;
}

.carousel__cta {
  background: #fff;
  color: var(--color-primary);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}

.carousel__dots {
  position: absolute;
  bottom: var(--space-sm);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}

.carousel__dot.is-active {
  background: #fff;
}

.category-tiles {
  max-width: 1100px;
  margin: var(--space-lg) auto;
  padding: 0 var(--space-md);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .category-tiles {
    grid-template-columns: repeat(4, 1fr);
  }
}

.category-tile {
  background: var(--color-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
  font-weight: 600;
  color: var(--color-text);
}
