.rollingBanner {
  width: 100%;
  box-sizing: border-box;
}

.rollingBanner__container {
  max-width: 1280px;
  overflow: hidden;
  margin: 0 auto;
  position: relative;
  padding: 0 20px;
  box-sizing: border-box;
  min-height: 120px;
}

.rollingBanner__header {
  text-align: center;
  margin-bottom: 30px;
}

.rollingBanner__header h2 {
  color: var(--Sort, #000001);
  font-family: "Montserrat", sans-serif;
  font-size: 32px;
  font-style: normal;
  font-weight: 900;
  line-height: normal;
  margin: 0;
}

.rollingBanner__track {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 20px 0;
  transition: all 0.3s ease;
  will-change: transform;
  justify-content: center;
  position: relative;
  min-height: 120px;
}

.rollingBanner__inner {
  display: flex;
  align-items: center;
  gap: 85px;
}

/* Add spacing between original and duplicated sets when rolling */
.rollingBanner__track.is-rolling .rollingBanner__inner {
  margin-right: 85px;
}

.rollingBanner__track.is-rolling {
  justify-content: flex-start;
  animation: rollingBanner-marquee linear infinite;
  animation-duration: var(--marquee-duration, 30s);
}

.rollingBanner__track.is-stationary {
  animation: none !important;
  justify-content: center;
}

.rollingBanner__item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 120px;
  position: relative;
}

.rollingBanner__item img {
  max-height: 100px;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: all 0.3s ease;
}

.rollingBanner__item:hover img {
  transform: scale(1.05);
}

@keyframes rollingBanner-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-1 * var(--marquee-width, 0px)));
  }
}

.rollingBanner__track.is-stationary .rollingBanner__set--duplicate {
  display: none !important;
}

/* Large Desktop Styles */
@media (max-width: 1440px) {
  .rollingBanner__container {
    max-width: 1200px;
  }

  .rollingBanner__header h2 {
    font-size: 26px;
  }
}

/* Desktop Styles */
@media (max-width: 1200px) {
  .rollingBanner__container {
    max-width: 960px;
    min-height: 110px;
  }

  .rollingBanner__header h2 {
    font-size: 24px;
  }

  .rollingBanner__track {
    min-height: 110px;
  }

  .rollingBanner__item {
    width: 180px;
    height: 110px;
  }

  .rollingBanner__item img {
    max-height: 90px;
    max-width: 160px;
  }
}

/* Tablet Styles */
@media (max-width: 992px) {
  .rollingBanner__container {
    max-width: 100%;
    min-height: 100px;
    padding: 0 25px;
  }

  .rollingBanner__header {
    margin-bottom: 25px;
  }

  .rollingBanner__header h2 {
    font-size: 24px;
    line-height: 1.2;
  }

  .rollingBanner__track {
    min-height: 100px;
    padding: 15px 0;
  }

  .rollingBanner__inner {
    gap: 60px;
  }

  .rollingBanner__track.is-rolling .rollingBanner__inner {
    margin-right: 60px;
  }

  .rollingBanner__item {
    width: 150px;
    height: 100px;
  }

  .rollingBanner__item img {
    max-height: 80px;
    max-width: 130px;
  }

  .rollingBanner__item:hover img {
    transform: scale(1.03);
  }
}

/* Mobile Landscape / Large Mobile */
@media (max-width: 768px) {
  .rollingBanner__container {
    max-width: 100%;
    padding: 0 20px;
    min-height: 90px;
  }

  .rollingBanner__header {
    margin-bottom: 20px;
  }

  .rollingBanner__header h2 {
    font-size: 22px;
    line-height: 1.3;
  }

  .rollingBanner__track {
    min-height: 90px;
    padding: 12px 0;
  }

  .rollingBanner__inner {
    gap: 45px;
  }

  .rollingBanner__track.is-rolling .rollingBanner__inner {
    margin-right: 45px;
  }

  .rollingBanner__item {
    width: 130px;
    height: 90px;
  }

  .rollingBanner__item img {
    max-height: 70px;
    max-width: 110px;
  }

  .rollingBanner__item:hover img {
    transform: scale(1.02);
  }
}

/* Mobile Portrait */
@media (max-width: 480px) {
  .rollingBanner__container {
    max-width: 100%;
    padding: 0 15px;
    min-height: 80px;
  }

  .rollingBanner__header {
    margin-bottom: 18px;
  }

  .rollingBanner__header h2 {
    font-size: 20px;
    line-height: 1.3;
  }

  .rollingBanner__track {
    min-height: 80px;
    padding: 10px 0;
  }

  .rollingBanner__inner {
    gap: 35px;
  }

  .rollingBanner__track.is-rolling .rollingBanner__inner {
    margin-right: 35px;
  }

  .rollingBanner__item {
    width: 110px;
    height: 80px;
  }

  .rollingBanner__item img {
    max-height: 60px;
    max-width: 95px;
  }

  /* Disable hover effects on mobile for better performance */
  .rollingBanner__item:hover img {
    transform: none;
  }
}

/* Small Mobile */
@media (max-width: 360px) {
  .rollingBanner__container {
    padding: 0 12px;
    min-height: 70px;
  }

  .rollingBanner__header {
    margin-bottom: 15px;
  }

  .rollingBanner__header h2 {
    font-size: 18px;
    line-height: 1.3;
  }

  .rollingBanner__track {
    min-height: 70px;
    padding: 8px 0;
  }

  .rollingBanner__inner {
    gap: 25px;
  }

  .rollingBanner__track.is-rolling .rollingBanner__inner {
    margin-right: 25px;
  }

  .rollingBanner__item {
    width: 90px;
    height: 70px;
  }

  .rollingBanner__item img {
    max-height: 50px;
    max-width: 75px;
  }
}

/* Performance optimizations for mobile */
@media (max-width: 768px) {
  .rollingBanner__track.is-rolling {
    will-change: transform;
  }

  .rollingBanner__item img {
    backface-visibility: hidden;
    transform: translateZ(0);
  }
}
