
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #f8f9fa;
  margin: 0;
  padding: 0;
}

.carousel-container {
  width: 100%;
  height: 60%; /* Use 60% of the viewport height */
  position: relative;
  overflow: hidden;
  background: white;
  border-radius: 0;
  box-shadow: none;
}

.carousel-buttons {
  position: absolute;
  top: 10px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 10;
  font-family: 'Segoe UI', sans-serif;
}

.carousel-buttons button {
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  padding: 8px 16px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.carousel-buttons button:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.carousel-slide {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
}

.carousel-item {
  min-width: 100%;
  height: 100%;
  text-align: center;
  position: relative;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the image fills the container while maintaining aspect ratio */
  display: block;
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(255,255,255,0.85);
  padding: 12px;
  font-size: 18px;
  color: #333;
  text-align: center;
  font-family: 'Segoe UI', sans-serif;
}

/* Devices up to 780px (small tablets / large phones) */
@media (max-width: 780px) {
  .carousel-container {
    height: 40vh;
  }

  .carousel-buttons button {
    font-size: 14px;
    padding: 6px 12px;
  }

  .carousel-caption {
    font-size: 16px;
    padding: 10px;
  }
}


@media (max-width: 600px) {
  .carousel-buttons button {
    font-size: 14px;
    padding: 6px 12px;
  }
  .carousel-container {
    height: 30vh; /* Use 60% of the viewport height */
  }
  .carousel-caption {
    font-size: 16px;
  }
}

/* Devices up to 480px (mobile phones) */
@media (max-width: 480px) {
  .carousel-container {
    height: 27vh;
  }

  .carousel-buttons button {
    font-size: 13px;
    padding: 5px 10px;
  }

  .carousel-caption {
    font-size: 15px;
    padding: 8px;
  }
}

/* Devices up to 370px (small mobile / older phones) */
@media (max-width: 370px) {
  .carousel-container {
    height: 24vh;
  }

  .carousel-buttons {
    padding: 0 10px;
  }

  .carousel-buttons button {
    font-size: 12px;
    padding: 4px 8px;
  }

  .carousel-caption {
    font-size: 14px;
    padding: 6px;
  }
}