.carousel {
    position: relative;
    width: 100%;
    max-width: 800px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin: 150px auto 0; /* Centralize the carousel and add top margin */
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    display: flex;
    will-change: transform;
}

.carousel-image {
    width: 100%;
    flex: 0 0 100%;
}

.carousel-button {
    background-color: rgba(255, 255, 255, 0.7);
    color: #333;
    border: none;
    cursor: pointer;
    padding: 15px;
    font-size: 24px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    transition: background-color 0.3s;
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

.carousel-button:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 480px){
    .carousel{
        width: 90%;
        margin: 100px auto 0; 
    }
}

.hero {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    position: relative;
}