/* Ensure no default browser margins push your hero content */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
}
/* Update these styles in your stylesheet */

/* 1. Make the container fill the screen correctly */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    overflow: hidden;
}

/* 2. Style the slide container to ensure it covers the hero section */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Use display: none only if your JS is toggling this. 
       If you see nothing, try commenting this out temporarily to debug. */
    display: none; 
    z-index: 1;
}

/* 3. Force the media to cover the area */
.hero-media {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crucial: ensures image/video fills container */
    display: block;
}
/* Unified style for Video and Image to ensure they both fill the screen */
.hero-video, .hero-image {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover; /* This is the critical fix for your whitespace issue */
    transform: translate(-50%, -50%);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 20px;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .hero-section {
        height: 60vh;
    }
    .hero-content {
        padding: 0 20px;
    }
    .hero-content h1 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 12px;
    }
    .hero-content p {
        font-size: 1rem;
        line-height: 1.4;
    }
}