/* Styling for the services-image-slider section */
.services-image-slider {
  /* background-color: #f5f5f5; */
  height: 300px;
  /* padding: 20px; */
  margin: 40px 0;
  overflow: hidden;
  position: relative;
}

/* Style for the container of sliding images */
.slider-content {
  display: flex;
  /* Set a width large enough to accommodate all images */
  width: 100%; /* For two images, use 200%, for three, use 300%, and so on */
  animation: slideImages 10s linear infinite; /* Default duration for larger screens */
  margin-top: 0;
}

/* Style for each slide */
.slide {
  position: relative;
  flex: 1;
  width: 100%;
  max-width: 479px;
  margin: 0 20px;
  display: flex;
  flex-direction: column;
  height: 307px;
}

/* Style for the images within the slider */
.slider-content img {
  /* max-width: 314px; */
  max-height: 611px;
  margin: 0 10px; /* Add margin or padding to separate the images if necessary */
  width: 500px;
  object-fit: cover;
  background-size: cover;
  height: 300px;
}

/* Style for the overlay containing icons and text */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.5); /* Adjust overlay background color and opacity */
  color: white; /* Text color on the overlay */
  opacity: 0; /* Initially hidden */
  transition: opacity 0.3s ease;
}

.icon {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Style for the icons within the overlay */
.icon img {
  width: 120px; /* Adjust icon width as needed */
  height: 120px; /* Adjust icon height as needed */
  margin-bottom: 10px; /* Spacing between icon and text */
}

/* Style for the text within the overlay */
.overlay p {
  margin: 0;
}

/* Hover effect to show the overlay */
.slide:hover .overlay {
  opacity: 1;
}

/* Keyframes for the sliding animation on larger screens */
@keyframes slideImages {
  0% {
    transform: translateX(-33%);
  }
  50% {
    transform: translateX(-83%);
  }
  100% {
    transform: translateX(-33%);
  }
}

/* Media query for smaller screens (e.g., max-width: 600px) */


@media screen and (max-width: 768) {
  /* Modify animation for smaller screens */
  
  .slider-content {
    animation: slideImagesSmall 5s linear infinite; /* Adjust duration as needed for smaller screens */
  }

  /* Keyframes for the smaller screens animation */
  
  @keyframes slideImagesSmall {
    0%, 100% {
      transform: translateX(-33%);
    }
    50% {
      transform: translateX(-83%);
    }
  }
}
