.trusted-brands-section {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  background: #000000;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.trusted-brands-shell {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.trusted-brands-section .container {
  max-width: 1400px;
}



.trusted-brands-marquee {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.marquee-row {
  position: relative;
  overflow: hidden;
  padding: 6px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  animation-duration: 35s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-play-state: running;
}

.marquee-track-right {
  animation-name: marqueeRight;
}

.marquee-track-left {
  animation-name: marqueeLeft;
}

.marquee-row:hover .marquee-track {
  animation-play-state: paused;
}

.trusted-brands-section.is-paused .marquee-track {
  animation-play-state: paused;
}

.brand-logo-card {
  flex: 0 0 clamp(9.375rem, 13vw, 11.875rem);
  min-width: 190px;
  height: 95px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: transparent;
  transition: all 0.35s ease;
  cursor: pointer;
}

.brand-logo-card + .brand-logo-card {
  border-left: 1px solid rgba(255,255,255,0.08);
}

.brand-logo-card:hover {
  transform: scale(1.05);
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06);
}

.brand-logo-card img {
  display: block;
  max-width: 140px;
  max-height: 40px;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.65);
  transition: all 0.35s ease;
}

.brand-logo-card:hover img {
  filter: grayscale(0%) brightness(1);
  transform: scale(1.02);
}

@keyframes marqueeRight {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes marqueeLeft {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 991px) {
  .trusted-brands-section {
    padding: 70px 0;
  }
}

@media (max-width: 767px) {
  .trusted-brands-section {
    padding: 60px 0;
  }

  .trusted-brands-shell {
    padding: 0 16px;
  }
  
  .brand-logo-card {
    min-width: 150px;
    height: 84px;
    padding: 0 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}
