:root {
  --navy: #0a1f44;
  --gold: #c5a572;
  --dark-gold: #a68759;
  --light-gray: #f8f9fa;
  --mid-gray: #e9ecef;
  --text-dark: #1a1a1a;
  --text-light: #6c757d;
  --white: #ffffff;
}

.carousel-container {
  width: 100%;
  overflow: hidden;
  margin: 10px 0;
  position: relative;
}

.carousel-container::before,
.carousel-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.carousel-container::before {
  left: 0;
  background: linear-gradient(
    to right,
    var(--white) 0%,
    rgba(255, 255, 255, 0) 100%
  );
}

.carousel-container::after {
  right: 0;
  background: linear-gradient(
    to left,
    var(--white) 0%,
    rgba(255, 255, 255, 0) 100%
  );
}

.carousel-track {
  display: flex;
  width: max-content;
  animation: scroll 40s linear infinite;
}

.carousel-track.row-2 {
  animation-duration: 45s;
}

.carousel-track.row-3 {
  animation-duration: 50s;
}

.logo-wrapper {
  flex-shrink: 0;
  width: 240px;
  height: 140px;
  margin: 0 30px;
  background: var(--white);
  border: 1px solid var(--mid-gray);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.logo-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: var(--gold);
}

.logo-wrapper img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.logo-wrapper:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.divider {
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--gold) 50%,
    transparent
  );
  margin: 30px auto;
  width: 80%;
}

/* Mobile in-viewport effects for carousel */
@media (max-width: 768px) {
  .logo-wrapper:has(img.in-viewport) {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--gold);
  }

  .logo-wrapper:has(img.in-viewport) img {
    filter: grayscale(0%);
    opacity: 1;
  }
}
