.timeline-container {
  width: 100%;
  max-width: 100%;
  margin: 2rem auto;
  padding: 2rem;
  overflow: hidden;
}

.timeline img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
}

.timeline {
  display: flex;
  justify-content: center;
  width: max-content;
  animation: slidein 30s linear infinite;
}

.timeline-item {
  min-width: 300px;
  margin-right: 2rem;
  padding: 1rem;
  background: rgba(88, 90, 93, 0.5);
  border-radius: 12px;
  text-align: center;
  color: #fafafa;
  flex-shrink: 0;
}

.timeline-item:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px 10px #d4af37;
}

@keyframes slidein {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.timeline-container:hover .timeline {
  animation-play-state: paused;
}
