#page-header {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
}

/* Remove any background images from the row */
#page-header .fl-row-content-wrap {
    background: transparent !important;
}

/* Align H2 and image to top */
#page-header .fl-col-group {
    align-items: flex-start !important;
}

/* Heading styles - targeting by ID */
#page-header #hero-heading,
#page-header #hero-heading h2,
#page-header #hero-heading .fl-heading,
#page-header #hero-heading .fl-heading-text {
    font-size: 30px !important;
    line-height: 1.2 !important;
    font-weight: normal !important;
    color: #c02d28 !important;
    font-family: "Work Sans", sans-serif !important;
    margin-bottom: 20px !important;
    margin-top: 10px !important;
    padding-bottom: 0 !important;
}

/* Target the heading module itself */
#page-header #hero-heading.fl-module {
    margin-bottom: 20px !important;
}

#page-header #hero-heading.fl-module .fl-module-content {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Text content styles - targeting by ID */
#page-header #hero-text,
#page-header #hero-text .fl-rich-text,
#page-header #hero-text .fl-rich-text p,
#page-header #hero-text p {
    color: #ffffff !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Ensure the text module below has no top margin or padding */
#page-header #hero-text.fl-module,
#page-header #hero-text.fl-module .fl-module-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Remove any spacing between the two columns' content */
#page-header .fl-col-content {
    padding-top: 0 !important;
}

/* Image styling - handles BOTH Photo module AND Image module */
#page-header .fl-photo-img,
#page-header .pp-photo-img,
#page-header .fl-module-photo img,
#page-header .fl-module-pp-image img {
    border-radius: 8px !important;
}

#page-header .fl-photo-content,
#page-header .pp-photo-content {
    border-radius: 8px !important;
    overflow: hidden !important;
}

/* Tablet adjustments */
@media (max-width: 992px) {
    #page-header #hero-heading,
    #page-header #hero-heading h2,
    #page-header #hero-heading .fl-heading,
    #page-header #hero-heading .fl-heading-text {
        font-size: 28px !important;
        margin-bottom: 18px !important;
    }

    #page-header #hero-heading.fl-module {
        margin-bottom: 18px !important;
    }
}

/* Mobile */
@media (max-width: 768px) {
    #page-header #hero-heading,
    #page-header #hero-heading h2,
    #page-header #hero-heading .fl-heading,
    #page-header #hero-heading .fl-heading-text {
        font-size: 24px !important;
        margin-top: 10px !important;
        margin-bottom: 15px !important;
    }

    #page-header #hero-heading.fl-module {
        margin-bottom: 15px !important;
    }

    #page-header #hero-text,
    #page-header #hero-text .fl-rich-text {
        font-size: 14px !important;
    }
}

@media (max-width: 538px) {
    #page-header #hero-heading,
    #page-header #hero-heading h2,
    #page-header #hero-heading .fl-heading,
    #page-header #hero-heading .fl-heading-text {
        font-size: 20px !important;
        margin-top: 10px !important;
        margin-bottom: 12px !important;
    }

    #page-header #hero-heading.fl-module {
        margin-bottom: 12px !important;
    }

    #page-header #hero-text,
    #page-header #hero-text .fl-rich-text {
        font-size: 13px !important;
    }
}