.logo-section {
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 32.2px);
  color: #1a1a2e;
  margin-bottom: 12px;
  font-weight: 700;
}

.section-header .highlight {
  color: #0A1A6F;
  font-weight: 700;
}

.section-header p {
  font-size: clamp(1rem, 2vw, 18.9px);
  color: #1a1a2e;
  font-weight: 400;
}

/* Slider Container */
.slider-container {
  position: relative;
  width: 100%;
  margin-bottom: 40px;
}

/* Row Wrapper with Gap */
.logo-rows-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

/* Individual Row */
.logo-row {
  width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  height: 110px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 16px;
}

/* Animation Track */
.logo-track {
  display: flex;
  gap: 30px;
  width: max-content;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
}

/* Right sliding animation */
.logo-row-right .logo-track {
  animation-name: slideRight;
  animation-duration: 40s;
}

/* Pause on hover for accessibility */
.logo-row:hover .logo-track {
  animation-play-state: paused;
}

/* Logo Card */
.logo-card {
  flex-shrink: 0;
  width: 170px;
  height: 100px;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.logo-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.logo-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  filter: grayscale(20%);
  transition: filter 0.3s ease;
}

.logo-card:hover img {
  filter: grayscale(0%);
}

/* Keyframe Animations - Perfect Continuous Loop */
@keyframes slideRight {
  0% {
    transform: translateX(calc(-100% / 3));
  }

  100% {
    transform: translateX(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .logo-rows-wrapper {
    gap: 12px;
  }

  .logo-row {
    height: 95px;
  }

  .logo-card {
    width: 140px;
    height: 85px;
    padding: 12px;
  }

  .logo-track {
    gap: 20px;
  }

  .section-header {
    margin-bottom: 40px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 20px 10px;
  }

  .logo-rows-wrapper {
    gap: 10px;
  }

  .logo-row {
    height: 85px;
  }

  .logo-card {
    width: 120px;
    height: 75px;
    padding: 10px;
  }

  .logo-track {
    gap: 15px;
  }

  .control-btn {
    padding: 10px 18px;
    font-size: 13px;
  }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .logo-track {
    animation: none !important;
  }

  .logo-card {
    transition: none;
  }
}

/* Loading State */
.logo-card.loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}
