.logo-carousel-section {
  margin-top: 3em;
  padding-bottom: 0.5em;
}

.logo-carousel-heading {
  margin: 0 0 1.25rem;
  padding: 0 24px;
  text-align: center;
  font-family: Montserrat, "Open Sans", sans-serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #111;
}

.logo-carousel-section .logo-carousel {
  margin-top: 0;
}

.logo-carousel.is-logo-paused,
.logo-carousel.is-logo-paused .splide__track {
  overflow: visible;
}

.logo-carousel-slide {
  position: relative;
  z-index: 1;
  width: auto !important;
  min-width: 14vw;
  overflow: visible;
}

.logo-carousel-slide.is-hovering {
  z-index: 30;
}

/* Bare logo — no card */
.logo-carousel-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100px;
  cursor: pointer;
}

.logo-carousel-item .image-5 {
  flex: 0 0 auto;
  width: clamp(110px, 14vw, 220px);
  min-width: 0;
  max-width: 220px;
  max-height: 76px;
  object-fit: contain;
  padding: 14px 20px;
  filter: grayscale(1);
  opacity: 0.72;
  transform: translateY(0) scale(1);
  transition:
    filter 0.35s ease,
    opacity 0.35s ease,
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo-carousel-slide.is-hovering .image-5 {
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-4px) scale(1.08);
}

/* Tooltip revealed above the logo */
.logo-carousel-detail {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  width: 250px;
  padding: 14px 18px;
  background: linear-gradient(160deg, #16202e, #0d1420);
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(13, 20, 32, 0.35);
  text-align: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(10px) scale(0.92);
  transform-origin: bottom center;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 40;
}

.logo-carousel-detail::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: #0d1420;
}

.logo-carousel-slide.is-hovering .logo-carousel-detail {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}

.logo-carousel-detail strong {
  display: block;
  margin-bottom: 4px;
  font-family: Montserrat, "Open Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo-carousel-detail p {
  margin: 0;
  font-family: Montserrat, "Open Sans", sans-serif;
  font-size: 12.5px;
  line-height: 1.5;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 767px) {
  .logo-carousel-slide {
    min-width: 28vw;
  }

  .logo-carousel-item {
    height: 84px;
  }

  .logo-carousel-item .image-5 {
    width: clamp(96px, 28vw, 160px);
    max-height: 64px;
    padding: 10px 14px;
  }

  .logo-carousel-detail {
    width: min(190px, calc(100vw - 48px));
    padding: 12px 14px;
  }

  .logo-carousel-detail p {
    font-size: 12px;
  }
}

@media (max-width: 479px) {
  .logo-carousel-heading {
    padding: 0 16px;
    font-size: clamp(20px, 6vw, 26px);
  }

  .logo-carousel-detail {
    width: min(170px, calc(100vw - 32px));
  }
}
