.stories-marquee-outer {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.stories-marquee-inner {
  display: flex;
  gap: 2rem; /* spacing between cards */
  animation: marquee-scroll 45s linear infinite;
  padding: 1rem 0;
}

.story-card {
  flex: 0 0 360px; /* FIX: lock width so cards don't collapse */
  padding: 1.2rem 1.4rem;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  font-size: 0.95rem;
  line-height: 1.55;
  color: #444;
  white-space: normal; /* FIX: allow text to break normally */
}

.story-card p {
  margin: 0;
  font-style: italic;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Mobile fix */
@media (max-width: 576px) {
  .story-card {
    flex: 0 0 260px;
    padding: 1rem 1rem;
  }
}


/* Stories slider container */
.stories-slider {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.5rem 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Horizontal scroll track */
.stories-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

/* Scrollbar (optional styling) */
.stories-track::-webkit-scrollbar {
  height: 6px;
}
.stories-track::-webkit-scrollbar-track {
  background: transparent;
}
.stories-track::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 3px;
}

/* Story card — clean version for marquee */
.story-card {
  flex-shrink: 0;
  width: 260px;
  margin: 0 15px;
  padding: 18px 20px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  border: 1px solid #eee;
  font-size: 0.95rem;
  line-height: 1.55;
}

/* For larger screens, slightly wider but still narrow */
@media (min-width: 992px) {
  .story-card {
    width: 280px;
  }
}
