.carousel-wrapper {
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-left: 10px;
  margin-right: 10px;
  /* Wrap the carousels on smaller screens */
}

/* .carousel-container {
  width: 95% !important;
  position: relative;
  overflow: hidden;
  text-align: center;
  display: flex;
  align-items: center;
} */
.carousel-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.carousel-slides {
  display: flex;
  transition: transform 700ms ease-in-out;
}

/* .carousel-slide {
  min-width: 100%;
  box-sizing: border-box;
  position: relative;
  padding-bottom: -100px;
} */
.carousel-slide {
  min-width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: center; 
  align-items: center; 
  position: relative;
}

.carousel-image-container img {
  width: 100%;
  /* Ensure the images take up the full container width */
  height: auto;
  /* Maintain aspect ratio */
}

.carousel-slide img {
  width: 100%;;
  height: 400px;
  object-fit: cover;
  display: block;
  border-radius: 10px; /* This makes the image corners rounded */
  margin: 0 auto; /* Center horizontally */
}
.carousel-caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: white;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 10px;
  border-radius: 5px;
  width: 80%;
  opacity: 0; /* Hide captions by default */
  transition: opacity 0.5s ease;
  padding-left: 20px;
}

.carousel-image-container {
  position: relative;
  display: inline-block;
  width: 100%;
}

.carousel-text-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 24px;
  background-color: rgba(0, 0, 0, 0.5);
  animation-name: fadeInUp;
  opacity: 1;
  transition: opacity 0.3s ease;
  /* transition: opacity 0.5s ease-in-out; */
  padding: 10px;
}

.carousel-text-overlay.fading {
  opacity: 0;
}

.carousel-image-container:hover .carousel-text-overlay {
  opacity: 1;
}

.carousel-nav button {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #e4e4e4;
  color: rgb(142, 142, 142);
  border: none;
  padding: 10px;
  cursor: pointer;
  transform: translateY(-50%);
  z-index: 1;
  font-size: 15px;
  border-radius: 50%;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 20px 25px -5px, rgba(0, 0, 0, 0.04) 0px 10px 10px -5px;
}

.carousel-nav button:hover {
  background-color: #3fd0d4;
  color: black;
}

#prevInternationalBtn {
  left: 10px;
}

#nextInternationalBtn {
  right: 10px;
}

#prevDomesticBtn {
  left: 10px;
}

#nextDomesticBtn {
  right: 10px;
}

.slide_title {
  display: flex;
  gap: 600px;
  padding-top: 30px;
  text-align: center;
  justify-content: center;

}

.slide_title h3 {
  color: #3fd0d4;
}

@media (max-width: 768px) {
  .carousel-wrapper {
    flex-direction: row;
    /* Arrange title and carousel side by side */
    justify-content: space-between;
    align-items: center;
  }

  .slide_title {
    margin-bottom: 0;
    /* Remove bottom margin when title is beside the carousel */
    margin-right: 30px;
    /* Optional: add space between title and carousel */
  }

  .carousel-container {
    width: 100%;
    /* Make each carousel take up full width */
  }

  .slide_title h3 {
    color: #3fd0d4;
    font-size: 25px;
  }

  .carousel_flex {
    display: flex;
    flex-direction: column !important;
    align-items: center;
  }

  .carousel-text-overlay {
    font-size: 20px;
  }
}
