#hero-section {
  position: relative;
  height: 500px;
  /* overflow: hidden; */

  
}
.slide-section{
    background-color: black;
}

.carousel-item img {
  height: 500px;
  object-fit: cover;
  opacity: 80%;
  
}

.carousel-caption-static {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: left;
  color: white;
  z-index: 10;
  width: 59%;
   /* margin: 400px 0; */
}

.carousel-caption-static h2 {
  font-size: 2.5rem;
  font-weight: bold;
  max-width: 1400px;
}
.button-container{
  margin: 0px 400px;
  display: none;
}
.btn{
  background-color: #55828D !important;
}
.icon{
  font-size: 50px;
}
@media only screen and (max-width: 1199px) {
  .carousel-caption-static {
    width: 70%;
  }
  
  .carousel-caption-static h2 {
    font-size: 2.2rem;
  }
  
  .button-container {
    margin: 0px 200px;
  }
}

/* Medium devices (tablets) */
@media only screen and (max-width: 991px) {
  #hero-section {
    height: 450px;
  }
  
  .carousel-item img {
    height: 450px;
  }
  
  .carousel-caption-static {
    width: 80%;
  }
  
  .carousel-caption-static h2 {
    font-size: 1.8rem;
  }
  
  .button-container {
    margin: 0px 100px;
  }
}

/* Small devices (landscape phones) */
@media only screen and (max-width: 767px) {
  #hero-section {
    height: 400px;
  }
  
  .carousel-item img {
    height: 400px;
  }
  
  .carousel-caption-static {
    width: 90%;
    text-align: center;
  }
  
  .carousel-caption-static h2 {
    font-size: 1.5rem;
  }
  
  .button-container {
    margin: 0px 50px;
  }
  
  .button-container .d-flex {
    justify-content: center !important;
  }
}

/* Extra small devices (portrait phones) */
@media only screen and (max-width: 575px) {
  #hero-section {
    height: 350px;
  }
  
  .carousel-item img {
    height: 350px;
  }
  
  .carousel-caption-static {
    width: 95%;
  }
  
  .carousel-caption-static h2 {
    font-size: 1.3rem;
  }
  
  .button-container {
    margin: 0px 20px;
  }
  
  .btn {
    padding: 0.375rem 0.75rem !important;
    font-size: 0.9rem;
  }
}

/* Very small devices */
@media only screen and (max-width: 400px) {
  #hero-section {
    height: 300px;
  }
  
  .carousel-item img {
    height: 300px;
  }
  
  .carousel-caption-static h2 {
    font-size: 1.1rem;
  }
  
  .button-container .d-flex {
    gap: 0.5rem !important;
  }
  
  .btn {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.8rem;
  }
}