@charset "UTF-8";
/**
 * CAI Logo Carousel — styles for the cai_logo_carousel widget.
 * Depends on Swiper's bundled CSS (see enqueue.php). Reuses main.css tokens.
 */
.cai-logos {
  position: relative;
  width: 100%;
  padding: 80px 24px 90px;
  /* Fed by the widget's "Background color" control (--cai-logos-background);
     falls back to the theme ink token when no color is set. */
  background: var(--cai-logos-background, var(--cai-color-ink, #141414));
  border-radius: 0;
  overflow: hidden;
}

.cai-logos__heading {
  margin: 0 0 40px;
  text-align: center;
  font-family: var(--cai-font-base, Arial, Helvetica, sans-serif);
  font-weight: 400;
  line-height: var(--cai-lh-h4);
  font-size: var(--cai-fs-h4);
  letter-spacing: -0.66px;
  /* Fed by the widget's "Heading text color" control. */
  color: var(--cai-logos-heading-color, var(--cai-color-white, #fff));
}

.cai-logos__swiper {
  width: 100%;
}

/* Continuous-marquee timing: linear so the delay:0 autoplay glides. */
.cai-logos[data-autoplay=yes] .cai-logos__swiper .swiper-wrapper {
  transition-timing-function: linear;
}

.cai-logos__slide {
  box-sizing: border-box;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 300px;
  min-height: 130px;
  padding: 24px 32px;
  border-radius: 8px;
  /* Fed by the widget's "Cards background color" / "Cards border color"
     controls; fall back to the original hairline-white values. */
  background: var(--cai-color-white, #fff);
  border: 1px solid var(--cai-logos-border, rgba(255, 255, 255, 0.14));
  border-width: 1px !important;
}

.cai-logos__link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 104px;
}

.cai-logos__slide img {
  max-height: 104px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
  display: block;
}

/* Placeholder shown before a real logo image is chosen. */
.cai-logos__placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  height: 48px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

/* Optional grayscale → color on hover. */
.cai-logos[data-grayscale=yes] .cai-logos__slide img {
  filter: grayscale(1);
  opacity: 0.65;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.cai-logos[data-grayscale=yes] .cai-logos__slide:hover img {
  filter: grayscale(0);
  opacity: 1;
}

/* -------------------------------------------------------------------------
 * Overlay nav — semi-opaque, pinned to the left/right ends.
 * ---------------------------------------------------------------------- */
.cai-logos__nav {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  border: none;
  cursor: pointer;
  color: var(--cai-color-white, #fff);
  background: linear-gradient(90deg, rgba(20, 20, 20, 0.98) 0%, rgba(20, 20, 20, 0) 100%);
  backdrop-filter: blur(4px);
  transition: background 0.15s ease, opacity 0.15s ease;
}

.cai-logos__nav:hover {
  background: linear-gradient(90deg, rgb(20, 20, 20) 0%, rgba(20, 20, 20, 0.12) 100%);
}

.cai-logos__prev {
  left: 0;
}

.cai-logos__prev svg {
  transform: scaleX(-1);
}

.cai-logos__next {
  right: 0;
  background: linear-gradient(270deg, rgba(20, 20, 20, 0.98) 0%, rgba(20, 20, 20, 0) 100%);
}

.cai-logos__next:hover {
  background: linear-gradient(270deg, rgb(20, 20, 20) 0%, rgba(20, 20, 20, 0.12) 100%);
}

.cai-logos__nav svg {
  width: 22px;
  height: 22px;
}

/* Swiper hides these when everything already fits (watchOverflow). */
.cai-logos__prev.swiper-button-lock,
.cai-logos__next.swiper-button-lock,
.cai-logos__prev.swiper-button-disabled,
.cai-logos__next.swiper-button-disabled {
  display: none;
}
