.brand-bar {
  background: linear-gradient(180deg, #0a0a0a 0%, #111 100%);
  padding: 0;
}

.brand-bar-panel {
  width: 100%;
  background: linear-gradient(180deg, #0a0a0a 0%, #141414 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 60px 0;
  overflow: hidden;
  position: relative;
}

.brand-bar-heading {
  margin: 0 0 20px;
  padding: 0 20px;
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.01em;
}

.brand-bar-panel::before,
.brand-bar-panel::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  z-index: 2;
  pointer-events: none;
}

.brand-bar-panel::before {
  left: 0;
  background: linear-gradient(90deg, #0a0a0a 0%, transparent 100%);
}

.brand-bar-panel::after {
  right: 0;
  background: linear-gradient(270deg, #141414 0%, transparent 100%);
}

.brand-bar-viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.brand-bar-marquee {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 18px;
  width: max-content;
  padding: 0 14px;
  animation: brand-marquee-scroll var(--brand-marquee-duration, 40s) linear infinite;
  will-change: transform;
}

.brand-bar-panel:hover .brand-bar-marquee,
.brand-bar-panel:focus-within .brand-bar-marquee {
  animation-play-state: paused;
}

@keyframes brand-marquee-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.brand-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex: 0 0 auto;
  min-width: 132px;
  padding: 0;
  border: none;
  background: transparent;
  color: #fff;
  text-decoration: none;
  text-align: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.brand-bar-item:hover {
  transform: translateY(-3px);
  opacity: 0.92;
}

.brand-bar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.brand-bar-logo img {
  max-width: 120px;
  max-height: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.95;
}

.brand-bar-item:hover .brand-bar-logo img {
  opacity: 1;
}

.brand-bar-name {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  color: #fff;
}

@media (max-width: 768px) {
  .brand-bar-panel {
    padding: 40px 0;
  }

  .brand-bar-heading {
    margin-bottom: 16px;
    font-size: 1.35rem;
  }

  .brand-bar-panel::before,
  .brand-bar-panel::after {
    width: 28px;
  }

  .brand-bar-marquee {
    gap: 12px;
    padding: 0 10px;
  }

  .brand-bar-item {
    min-width: 110px;
    gap: 10px;
  }

  .brand-bar-logo {
    width: 96px;
    height: 96px;
  }

  .brand-bar-logo img {
    max-width: 96px;
    max-height: 96px;
  }

  .brand-bar-name {
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-bar-marquee {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
}
