.desktop-only {
  display: block;
 }

.mobile-only {
  display: none;
}

.carousel-container {
  background-color: #C7475D;
  position: relative;
  overflow: hidden;
  padding-bottom: 3rem;
}

.carousel-title {
  color: #FFFFFF;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 2rem;
  line-height: 3.0625rem;
  width: auto;
  height: 3.0625rem;
  margin-top: 2.8125rem;
  margin-left: 0;
}

.carousel-description {
  color: #FFFFFF;
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: 1.25rem;
  line-height: 1.6669rem;
  width: 54.875rem;
  height: 6.6875rem;
  margin-top: 1.875rem;
}

strong {
  font-weight: 600;
}

.carousel.slide {
  display: none !important;
}

.carousel {
  width: auto;
  height: 28.8125rem;
  margin: 3.0625rem auto 2.5625rem auto;
}

.logo {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: 100%;
  max-height: 100%;
  z-index: 0;
  width: 34rem;
  height: 22.875rem;
  transform: translate(45.8%, -24%);
  display: none !important;
}

.carousel-inner {
  display: flex;
  position: relative;
  overflow: hidden;
  width: 58.125rem;
  height: 26.375rem;
  transition: transform 0.5s ease;
  margin-left: 0;
}

.carousel-item {
  overflow: hidden;
  position: relative;
  display: block;
  flex: 0 0 22.1875rem;
  margin: 0 0 0 2rem;
  border-radius: 0.3125rem;
  width: 22.1875rem;  
  height: 26.375rem;  
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-item:first-child {
  margin-left: 0;
}

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2; 
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(16, 46, 59, 0) 0%, #102E3B 76.92%, #102E3B 100%);
}

.carousel-caption {
  position: absolute;
  text-align: center;
  z-index: 3;
  font-weight: 600;
  font-size: 1.5rem;
  bottom: 1.25rem;
  left: 0.9375rem;
  right: 0.9375rem;
  color: #C7475D;
}

.carousel-control-prev {
  margin-left: -3.75rem;
}

.carousel-control-next {
  margin-right: -3.75rem;
}

.carousel-control-prev,
.carousel-control-next {
  position: absolute;
  background: none;
  border: none;
  cursor: pointer;
  transform: translateY(-50%);
  top: 50%;
  width: 2rem;
  height: 2rem;
  opacity: 0.2;
  z-index: 10;
}

.carousel-indicators {
  gap: 1.5rem;
  z-index: 1; 
  height: 0.9375rem;
  width: auto;
  display: flex;
  justify-content: center; 
  align-items: center;    
  margin: 1rem auto 0 auto;
}

.carousel-indicators li {
  width: 0.9375rem;
  height: 0.9375rem;
  border-radius: 50%;
  background-color: #FFFFFF;
}

.carousel-indicators li.active {
  background-color: #102E3B;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  .carousel-container {
    width: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .carousel-text-container {
    width: 334px;
    height: auto;
    margin: 0 auto;
    text-align: center;
  }

  .carousel-title {
    font-size: 1.5rem;
    line-height: 36px;
    margin-top: 24px;
    text-align: center;
    width: auto;
    height: auto;
  }

  .carousel-description {
    font-size: 1rem;
    line-height: 1.3334rem;
    width: auto;
    height: auto;
    margin-top: 1rem;
    text-align: center;
  }

  .carousel {
    width: 100%;
    overflow-x: auto;
    width: 335px; 
    height: auto;
  }

  .carousel-inner {
    width: 335px; 
    height: 316px;
    display: flex;
    overflow: hidden;
  }

  .carousel-item {
    width: 250px;
    height: auto;
    flex: 0 0 250px;
    display: block;
  }

  .carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .carousel-indicators,
  .carousel-control-prev,
  .carousel-control-next {
    display: none;
  }

  .logo {
    width: 124px;
    height: 184px;
    top: 33%;
    left: 53%;
    z-index: 0;
  }

}