/* Story Carousel Styles */
.story-card {
  margin-top: 12px !important;
  margin-bottom: 16px !important;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.story-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.story-card-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.story-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.story-card:hover .story-card-image img {
  transform: scale(1.05);
}

.story-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.story-card-title {
  margin-bottom: 12px;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-card-title a {
  text-decoration: none;
  font-weight: 700;
}


.story-card-subtitle {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.story-card-read-more {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.story-card-read-more {
  text-decoration: none;
}

.story-card-arrow {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.story-card-read-more:hover .story-card-arrow {
  transform: translateX(4px);
}

.story-carousel .splide__arrows {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  @media screen and (max-width: 767px) {
    justify-content: center;
  }
}
.story-carousel .splide__arrow {
  position: initial;
  transform: none;
}

.story-carousel .splide__arrow--prev svg {
    transform: none; 
}

.story-carousel-wrapper .splide__pagination {
  bottom: -40px;
  padding: 0;
  display: flex !important;
  left: unset;
  right: 104px;
  bottom: 10px;
  @media screen and (max-width: 767px) {
    justify-content: center;
    left: 0;
    right: 0;
    bottom: -30px;
  }
}

.story-carousel .splide__pagination__page {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--ohto-pale-blue, #F6FBFC);
  border: 2px solid var(--ohto-medium-brown, #655A4D);
  opacity: 0.5;
  margin: 0 4px;
  transition: all 0.3s ease;
}

.story-carousel .splide__pagination__page.is-active {
  background-color: var(--ohto-red, #975936);
  border-color: var(--ohto-red, #975936);
  opacity: 1;
  transform: scale(1.2);
}

/* Can uncomment in case we want tags + date on story cards */
/* .story-card-meta {
  display: flex;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--ohto-pale-blue, #F6FBFC);
} */

/* .story-card-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background-color: var(--ohto-pale-gold, #F8F3E8);
  color: var(--ohto-red, #975936);
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
} */

/* .story-card-tag::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background-image: url('/themes/comewander2022/img/icons/icon-tag.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-right: 6px;
} */