/* V22 - Partner carousel viewport, purposely separate from site-v20.css.
   Blue section remains 100% wide; only the logo viewport is capped. */

@media (min-width: 901px) {
  .section--partners {
    width: 100%;
    max-width: none;
    overflow: hidden;
    background: #a7d4f0;
  }

  /* Precisely seven 126px cards with six 26px gaps = 1038px.
     Keep blue background edge-to-edge, crop only the moving strip. */
  .section--partners .partner-marquee {
    box-sizing: border-box;
    display: block;
    position: relative;
    width: min(1038px, calc(100% - 48px));
    max-width: 1038px;
    margin-inline: auto;
    padding: 9px 0 15px;
    overflow: hidden;
    isolation: isolate;
    /* Also fade the very ends for browsers that do not support blur */
    -webkit-mask-image: linear-gradient(to right,
      transparent 0%, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(to right,
      transparent 0%, #000 8%, #000 92%, transparent 100%);
  }

  .section--partners .partner-marquee__track {
    display: flex;
    width: max-content;
    min-width: 0;
    transform: translate3d(-50%,0,0);
    will-change: transform;
    animation: partner-scroll-right 34s linear infinite;
  }

  .section--partners .partner-marquee__group {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 26px;
    padding-right: 26px;
  }

  .section--partners .partner-logo-card {
    box-sizing: border-box;
    flex: 0 0 126px;
    width: 126px;
    height: 82px;
    padding: 10px 12px;
    background: #fff;
    border-radius: 13px;
    transition: transform .22s ease, box-shadow .22s ease;
  }

  .section--partners .partner-logo-card img {
    max-width: 104px;
    max-height: 60px;
    object-fit: contain;
  }

  /* Original site CSS has overlays across the FULL screen.
     Replace with soft blur limited to our compact logo window. */
  .section--partners .partner-marquee::before,
  .section--partners .partner-marquee::after {
    content: "";
    display: block;
    position: absolute;
    z-index: 5;
    top: 0;
    bottom: 0;
    width: 70px;
    pointer-events: none;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
  }
  .section--partners .partner-marquee::before {
    left: 0;
    background: linear-gradient(90deg,
      rgba(167,212,240,.80), rgba(167,212,240,0));
  }
  .section--partners .partner-marquee::after {
    right: 0;
    background: linear-gradient(270deg,
      rgba(167,212,240,.80), rgba(167,212,240,0));
  }
}

@media (min-width: 901px) and (hover: hover) {
  .section--partners .partner-marquee:hover .partner-marquee__track {
    animation-play-state: paused;
  }
  .section--partners .partner-logo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(20,72,108,.16);
  }
}

/* Tablet/phone retains V20 swipe-to-view behavior. */
@media (max-width: 900px) {
  .section--partners .partner-marquee {
    max-width: none;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

@media (prefers-reduced-motion: reduce) and (min-width:901px) {
  .section--partners .partner-marquee {
    overflow-x: auto;
  }
  .section--partners .partner-marquee__track {
    animation: none;
    transform: none;
  }
}
