body {
  overflow-x: hidden; /* Critical: prevents horizontal scroll */
  width: 100%;
  position: relative;
}

/* Fix for the slider container */
.slider-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.card-track {
  display: flex;
  width: max-content;
  animation: autoScroll 30s linear infinite;
}

.card-track:hover {
  animation-play-state: paused;
}

@keyframes autoScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Button styles */
.yearBtn {
  padding: 8px 22px;
  border-radius: 9999px;
  border: 2px solid #fb923c;
  font-weight: 600;
  color: #374151;
  transition:
    background 0.15s,
    color 0.15s;
  white-space: nowrap;
  transform: translateZ(0);
  will-change: background, color;
}

.yearBtn:active {
  background: #fff7ed;
}

.activeYear {
  background: #f97316;
  color: white;
  border-color: #f97316;
}

/* desktop only */
@media (hover: hover) {
  .yearBtn:hover {
    background: #fff7ed;
    color: black;
  }
}
