/* Sponsoren sectie */
#sponsors {
  margin: 50px auto;
  text-align: center;
  max-width: 1200px;
  overflow: hidden;
}

#sponsors h2 {
  font-size: 24px;
  margin-bottom: 30px;
  color: #bfa14a;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

/* Slider wrapper */
.sponsor-slider-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  background-color: #fffef9;
  box-shadow: 0 4px 12px rgba(191, 161, 74, 0.2);
  padding: 10px 0;
}

/* Flexibele slider container (dubbele content voor naadloze loop) */
.sponsor-slider {
  display: flex;
  gap: 20px;
  width: max-content; /* Voorkomt line-breaks */
  animation: slideSponsors 20s linear infinite;
}

/* Individuele sponsor */
.sponsor-slide {
  flex: 0 0 200px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
  overflow: hidden;
}

/* Sponsor afbeelding */
.sponsor-slide img {
  max-width: 90%;
  max-height: 80px;
  object-fit: contain;
  transition: transform 0.3s ease-in-out;
}

/* Hover effect */
.sponsor-slide:hover {
  transform: scale(1.05);
}

/* 🔥 Naadloze Infinite Loop Animatie */
@keyframes slideSponsors {
  from {
      transform: translateX(0);
  }
  to {
      transform: translateX(-50%);
  }
}

/* Pauzeer animatie bij hover */
.sponsor-slider-wrapper:hover .sponsor-slider {
  animation-play-state: paused;
}

/* 📌 Responsive Aanpassingen */
@media (max-width: 768px) {
  .sponsor-slide {
      width: 160px;
      height: 80px;
  }
  #sponsors h2 {
      font-size: 20px;
  }
}

@media (max-width: 480px) {
  .sponsor-slide {
      width: 130px;
      height: 70px;
  }
  #sponsors h2 {
      font-size: 18px;
  }
}
