/* banner.css */
header {
  background: white;
  color: blue;
  text-align: center;
  padding: 3px 3px;
}

header h1 {
  margin: 0;
  font-size: 2rem;
}

/* === Banner Styles === */
#banner-placeholder {
  position: fixed;  /* always visible on scroll */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.under-construction {
  background:
    radial-gradient(circle at 30% 20%, rgba(0,198,255,0.35), transparent 60%),
    radial-gradient(circle at 70% 80%, rgba(255,0,120,0.4), transparent 70%);
  border-top: 2px solid #eee;
  border-bottom: 2px solid #eee;
  padding: 18px 0;   /* enough height for logos */
  overflow: hidden;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.banner-track {
  display: flex;
  width: max-content;
  gap: 50px;
  animation: scroll-left 75s linear infinite;
  animation-timing-function: linear;
}

/* Pause scrolling on hover */
.under-construction:hover .banner-track {
  animation-play-state: paused;
}

.partner {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  background: BLACK;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.partner img {
  max-height: 60px; /* control logo size */
  max-width: 120px; /* prevent stretching */
  object-fit: contain;
  display: block;
  transition: transform 0.4s ease;
}

/* Hover effects */
.partner:hover {
  background: #222;
  color: #fff;
  transform: scale(1.05);
}

.partner:hover img {
  transform: scale(1.75);
}

/* Keyframes for seamless loop */
@keyframes scroll-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%); /* only half, since JS duplicates */
  }
}


/* Responsive tweaks */
@media (max-width: 480px) {
  .banner-track {
    gap: 25px;
    animation-duration: 40s;
  }
  .partner img {
    max-height: 35px;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .banner-track {
    gap: 35px;
    animation-duration: 45s;
  }
  .partner img {
    max-height: 40px;
  }
}

@media (min-width: 769px) and (max-width: 1200px) {
  .banner-track {
    gap: 45px;
    animation-duration: 55s;
  }
  .partner img {
    max-height: 45px;
  }
}

@media (min-width: 1201px) {
  .banner-track {
    gap: 60px;
    animation-duration: 75s;
  }
  .partner img {
    max-height: 55px;
  }
}
