.cb-news-slider {
  background-color: var(--light-light-grey);
  padding: 1rem 0;
  overflow: hidden;
}

.cb-news-slider h2 {
  font-size: 3rem;
  position: relative;
  margin-left: calc((100% - var(--width-content)) / 2);
  line-height: 1;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.cb-news-slider h2:after {
  content: "";
  height: 3px;
  width: 136px;
  position: absolute;
  left: 0;
  bottom: -1.125rem;
  background-color: var(--black);
}
.cb-news_slider__date {
  display: inline-block;
  margin-bottom: 1.5rem;
}
.cb-news-slider h3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 1.375rem;
  line-height: 1.2em;
}
.cb-news-slider__content {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 1.5rem 0 2.25rem 0;
}

.cb-news-slider__wrapper {
  max-width: var(--width-content);
  margin-left: auto;
  margin-right: auto;
}

.cb-news-slider__wrapper.swiper.swiper-initialized {
  overflow: visible;
}

.cb-news-slider .swiper-wrapper {
  min-height: 450px;
  padding: 3rem 0;
}

.cb-news-slider .swiper-slide .cb-news-slider__img {
  width: 100%;
  background-color: var(--light-grey);
}

.cb-news-slider .swiper-slide .cb-news-slider__img.default img {
  object-fit: contain;
}

.cb-news-slider .swiper-slide {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: auto;
  /* min-height: 500px; */
}

.cb-news-slider .swiper-slide a:focus {
  border: 2px solid black;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px,
    rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px,
    rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
}

.cb-news-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  aspect-ratio: 5 / 3;
}

.cb-news-slider .swiper-slide a {
  text-decoration: none;
  color: var(--black);
  background-color: var(--white);
  padding: 1.5rem 2.8rem 2rem 2rem;
  position: relative;
  min-height: 230px;
  height: 100%;
}

.cb-news-slider .swiper-slide a svg {
  position: absolute;
  right: 2rem;
  bottom: 1.25rem;
  transition: all ease 0.3s;
}

.cb-news-slider .swiper-slide a:hover svg {
  right: 1rem;
}

.cb-news-slider .swiper-slide a span {
  position: relative;
}

.cb-news-slider .swiper-slide a span:after {
  content: "";
  height: 2px;
  width: 100%;
  position: absolute;
  left: 0;
  bottom: -4px;
  background-color: var(--yellow);
}

.cb-news-slider .swiper-slide h4 {
  margin: 1rem 0;
}

.cb-news-slider .swiper-pagination .swiper-pagination-bullet {
  border-radius: 0;
  width: 45px;
  background: var(--grey);
}

.cb-news-slider .swiper-button-next:after,
.cb-news-slider .swiper-button-prev:after {
  color: var(--black);
  background-color: rgba(220, 216, 217, 0.85);
  padding: 1rem;
  font-size: 1.5rem;
}

.cb-news-slider .swiper-button-prev {
  left: -100px;
}

.cb-news-slider .swiper-button-next {
  right: -100px;
}

.cb-slide-buttons {
  width: 40px;
  height: 62px;
  position: absolute;
  border: none;
  cursor: pointer;
}

.cb-slide-next {
  right: -100px;
  top: calc(50% - 62px / 2);
  z-index: 10;
  background-image: url("/wp-content/themes/cbra-child/assets/icons/arrow-next.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.cb-slide-prev {
  left: -100px;
  top: calc(50% - 62px / 2);
  z-index: 10;
  background-image: url("/wp-content/themes/cbra-child/assets/icons/arrow-prev.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

@media only screen and (max-width: 768px) {
  .cb-news-slider h2 {
    font-size: 2rem;
  }
  .cb-slide-buttons {
    display: none;
  }
}
