/* Base styles (desktop already given) */

.logo-loop-container {
  overflow: hidden;
  width: 100%;
  background-color: transparent;
  padding: 2rem 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.logo-loop-heading {
  font-size: 2rem;
  font-weight: 700;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 3rem;
  user-select: none;
  margin-left: 44px;
  text-align: left;
  border-bottom: 3px solid #007bff;
  padding-bottom: 0.25rem;
  display: inline-block;
}

.logo-loop-track {
  display: flex;
  width: max-content;
  animation: scrollLogos 1000s linear infinite;
  will-change: transform;
}

.logo-img {
  height: 500px;
  width: 100%;
  margin: 0 3rem;
  object-fit: contain;
  transition: transform 0.3s ease;
  margin-bottom: 3rem;
}


/* ===== Media Queries ===== */

/* Tablet (768px to 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
  .logo-loop-heading {
    font-size: 1.6rem;
    margin-left: 24px;
  }

  .logo-img {
    height: 140px;
    margin: 0 2rem;
  }
}

/* Large Mobile / Small Tablets (481px to 768px) */
@media (max-width: 768px) and (min-width: 481px) {
  .logo-loop-heading {
    font-size: 1.4rem;
    margin-left: 16px;
  }

  .logo-img {
    height: 110px;
    margin: 0 1.5rem;
  }
}

/* Mobile (up to 480px) */
@media (max-width: 480px) {
  .logo-loop-heading {
    font-size: 1.2rem;
    margin-left: 12px;
    border-bottom-width: 2px; /* thinner underline */
  }

  .logo-img {
    height: 80px;
    margin: 0 1rem;
  }
}

/* Animation */
@keyframes scrollLogos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Responsive tweak */
@media (max-width: 768px) {
  .logo-img {
    height: 70px;
    margin: 0 1.5rem;
  }

  .logo-loop-heading {
    font-size: 1.4rem;
  }
}