.brand-logos {
  overflow-x: hidden;
  position: relative;
  margin-top: 100px;
}

.logo-container {
  display: flex;
  animation: scroll 15s infinite linear; /* Adjust duration for scroll speed */
}

.logo-row {
  display: flex;
  gap: 80px; /* Gap between images */
  justify-content: center;
}

.logo-item {
  display: flex;
  align-items: center;
  width: 200px;
}

.logo-item:last-child {
  margin-right: 80px; /* Add extra space after the last image */
}

figure {
  text-align: center;
  position: relative;
}

img {
  max-width: 100%;
  transition: opacity 0.3s ease-in-out; /* Smooth transition for hiding */
}

h6 {
  display: none; /* Hide text initially */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 18px;
  color: #000;
  font-weight: 800; /* Adjust as per your design */
}

figure:hover img {
  opacity: 0; /* Hide image on hover */
}

figure:hover h6 {
  display: block; /* Show text on hover */
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}
