/* Logo Carousel Component Styles - Slick Implementation */

/* Using TailwindCSS classes primarily, custom CSS only when necessary */

.logo-carousel {
  width: 100%;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* Section Title */

.logo-carousel__title {
  margin-bottom: 2rem;
  text-align: left;
  font-size: var(--font-h2);
  line-height: var(--line-height);
  letter-spacing: var(--letter-spacing);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
}

/* Continuous Scroll Container */

.logo-carousel__slider {
  width: 100%;
  overflow: hidden;
  /* Set up for continuous scroll animation */
  position: relative;
  height: 5rem;
}

/* Inner scrolling track - marquee style */

.logo-carousel__track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  gap: 3rem;
  height: 5rem;
  position: absolute;
  left: 0;
  top: 0;
}

/* Individual Logo Item Styling */

.logo-carousel__item {
  display: flex;
  height: 5rem;
  width: auto;
  align-items: center;
  justify-content: center;
  /* Logo items in continuous scroll */
  flex-shrink: 0;
  white-space: nowrap;
  /* Remove padding since gap handles spacing */
  padding: 0;
  /* Ensure consistent sizing */
  min-width: 120px;
}

.logo-item__image {
  max-height: 5rem;
  width: auto;
}

.logo-item__image img {
  max-height: 5rem;
  -o-object-fit: contain;
     object-fit: contain;
  /* Maintain aspect ratio while fitting within height constraint */
  /* Force max height to prevent large images */
  max-height: 80px !important;
  width: auto !important;
  height: auto !important;
}

.logo-carousel__track.continuous-scroll {
  width: -moz-max-content;
  width: max-content;
}

/* Completely disable user interactions on the entire carousel */

.logo-carousel__slider {
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  touch-action: none;
  -webkit-touch-callout: none;
}

/* Disable text selection on logo items */

.logo-carousel__item {
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Clone logos for seamless loop */

.logo-carousel__item.logo-clone {
  opacity: 1;
}

/* Responsive adjustments */

@media (max-width: 768px) {
  .logo-carousel {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .logo-carousel__title {
    margin-bottom: 1.5rem;
    font-size: var(--font-h3);
    line-height: var(--line-height);
    letter-spacing: var(--letter-spacing);
    font-weight: var(--font-weight-semi-bold);
  }

  .logo-item {
    height: 4rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .logo-item__image {
    max-height: 4rem;
  }

  .logo-item__image img {
    max-height: 4rem;
    /* Force max height on mobile */
    max-height: 64px !important;
    width: auto !important;
    height: auto !important;
  }
}