.article-slider {
  padding: 48px 0 64px;
  text-align: center;
  overflow: hidden;
}

@media (min-width: 768px) {
  .article-slider {
    padding: 64px 0 80px;
  }
}


/* Slider wrapper — full bleed, no constraints */
.article-slider__slider-wrapper {
  overflow: visible;
}

/* Embla structure */
.article-slider__embla {
  position: relative;
}

.article-slider__viewport {
  overflow: visible;
}

.article-slider__container {
  display: flex;
  align-items: stretch;
  touch-action: pan-y pinch-zoom;
}

.article-slider__slide {
  flex: 0 0 390px;
  padding: 0 10px;
  box-sizing: border-box;
  position: relative;
  height: 435px;
}

@media (max-width: 767px) {
  .article-slider__slide {
    flex: 0 0 64%;
    padding: 0 6px;
    height: 260px;
  }
}

/* Centering when not enough items to fill viewport */
.article-slider__container--center {
  justify-content: center;
}

/* Card styles */
.article-slider__card {
  display: block;
  height: 100%;
  border-radius: 11px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 18px 36px rgba(13, 21, 50, 0.25);
}

.article-slider__card:hover {
  opacity: 0.95;
}

/* Image wrapper */
.article-slider__image-wrapper {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 11px;
}

.article-slider__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Overlay */
.article-slider__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(13, 21, 50, 0) 0%, rgba(13, 21, 50, 0.55) 45%, rgba(13, 21, 50, 0.85) 100%);
  display: flex;
  align-items: flex-end;
  gap: 12px;
  color: #FFFFFF;
}

.article-slider__text {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.article-slider__label {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 6px;
}

.article-slider__subheading {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  opacity: 0.9;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-slider__btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #FBFBFB;
  color: var(--color-primary, #2C2E83);
}

/* Controls */
.article-slider__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1380px;
  margin: 28px auto 0;
  padding: 0 1rem;
}

.article-slider__nav {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-primary, #2C2E83);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FBFBFB;
  transition: opacity 0.2s ease;
}

.article-slider__nav:hover {
  opacity: 0.8;
}

.article-slider__pagination {
}

.article-slider__pill {
  max-width: 40px;
  height: 6px;
  background: rgba(44, 46, 131, 0.2);
}

.article-slider__pill.is-active {
  background: var(--color-primary, #2C2E83);
}

.article-slider__pill:hover:not(.is-active) {
  background: rgba(44, 46, 131, 0.4);
}

/* Tablet adjustments */
@media (max-width: 1023px) {
  .article-slider__slide {
    flex-basis: 340px;
    height: 380px;
  }

  .article-slider__overlay {
    padding: 14px 16px;
    gap: 10px;
  }

  .article-slider__label {
    font-size: 14px;
  }

  .article-slider__subheading {
    font-size: 11px;
  }

  .article-slider__btn {
    width: 30px;
    height: 30px;
  }

  .article-slider__btn svg {
    width: 10px;
    height: 10px;
  }

  .article-slider__controls {
    margin-top: 24px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .article-slider__overlay {
    padding: 16px;
    gap: 12px;
  }

  .article-slider__label {
    font-size: 14px;
    margin-bottom: 4px;
  }

  .article-slider__subheading {
    font-size: 11px;
    -webkit-line-clamp: 2;
  }

  .article-slider__btn {
    width: 32px;
    height: 32px;
  }

  .article-slider__btn svg {
    width: 12px;
    height: 12px;
  }

  .article-slider__controls {
    margin-top: 20px;
  }

  .article-slider__pill {
    max-width: 32px;
    height: 5px;
  }
}
