/* ========================================
   HOME HERO (Homepage with video)
   ======================================== */

.rhima-home-hero {
    position: relative;
    width: 100%;
    min-height: 350px;
    max-height: 750px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #000;
    padding-top: 10px;
    margin: 0;
}

/* Hide YouTube lazy load in home hero */
.rhima-home-hero .youtube-lazy-load {
    display: none !important;
}

/* Video Background (video tag or iframe) */
.hero-video {
    position: absolute;
    top: -100px;
    left: 600px;
    width: 100%;
    height: 100%;
    z-index: 1;
    object-fit: cover;
    pointer-events: none;
    transform: translateY(-100px);
}

/* For iframes (YouTube/Vimeo) */
.hero-video[src*="youtube"],
.hero-video[src*="vimeo"] {
    width: 70vw;
    height: 56.25vw;
    /* 16:9 aspect ratio */
    min-height: 100vh;
    min-width: 177.77vh;
    /* 16:9 aspect ratio */
}

/* Gradient Overlay (same as page hero) */
.rhima-home-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(130deg, var(--dmn-secondary, #FFD500) 0%, var(--dmn-secondary, #FFD500) 40%, transparent 100%);
    z-index: 2;
}

/* PNG Overlay Image */
.rhima-home-hero-overlay-image {
    position: absolute;
    top: 80px;
    right: 320px;
    width: 20%;
    height: 100%;
    z-index: 9;
    pointer-events: none;
    object-fit: contain;
    object-position: right center;
    filter: drop-shadow(0 30px 20px rgba(0, 0, 0, 0.4));
}

/* Container */
.rhima-home-hero-container {
    position: relative;
    z-index: 4;
    max-width: var(--dmn-site-width, 1280px);
    margin: 0 auto;
    /* Zelfde zijmarge als .default-content, anders begint de herotekst op een
       andere lijn dan de inhoud eronder. Zie het blok onderaan style.css. */
    padding: 0 10px;
    width: 100%;
}

@media (max-width: 1340px) {
    .rhima-home-hero-container {
        padding: 0 var(--dmn-container-padding, 20px);
    }
}

/* Content */
.rhima-home-hero-content {
    max-width: 50%;
    padding: 200px 0;
    color: #fff;
}

.rhima-home-hero-title {
    font-size: var(--dmn-h1-size, 3em);
    font-weight: var(--dmn-h1-weight, 700);
    color: #ffffff !important;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.rhima-home-hero-subtitle {
    font-size: var(--dmn-text, 1.2em);
    color: #fff !important;
    margin: 0 0 40px 0;
    max-width: 600px;
    line-height: 1.6;
}

/* Button */
.rhima-home-hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--dmn-button-padding, 16px 40px);
    border-radius: var(--dmn-button-radius, 25px);
    font-weight: var(--dmn-button-weight, 600);
    font-size: var(--dmn-button-size, 18px);
    text-decoration: none;
    transition: all 0.3s ease;
}

.rhima-button-primary {
    background: var(--dmn-primary, #004AAD);
    color: #fff;
}

.rhima-button-primary:hover {
    background: var(--dmn-primary, #003580);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.rhima-button-secondary {
    background: var(--dmn-secondary, #FFD500);
    color: var(--dmn-text, #111);
}

.rhima-button-secondary:hover {
    background: var(--dmn-secondary, #FFC700);
    color: var(--dmn-text, #111);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.rhima-button-white {
    background: #fff;
    color: var(--dmn-primary, #004AAD);
}

.rhima-button-white:hover {
    background: #fff;
    color: var(--dmn-primary, #004AAD);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Wave (same as page hero) */
.rhima-home-hero .rhima-hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 5;
    pointer-events: none;
    transform: scaleX(-1);
}

.rhima-home-hero .rhima-hero-wave svg {
    width: 100%;
    height: 100%;
    display: block;
}

@media (min-width: 1024px) and (max-width: 1400px) {
    .rhima-home-hero-overlay-image {
        right: 30px !important;
        width: 40% !important;
    }

    .rhima-home-hero .rhima-hero-wave {
        height: 275px;
    }

}

@media (min-width: 1501px) and (max-width: 1600px) {
    .rhima-home-hero-overlay-image {
        right: -50px;
    }
}

/* Mobile */
@media (max-width: 900px) {
    .rhima-home-hero {
        min-height: 400px;
        padding-top: 100px;
    }

    .rhima-home-hero-container {
        padding: 10px var(--dmn-container-padding, 20px);
    }

    .rhima-home-hero-overlay {
        background: linear-gradient(130deg, var(--dmn-secondary, #FFD500) 0%, var(--dmn-secondary, #FFD500) 60%, transparent 100%);
    }

    .rhima-home-hero-content {
        max-width: 100%;
        padding: 30px 0px 70px 20px;
    }

    .rhima-home-hero-title {
        font-size: 2em;
    }

    .rhima-home-hero-subtitle {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .rhima-home-hero-button {
        font-size: 16px;
        padding: 14px 32px;
    }

    .rhima-home-hero .rhima-hero-wave {
        height: 80px;
    }

    .rhima-home-hero-overlay-image {
        display: none;
    }
}