.brand-slider.carousel-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0px;
  position: relative;
  overflow: hidden;
}

.brand-slider.carousel-title {
  text-align: center;
  color: #333;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 40px;
}

.brand-slider.carousel-wrapper {
  position: relative;
  overflow: hidden;
  padding-block: 10px;
}

.brand-slider.carousel-track {
  display: flex;
  transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
  gap: 0;
}

.brand-slider.carousel-slide {
  display: flex;
  gap: 20px;
  min-width: 100%;
  flex-shrink: 0;
  margin-right: 20px;
}

/* Desktop: Show exactly 5 cards per slide */
@media (min-width: 1024px) {
  .brand-slider.carousel-container {
    max-width: unset;
    width: 100%;
  }

  .brand-slider.carousel-track {
    width: 100%;
  }

  .brand-slider.carousel-slide {
    min-width: 100%;
    width: 100%;
    justify-content: flex-start;
    gap: 20px;
    padding: 0;
  }

  .brand-slider.carousel-card {
    width: calc(20% - 16px);
    min-width: calc(20% - 16px);
    max-width: calc(20% - 16px);
    flex: 0 0 calc(20% - 16px);
    margin-right: 0;
  }

  .brand-slider.carousel-card:last-child {
    margin-right: 0;
  }
}

.brand-slider.carousel-card {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  min-height: 280px;
  height: 530px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
}

.brand-slider.carousel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.brand-slider.carousel-card-content {
  padding: 20px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  justify-content: space-between;
}

.brand-slider.carousel-card-title {
  font-size: 24px;
  color: #fff;
  font-weight: bold;
  margin: 0;
}

.brand-slider.carousel-card-subtitle {
  font-size: 20px;
  color: #fff;
  margin-bottom: 16px;
}

.brand-slider.carousel-card-description {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.4;
  margin-bottom: 15px;
  flex-grow: 1;
}

.brand-slider.carousel-card-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: auto;
}

.brand-slider.carousel-card-link {
  z-index: 2;
  color: #fff !important;
  width: auto;
  height: 30px;
  width: 102px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  padding-left: 4px;
  padding-right: 30px;
}

.brand-slider.carousel-card-link span {
  font-size: 12px;
  font-weight: 400;
}

.brand-slider.carousel-card-link:hover {
  box-shadow: 0 4px 12px rgba(0, 86, 179, 0.15);
  transform: translateY(-2px);
}

.brand-slider.carousel-nav {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  z-index: 10;
  width: 100%;
  pointer-events: none;
}

.brand-slider.carousel-nav-btn {
  pointer-events: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: absolute;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 45%;
}

.brand-slider.carousel-nav-btn:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

.brand-slider.carousel-nav-btn.prev {
  left: 20px;
}

.brand-slider.carousel-nav-btn.next {
  right: 20px;
}

/* Tablet - 3 cards visible */
@media (min-width: 768px) and (max-width: 1023px) {
  .brand-slider.carousel-card {
    min-width: calc(33% - 10px);
    max-width: 33% !important;
    width: 4.5px;
  }

  .brand-slider.carousel-wrapper {
    padding-inline: 10px;
  }

  .brand-slider.carousel-slide {
    margin-right: 20px;
  }

  .brand-slider.carousel-title {
    font-size: 2rem;
  }

  .brand-slider.carousel-nav-btn {
    width: 50px;
    height: 50px;
    font-size: 18px;
  }

  .brand-slider.carousel-nav-btn.prev {
    left: 0px;
  }

  .brand-slider.carousel-nav-btn.next {
    right: 20px;
  }
}

/* Mobile - 1 card visible */
@media (max-width: 767px) {
  .brand-slider.carousel-card {
    min-width: calc(100% - 20px);
  }

  .brand-slider.carousel-title {
    font-size: 1.5rem;
  }

  .brand-slider.carousel-nav-btn {
    width: 45px;
    height: 45px;
    font-size: 16px;
  }

  .brand-slider.carousel-nav-btn.prev {
    left: -50px;
  }

  .brand-slider.carousel-nav-btn.next {
    right: -50px;
  }

  .brand-slider.carousel-container {
    margin: 0 60px;
    padding: 20px;
  }
}

.brand-slider.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px;
  color: #333;
  font-size: 1.2rem;
}

.brand-slider.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top: 4px solid #333;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin-right: 15px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
