/* ===============================
   MAIN WIDGET CONTAINER
================================ */
.stories-widget {
  background: #f9f9f9;
  padding: 20px;
  overflow: hidden;
}

/* ===============================
   HEADER (TITLE + DESCRIPTION)
================================ */
.stories-widget__header h2 {
  margin: 0 0 5px 0;
  font-size: 1.6em;

  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
  font-size: 1.6rem;
  font-weight: 600;
  color: #f36608;
  text-transform: uppercase;
  margin-top: 10px;
}

/* Decorative shape before title */
.stories-widget__header h2::before {
  content: '';
  width: 14px;
  height: 10px;
  background: #f5a623;
  clip-path: polygon(0 0, 80% 0, 100% 50%, 80% 100%, 0 100%);
}

/* Decorative dotted line after title */
.stories-widget__header h2::after {
  content: '';
  flex-grow: 1;
  height: 6px;
  background-image: radial-gradient(circle, #f5a623 2px, transparent 2px);
  background-size: 10px 6px;
  background-repeat: repeat-x;
}

.stories-widget__header p {
  margin: 0 0 15px 0;
  color: #555;
  font-size: 0.95em;

  color: #666;
  margin-bottom: 32px;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.75;
  padding-left: 30px;
}

/* ===============================
   HORIZONTAL SLIDER
================================ */
.stories-widget__slider {
  display: flex;
  overflow-x: auto;
  gap: 24px;
  scroll-behavior: smooth;
  padding-bottom: 10px;
}

/* Desktop scrollbar styling */
.stories-widget__slider::-webkit-scrollbar {
  height: 6px;
}

.stories-widget__slider::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 3px;
}

/* ===============================
   STORY CARD
================================ */
.story-card {
  flex: 1 1 calc(33.333% - 10px);
  background: #fff;
  padding: 10px;

  display: flex;
  flex-direction: column;

  background: linear-gradient(90deg, #fff3e8, #fffaf5);
  border: 1px solid rgba(255, 107, 8, 0.25);
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  overflow: hidden;
  padding-bottom: 10px;
}

/* Card image */
.story-card__image img {
  width: 100%;
  height: auto;
  border-radius: 4px;

  height: 180px;
  object-fit: cover;
}

/* Card title */
.story-card__title {
  margin: 10px 0 5px 0;
  font-size: 1.1em;

  font-size: 18px;
  margin: 12px 0 6px;
}

.story-card__title a {
  text-decoration: none;
  color: #222;
}

/* Card excerpt / description */
.story-card__excerpt {
  font-size: 0.9em;
  color: #555;
  flex-grow: 1;

  color: #666;
  font-size: 16px;
  margin-bottom: 10px;
}

/* Read more link */
.story-card__link {
  color: #ff7a00;
  font-weight: 600;
  padding-left: 20px;
}

/* ===============================
   MAIN BUTTON
================================ */
.stories-widget__btn {
  position: relative;
  display: flex;
  z-index: 1;

  margin: 24px auto;
  margin-top: 32px;
  background: #ff7a00;
  font-weight: 600;
  color: #fff;
  padding: 14px 28px;
  text-decoration: none;
  text-shadow: 2px 2px 4px rgb(0 0 0 / .5);
  box-shadow: 0 6px 14px rgb(255 107 8 / .35);
  width: fit-content;
}

/* Button hover state */
.stories-widget__btn:hover {
  color: #fff;
  background: #e96b10;
  box-shadow: 0 10px 22px rgb(255 107 8 / .45);
}

/* Decorative dotted lines around button */
.stories-widget__btn::before,
.stories-widget__btn::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 100vw;
  height: 6px;
  transform: translateY(-50%);
  background-image: radial-gradient(circle, #ff7a00 2px, transparent 2px);
  background-size: 10px 6px;
  background-repeat: repeat-x;
  z-index: -1;
}

.stories-widget__btn::before {
  right: 100%;
  margin-right: 16px;
}

.stories-widget__btn::after {
  left: 100%;
  margin-left: 16px;
}

/* ===============================
   MOBILE: FORCE HORIZONTAL SCROLL
================================ */
@media (max-width: 768px) {
  .stories-widget__slider {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .story-card {
    flex: 0 0 85%;   /* one big card per swipe */
    max-width: 85%;
  }
}
