/* === GENERAL CONTAINER === */
.block--news_carousel {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem) 1rem;
  background: var(--background-color, #f5f5f5);
}


.block--news_carousel .title-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.block--news_carousel .title-container .title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--text-context-color, #111);
}

.all-news a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: color .25s ease;
}

.all-news a:hover {
  color: #fff
}

/* === SWIPER CONTAINER === */
.swiper-container {
  width: 100%;
  overflow: hidden;
}

.swiper-wrapper {
  display: flex;
  align-items: stretch;
}

/* === SLIDE ITEM === */
.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: stretch;
  transition: transform 0.3s ease;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #ff3c3c, #ff6a6a);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.5);
  transition: transform .12s ease, background .25s ease, filter .2s ease;
}

.news-item {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #000;
  color: #fff;
  text-decoration: none;
  width: 100%;
  aspect-ratio: 16 / 10;
  box-shadow: 0 10px 24px rgba(0,0,0,0.15);
  transition: transform .25s ease, box-shadow .3s ease;
}

.news-item:hover {
  transform: scale(1.02);
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}

/* === IMAGE BACKGROUND === */
.news-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
  transition: filter .3s ease;
}

.news-item:hover img {
  filter: brightness(0.9);
}

/* === TITLE OVERLAY === */
.news-item h2 {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.6);
}

/* === SWIPER NAVIGATION === */
.swiper-button-next,
.swiper-button-prev {
  color: #ff3c3c !important;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  background-image: none !important;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  transition: background .25s ease, transform .2s ease;
  display: flex;
  align-items: center;
  justify-content: center;

}

.swiper-button-next i,
.swiper-button-prev i {
  font-size: 2em;
  color: #ff3c3c;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: rgba(0,0,0,0.15);
  color: #fff;
  transform: scale(1.05);
}

/* Pagination dots (optional) */
.swiper-pagination-bullet {
  background: #ff3c3c !important;
  color: #ff3c3c !important ;
  opacity: 0.6;
}
.swiper-pagination-bullet-active {
  opacity: 1;
}
