/*
 * Fixes for layout bugs in the reference site's Elementor design.
 * Loaded after all Elementor CSS. Keep each fix scoped to the element and breakpoint it repairs.
 */

/*
 * Bosco Juniors header (Elementor template 1522), tablet only (768–1024px).
 * The original gives the Bosco Juniors logo column 45% of the row on tablet (10% on desktop), so the
 * row (logo + menu + Don Bosco logo group) is wider than the screen: the page scrolls sideways and the
 * menu button and Don Bosco logo are pushed off the right edge. Give the logo column the same share as
 * the matching Bosco Juniors logo in the main header, so the row fits like the main header does.
 */
@media (min-width: 768px) and (max-width: 1024px) {
    .elementor-1522 .elementor-element.elementor-element-2aeaa69 {
        --width: 11%;
    }

    /*
     * The Bosco Juniors hero's decorative background shape (positioned, z-index 1) starts behind the
     * header and covers the right half of the pink quick-links bar (My Mail … School App) on tablet.
     * Keep the header above the page content.
     */
    header.elementor-1522 {
        position: relative;
        z-index: 2;
    }
}
