.banners-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
}

.banners-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.banners-wrapper {
  display: flex;
  gap: 30px;
  transition: transform 0.8s ease-in-out;
  will-change: transform;
  padding-bottom: 20px;
  width: max-content;
}

.banner-item {
  flex: 0 0 auto;
  width: 100%;
  max-width: 700px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  scroll-snap-align: start;
}

.banner-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.banner-image {
  width: 100%;
  height: 100%;
  max-height: 300px;
  object-fit: cover;
}

.banner-text {
  position: absolute;
  left: 70px;
  max-width: 50%;
  z-index: 1;
}
.banner-text .banner-text-color {
  color: #f3f3f3 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.banner-text.light-bg .banner-text-color {
  color: black !important;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.2);
}

.banner-category {
  display: inline-block;
  padding: 4px 12px;
  background-color: white;
  border-radius: 20px;
  margin-bottom: 16px;
}

@media (max-width: 850px) {
  .banner-text {
    left: 20px;
    max-width: 60%;
  }
}
@media (max-width: 550px) {
  .banners-container {
    max-width: 100%;
  }
  .banner-item {
    max-width: 300px;
  }
  .banner-image {
    max-height: 170px;
  }
  .banner-text {
    left: 16px;
    max-width: 70%;
  }
  .banner-text .banner-category {
    font-size: 12px;
    margin-bottom: 10px;
  }
  .banner-text .text-heading-2 {
    font-size: 20px;
  }
  .banner-text p {
    font-size: 12px;
  }
}
