/* ========================================
   Partner Marquee Section Styles
   Auto-scroll left, pause on hover
   Based on demo.fcynet.com partners section
   ======================================== */

/* Section */
.nq-partners-section {
  position: relative;
  padding: 60px 0 100px;
  background: #fff;
}

.nq-partners-section .partners-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Title */
.nq-partners-section .sk-title-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 42px;
  text-align: center;
}

.nq-partners-section .sk-title {
  margin: 0;
  color: #1f2329;
  font-size: 32px;
  font-weight: 600;
  line-height: 44px;
}

.nq-partners-section .sk-desc {
  max-width: 880px;
  margin-top: 12px;
  color: #8a8f99;
  font-size: 15px;
  line-height: 26px;
}

/* Marquee container */
.nq-partners-section .partners-items-container {
  width: 100%;
  overflow: hidden;
}

.nq-partners-section .partners-list-container {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Each marquee row */
.nq-partners-section .partners-item-container {
  position: relative;
  width: 100%;
  flex: 0 0 auto;
  overflow: hidden;
}

/* Scrolling row - the key animation */
.nq-partners-section .partners-item-row {
  display: flex;
  width: max-content;
  animation: nq-partner-scroll var(--partner-speed, 30s) linear infinite;
}

/* Pause on hover - must override the animation shorthand's default running state */
.nq-partners-section .partners-item-container:hover .partners-item-row {
  animation-play-state: paused !important;
}

/* Visual feedback on hover */
.nq-partners-section .partners-item-container:hover .partners-item-img {
  box-shadow: 0 4px 20px rgba(78, 146, 255, 0.25);
}

/* Each page is a set of logos */
.nq-partners-section .partners-item-page {
  display: flex;
}

/* Each logo item */
.nq-partners-section .partners-item {
  flex: 0 0 auto;
  width: 180px;
  height: 98px;
  margin-right: 26px;
}

.nq-partners-section .partners-item-img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.nq-partners-section .partners-item-img:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.nq-partners-section .partners-item-img img {
  width: 112px;
  max-height: 38px;
  object-fit: contain;
}

/* Animation: scroll left infinitely */
@keyframes nq-partner-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .nq-partners-section {
    padding: 48px 0 72px;
  }

  .nq-partners-section .sk-title {
    font-size: 24px;
    line-height: 34px;
  }

  .nq-partners-section .partners-item {
    width: 130px;
    height: 72px;
    margin-right: 16px;
  }

  .nq-partners-section .partners-item-img img {
    width: 82px;
    max-height: 30px;
  }

  .nq-partners-section .partners-list-container {
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nq-partners-section .partners-item-row {
    animation: none;
  }
}
