/* 1. Main Wrapper */
.fh-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    padding-bottom: 20px;
}

/* 2. Hero Container */
.fh-hero {
    position: relative;
    overflow: hidden; 
    
    /* Device Vars */
    height: var(--fh-h-d, 80vh);
    width: var(--fh-w-d, 100%);
    border-radius: var(--fh-r-d, 0px);
    
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    color: #fff;
    transform: translateZ(0);
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
}

/* 3. Video Layers */
.fh-video-layer {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; 
    pointer-events: none;
    overflow: hidden;
    background: #000; /* Ensure black bg while loading */
}

/* Ensure native video fills space */
.fh-native-video {
    width: 100% !important; 
    height: 100% !important; 
    object-fit: cover !important;
    display: block;
    position: absolute;
    top: 0; left: 0;
}

.fh-iframe-crop { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none; }
.fh-iframe-crop iframe {
    position: absolute; top: 50%; left: 50%;
    width: 300%; height: 100%; 
    transform: translate(-50%, -50%);
    aspect-ratio: 16/9; border: 0;
}

.fh-poster-img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center; z-index: -1;
}

/* Device Switching Logic */
.fh-show-mobile { display: none; }
.fh-show-desktop { display: block; }

@media (max-width: 768px) {
    .fh-show-desktop { display: none; }
    .fh-show-mobile { display: block; }
}

/* Overlay */
.fh-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: #000; opacity: var(--fh-o, 0.4); z-index: 1;
}

/* 4. CONTENT & ANIMATIONS */
.fh-content {
    position: relative; z-index: 2; text-align: center;
    padding: 20px; max-width: 900px;
}

@keyframes fh-fade-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.fh-headline {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* ADDED !important TO FIX SLIDER ISSUE */
    font-size: var(--fh-fs-h-d, 60px) !important;
    
    font-weight: 800;
    margin: 0 0 20px 0;
    line-height: 1.1;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    
    /* Animation */
    opacity: 0;
    animation: fh-fade-up 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.1s;
}

.fh-subhead {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* ADDED !important TO FIX SLIDER ISSUE */
    font-size: var(--fh-fs-s-d, 20px) !important;
    
    color: rgba(255,255,255,0.95);
    margin-bottom: 35px;
    line-height: 1.6;
    
    /* Animation */
    opacity: 0;
    animation: fh-fade-up 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.3s;
}

.fh-btn-wrapper {
    /* Animation */
    opacity: 0;
    animation: fh-fade-up 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.5s;
}

.fh-btn {
    display: inline-block;
    padding: 18px 40px;
    background: #fff;
    color: #000;
    text-decoration: none;
    border-radius: 50px;
    
    /* ADDED !important TO FIX SLIDER ISSUE */
    font-size: var(--fh-fs-b-d, 16px) !important;
    
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.fh-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    background: #f8f8f8;
}

/* 5. Mobile Overrides */
@media (max-width: 768px) {
    .fh-hero {
        height: var(--fh-h-m, 60vh);
        width: var(--fh-w-m, 100%);
        border-radius: var(--fh-r-m, 0px);
    }
    .fh-headline { font-size: var(--fh-fs-h-m, 32px) !important; }
    .fh-subhead  { font-size: var(--fh-fs-s-m, 16px) !important; }
    .fh-btn      { font-size: var(--fh-fs-b-m, 14px) !important; }
}