        /* ============================================
           familyFIRST - INDIVIDUAL BLOG REVAMP
           ============================================ */

           body {
    background-color: #F1ECE3 !important;
}

        .ff-article-page {
            --ff-espresso: #2D1F17;
            --ff-brown: #76513B;
            --ff-sage: #859F7D;
            --ff-terracotta: #C96F56;
            --ff-sand: #EDE8DF;
            --ff-beige: #D6C6B6;
            --ff-muted: #665F59;
            color: var(--ff-espresso);
        }

        .ff-article-page *,
        .ff-article-page *::before,
        .ff-article-page *::after {
            box-sizing: border-box;
        }

        /* SAME TEAM BANNER */

        .ff-article-page .banner.team-hero h1,
/* SAME TEAM BANNER */

        .ff-article-page .banner.team-hero p.ff-banner-title,
.ff-article-page .banner.team-hero p.ff-banner-title {
            color: #76513B !important;
            -webkit-text-fill-color: #76513B !important;
        }

        /*
         * Banner font size, font family,
         * position and height inherit from
         * the existing team-hero stylesheet.
         */

        /* ARTICLE INTRODUCTION */

        .ff-article-intro {
            padding: 65px 0 35px;
            background: #FFFFFF;
        }

        .ff-article-container {
            width: calc(100% - 80px);
            max-width: 1280px;
            margin: 0 auto;
        }

        .ff-article-breadcrumb {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 10px;
            font-size: 13px;
            line-height: 1.7;
            margin-bottom: 42px;
            color: var(--ff-muted);
        }

        .ff-article-breadcrumb a {
            color: var(--ff-brown);
            text-decoration: none;
        }

        .ff-article-breadcrumb a:hover {
            text-decoration: underline;
        }

        .ff-article-meta {
            display: inline-flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 10px;
            margin-bottom: 22px;
            font-size: 13px;
            font-weight: 600;
            letter-spacing: .04em;
            text-transform: uppercase;
            color: var(--ff-brown);
        }

        .ff-article-meta .ff-meta-dot {
            width: 5px;
            height: 5px;
            background: var(--ff-sage);
            border-radius: 50%;
        }

        .ff-article-title {
            max-width: 1050px;
            margin: 0 0 24px;
            color:  #76513B;
            font-size: clamp(32px, 4vw, 52px);
            line-height: 1.2;
            /* font-weight: 600; */
            letter-spacing: -.025em;
        }

        .ff-article-author {
            margin: 0 0 38px;
            color: var(--ff-muted);
            font-size: 15px;
            line-height: 1.7;
        }

        .ff-article-featured {
            margin: 0;
            overflow: hidden;
            border-radius: 12px;
            background: var(--ff-sand);
        }

        .ff-article-featured img {
            display: block;
            width: 100%;
            max-height: 550px;
            aspect-ratio: 16 / 7;
            object-fit: cover;
        }

        /* MAIN READING LAYOUT */

        .ff-article-body-section {
            padding: 0px 0 100px;
            background: #FFFFFF;
        }

        .ff-article-layout {
            display: grid;
            grid-template-columns: minmax(0, 1fr) 270px;
            gap: clamp(45px, 5vw, 90px);
            align-items: start;
        }

        .ff-article-content {
            min-width: 0;
            max-width: 850px;
        }

        .ff-article-content .cont {
            min-width: 0;
        }

        /* TYPOGRAPHY */

        .ff-article-content p {
            font-size: 17px;
            line-height: 1.9;
            color: var(--ff-muted);
            margin: 0 0 22px;
            padding: 0;
        }

        .ff-article-content h2 {
            font-size: clamp(25px, 2.5vw, 32px);
            line-height: 1.3;
            /* font-weight: 600; */
            letter-spacing: -.015em;
            color: #76513B;
            margin: 48px 0 22px;
        }

        .ff-article-content h3 {
            font-size: 20px;
            line-height: 1.45;
            font-weight: 600;
            color: var(--ff-espresso);
            margin: 24px 0 15px;
        }

        .ff-article-content strong,
        .ff-article-content b {
            color: var(--ff-espresso);
            font-weight: 600;
        }

        .ff-article-content a {
            color: var(--ff-brown);
            text-decoration: underline;
            text-underline-offset: 4px;
            overflow-wrap: anywhere;
        }

        .ff-article-content a:hover {
            color: var(--ff-terracotta);
        }

        /* LISTS */

        .ff-article-content .items-list {
            margin: 25px 0 32px;
        }

        .ff-article-content ul {
            padding-left: 25px;
            margin: 0 0 24px;
        }

        .ff-article-content li {
            font-size: 16px;
            line-height: 1.85;
            color: var(--ff-muted);
            margin-bottom: 16px;
        }

        .ff-article-content li::marker {
            color: var(--ff-sage);
        }

        /* ARTICLE NAVIGATION */

        .ff-article-sidebar {
            position: sticky;
            top: 115px;
            padding: 28px 24px;
            border-radius: 12px;
            background: #F7F4EF;
            border: 1px solid var(--ff-sand);
        }

        .ff-article-sidebar h2 {
            font-size: 14px;
            line-height: 1.4;
            font-weight: 700;
            letter-spacing: .05em;
            text-transform: uppercase;
            color: var(--ff-brown);
            margin: 0 0 18px;
        }

        .ff-article-sidebar nav {
            display: flex;
            flex-direction: column;
        }

        .ff-article-sidebar nav a {
            display: block;
            padding: 11px 0;
            border-bottom: 1px solid #E5DED5;
            color: var(--ff-muted);
            font-size: 14px;
            line-height: 1.55;
            text-decoration: none;
        }

        .ff-article-sidebar nav a:last-child {
            border-bottom: 0;
        }

        .ff-article-sidebar nav a:hover,
        .ff-article-sidebar nav a:focus-visible {
            color: var(--ff-brown);
            text-decoration: underline;
            text-underline-offset: 3px;
        }

        /* FAQ */

        .ff-article-content .blog-faq-accordion {
            margin: 30px 0 40px;
        }

        .ff-article-content .blog-faq-accordion .accordion-item {
            border: 1px solid var(--ff-sand);
            border-radius: 10px;
            margin-bottom: 12px;
            overflow: hidden;
            background: #FFFFFF;
        }

        .ff-article-content .blog-faq-accordion .accordion-header {
            margin: 0;
        }

        .ff-article-content .blog-faq-accordion .accordion-button {
            display: flex;
            align-items: center;
            width: 100%;
            padding: 20px 22px;
            border: 0;
            background: #FFFFFF;
            box-shadow: none;
            color: var(--ff-espresso);
            font-size: 16px;
            font-weight: 600;
            line-height: 1.55;
            text-align: left;
        }

        .ff-article-content .blog-faq-accordion .accordion-button:not(.collapsed) {
            background: #EDF2EA;
            color: var(--ff-brown);
            box-shadow: none;
        }

        .ff-article-content .blog-faq-accordion .accordion-button:focus {
            box-shadow: none;
        }

        .ff-article-content .blog-faq-accordion .accordion-body {
            padding: 20px 22px;
            background: #FFFFFF;
        }

        .ff-article-content .blog-faq-accordion .accordion-body p {
            font-size: 16px;
            margin-bottom: 0;
        }

        /* SOURCES */

        .ff-article-content .blog-sources {
            margin-top: 24px;
            padding: 26px 30px;
            border: 1px solid var(--ff-sand);
            border-radius: 12px;
            background: #F8F6F2;
        }

        .ff-article-content .blog-sources ul {
            margin: 0;
            padding-left: 22px;
        }

        .ff-article-content .blog-sources li {
            font-size: 15px;
            line-height: 1.8;
            margin-bottom: 13px;
            overflow-wrap: anywhere;
        }

        .ff-article-content .blog-sources li:last-child {
            margin-bottom: 0;
        }

        /* RELATED BLOGS */

        .ff-related-section {
            padding: 70px 0 100px;
            background: var(--ff-sand);
        }

        .ff-related-heading {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 25px;
            margin-bottom: 34px;
        }

        .ff-related-heading h2 {
            margin: 0;
            font-size: clamp(27px, 3vw, 38px);
            font-weight: 600;
            line-height: 1.25;
            color: var(--ff-brown);
        }

        .ff-related-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 22px;
        }

        .ff-related-card {
            display: flex;
            flex-direction: column;
            height: 100%;
            padding: 28px;
            border-radius: 12px;
            border: 1px solid rgba(45,31,23,.08);
            background: #FFFFFF;
            text-decoration: none;
            transition: transform .25s ease,
                        box-shadow .25s ease;
        }

        .ff-related-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 30px rgba(45,31,23,.08);
        }

        .ff-related-card .ff-related-meta {
            display: block;
            margin-bottom: 18px;
            color: var(--ff-brown);
            font-size: 12px;
            font-weight: 600;
            line-height: 1.6;
            text-transform: uppercase;
        }

        .ff-related-card h3 {
            margin: 0 0 25px;
            font-size: 19px;
            line-height: 1.5;
            font-weight: 600;
            color: var(--ff-espresso);
        }

        .ff-related-arrow {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin-top: auto;
            color: var(--ff-brown);
            font-size: 14px;
            font-weight: 600;
        }

        /* RESPONSIVE */

        @media (max-width: 991px) {
            .ff-article-layout {
                grid-template-columns: minmax(0, 1fr);
            }

            .ff-article-content {
                max-width: 100%;
            }

            .ff-article-sidebar {
                position: static;
                grid-row: 1;
            }

            .ff-article-sidebar nav {
                display: grid;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                column-gap: 25px;
            }

            .ff-related-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }

        @media (max-width: 680px) {
            .ff-article-container {
                width: calc(100% - 32px);
            }

            .ff-article-intro {
                padding: 40px 0 25px;
            }

            .ff-article-breadcrumb {
                margin-bottom: 28px;
            }

            .ff-article-title {
                font-size: 29px;
            }

            .ff-article-featured img {
                aspect-ratio: 4 / 3;
            }

            .ff-article-body-section {
                padding: 35px 0 60px;
            }

            .ff-article-content p {
                font-size: 16px;
                line-height: 1.8;
            }

            .ff-article-content h2 {
                font-size: 24px;
                margin-top: 38px;
            }

            .ff-article-sidebar {
                padding: 22px;
            }

            .ff-article-sidebar nav {
                grid-template-columns: 1fr;
            }

            .ff-article-content .blog-sources {
                padding: 22px;
            }

            .ff-related-section {
                padding: 55px 0 70px;
            }

            .ff-related-grid {
                grid-template-columns: 1fr;
            }

            .ff-related-card {
                padding: 24px;
            }
        }

        @media (prefers-reduced-motion: reduce) {
            .ff-related-card {
                transition: none;
            }
        }
    
        
/* ============================================
   RELATED BLOGS SIDEBAR
   Shared across individual blog pages
   ============================================ */

.ff-article-page .ff-related-sidebar {
    position: sticky;
    top: 115px;
    padding: 28px 24px;
    background: #F7F4EF;
    border: 1px solid #EDE8DF;
    border-radius: 12px;
}

.ff-article-page .ff-related-sidebar h2 {
    margin: 0 0 18px;
    color: #76513B;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: none;
}

.ff-article-page .ff-related-sidebar nav {
    display: flex;
    flex-direction: column;
}

.ff-article-page .ff-related-sidebar .ff-sidebar-blog-link {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 18px 0;
    border-bottom: 1px solid #E5DED5;
    text-decoration: none;
}

.ff-article-page .ff-related-sidebar .ff-sidebar-blog-link:first-child {
    padding-top: 6px;
}

.ff-article-page .ff-related-sidebar .ff-sidebar-blog-link:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.ff-article-page .ff-sidebar-blog-category {
    color: #859F7D;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ff-article-page .ff-sidebar-blog-title {
    color: #2D1F17;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
    transition: color .2s ease;
}

.ff-article-page .ff-sidebar-blog-date {
    color: #81766D;
    font-size: 12px;
    line-height: 1.5;
}

.ff-article-page .ff-sidebar-blog-link:hover .ff-sidebar-blog-title,
.ff-article-page .ff-sidebar-blog-link:focus-visible .ff-sidebar-blog-title {
    color: #C96F56;
}

/* RESPONSIVE */

@media (max-width: 991px) {
    .ff-article-page .ff-related-sidebar {
        position: static;
        grid-row: 2;
    }

    .ff-article-page .ff-related-sidebar nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 25px;
    }
}

@media (max-width: 680px) {
    .ff-article-page .ff-related-sidebar {
        padding: 22px;
    }

    .ff-article-page .ff-related-sidebar nav {
        grid-template-columns: 1fr;
    }
}


/* ===================================================
   BLOG LISTING PAGE (blog.php)
   Moved from inline <style> to shared css/blog.css
   =================================================== */

/* ========================================
           familyFIRST BLOG PAGE
           ======================================== */

.home-hero-clean .home-hero-shade,
.home-hero-clean .home-hero-shade h1,
.home-hero-clean .home-hero-shade p,
.home-hero-clean .home-hero-shade p.ff-banner-title {
    opacity: 1 !important;
    visibility: visible !important;
    animation: none !important;
    animation-delay: 0s !important;
    transition: none !important;
}
    

        .ff-blog-page {
            --ff-brown: #76513B;
            --ff-espresso: #2D1F17;
            --ff-sage: #859F7D;
            --ff-terracotta: #C96F56;
            --ff-sand: #EDE8DF;
            --ff-beige: #D6C6B6;
            --ff-muted: #665F59;
        }

        .ff-blog-page *,
        .ff-blog-page *::before,
        .ff-blog-page *::after {
            box-sizing: border-box;
        }

        /* ========================================
           BANNER - MATCH TEAM.PHP
           ======================================== */

        body.ff-blog-refresh
        .ff-blog-page
        .banner.team-hero h1,
/* ========================================
           BANNER - MATCH TEAM.PHP
           ======================================== */

        body.ff-blog-refresh
        .ff-blog-page
        .banner.team-hero p.ff-banner-title,
body.ff-blog-refresh
        .ff-blog-page
        .banner.team-hero p.ff-banner-title {
            color: #76513B !important;
            -webkit-text-fill-color: #76513B !important;
        }

        /*
         * Do not override banner font-size,
         * font-family, line-height or weight.
         * These come from the same team-hero
         * styling used by team.php.
         */

        /* ========================================
           BLOG CONTENT
           ======================================== */

        .ff-blog-section {
            padding: 80px 0 105px;
            background: #FFFFFF;
        }

        .ff-blog-section-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            flex-wrap: wrap;
            gap: 25px;
            margin-bottom: 35px;
        }

        .ff-blog-section-header h2 {
            color: var(--ff-brown);
            font-size: clamp(28px, 3vw, 38px);
            line-height: 1.2;
            font-weight: 600;
            margin: 0;
        }
        
        /* FILTERS */

        .ff-blog-filters {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 11px;
            padding: 0 0 32px;
            margin-bottom: 35px;
            border-bottom: 1px solid var(--ff-sand);
        }

        .ff-blog-filter {
            appearance: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border: 1px solid #D6C6B6;
            border-radius: 40px;
            background: #FFFFFF;
            color: var(--ff-espresso);
            padding: 11px 20px;
            font: inherit;
            font-size: 14px;
            font-weight: 500;
            line-height: 1.4;
            cursor: pointer;
            transition: background .2s, color .2s;
        }

        .ff-blog-filter:hover {
            background: #EDE8DF;
        }

        .ff-blog-filter.active {
            background: var(--ff-espresso);
            border-color: var(--ff-espresso);
            color: #FFFFFF;
        }

        /* GRID */

        .ff-blog-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 28px;
            align-items: stretch;
        }

        /* CARD */

        .ff-blog-card {
            display: flex;
            flex-direction: column;
            min-width: 0;
            height: 100%;
            overflow: hidden;
            background: #FFFFFF;
            border: 1px solid #EDE8DF;
            border-radius: 13px;
            transition: transform .25s ease,
                        box-shadow .25s ease,
                        border-color .25s ease;
        }

        .ff-blog-card[hidden] {
            display: none !important;
        }

        .ff-blog-card:hover {
            transform: translateY(-4px);
            border-color: #D6C6B6;
            box-shadow: 0 14px 34px rgba(45,31,23,.08);
        }

        /* COVER */

        .ff-blog-cover {
            position: relative;
            display: flex;
            align-items: flex-end;
            width: 100%;
            aspect-ratio: 16 / 10;
            overflow: hidden;
            text-decoration: none;
            background: #EDF2EA;
        }

        .ff-blog-card:nth-child(6n+2) .ff-blog-cover {
            background: #EAF1F7;
        }

        .ff-blog-card:nth-child(6n+3) .ff-blog-cover {
            background: #F5E8E6;
        }

        .ff-blog-card:nth-child(6n+4) .ff-blog-cover {
            background: #E8DFF7;
        }

        .ff-blog-card:nth-child(6n+5) .ff-blog-cover {
            background: #EDE8DF;
        }

        .ff-blog-card:nth-child(6n+6) .ff-blog-cover {
            background: #EDF2EA;
        }

        .ff-blog-cover img {
            display: block;
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform .4s ease;
        }

        .ff-blog-card:hover .ff-blog-cover img {
            transform: scale(1.04);
        }

        /*
         * Text-only cover until the exact
         * original blog image is supplied.
         */

        .ff-blog-cover-fallback {
            position: relative;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            width: 100%;
            height: 100%;
            padding: 25px;
        }

        .ff-blog-cover-label {
            font-size: 12px;
            font-weight: 600;
            letter-spacing: .08em;
            text-transform: uppercase;
            color: #76513B;
        }

        /* CARD CONTENT */

        .ff-blog-card-content {
            display: flex;
            flex: 1;
            flex-direction: column;
            padding: 26px 25px 27px;
        }

        .ff-blog-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 9px;
            align-items: center;
            margin-bottom: 15px;
            color: var(--ff-brown);
            font-size: 12px;
            font-weight: 600;
            line-height: 1.5;
        }

        .ff-blog-meta-dot {
            width: 4px;
            height: 4px;
            background: var(--ff-sage);
            border-radius: 50%;
        }

        .ff-blog-card-title {
            color: var(--ff-espresso);
            font-size: 20px;
            line-height: 1.42;
            font-weight: 600;
            margin: 0 0 15px;
        }

        .ff-blog-description {
            font-size: 15px;
            line-height: 1.75;
            color: var(--ff-muted);
            margin: 0 0 26px;
        }

        .ff-blog-read {
            display: inline-flex;
            align-items: center;
            align-self: flex-start;
            gap: 12px;
            margin-top: auto;
            color: var(--ff-brown);
            font-size: 15px;
            font-weight: 600;
            text-decoration: none;
        }

        .ff-blog-read-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 34px;
            height: 34px;
            border: 1px solid var(--ff-terracotta);
            border-radius: 50%;
            color: var(--ff-terracotta);
            font-size: 19px;
            font-weight: 400;
            transition: background .2s, color .2s;
        }

        .ff-blog-read:hover {
            color: var(--ff-terracotta);
        }

        .ff-blog-read:hover .ff-blog-read-icon {
            background: var(--ff-terracotta);
            color: #FFFFFF;
        }

        .ff-blog-filter:focus-visible,
        .ff-blog-read:focus-visible,
        .ff-blog-cover:focus-visible {
            outline: 3px solid var(--ff-sage);
            outline-offset: 3px;
        }

        /* TABLET */

        @media (max-width: 991px) {
            .ff-blog-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 22px;
            }
        }

        /* MOBILE */

        @media (max-width: 680px) {
            .ff-blog-section {
                padding: 55px 0 70px;
            }

            .ff-blog-section-header {
                margin-bottom: 25px;
            }

            .ff-blog-filters {
                gap: 8px;
                margin-bottom: 25px;
                padding-bottom: 25px;
            }

            .ff-blog-filter {
                padding: 10px 14px;
                font-size: 13px;
            }

            .ff-blog-grid {
                grid-template-columns: 1fr;
                gap: 22px;
            }

            .ff-blog-card-content {
                padding: 22px;
            }

            .ff-blog-card-title {
                font-size: 20px;
            }
        }

        @media (prefers-reduced-motion: reduce) {
            .ff-blog-card,
            .ff-blog-cover img,
            .ff-blog-read-icon,
            .ff-blog-filter {
                transition: none;
            }
        }
        
/* ==========================================
   BLOG PAGE - LAYOUT WIDTH FIX
   ========================================== */

/* Make the blog content use the available width */

.ff-blog-page .ff-blog-section > .container {
    width: calc(100% - 80px) !important;
    max-width: 1280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Three equal-sized blog cards */

.ff-blog-page .ff-blog-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 28px !important;
    width: 100% !important;
}

/* Larger, consistent card images */

.ff-blog-page .ff-blog-cover {
    width: 100%;
    aspect-ratio: 16 / 10;
}

/* Consistent spacing inside cards */

.ff-blog-page .ff-blog-card-content {
    padding: 28px;
}

/* Tablet */

@media (max-width: 991px) {
    .ff-blog-page .ff-blog-section > .container {
        width: calc(100% - 48px) !important;
    }

    .ff-blog-page .ff-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Mobile */

@media (max-width: 680px) {
    .ff-blog-page .ff-blog-section > .container {
        width: calc(100% - 32px) !important;
    }

    .ff-blog-page .ff-blog-grid {
        grid-template-columns: 1fr !important;
        gap: 22px !important;
    }

    .ff-blog-page .ff-blog-card-content {
        padding: 22px;
    }
}


/* FINAL FIX: Numbered lists in blog articles */

.ff-article-page .items-list ol {
    list-style: none;
    counter-reset: blog-steps;
    margin: 20px 0;
    padding: 0;
}

.ff-article-page .items-list ol > li {
    counter-increment: blog-steps;
    position: relative;
    list-style: none;
    padding: 18px 0 18px 28px;
}

.ff-article-page .items-list ol > li::before {
    content: counter(blog-steps) ".";
    position: absolute;
    left: 0;
    top: 18px;
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
    color: #859F7D;
    font-size: 16px;
    font-weight: 600;
}

.ff-article-page .items-list ol > li::marker {
    content: "";
}

/* =========================================
   FAMILY FIRST - GLOBAL BANNER FIX
   ========================================= */

body .banner {
    position: relative !important;
    width: 100%;
     height: 450px !important;
    min-height: 450px !important;
    max-height: 450px !important;
    overflow: hidden !important;
    padding: 0 !important;
}

/* Make the image cover the entire banner */
body .banner > img {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block;
}

/* Keep the heading above the image */
body .banner .banner_cont {
    position: absolute !important;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
}

/* Tablet */
@media (max-width: 991px) {
    body .banner {
        height: 400px !important;
        min-height: 400px !important;
        max-height: 400px !important;
    }
}

/* Mobile */
@media (max-width: 767px) {
    body .banner {
        height: 300px !important;
        min-height: 300px !important;
        max-height: 300px !important;
    }

    body .banner > img {
        object-position: 65% center !important;
    }
}

/* HOMEPAGE HERO */

.home-hero-clean {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.home-hero-image {
    display: block;
    width: 100%;
    height: auto;
}

/* TABLET */

@media (min-width: 768px) and (max-width: 1024px) {

    .home-hero-image {
        width: 100%;
        height: 420px;
        object-fit: cover;
        object-position: center;
    }

    .home-hero-shade h1,
.home-hero-shade p.ff-banner-title {
        font-size: clamp(30px, 4vw, 46px);
        line-height: 1.2;
    }
}

/* MOBILE */

@media (max-width: 767px) {

    .home-hero-image {
        width: 100%;
        height: 360px;
        object-fit: cover;
        object-position: center;
    }

    .home-hero-shade h1,
.home-hero-shade p.ff-banner-title {
        font-size: 30px;
        line-height: 1.2;
    }

    .home-hero-shade p {
        font-size: 15px;
        line-height: 1.6;
    }
}
@media (max-width: 767px) {

    /* remove heavy blurry overlay */
    .ff-article-refresh .banner::before,
    .ff-article-refresh .banner .banner_cont {
        background: linear-gradient(
    90deg,
    rgba(241, 236, 227, 0.35) 0%,
    rgba(241, 236, 227, 0.10) 28%,
    transparent 55%
) !important;
        /* backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        filter: none !important; */
    }

    /* keep image crisp */
    .ff-article-refresh .banner img {
        width: 100%;
        height: 220px; /* adjust if needed */
        object-fit: cover;
        object-position: center;
        display: block;
        /* filter: none !important; */
    }

    /* keep heading readable */
    .ff-article-refresh .banner .banner_cont {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        z-index: 2;
        padding: 0 24px;
    }

    .ff-article-refresh .banner .banner_cont h1,
.ff-article-refresh .banner .banner_cont p.ff-banner-title,
.ff-article-refresh .banner .banner_cont p.ff-banner-title {
        font-size: 22px;
        line-height: 1.2;
        color: #8B5E3C;
        max-width: 70%;
        margin: 0;
    }
}


/* =========================================
   familyFIRST - BLOG BANNER RESPONSIVE FIX
   ========================================= */

/* Scope changes to blog pages only */

body.ff-article-refresh .banner.team-hero,
body.ff-blog-refresh .banner.team-hero {
    position: relative !important;
    width: 100%;
    overflow: hidden;
}

/* Remove the inherited faded overlay */

body.ff-article-refresh .banner.team-hero .banner_cont,
body.ff-blog-refresh .banner.team-hero .banner_cont {
    background: transparent !important;
    background-image: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Clear banner image */

body.ff-article-refresh .banner.team-hero > img,
body.ff-blog-refresh .banner.team-hero > img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    filter: none !important;
}

/* TABLET */

@media (min-width: 768px) and (max-width: 991px) {

    body.ff-article-refresh .banner.team-hero,
    body.ff-blog-refresh .banner.team-hero {
        height: 360px !important;
        min-height: 360px !important;
        max-height: 360px !important;
    }

    body.ff-article-refresh .banner.team-hero > img,
    body.ff-blog-refresh .banner.team-hero > img {
        object-position: center !important;
    }
}

/* MOBILE */

@media (max-width: 767px) {

    body.ff-article-refresh .banner.team-hero,
    body.ff-blog-refresh .banner.team-hero {
        height: 260px !important;
        min-height: 260px !important;
        max-height: 260px !important;
    }

    body.ff-article-refresh .banner.team-hero > img,
    body.ff-blog-refresh .banner.team-hero > img {
        object-position: center center !important;
    }

    body.ff-article-refresh .banner.team-hero .banner_cont,
    body.ff-blog-refresh .banner.team-hero .banner_cont {
        padding: 0 20px;
    }

    body.ff-article-refresh .banner.team-hero h1,
    body.ff-blog-refresh .banner.team-hero h1,
body.ff-article-refresh .banner.team-hero p.ff-banner-title,
body.ff-blog-refresh .banner.team-hero p.ff-banner-title,
body.ff-article-refresh .banner.team-hero p.ff-banner-title,
body.ff-blog-refresh .banner.team-hero p.ff-banner-title {
        font-size: clamp(24px, 6vw, 30px);
        line-height: 1.2;
    }
}

/* =========================================
   CHILD DEVELOPMENT ASSESSMENT
   RESPONSIVE BLOG BANNER
   ========================================= */

/* DESKTOP */

body.ff-article-refresh .banner.team-hero.ff-assessment-hero {
    position: relative !important;
    width: 100% !important;
    height: 450px !important;
    min-height: 450px !important;
    max-height: 450px !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Picture fills banner */

body.ff-article-refresh .ff-assessment-hero > picture {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}

/* Image fills picture */

body.ff-article-refresh .ff-assessment-hero > picture > img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center !important;
    filter: none !important;
}

/* Heading layer */

body.ff-article-refresh .ff-assessment-hero .banner_cont {
    position: absolute !important;
    inset: 0 !important;
    z-index: 2;
    display: flex;
    align-items: center;
    width: 100% !important;
    height: 100% !important;
    background: transparent !important;
    background-image: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Remove extra overlays */

body.ff-article-refresh .ff-assessment-hero::before,
body.ff-article-refresh .ff-assessment-hero::after,
body.ff-article-refresh .ff-assessment-hero .banner_cont::before,
body.ff-article-refresh .ff-assessment-hero .banner_cont::after {
    content: none !important;
}

/* Banner title */

body.ff-article-refresh .ff-assessment-hero h1,
body.ff-article-refresh .ff-assessment-hero p.ff-banner-title {
    color: #76513B !important;
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.2;
    font-weight: 600;
    margin: 0;
}


/* =========================================
   TABLET
   ========================================= */

@media (min-width: 768px) and (max-width: 1199px) {

    body.ff-article-refresh .banner.team-hero.ff-assessment-hero {
        height: 360px !important;
        min-height: 360px !important;
        max-height: 360px !important;
    }

    body.ff-article-refresh .ff-assessment-hero > picture > img {
        object-position: center center !important;
    }

    body.ff-article-refresh .ff-assessment-hero h1,
body.ff-article-refresh .ff-assessment-hero p.ff-banner-title {
        font-size: clamp(32px, 4vw, 46px);
    }
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 767px) {

    body.ff-article-refresh .banner.team-hero.ff-assessment-hero {
        height: 300px !important;
        min-height: 300px !important;
        max-height: 300px !important;
    }

    body.ff-article-refresh .ff-assessment-hero > picture > img {
        object-fit: cover !important;
        object-position: 52% center !important;
    }

    body.ff-article-refresh .ff-assessment-hero .banner_cont {
        align-items: flex-start !important;
        padding: 35px 0 0 !important;
    }

    body.ff-article-refresh .ff-assessment-hero .banner_cont .container {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    body.ff-article-refresh .ff-assessment-hero h1,
body.ff-article-refresh .ff-assessment-hero p.ff-banner-title {
        font-size: clamp(26px, 7vw, 34px);
        line-height: 1.2;
        max-width: 90%;
    }
}

/* =========================================
   MENTAL HEALTH BLOG RESPONSIVE BANNER
   ========================================= */

/* Desktop */

body.ff-article-refresh .banner.team-hero.ff-mental-health-hero {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 450px !important;
    min-height: 450px !important;
    max-height: 450px !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Picture wrapper */

body.ff-article-refresh .ff-mental-health-hero > picture {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
}

/* Banner image */

body.ff-article-refresh .ff-mental-health-hero > picture > img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center center !important;
    filter: none !important;
}

/* Heading overlay */

body.ff-article-refresh .ff-mental-health-hero .banner_cont {
    position: absolute !important;
    inset: 0 !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;

    background: transparent !important;
    background-image: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Remove inherited banner effects */

body.ff-article-refresh .ff-mental-health-hero::before,
body.ff-article-refresh .ff-mental-health-hero::after,
body.ff-article-refresh .ff-mental-health-hero .banner_cont::before,
body.ff-article-refresh .ff-mental-health-hero .banner_cont::after {
    content: none !important;
}

/* Heading */

body.ff-article-refresh .ff-mental-health-hero h1,
body.ff-article-refresh .ff-mental-health-hero p.ff-banner-title {
    color: #76513B !important;
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.2;
    font-weight: 600;
    margin: 0;
}


/* =========================================
   TABLET: 601px TO 1199px
   ========================================= */

@media (min-width: 601px) and (max-width: 1199px) {

    body.ff-article-refresh .banner.team-hero.ff-mental-health-hero {
        height: 360px !important;
        min-height: 360px !important;
        max-height: 360px !important;
    }

    body.ff-article-refresh .ff-mental-health-hero > picture > img {
        object-position: center !important;
    }

    body.ff-article-refresh .ff-mental-health-hero h1,
body.ff-article-refresh .ff-mental-health-hero p.ff-banner-title {
        font-size: clamp(30px, 4vw, 46px);
    }
}


/* =========================================
   MOBILE: 600px AND BELOW
   ========================================= */

@media (max-width: 600px) {

    body.ff-article-refresh .banner.team-hero.ff-mental-health-hero {
        height: 350px !important;
        min-height: 350px !important;
        max-height: 350px !important;
    }

    body.ff-article-refresh .ff-mental-health-hero > picture > img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center 65% !important;
    }

    body.ff-article-refresh .ff-mental-health-hero .banner_cont {
        align-items: flex-start !important;
        padding: 107px 0 0 !important;
    }

    body.ff-article-refresh .ff-mental-health-hero .banner_cont .container {
        width: 100%;
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    body.ff-article-refresh .ff-mental-health-hero h1,
body.ff-article-refresh .ff-mental-health-hero p.ff-banner-title {
        font-size: clamp(24px, 6vw, 30px);
        max-width: 90%;
        line-height: 1.2;
    }
}


/* =========================================
   THERAPY BLOG - RESPONSIVE BANNER
   ========================================= */

body.ff-article-refresh .banner.team-hero.ff-therapy-blog-hero {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 450px !important;
    min-height: 450px !important;
    max-height: 450px !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Picture container */

body.ff-article-refresh .ff-therapy-blog-hero > picture {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
}

/* Banner image */

body.ff-article-refresh .ff-therapy-blog-hero > picture > img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center center !important;
    filter: none !important;
}

/* Heading layer */

body.ff-article-refresh .ff-therapy-blog-hero .banner_cont {
    position: absolute !important;
    inset: 0 !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;

    background: transparent !important;
    background-image: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Remove inherited overlay effects */

body.ff-article-refresh .ff-therapy-blog-hero::before,
body.ff-article-refresh .ff-therapy-blog-hero::after,
body.ff-article-refresh .ff-therapy-blog-hero .banner_cont::before,
body.ff-article-refresh .ff-therapy-blog-hero .banner_cont::after {
    content: none !important;
}

/* Heading */

body.ff-article-refresh .ff-therapy-blog-hero h1,
body.ff-article-refresh .ff-therapy-blog-hero p.ff-banner-title {
    color: #76513B !important;
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.2;
    margin: 0;
}


/* TABLET */

@media (min-width: 601px) and (max-width: 1199px) {

    body.ff-article-refresh .banner.team-hero.ff-therapy-blog-hero {
        height: 360px !important;
        min-height: 360px !important;
        max-height: 360px !important;
    }
}


/* MOBILE - 600px and below */

@media (max-width: 600px) {

    body.ff-article-refresh .banner.team-hero.ff-therapy-blog-hero {
        height: 350px !important;
        min-height: 350px !important;
        max-height: 350px !important;
    }

    body.ff-article-refresh .ff-therapy-blog-hero > picture > img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center 65% !important;
    }

    body.ff-article-refresh .ff-therapy-blog-hero .banner_cont {
        align-items: flex-start !important;
        padding: 30px 0 0 !important;
    }

    body.ff-article-refresh .ff-therapy-blog-hero .banner_cont .container {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    body.ff-article-refresh .ff-therapy-blog-hero h1,
body.ff-article-refresh .ff-therapy-blog-hero p.ff-banner-title {
        font-size: 26px;
        max-width: 90%;
        line-height: 1.2;
    }
}


/* =========================================
   FAMILY FIRST - BLOG BANNER SOFT BLUR EFFECT
   Applies to blog listing and individual blogs
   ========================================= */

/* DESKTOP */

body.ff-blog-refresh .ff-blog-page .banner.team-hero .banner_cont,
body.ff-article-refresh .ff-article-page .banner.team-hero .banner_cont {
    background: linear-gradient(
        90deg,
        rgba(241, 236, 227, 0.70) 0%,
        rgba(241, 236, 227, 0.45) 30%,
        rgba(241, 236, 227, 0.18) 55%,
        transparent 78%
    ) !important;

    background-image: linear-gradient(
        90deg,
        rgba(241, 236, 227, 0.70) 0%,
        rgba(241, 236, 227, 0.45) 30%,
        rgba(241, 236, 227, 0.18) 55%,
        transparent 78%
    ) !important;

    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* TABLET */

@media (max-width: 991px) {

    body.ff-blog-refresh .ff-blog-page .banner.team-hero .banner_cont,
    body.ff-article-refresh .ff-article-page .banner.team-hero .banner_cont {
        background: linear-gradient(
            90deg,
            rgba(241, 236, 227, 0.60) 0%,
            rgba(241, 236, 227, 0.32) 50%,
            transparent 92%
        ) !important;
    }
}

/* MOBILE */

@media (max-width: 600px) {

    body.ff-blog-refresh .ff-blog-page .banner.team-hero .banner_cont,
    body.ff-article-refresh .ff-article-page .banner.team-hero .banner_cont {
        background: linear-gradient(
            90deg,
            rgba(241, 236, 227, 0.50) 0%,
            rgba(241, 236, 227, 0.25) 60%,
            transparent 100%
        ) !important;
    }
}
