/* 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: black;
  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 25s linear infinite;
}

/* 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: 10px 18px;
  background: #f1f1f1;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: all 0.3s 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: 12s;
  }
  .partner img {
    max-height: 35px;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .banner-track {
    gap: 35px;
    animation-duration: 16s;
  }
  .partner img {
    max-height: 40px;
  }
}

@media (min-width: 769px) and (max-width: 1200px) {
  .banner-track {
    gap: 45px;
    animation-duration: 18s;
  }
  .partner img {
    max-height: 45px;
  }
}

@media (min-width: 1201px) {
  .banner-track {
    gap: 60px;
    animation-duration: 22s;
  }
  .partner img {
    max-height: 55px;
  }
}
