.custom-carousel-container {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  height: 400px;
  
  padding-top: 90px;
}

.custom-carousel {
  display: flex;
  transition: transform 0.5s ease;
  
}

.carousel-item {
  flex: 0 0 23%; /* around 4 items per row with some spacing */
  margin: 0 1%;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  position: relative;
  height: 350px;
}





.carousel-item img {
  width: 100%;
  display: block;
  height: 350px;
  object-fit: cover;
}




.carousel-content {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding-bottom: 20px;
  color: #fff !important;
  
  text-align: center;
 
}


.carousel-btn {
  
  margin-top: 10px;
  background: #1449ff;
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 14px;
}

/* Position controls in top right */
.carousel-controls {
  position: absolute;
  top: 0px;
  right: 20px;
  display: flex;
  gap: 10px;
  z-index: 10;
}

.carousel-prev,
.carousel-next {
  background: #1C4594;
  color: #fff;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 30px;
  transition: background 0.3s;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(0,0,0,0.8);
}


.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

@media (max-width: 1200px) {
  .carousel-item {
    flex: 0 0 33.3333%;
    height: 320px;
    border-radius: 12px;
  overflow: hidden;
  background: #fff;
  position: relative;
  
  margin: 0; /* remove percentage margins */
  }
}

/* 2 items */
@media (max-width: 900px) {
  .carousel-item {
    flex: 0 0 50%;
    height: 300px;
    border-radius: 12px;
  overflow: hidden;
  background: #fff;
  position: relative;
  margin: 0; /* remove percentage margins */
  }
}

/* 1 item */
@media (max-width: 600px) {
  .carousel-item {
    flex: 0 0 100%;
    height: auto; /* allow image height to auto-adjust */
    border-radius: 12px;
  overflow: hidden;
  background: #fff;
  position: relative;
  
  margin: 0; /* remove percentage margins */
  }
  .carousel-item img {
    height: auto;
  }
}



.image-wrapper {
  position: relative;
  width: 100%;
  height: 350px;
  border-radius: 12px;
  overflow: hidden;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-wrapper .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* bluish overlay */
  opacity: 5;
  transition: opacity 0.3s ease;
}

.image-wrapper:hover .overlay {
  opacity: 1;
}