/* Reset footer positioning and margins to prevent overlapping */
footer,
.site-footer,
.wp-block-template-part > footer,
#colophon {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    margin-top: 50px !important;
    transform: none !important;
    clear: both !important;
    z-index: 10 !important;
}

/* Ensure the main content wrapper doesn't pull the footer up with negative margins */
main,
.site-main,
#content,
.wp-site-blocks > main {
    margin-bottom: 0 !important;
}

/* Target negative margins on the last section before the footer if any */
main > *:last-child,
.site-main > *:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 2rem !important;
}