/* ===================================
   Logo Carousel Component Styles
   =================================== */
body {
  overflow-x: hidden;
}
.logo-carousel {
  width: 100%;
}

.logo-carousel__container {
  max-width: 100%;
  margin: 0 auto;
  padding: 95px 60px;
  background-color:  #fff;
}

/* Title */
h2.logo-carousel__title {
  font-family: "Mr Eaves XL San OT", sans-serif;
  font-size: 56px;
  font-weight: 800;
  text-align: center;
  margin: 0 0 40px;
  color: #00283b;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 70px;
  letter-spacing: 0%;
  text-align: center;
  vertical-align: middle;
}

/* Carousel Wrapper */
.logo-carousel__wrapper {
  position: relative;
  padding: 0 60px;
}

/* Slides Container */
.logo-carousel__slides {
  overflow: hidden;
}

.logo-carousel__track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

/* Individual Slide */
.logo-carousel__slide {
  flex: 0 0 20%; /* 5 items per view (100% / 5) */
  padding: 0 20px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 0;
  padding-top: 0;
}

.logo-carousel__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Navigation Buttons */
.logo-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background-color: transparent;
  border: none;
}

.logo-carousel__btn:hover:not(:disabled) .logo-carousel__arrow {
  border-color: #fff;
}

.logo-carousel__btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.logo-carousel__btn--prev {
  left: 0;
}

.logo-carousel__btn--next {
  right: 0;
}

/* Arrow Icon using CSS */
.logo-carousel__arrow {
  width: 12px;
  height: 12px;
  border-top: 2px solid #001f3f;
  border-right: 2px solid #001f3f;
  transition: border-color 0.3s ease;
}

.logo-carousel__btn--prev .logo-carousel__arrow {
  transform: rotate(-135deg);
  margin-left: 4px;
}

.logo-carousel__btn--next .logo-carousel__arrow {
  transform: rotate(45deg);
  margin-right: 4px;
}

/* ===================================
   Responsive Styles
   =================================== */

/* Tablet */
@media (max-width: 1024px) {
  .logo-carousel__slide {
    flex: 0 0 40%; /* 3 items per view */
  }

  .logo-carousel__title {
    font-size: 24px;
  }

  .logo-carousel__wrapper {
    padding: 0 50px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .logo-carousel__container {
    padding: 64px 24px 64px 24px;
  }

  .logo-carousel__slide {
    padding: 0 10px 0 0;
    flex: 0 0 55%;
  }
  .logo-carousel__slides {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
    scroll-behavior: smooth;
  }

  .logo-carousel__slides::-webkit-scrollbar {
    display: none;
  }
  .logo-carousel__image {
    height: 100%;
    width: auto;
    max-width: 100%;
  }

  .logo-carousel__title {
    font-size: 20px;
    margin-bottom: 30px;
  }

  .logo-carousel__btn {
    padding-top: 20px;
    transform: none;
    top: 100%;
    width: 35px;
    height: 35px;
  }

  .logo-carousel__wrapper {
    padding: 0;
  }

  .logo-carousel__arrow {
    width: 10px;
    height: 10px;
  }

  .logo-carousel__title {
    font-size: 18px;
    letter-spacing: 1px;
  }
}

/* ===================================
   AEM Author Mode Styles
   =================================== */

.cq-Overlay .logo-carousel {
  min-height: 100px;
}
