html,
body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
}

.carousel-item {
  position: relative;
  height: 100vh;
  /* Ensure the carousel item covers the full viewport height */
  overflow: hidden;
  /* Prevent overflow */
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Ensure the image covers the area */
  transition: transform 0.5s ease;
  /* Smooth transition for zoom effect */
}

.carousel-item:hover img {
  transform: scale(1.1);
  /* Zoom in on hover */
}

.carousel-caption {
  background: rgba(0, 0, 0, 0.7);
  padding: 1rem;
  border-radius: 0.5rem;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 90%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.carousel-caption h5 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  /* Responsive font size */
  line-height: 1.2;
  margin-bottom: 1rem;
  max-width: 100%;
}

.carousel-caption p {
  font-size: clamp(1rem, 2.5vw, 1.75rem);
  /* Responsive font size */
  line-height: 1.4;
  margin-bottom: 1.5rem;
  max-width: 100%;
}

.carousel-caption a {
  font-size: clamp(0.75rem, 2vw, 1.25rem);
  /* Responsive font size */
  padding: 0.5rem 1rem;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .carousel-caption h5 {
    font-size: clamp(1.25rem, 3vw, 2rem);
    /* Adjusted for smaller screens */
  }

  .carousel-caption p {
    font-size: clamp(0.875rem, 2vw, 1.25rem);
    /* Adjusted for smaller screens */
  }

  .carousel-caption a {
    font-size: clamp(0.75rem, 1.5vw, 1rem);
    /* Adjusted for smaller screens */
  }
}

.footer {
  background-color: #f8f9fa;
  text-align: center;
}
