/* Infinite horizontal partner logo marquee */

.ee-partner-strip {
  padding-top: 50px;
}

.ee-page-content .ee-partner-strip {
  padding: 50px 0 2rem;
}

.ee-page-content .free-trial-section-2:empty,
.ee-page-content section.free-trial-section-2:empty {
  display: none;
}

.ee-page-content .home-blog-section:has(+ .ee-partner-strip):has(> .container:only-child:empty),
.ee-page-content section.home-blog-section:has(+ .ee-partner-strip):has(> .container:only-child:empty) {
  display: none;
}

.ee-page-content section:not(.ee-partner-strip):has(+ .ee-partner-strip),
.ee-page-content .free-trial-section-2:has(+ .ee-partner-strip),
.ee-page-content div.free-trial-section-2:has(+ .ee-partner-strip) {
  margin-bottom: 0;
  padding-bottom: 1.5rem;
}

.ee-page-content .home-blog-section:has(+ .ee-partner-strip) > .container:empty,
.ee-page-content section.home-blog-section:has(+ .ee-partner-strip) > .container:empty {
  display: none;
}

.ee-page-content .home-blog-section:has(+ .ee-partner-strip),
.ee-page-content section.home-blog-section:has(+ .ee-partner-strip) {
  margin-bottom: 0;
  padding-bottom: 0;
}

.ee-page-content .home-blog-section:has(+ .ee-partner-strip) [style*="opacity:0"],
.ee-page-content section.home-blog-section:has(+ .ee-partner-strip) [style*="opacity:0"] {
  opacity: 1 !important;
  transform: none !important;
}

.ee-page-content *:has(+ .ee-partner-strip) + .ee-partner-strip,
.ee-page-content .free-trial-section-2 + .ee-partner-strip,
.ee-page-content .home-blog-section + .ee-partner-strip,
.ee-page-content section.home-blog-section + .ee-partner-strip {
  margin-top: 0;
}

.ee-page-content .home-blog-section:has(.ee-partner-strip),
.ee-page-content section.home-blog-section:has(.ee-partner-strip) {
  padding: 0;
  background: transparent;
  border: none;
}

.ee-partner-strip p:has(+ .ee-partner-marquee) {
  margin-bottom: 20px;
}

.ee-partner-marquee {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 5%,
    #000 95%,
    transparent
  );
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.ee-partner-marquee__track {
  display: flex;
  width: max-content;
  gap: 4rem;
  animation: ee-partner-marquee-scroll 100s linear infinite;
  will-change: transform;
}

.ee-partner-marquee__group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 4rem;
}

.ee-partner-marquee__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent;
}

.ee-partner-marquee__logo img {
  display: block;
  height: 3.25rem;
  width: auto;
  max-width: 11rem;
  object-fit: contain;
  background: transparent;
  opacity: 1;
  transition: transform 0.2s ease;
}

.ee-partner-marquee__logo img:hover {
  transform: scale(1.05);
}

@keyframes ee-partner-marquee-scroll {
  from {
    transform: translate3d(-50%, 0, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ee-partner-marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .ee-partner-marquee__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 1.5rem 2.5rem;
  }

  .ee-partner-marquee__group[aria-hidden="true"] {
    display: none;
  }

  .ee-partner-marquee__group {
    flex-wrap: wrap;
    justify-content: center;
  }
}
