/* -------------------------------------------------------------------------
   matajir-h1-scoped.css
   Visual-safe fallback for H1s changed by the SEO rebuild.

   Root-cause fix:
   the previous selector targeted every Oxence advanced-heading .main-heading,
   including non-H1 headings across the site. This version only targets
   actual visible H1 elements, preserving the original Elementor typography
   for all h2/h3/h4/etc widgets.
   ------------------------------------------------------------------------- */

/* Oxence advanced-heading hero H1 fallback only. */
.elementor-widget-oxence-advanced-heading h1.main-heading {
    font-size: 49px;
    line-height: 1.2;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
@media (max-width: 767px) {
    .elementor-widget-oxence-advanced-heading h1.main-heading {
        font-size: 24px;
        line-height: 1.7em;
    }
}

/* Elementor built-in heading H1 fallback only. */
.elementor-widget-heading h1.elementor-heading-title {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Text-editor pages: H1 lives inside an Elementor text-editor widget. */
.elementor-widget-text-editor .elementor-widget-container > h1:first-child {
    font-size: 32px;
    line-height: 1.35;
    margin: 0 0 20px;
}

/* Blog-listing page: H1 injected by the child-theme loop_start filter. */
.matajir-blog-h1-wrap .matajir-blog-h1 {
    font-size: 32px;
    line-height: 1.35;
    margin: 0;
}
