.hero {
    position: relative;
    margin-bottom: 40px;
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 800px;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    width: 80%;
    max-width: 800px;
    /* background-color: rgba(0, 0, 0, 0.5); */
    padding: 30px;
    border-radius: 8px;
} 

.carousel-caption h2 {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--white);
}

.carousel-caption p {
    font-size: 18px;
    margin-bottom: 20px;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    font-size: 24px;
    padding: 15px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-control.prev {
    left: 20px;
}

.carousel-control.next {
    right: 20px;
}

.carousel-control:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
    .hero-carousel {
        height: 400px;
    }
    
    .carousel-caption {
        padding: 20px;
    }
    
    .carousel-caption h2 {
        font-size: 24px;
    }
    
    .carousel-caption p {
        font-size: 16px;
    }
    
    .carousel-control {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}