/**
 * CureX + Elementor compatibility styles.
 */

.curex-elementor-page {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

body.curex-elementor-active .curex-elementor-page,
body.elementor-page .curex-elementor-page {
    overflow: visible;
}

/* Full-width Elementor sections inside the theme shell */
.curex-elementor-page .elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 1400px;
}

.curex-elementor-page .elementor-section.elementor-section-stretched {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* Prevent theme containers from constraining Elementor output */
.curex-elementor-page .elementor,
.curex-elementor-page .elementor-inner,
.curex-elementor-page .elementor-section-wrap {
    width: 100%;
    max-width: 100%;
}

/* Keep header/footer visible but out of the editor overlay stack */
body.elementor-editor-active .site-header,
body.elementor-editor-active .header-top,
body.elementor-editor-active .newsletter-section,
body.elementor-editor-active .site-footer {
    position: relative;
    z-index: 0;
}

/* Editor preview iframe: give the drop zone visible height */
body.elementor-editor-preview .curex-elementor-page,
.elementor-editor-preview .curex-elementor-page {
    min-height: 400px;
}

/* Hide duplicate page title when Elementor handles the layout */
.curex-elementor-page .page-title,
.curex-elementor-page .page-content-inner > .page-title {
    display: none;
}
