/* Carousel container */

html {
  scroll-behavior: smooth;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 550px;
  overflow: hidden;
  background-color: white;
}

.carousel-images {
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1s ease-in-out;
}

/* Text overlay - center the text */
.carousel-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: black;
  text-align: center;
  z-index: 1;
  font-family: Arial, Helvetica, sans-serif;
}

.small-text {
  font-size: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.small-text i {
  margin-right: 8px;
  font-size: 18px;
}

.large-text {
  font-size: 40px;
  font-weight: bold;
  margin-top: 10px;
}

/* Navigation buttons */
.carousel-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

button {
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  font-size: 24px;
  cursor: pointer;
}

button:focus {
  outline: none;
}

button:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

button.prev {
  left: 20px;
}

button.next {
  right: 20px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .large-text {
    font-size: 20px;
  }

  .small-text {
    font-size: 12px;
  }

  .carousel-container {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .large-text {
    font-size: 18px;
  }

  .small-text {
    font-size: 10px;
  }

  .carousel-container {
    height: 250px;
  }
}