/* =========================
   MOBILE HERO FIX - EMPIRE
========================= */
 
@media (max-width: 575px) {
 
    /* HERO CONTAINER */
    .hubble-inner-hero,
    .sppb-section {
        padding: 60px 20px !important;
        text-align: center !important;
    }
 
    /* MAIN TITLE */
    .hubble-hero-title h1,
    h1 {
        font-size: clamp(22px, 6vw, 30px) !important;
        line-height: 1.2 !important;
        margin-bottom: 10px !important;
    }
 
    /* SUBTITLE */
    .hubble-hero-title h2,
    h2 {
        font-size: clamp(16px, 4.5vw, 20px) !important;
        line-height: 1.3 !important;
        margin-bottom: 20px !important;
    }
 
    /* BUTTON SPACING */
    .sppb-btn {
        display: inline-block !important;
        margin: 6px 5px !important;
        padding: 12px 18px !important;
        font-size: 14px !important;
    }
 
    /* HERO BACKGROUND FIX */
    .sppb-section,
    .hubble-inner-hero {
        background-position: center center !important;
        background-size: cover !important;
    }
 
    /* DARK OVERLAY FOR READABILITY */
    .hubble-inner-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0.45);
        z-index: 1;
    }
 
    /* KEEP TEXT ABOVE OVERLAY */
    .hubble-inner-hero * {
        position: relative;
        z-index: 2;
    }
}

/* =========================================
   EMPIRE CHEESE - MOBILE HERO CLEANUP
========================================= */
@media (max-width: 575px) {
 
    /* Header / logo area */
    #sp-header,
    #sp-top-bar {
        padding-top: 4px !important;
        padding-bottom: 4px !important;
    }
 
    #sp-header .logo img,
    #sp-logo img {
        max-width: 180px !important;
        height: auto !important;
    }
 
    /* Hero section */
    .sppb-section,
    .sppb-addon-single-image,
    .sppb-addon-text-block {
        box-sizing: border-box;
    }
 
    /* Adjust the hero row/section */
    .empire-hero,
    .home-hero,
    .hero-section {
        min-height: 420px !important;
        padding: 40px 20px 50px !important;
        background-size: cover !important;
        background-position: center center !important;
        position: relative !important;
        text-align: center !important;
    }
 
    /* Dark overlay for readability */
    .empire-hero::before,
    .home-hero::before,
    .hero-section::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.35);
        z-index: 1;
    }
 
    .empire-hero > *,
    .home-hero > *,
    .hero-section > * {
        position: relative;
        z-index: 2;
    }
 
    /* Main hero heading */
    .empire-hero h1,
    .home-hero h1,
    .hero-section h1 {
        font-size: clamp(28px, 7vw, 38px) !important;
        line-height: 1.12 !important;
        margin-bottom: 14px !important;
        text-align: center !important;
    }
 
    /* Subtitle */
    .empire-hero h2,
    .home-hero h2,
    .hero-section h2,
    .empire-hero .sppb-addon-text-block p,
    .home-hero .sppb-addon-text-block p,
    .hero-section .sppb-addon-text-block p {
        font-size: clamp(18px, 4.8vw, 24px) !important;
        line-height: 1.3 !important;
        margin-bottom: 20px !important;
        text-align: center !important;
    }
 
    /* Buttons */
    .empire-hero .sppb-btn,
    .home-hero .sppb-btn,
    .hero-section .sppb-btn {
        display: inline-block !important;
        min-width: 150px !important;
        margin: 6px 6px !important;
        padding: 12px 18px !important;
        font-size: 14px !important;
        line-height: 1.2 !important;
    }
 
    /* If buttons stack, make it intentional */
    .empire-hero .sppb-btn + .sppb-btn,
    .home-hero .sppb-btn + .sppb-btn,
    .hero-section .sppb-btn + .sppb-btn {
        margin-top: 10px !important;
    }
}