/* Server-specific fixes for carousel */
.hero-section {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.carousel-item {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.carousel-image-container {
    position: relative;
    height: 500px; /* Fixed height for desktop */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.carousel-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center; /* Explicitly center both horizontally and vertically */
    max-width: 100%;
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 5px;
    max-width: 80%;
    margin: 0 auto;
    left: 0;
    right: 0;
    bottom: 20px;
    text-align: center;
}

/* Mobile Responsiveness for Carousel */
@media (max-width: 768px) {
    .carousel-image-container {
        height: 300px; /* Smaller height for mobile */
    }
    
    .carousel-caption h2 {
        font-size: 1.5rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .carousel-image-container {
        height: 250px; /* Even smaller height for very small devices */
    }
    
    .carousel-caption {
        padding: 10px;
        max-width: 90%;
        bottom: 10px;
    }
    
    .carousel-caption h2 {
        font-size: 1.2rem;
        margin-bottom: 5px;
    }
    
    .carousel-caption p {
        font-size: 0.8rem;
        margin-bottom: 5px;
    }
    
    .carousel-caption .btn {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
}
