#hero {
    background: url('HD-wallpaper-see-2019-jason-momoa.jpg') no-repeat center center/cover;
    height: 50vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #FFFFFF; 
    position: relative;
    padding: 15px; 
    overflow: hidden;
}

/* New slideshow container for background images */
.hero-slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; 
}

.hero-slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: translateX(100%); 
    transition: transform 1s ease-in-out; 
}

.hero-slide-item.current {
    transform: translateX(0); 
}

.hero-slide-item.leaving {
    transform: translateX(-100%); 
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6); 
    z-index: 1; 
}

.hero-content {
    position: relative;
    z-index: 2; 
    max-width: 90%; 
    padding: 15px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 10px; 
}

#hero h2 {
    font-size: 1.8em; 
    margin-bottom: 10px; 
    color: #FFFFFF; 
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7); 
}

#hero p {
    font-size: 0.9em; 
    margin-bottom: 20px; 
    color: #FFFFFF; 
}

/* Mobile adjustments */
@media (max-width: 480px) {
    #hero {
        height: 40vh; 
        padding: 10px; 
    }

    #hero h2 {
        font-size: 1.4em; 
        margin-bottom: 8px; 
    }

    #hero p {
        font-size: 0.8em; 
        margin-bottom: 15px; 
    }
}