.carousel {
    position: relative;
    margin: 0;
    padding: 0;
    line-height: 0;
    font-size: 0; /* Remove whitespace between elements */
}

.carousel-inner {
    line-height: 0;
    font-size: 0;
}

.carousel-item {
    height: 600px;
    line-height: 0;
    font-size: 0;
    background-size: cover;
    background-position: center;
}

.carousel-item img {
    width: 100%;
    vertical-align: bottom;
    object-fit: fill; /* Remove bottom space */
}

.carousel-caption {
    background: rgba(255, 255, 255, 0.8);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    bottom: auto;
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    text-align: center;
}

.carousel-caption h2 {
    color: #333;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.carousel-caption p {
    color: #555;
    font-size: 1.2rem;
    font-weight: 500;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.carousel-indicators {
    bottom: 30px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .carousel-item {
        height: 225px;
    }

    .carousel-item img {
        height: 200px;
        object-fit: fill;
    }
    
    .carousel-caption {
        padding: 20px;
        max-width: 90%;
    }

    .carousel-caption h2 {
        font-size: 1.8rem;
    }

    .carousel-caption p {
        font-size: 1rem;
    }
    
    /* Reset font size for carousel controls */
    .carousel-control-prev,
    .carousel-control-next,
    .carousel-indicators {
        font-size: 1rem;
        line-height: normal;
    }
}