/* ===== Brand Strip ===== */
.brand-strip {
  height: 120px;
  padding: 15px 0;
  background: #f8f9fa; /* light gray */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  display: flex;
  align-items: right;
}

/* ===== Track Animation ===== */
.brand-track {
  display: flex;
  align-items: right;
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  will-change: transform;
  animation: scrollLeft calc(3s * var(--num-original-logos)) linear infinite;
}

/* ===== Brand Item ===== */
.brand-item {
  flex: 0 0 auto;
  padding: 0 5px;   /* reduced from 20px */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Logos ===== */
.brand-item img {
  max-height: 60px;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.4s ease, transform 0.3s ease;
}
.brand-item img:hover {
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* ===== Keyframes ===== */
@keyframes scrollLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== Responsive Layout ===== */
/* Large desktops → 6 logos */
@media (min-width: 1200px) {
  .brand-item { width: calc(100% / 10); }
}
/* Desktops → 5 logos */
@media (min-width: 992px) and (max-width: 1199px) {
  .brand-item { width: calc(100% / 5); }
}
/* Tablets → 4 logos */
@media (min-width: 768px) and (max-width: 991px) {
  .brand-item { width: calc(100% / 4); }
}
/* Mobiles → 3 logos minimum */
@media (max-width: 767px) {
  .brand-item { width: calc(100% / 3); }
}
