.cls-wrapper {
  width: 100%;
  overflow: hidden;
  padding: 60px 0;
  display: flex;
  flex-direction: column;
  gap: 70px;
}

.cls-row {
  display: flex;
  width: 100%;
}

.cls-track {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: var(--cls-gap);
  padding-right: var(--cls-gap);
}

/* --- THE FIX: Invisible Bounding Boxes --- */
.cls-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--cls-height);
  width: 260px; /* Locked as per our previous fix */
  flex-shrink: 0;
}

/* Fix: Make the anchor tag fill the bounding box for a better click area */
.cls-logo a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.cls-logo img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  /* THE FIX: Added filter to the transition so it fades smoothly */
  transition: transform 0.3s ease, filter 0.3s ease; 
  /* THE FIX: Makes them black-and-white and slightly muted */
  filter: grayscale(100%) opacity(60%); 
}

/* Hover effect now triggers on the whole link or image */
.cls-logo a:hover img {
  transform: scale(1.05);
  /* THE FIX: Brings back full color and full brightness on hover */
  filter: grayscale(0%) opacity(100%); 
}

/* --- ANIMATIONS --- */
.cls-dir-left .cls-track {
  animation: cls-scroll-left linear infinite;
}

.cls-dir-right .cls-track {
  animation: cls-scroll-right linear infinite;
}

.cls-row:hover .cls-track {
  animation-play-state: paused;
}

@keyframes cls-scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

@keyframes cls-scroll-right {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(0);
  }
}

/* --- MOBILE --- */
@media (max-width: 900px) {
  .cls-wrapper {
    padding: 40px 0;
    gap: 30px;
  }
  .cls-logo {
    height: calc(var(--cls-height) * 0.7);
    width: 160px; /* Shrinks the bounding box down for phones */
  }
}
