/* ============================
   SPONSORS SECTION
============================ */
.sponsors-section {
  background: #f9f9f9;
  padding: 25px 0 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Garis Emas Atas */
.sponsors-section .divider-line {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  margin: 0;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(270deg, #b4912d, #e6cf84, #f9e8b3, #e6cf84, #b4912d);
  background-size: 400% 100%;
  animation: goldFlow 12s ease-in-out infinite;
}

@keyframes goldFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Wrapper Umum */
.sponsors-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 10px;
}

/* Logo Utama */
.main-logo img {
  height: 105px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease;
  margin-bottom: 2px;
}
.main-logo img:hover {
  transform: scale(1.05);
}

/* Judul Sponsor */
.sponsor-heading {
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 500;
  margin: 2px 0 4px;
  color: #b4912d;
  animation: shimmerGold 3s ease-in-out infinite alternate;
}

@keyframes shimmerGold {
  0% { color: #b4912d; }
  50% { color: #e6cf84; }
  100% { color: #b4912d; }
}

/* Container baris sponsor */
.sponsors-container {
  overflow: hidden;
  width: 100%;
  position: relative;
  height: 62px;
  margin-top: 2px;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

/* Jalur logo sponsor */
.sponsors-track {
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
  gap: 16px;
}

/* Logo sponsor */
.sponsors-track img {
  height: 68px;
  opacity: 0.9;
  flex-shrink: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.sponsors-track img:hover {
  opacity: 1;
  transform: scale(1.06);
}

/* Animasi jalan */
.scroll-left {
  animation: scroll-left 70s linear infinite;
}
.scroll-right {
  animation: scroll-right 70s linear infinite;
}

@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes scroll-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

/* Pause saat hover */
.sponsors-container:hover .sponsors-track {
  animation-play-state: paused;
}

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 768px) {
  .main-logo img {
    height: 90px;
  }
  .sponsor-heading {
    font-size: 0.95rem;
  }
  .sponsors-track img {
    height: 55px;
    margin: 0 12px;
  }
  .sponsors-container {
    height: 58px;
  }
}

@media (max-width: 480px) {
  .main-logo img {
    height: 75px;
  }
  .sponsor-heading {
    font-size: 0.9rem;
  }
  .sponsors-track img {
    height: 45px;
    margin: 0 8px;
  }
  .sponsors-container {
    height: 52px;
  }
}
