/* نوار نظرات نمونه؛ حرکت با CSS transform ترکیب‌شده و کنترل دسترس‌پذیر. */
.hx-stories {
  --story-gap: 24px;
  --story-width: clamp(280px, 29vw, 368px);
}
.hx-stories .hx-testimonial-heading {
  align-items: end;
  gap: 32px;
}
.hx-stories .hx-testimonial-heading > div:first-child {
  max-width: 680px;
}
.hx-stories .hx-testimonial-heading h3 {
  margin-block: 12px;
}
.hx-stories .hx-testimonial-heading p {
  font-size: 14px;
}
.hx-stories-viewport {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding-block: 4px 20px;
  direction: ltr;
  scroll-padding: 4px;
}
.hx-stories[data-enhanced="true"] .hx-stories-viewport {
  overflow-x: hidden;
}
.hx-stories-track,
.hx-story-group {
  display: flex;
  width: max-content;
}
.hx-story-group {
  gap: var(--story-gap);
  padding-inline-end: var(--story-gap);
  flex: 0 0 auto;
  align-items: stretch;
}
.hx-story-card {
  width: var(--story-width);
  min-height: 340px;
  flex: 0 0 var(--story-width);
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
}
.hx-story-card .hx-demo {
  font-size: 11px;
  align-self: start;
}
.hx-story-card .hx-story-copy {
  font-size: 16px;
  line-height: 1.8;
  margin-block: 4px 28px;
}
.hx-story-card .hx-person {
  margin-block-start: auto;
}
.hx-story-card .hx-label {
  font-size: 12px;
}
.hx-story-card .hx-quote-mark {
  font-size: 52px;
  margin-block: 16px 0;
}
.hx-story-avatar {
  display: block;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 50%;
  background-color: var(--hx-raised);
  background-image: url("../../images/home/customer-portrait-samples.webp");
  background-size: 500% 200%;
  background-repeat: no-repeat;
  border: 2px solid rgba(167, 139, 250, 0.35);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.05);
}
.hx-story-avatar--0 {
  background-position: 0 0;
}
.hx-story-avatar--1 {
  background-position: 25% 0;
}
.hx-story-avatar--2 {
  background-position: 50% 0;
}
.hx-story-avatar--3 {
  background-position: 75% 0;
}
.hx-story-avatar--4 {
  background-position: 100% 0;
}
.hx-story-avatar--5 {
  background-position: 0 100%;
}
.hx-story-avatar--6 {
  background-position: 25% 100%;
}
.hx-story-avatar--7 {
  background-position: 50% 100%;
}
.hx-story-avatar--8 {
  background-position: 75% 100%;
}
.hx-story-avatar--9 {
  background-position: 100% 100%;
}
.hx-stories [data-stories-pause][aria-pressed="true"] {
  border-color: #a78bfa;
}
html[dir="rtl"] .hx-stories .hx-carousel-controls {
  flex-direction: row-reverse;
}
@media (max-width: 767px) {
  .hx-stories {
    --story-width: min(82vw, 360px);
    --story-gap: 16px;
  }
  .hx-stories .hx-testimonial-heading {
    align-items: start;
    gap: 24px;
  }
  .hx-story-card {
    padding: 24px;
  }
  .hx-stories .hx-carousel-controls {
    align-self: flex-end;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hx-stories-viewport {
    scroll-snap-type: x proximity;
  }
  .hx-stories-track {
    transform: none !important;
  }
}
