\.clients {
  padding: 10px 10px;
  height: 19rem;
  width: 100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  color:  #acffbc !important;
}

.clients__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color:  #241db8;
  margin-bottom: 30px;
  text-align: center;
}

.clients__grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 50px;
}

.clients__grid img {
  height: 10rem;
  /* object-fit: contain; */
  filter: grayscale(10%);
  opacity: 0.65;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.clients__grid img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/*@media (max-width: 900px) {
  .clients {
    padding: 40px 30px;
  }

  .clients__grid {
    gap: 30px;
  }

  .clients__grid img {
    height: 28px;
  }
}*/

/* Outer Section wrapper */
.client-carousel-wrapper {
  width: 100%;
  padding: 10px; /* Enforces 10px outer padding/margin on all corners */
  box-sizing: border-box;
}

/* Rounded image container */
.carousel-card {
  position: relative;
  width: 100%;
  height: 450px; /* Adjust height as needed */
  overflow: hidden;
  border-radius: 6px;
}

.carousel-card img {
  width: 100%;
  height: 28rem;
  object-fit: contain;
  /* Darkens image slightly so white caption text stays readable */
  filter: brightness(0.95); 
  margin-left: 0rem;
  padding-right: 1rem;

}

/* Positioned Caption at bottom center matching your image */
.carousel-caption {
  position: absolute;
  bottom: 50px; /* Keeps text above the indicators line */
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #ffffff;
  width: 80%;
  z-index: 5;
}

.carousel-caption h5 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top:1rem;
  text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.7);
margin-left: 54rem;
}

.carousel-caption p {
  font-size: 0.95rem;
  margin-bottom: 0;
  opacity: 0.9;
  text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Customizing Navigation Arrows */
.carousel-control-prev,
.carousel-control-next {
  width: 8%;
}

.carousel-indicators [data-bs-target] {
  height: 3px;
  border-radius: 2px;
}

/*@media(max-width:900px){
.carousel-card img {
    object-fit: contain;
    text-align: right;
}
.carousel-caption h5 {
text-align: end;
    margin-left: 2rem;
}
}

.carousel-caption h5 {text-align: end;
}

.carousel-card img {
width: 65%;
}


.carousel-card img {
  margin-left: 19rem;
  margin-right: auto;
  display: block;
}*/

/* Mobile View Styling (Screens smaller than 768px) */
@media (max-width: 900px) {
  .client-carousel-wrapper {
    max-width: 100%;
    padding: 0 10px;
  }

  .carousel-card {
    padding: 15px 5px 40px 5px; /* Compact padding for small screens */
  }

  .carousel-img {
    max-width: 150px;           /* Slightly smaller logo for small screens */
    height: 60px;               /* Scaled height */
  }

  .carousel-card .carousel-caption h5 {
    font-size: 0.95rem;         /* Scaled heading text */
  }

  /* Make carousel controls compact on mobile */
  .carousel-control-prev,
  .carousel-control-next {
    width: 10%;
  }

.carousel-card img {
margin-left: 0.5rem;
}

.carousel-card .carousel-caption h5 {
margin-left: 15rem;
        margin-bottom: 2rem;}
 }
