/* ==========================================================================
   logos.css — "Trusted by..." logo marquee
   Shows 5 logos at a time, slides smoothly & continuously (infinite loop).
   Every slot is the same width/height. Self-contained + responsive.
   ========================================================================== */

.tp-logos__title {
  text-align: center;
  margin: 0 0 2rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--tp-muted);
}

.tp-logos__viewport {
  position: relative;
  overflow: hidden;
  /* fade edges */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.tp-logos__track {
  display: flex;
  width: 200%;                 /* 2 identical sets → 5 visible per set */
  animation: tp-logos-marquee 30s linear infinite;
}

.tp-logos__viewport:hover .tp-logos__track {
  animation-play-state: paused;
}

/* every slot identical size (10 items across a 200% track = 20% viewport each) */
.tp-logos__item {
  flex: 0 0 10%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  padding: 0 0.5rem;
}

.tp-logos__item img {
  max-height: 34px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  opacity: 0.75;
  transition: opacity 0.18s ease;
}

.tp-logos__item img:hover {
  opacity: 1;
}

@keyframes tp-logos-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .tp-logos__track { animation: none; }
}

/* ==========================================================================
   Responsive — fewer logos visible on smaller screens
   (keep items at 10% of track; widen the track so each slot is bigger)
   ========================================================================== */
@media (max-width: 991.98px) {
  .tp-logos__track { width: 320%; }   /* ~3 visible */
}

@media (max-width: 575.98px) {
  .tp-logos__track { width: 500%; }   /* ~2 visible */
}
