.carousel-container-new {
  position: relative;
  width: 95%;
  max-width: 95%;
  margin: 0 auto 20px auto;
  border-radius: 10px;
  overflow: hidden;

}

.carousel-new {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-inner-new {
  display: flex;
  transition: transform 0.8s ease-in-out; /* Smooth animation for sliding */
  width: calc(300% + 30px); /* Adjusted for margin */
}

.img-main{
  border-radius: 10px;
}

.carousel-inner-new img {
  width: calc(33.33% - 10px); /* Each image takes 1/3 of the carousel-inner width minus margin */
  margin: 0 20px;
  flex-shrink: 0;
  height: 100%;
  max-height: 500px;
  border-radius: 10px;
  object-fit: cover;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50px;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 100;
}

.prev-new {
  left: 10px;
}

.next-new {
  right: 10px;
}

/* Media query for mobile screens */
@media (max-width: 768px) {
  .carousel-inner {
    width: calc(100% + 10px); /* Adjusted for margin */
  }

  .carousel-inner img {
    width: calc(100% - 10px); /* Each image takes full width of the carousel-inner minus margin */
  }
}
