/* ✅ Algemene Opmaak */
body {
  font-family: 'Georgia', serif;
  background-color: #fffaf0;
  color: #333;
  margin: 0;
  padding-top: 80px;
}

main {
  padding: 10px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ✅ Titels */
h1, h2 {
  color: #bfa14a;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

p {
  line-height: 1.8;
  color: #444;
}

/* ✅ Knoppen */
.button {
  display: inline-block;
  padding: 10px 25px;
  background-color: #bfa14a;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  transition: background-color 0.3s, transform 0.3s;
}

.button:hover {
  background-color: #a88d3e;
  transform: scale(1.05);
}

/* ✅ Secties */
section {
  text-align: center;
  margin: 60px 0;
  padding: 20px;
  background-color: #fffef9;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(191, 161, 74, 0.2);
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

/* ✅ Statistieken Sectie */
#stats {
  padding: 50px 20px;
}

.stats-container {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.stat-item {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  min-width: 180px;
  text-align: center;
  transition: transform 0.3s;
}

.stat-item h3 {
  font-size: 2.5em;
  color: #bfa14a;
  margin: 0;
}

.stat-item p {
  font-size: 1.2em;
  color: #333;
  margin-top: 5px;
}

.stat-item:hover {
  transform: translateY(-5px);
}

/* ✅ Nieuwscontainer */
.news-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.news-item {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #fffef9;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(191, 161, 74, 0.15);
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
}

/* ✅ Afbeeldingen Nieuwsberichten */
.news-item img {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* ✅ Nieuwscontent */
.news-content {
  padding: 15px;
  text-align: left;
}

.news-content h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.news-content h3 a {
  color: #bfa14a;
  text-decoration: none;
  transition: color 0.3s ease-in-out;
}

.news-content h3 a:hover {
  color: #a88d3e;
}

/* ✅ Extra ruimte onder de "Bekijk al het nieuws" knop */
#news-overview .button {
  margin-top: 30px;
}

/* ✅ Nieuws samenvatting en datum */
.news-item p {
  font-size: 16px;
  color: #555;
}

.news-item .news-date {
  font-size: 14px;
  color: #777;
}

/* ✅ Lees Meer Knop */
.lees-meer {
  display: inline-block;
  margin-top: 10px;
  font-weight: bold;
  color: #bfa14a;
  text-decoration: none;
  transition: color 0.3s;
}

.lees-meer:hover {
  color: #a88d3e;
}

.news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(191, 161, 74, 0.3);
}

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

/* ✅ Slider-wrapper */
.sponsor-slider-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 10px 0;
}

/* ✅ Sponsoren Slider */
.sponsor-slider {
  display: flex;
  align-items: center;
  width: max-content;
  animation: scrollSponsors 20s linear infinite;
}

/* ✅ Sponsoren Slides */
.sponsor-slide {
  flex: 0 0 220px;
  height: 120px;
  margin: 0 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ✅ Afbeeldingen vullen de volledige container */
.sponsor-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Vult de hele container zonder vervorming */
  object-position: center;
  border-radius: 8px;
  transition: transform 0.3s ease-in-out;
}

/* ✅ Hover-effect op sponsorlogo */
.sponsor-slide:hover img {
  transform: scale(1.1);
}

/* ✅ Echte oneindige loop zonder sprongen */
@keyframes scrollSponsors {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ✅ Hover pauzeert de animatie */
.sponsor-slider-wrapper:hover .sponsor-slider {
  animation-play-state: paused;
}

/* ✅ Fade-in effect */
.fade-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ✅ Responsive Aanpassingen */
@media (max-width: 768px) {
  body {
    font-family: 'Georgia', serif;
    background-color: #fffaf0;
    color: #333;
    margin: 0;
    padding-top: 95px;
  }

  .news-container {
    flex-direction: column;
  }

  .stats-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .news-item img {
    height: 180px;
  }

  .sponsor-slide {
    flex: 0 0 180px;
    height: 100px;
  }

  .sponsor-slide img {
    object-fit: cover;
    height: 100%;
  }
}
