* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.news_slider_container {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  padding: 40px 10px;
}

/* Add inner container for the slider */
.slider_inner_container {
  position: relative;
  width: 100%;
}

.news_slider {
  width: 100%;
  overflow: hidden;
}

.news_wrapper {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
}

.news_item {
  flex: 0 0 100%; /* Full width on mobile */
  box-sizing: border-box;
  width: 100%;
  transform: translateX(0); /* Ensure items start from their position */
}

/* Slider Navigation Buttons */
.slider-btn_basket {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 10;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 20px;
}
.slider-btn {
  background: #2373b4;
  color: white;
  border: none;
  padding: 15px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.slider-btn:hover {
  background-color: #00bf63;
}

.prev-btn {
  left: 0;
}

.next-btn {
  right: 0;
}

@media only screen and (min-width: 200px) {
  .slider_inner_container {
    padding: 0;
  }
  .news_item {
    padding: 0 7px;
  }
  .news_item_inner {
    background-color: #dfecf3;
    margin: 0 0 90px;
    transition: all 0.3s ease;
  }
  .news_image img {
    object-fit: cover;
    width: 100%;
    height: 265px;
  }
  .news_text {
    padding: 30px 15px;
  }
  .news_date {
    color: #2373b4;
    font-size: 16px;
  }
  .news_text h3 {
    font-size: 21px;
  }
  .news_text p.news_content {
    font-size: 17px;
  }
  .news_item_inner .learn_more_text button,
  .news_item_inner .learn_more_text a {
    border: 2px solid #2e3f4c;
  }
  .news_item_inner .learn_more_text a {
    color: #2e3f4c;
  }
  .news_item_inner:hover .learn_more_arrow {
    padding: 8px 5px 8px 10px;
  }
  .news_item_inner:hover .learn_more_text {
    opacity: 1;
    visibility: visible;
  }

  .news_item_inner:hover {
    /* filter: brightness(0.9); */
    background-color: #c1ddf5;
  }

  .slider-btn i {
    color: #c7dff3;
    font-size: 19px;
  }
}

@media only screen and (min-width: 400px) {
  .news_date {
    font-size: 17px;
  }
  .news_text h3 {
    font-size: 23px;
  }
  .news_text p.news_content {
    font-size: 17px;
  }
}
@media only screen and (min-width: 600px) {
  .news_image img {
    height: 390px;
  }
  .news_text {
    padding: 35px 23px;
  }
  .news_image img {
    height: 455px;
  }
}
@media (min-width: 768px) {
  .news_item {
    flex: 0 0 50%; /* Show two items */
    padding: 0 8px;
  }
  .news_image img {
    height: 270px;
  }
}
@media only screen and (min-width: 800px) {
  .news_item {
    padding: 0 10px;
  }
  .news_image img {
    height: 260px;
  }
}
@media only screen and (min-width: 912px) {
  .news_image img {
    height: 285px;
  }
}
@media only screen and (min-width: 1024px) {
  .news_item {
    padding: 0 15px;
  }
  .news_image img {
    height: 320px;
  }
}
@media (min-width: 1280px) {
  .news_item {
    flex: 0 0 33.333%; /* Show three items */
  }
}
