/* ==========================================================================
   Panova — Horizontal Review Marquee (Right-to-Left Running Ticker)
   ========================================================================== */

.reviews-marquee-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 3.5rem 0;
  background-color: #FAF6EF;
  border-top: 1px solid rgba(32, 12, 4, 0.06);
  border-bottom: 1px solid rgba(32, 12, 4, 0.06);
}

.reviews-marquee-topbar {
  max-width: 1200px;
  margin: 0 auto 1.5rem auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (min-width: 768px) {
  .reviews-marquee-topbar {
    padding: 0 2.5rem;
  }
}

.reviews-marquee-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0.5rem 0 1rem 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.reviews-marquee-track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  width: max-content !important;
  gap: 1.5rem;
  animation: reviewMarqueeRTL 45s linear infinite;
  will-change: transform;
}

.reviews-marquee-viewport:hover .reviews-marquee-track {
  animation-play-state: paused;
}

/* Moves from 0 to -50% to create seamless endless right-to-left flow */
@keyframes reviewMarqueeRTL {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.review-card-item {
  width: 380px;
  min-width: 380px;
  max-width: 85vw;
  flex-shrink: 0 !important;
  background-color: #FFFFFF;
  border: 1px solid rgba(32, 12, 4, 0.08);
  border-radius: 18px;
  padding: 1.35rem 1.5rem;
  box-shadow: 0 4px 18px rgba(32, 12, 4, 0.04);
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between;
  gap: 0.85rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-sizing: border-box;
}

.review-card-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(32, 12, 4, 0.08);
  border-color: rgba(184, 151, 90, 0.4);
}

@media (prefers-reduced-motion: reduce) {
  .reviews-marquee-track {
    animation: none !important;
    overflow-x: auto;
  }
}
