/**
 * Brand Carousel Styles
 */

/* Container */
.brand-carousel-container {
  position: relative;
  width: 100%;
  margin: 30px 0;
  padding: 0 40px;
  box-sizing: border-box;
  overflow: hidden;
}

/* Track */
.brand-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

/* Items */
.brand-carousel-item {
  flex-shrink: 0;
  padding: 5px;
  box-sizing: border-box;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Height is now set dynamically via inline style */
}

/* Logo */
.brand-carousel-logo {
  /* Height is now set dynamically via inline style */
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto;
  transition: transform 0.3s ease, filter 0.3s ease;
  display: block;
}

/* Grayscale effect - only applied to elements with this class */
.brand-carousel-grayscale {
  filter: grayscale(100%);
}

.brand-carousel-item:hover .brand-carousel-grayscale {
  filter: grayscale(0%);
}

/* Hover effect for all logos */
.brand-carousel-item:hover .brand-carousel-logo {
  transform: scale(1.05);
}

/* Navigation Arrows */
.brand-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.brand-carousel-arrow:hover {
  background-color: #f5f5f5;
  border-color: #ccc;
}

.brand-carousel-arrow.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.brand-carousel-prev {
  left: 0;
}

.brand-carousel-next {
  right: 0;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .brand-carousel-container {
    padding: 0 30px;
  }
}

@media screen and (max-width: 480px) {
  .brand-carousel-container {
    padding: 0 25px;
  }
}
