.counter-item i {
  font-size: 50px;
  color: #4aab3d;
}

.heading__layout2 p {
  text-align: justify;
}

.carousel-fade .carousel-item {
  opacity: 0;
  transition: opacity 0.7s ease-in-out;
}

.carousel-fade .carousel-item.active {
  opacity: 1;
  transition: opacity 0.7s ease-in-out;
}

/* Text overlay with black shadow background */
.carousel-caption.custom-caption {
  background-color: rgb(75 173 62 / 63%);
  padding: 8px 15px;
  border-radius: 8px;
  bottom: 10%;
  top: auto;
  width: 50%;
  margin: 0 auto;
  text-align: center;
}

/* Headings and paragraph styling */
.carousel-caption h5 {
  color: white;
  margin: 0;
  font-size: 2rem;
}

.carousel-caption p {
  color: white;
  margin: 0;
  font-size: 1rem;
}

/* Force text to center */
.carousel-caption {
  text-align: center;
}

/* ✅ Responsive adjustments */
@media (max-width: 768px) {
  .carousel-caption.custom-caption {
    width: 90%; /* full width on small screens */
    padding: 10px;
  }

  .carousel-caption h5 {
    font-size: 1rem;
  }

  .carousel-caption p {
    font-size: 0.5rem;
  }
   .slider+.features-layout4{
    margin-top: 10px;
  }
  .carousel-caption{
    left: 3%;
  }
}

@media (max-width: 480px) {
  .carousel-caption.custom-caption {
    width: 95%;
    bottom: 10%;
  }

  .carousel-caption h5 {
    font-size: 0.95rem;
  }

  .carousel-caption p {
    font-size: 0.5rem;
  }
  .carousel-caption{
    left: 3%;
  }
  .slider+.features-layout4{
    margin-top: 10px;
  }
}
