/* Existing styles remain unchanged unless modified below */

/*-marquee*/
.marquee-box {
  width: 100%;
  max-width: 8000px; /* Default width for larger screens */
  margin: 5px auto;
  border-radius: 10px;
  background: var(--tabe-bg); /* Light background */
  overflow: hidden;
  position: relative;
}

.marquee-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.marquee {
  display: flex;
  align-items: center;
  gap: 1em;
  animation: marquee 20s linear infinite;
  width: max-content;
}

.marquee img {
  padding: 10px;
  max-width: 150px; /* Default image size for larger screens */
  height: auto;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Reduce marquee size more on mobile screens (up to 767px) */
@media screen and (max-width: 767px) {
  .marquee-box {
    max-width: 100%; /* Still fits the mobile screen */
    padding: 3px; /* Further reduced padding for mobile (from 5px) */
    margin: 1px auto; /* Further reduced margin for mobile (from 2px) */
  }

  .marquee img {
    max-width: 80px; /* Further reduced image size for mobile (from 100px) */
    padding: 3px; /* Further reduced padding around images (from 5px) */
  }

  .marquee {
    gap: 0.3em; /* Further reduced gap between items on mobile (from 0.5em) */
    animation: marquee 12s linear infinite; /* Faster animation for mobile (from 15s) */
  }
}