/* Brand Partners Carousel */
.brand-partners {
  background: #0877B4;
  padding: clamp(32px, 5vw, 40px) 0;
  overflow: hidden;
}

.brand-partners__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 6vw, 48px);
}

.brand-partners__slider {
  position: relative;
}

.brand-partners__slider .slick-list {
  margin: 0 calc(-1 * clamp(16px, 4vw, 36px));
}

.brand-partners__slider .slick-track {
  display: flex;
  align-items: center;
}

.brand-partners__slide {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(16px, 4vw, 36px);
  min-height: clamp(60px, 8vw, 96px);
  position: relative;
}

.brand-partners__slide::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 1px;
  height: clamp(32px, 6vw, 48px);
  background: rgba(255, 255, 255, 0.32);
}

.brand-partners__slide:last-child::after,
.brand-partners__slider .slick-slide.slick-active:last-of-type::after {
  display: none;
}

.brand-partners__slide img {
  width: clamp(96px, 16vw, 160px);
  height: clamp(32px, 5vw, 56px);
  object-fit: contain;
  display: block;
  opacity: 0.9;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.brand-partners__slide:hover img,
.brand-partners__slide:focus-within img {
  opacity: 1;
  transform: scale(1.05);
}

.brand-partners__slider:not(.slick-initialized) {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 4vw, 32px);
  justify-content: center;
}

.brand-partners__slider:not(.slick-initialized) .brand-partners__slide {
  flex: 0 1 140px;
}

.brand-partners__slider:not(.slick-initialized) .brand-partners__slide::after {
  display: none;
}

/* Slick base overrides */
.brand-partners__slider.slick-slider {
  box-sizing: border-box;
  user-select: none;
  touch-action: pan-y;
}

.brand-partners__slider .slick-slide {
  float: none;
  height: auto;
}

.brand-partners__slider .slick-arrow {
  display: none !important;
}

/* Empty state */
.brand-partners--empty {
  background: #f7f9fc;
  padding: clamp(32px, 5vw, 60px) 0;
}

.brand-partners__empty-message {
  margin: 0;
  color: #0877B4;
  font-size: 0.9375rem;
  text-align: center;
}

.brand-partners__empty-message code {
  background: rgba(45, 110, 181, 0.08);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-family: "Courier New", Courier, monospace;
}

/* Responsive tweaks */
@media (max-width: 1024px) {
  .brand-partners__slide::after {
    height: clamp(28px, 7vw, 40px);
  }
}

@media (max-width: 768px) {
  .brand-partners {
    padding: clamp(28px, 8vw, 48px) 0;
  }

  .brand-partners__slide {
    padding: 0 clamp(12px, 5vw, 28px);
  }

  .brand-partners__slide::after {
    height: clamp(24px, 8vw, 36px);
  }
}

@media (max-width: 520px) {
  .brand-partners__slide {
    padding: 0 clamp(8px, 6vw, 20px);
  }

  .brand-partners__slide::after {
    height: clamp(20px, 10vw, 28px);
  }
}