/* ===================================
   NEWS SLIDER COMPONENT
   =================================== */

/* Component Container */
.news-slider {
  color: #fff;
  margin-bottom: 1rem;
  position: relative;
}

/* Header Elements */
.news-slider h2 {
  font-size: 1em;
  font-weight: 600;
  text-align: left;
  margin: 0 0 0.5em 0;
}

.news-slider p {
  color: #656A7B;
  font-size: 0.75em;
  font-weight: 400;
  text-align: left;
  margin: 0;
}

/* Carousel Breakout Container */
.carousel-breakout {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* Carousel List */
.news-slider .carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 20px;
  gap: 1rem;
  padding: 0 20px 1rem;
  margin: 0;
  list-style: none;
}

/* Individual Slides */
.news-slider .slide {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
}

.news-slider figure {
  margin: 0;
  padding: 0;
}

/* Slide Items */
.news-slider .item {
  width: 190px;
  height: 160px;
  aspect-ratio: 190/160;
  background-size: cover;
  background-position: center;
  border-radius: 1rem;
  scroll-snap-align: start;
  position: relative;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  overflow: hidden;
}

/* Gradient Overlay */
.news-slider .item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom, 
    rgba(0, 0, 0, 0) 60%, 
    rgba(0, 0, 0, 0.85) 100%
  );
  z-index: 1;
}

/* Item Title */
.news-slider .item-title {
  position: relative;
  z-index: 2;
  color: #fff;
  width: 100%;
  padding: 1rem;
  border-radius: 0 0 1rem 1rem;
  font-size: 0.9em;
  font-weight: 600;
  text-align: left;
  box-sizing: border-box;
}

/* Responsive adjustments for larger screens */
@media (min-width: 500px) {
  .carousel-breakout {
    width: auto;
    position: static;
    margin: 0;
  }

  .news-slider .carousel {
    padding-left: 0;
    padding-right: 0;
    scroll-padding: 0;
  }
}