


/* =========================================
   FAMILY FIRST - GLOBAL MOBILE BANNER
   ALL HEADINGS AT UPPER LEFT
   ========================================= */

@media (max-width: 600px) {

    body .banner.team-hero .banner_cont {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;

        display: flex !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;

        padding: 35px 0 0 !important;
    }

    body .banner.team-hero .banner_cont .container {
        position: relative !important;
        width: 100% !important;
        margin: 0 auto !important;
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    body .banner.team-hero .banner_cont h1 {
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
        transform: none !important;

        margin: 0 !important;
        line-height: 1.2 !important;

        font-size: 25px !important;
        text-align: left !important;
    }
}

/* Smaller mobile screens */

@media (max-width: 375px) {
    body .banner.team-hero .banner_cont h1 {
        font-size: 22px !important;
    }
}

/* =========================================
   FAMILY FIRST – EAP BANNER OVERLAY FIX
   Desktop + Tablet + Mobile
========================================= */

.ff-eap-hero {
    position: relative !important;
    overflow: hidden;
    isolation: isolate;
}

/* Banner image */
.ff-eap-hero picture {
    display: block;
    position: relative;
    z-index: 0;
}

.ff-eap-hero picture img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Soft gradient overlay behind heading */
.ff-eap-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;

    background: linear-gradient(
        90deg,
        rgba(247, 243, 237, 0.75) 0%,
        rgba(247, 243, 237, 0.50) 20%,
        rgba(247, 243, 237, 0.15) 42%,
        rgba(247, 243, 237, 0) 65%
    );
}

/* Keep heading above the overlay */
.ff-eap-hero .banner_cont {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
}

.ff-eap-hero .banner_cont h1 {
    position: relative;
    z-index: 3;
}

/* Tablet */
@media (max-width: 1199px) {
    .ff-eap-hero::after {
        background: linear-gradient(
            90deg,
            rgba(247, 243, 237, 0.85) 0%,
            rgba(247, 243, 237, 0.48) 35%,
            transparent 75%
        );
    }
}

/* Mobile */
@media (max-width: 600px) {
    .ff-eap-hero::after {
        background: linear-gradient(
            180deg,
            rgba(247, 243, 237, 0.88) 0%,
            rgba(247, 243, 237, 0.55) 32%,
            rgba(247, 243, 237, 0) 75%
        );
    }

    .ff-eap-hero .banner_cont {
        align-items: flex-start;
        padding-top: 35px;
    }
}
