/**
 * Footer Banner Carousel Styles
 * Shows 5 images by default with horizontal scrolling for additional images
 */

.footer-banner-carousel {
  width: 100%;
  margin: 20px 0;
  padding: 20px 0;
}

.footer-banner-section {
  width: 100%;
  background: #f5f5f5;
  padding: 30px 0;
}

.carousel-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 15px;
}

.carousel-wrapper {
  overflow: hidden;
  width: 100%;
  flex: 1;
}

.carousel-track {
  display: flex;
  gap: 15px;
  transition: transform 0.4s ease-in-out;
  align-items: center;
}

.carousel-item {
  flex: 0 0 calc(20% - 12px); /* 5 items: 100% / 5 = 20%, minus gap adjustment */
  min-width: calc(20% - 12px);
  max-width: calc(20% - 12px);
  box-sizing: border-box;
  transition: transform 0.3s ease;
}

.carousel-item img {
  width: 100%;
  height: auto;
  min-height: 80px;
  display: block;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  object-fit: contain;
  background: #fff;
  padding: 5px;
}

.carousel-item a {
  display: block;
}

.carousel-item:hover img {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Navigation Buttons */
.carousel-nav {
  background: rgba(15, 76, 159, 0.9);
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  min-width: 45px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.carousel-nav:hover {
  background: rgba(15, 76, 159, 1);
  transform: scale(1.1);
}

.carousel-nav:disabled {
  background: rgba(128, 128, 128, 0.3);
  cursor: not-allowed;
  opacity: 0.5;
}

.carousel-nav:disabled:hover {
  transform: scale(1);
}

.carousel-nav .glyphicon {
  font-size: 18px;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .carousel-item {
    flex: 0 0 calc(25% - 12px); /* 4 items on medium screens */
    min-width: calc(25% - 12px);
  }
}

@media (max-width: 992px) {
  .carousel-item {
    flex: 0 0 calc(33.333% - 10px); /* 3 items on tablets */
    min-width: calc(33.333% - 10px);
  }

  .carousel-nav {
    width: 35px;
    height: 35px;
    min-width: 35px;
  }
}

@media (max-width: 768px) {
  .carousel-item {
    flex: 0 0 calc(50% - 8px); /* 2 items on mobile */
    min-width: calc(50% - 8px);
  }
}

@media (max-width: 480px) {
  .carousel-item {
    flex: 0 0 100%; /* 1 item on small mobile */
    min-width: 100%;
  }

  .carousel-track {
    gap: 10px;
  }
}
