/* Ogere Remo refinement pass 13
 * Final focused correction for Welcome vertical balance, native Elementor Security,
 * button bottom spacing and elimination of the footer gap.
 */

/* 1. Welcome to Ogere Remo: true vertical balance.
 * Earlier pass 6 rules forced the Palace column/wrappers to height:100%, which made
 * the image visually consume the section's bottom breathing room. Neutralise that here.
 */
body.page-id-20524 .ogere13-welcome-section {
    margin: 0 !important;
    padding-top: 24px !important;
    padding-bottom: 24px !important;
}

body.page-id-20524 .ogere13-welcome-section > .elementor-container {
    align-items: center !important;
}

body.page-id-20524 .ogere13-welcome-section > .elementor-container > .elementor-column {
    align-self: center !important;
}

body.page-id-20524 .ogere13-welcome-section .ogere6-welcome-palace-column,
body.page-id-20524 .ogere13-welcome-section .ogere6-welcome-palace-column > .elementor-column-wrap,
body.page-id-20524 .ogere13-welcome-section .ogere6-welcome-palace-column .elementor-widget-wrap,
body.page-id-20524 .ogere13-welcome-section .ogere6-welcome-palace-column .elementor-widget-image,
body.page-id-20524 .ogere13-welcome-section .ogere6-welcome-palace-column .elementor-widget-container {
    height: auto !important;
    min-height: 0 !important;
}

body.page-id-20524 .ogere13-welcome-section .ogere-welcome-palace img,
body.page-id-20524 .ogere13-welcome-section .ogere6-welcome-palace-image {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    display: block !important;
}

/* 2. Security & Emergency is now a real Elementor section using eGovenz section-title,
 * Elementor Text Editor widgets and Elementor Button.
 */
body.page-id-20524 .ogere13-security-section {
    margin: 0 !important;
    padding: 48px 0 26px !important;
    background: #f5f7fa !important;
}

body.page-id-20524 .ogere13-security-section .section-title-wrapper {
    margin-bottom: 30px !important;
    text-align: center !important;
}

body.page-id-20524 .ogere13-security-grid {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

body.page-id-20524 .ogere13-security-grid > .elementor-container {
    align-items: stretch !important;
}

body.page-id-20524 .ogere13-security-card {
    display: flex !important;
}

body.page-id-20524 .ogere13-security-card > .elementor-column-wrap,
body.page-id-20524 .ogere13-security-card > .elementor-widget-wrap {
    width: 100% !important;
}

body.page-id-20524 .ogere13-security-card .elementor-widget-wrap {
    height: 100% !important;
    min-height: 150px !important;
    align-content: flex-start !important;
    background: #ffffff !important;
    border-top: 2px solid #b68731 !important;
    box-shadow: 0 8px 22px rgba(14,31,53,.07) !important;
    padding: 18px 16px !important;
}

body.page-id-20524 .ogere13-security-card .elementor-widget-text-editor {
    margin-bottom: 0 !important;
}

body.page-id-20524 .ogere13-security-card-content h4 {
    margin: 0 0 15px !important;
    color: #172033 !important;
    font-family: Poppins, Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}

body.page-id-20524 .ogere13-security-card-content p {
    margin: 0 0 8px !important;
    color: #4f5968 !important;
    font-size: 12px !important;
    line-height: 1.55 !important;
}

body.page-id-20524 .ogere13-security-card-content p:last-child {
    margin-bottom: 0 !important;
}

body.page-id-20524 .ogere13-security-card-content i {
    width: 17px !important;
    margin-right: 6px !important;
    color: #b68731 !important;
    text-align: center !important;
}

body.page-id-20524 .ogere13-security-card-content a {
    color: #4f5968 !important;
    text-decoration: none !important;
}

body.page-id-20524 .ogere13-security-card-content a:hover {
    color: #b68731 !important;
}

body.page-id-20524 .ogere13-security-button {
    margin-top: 24px !important;
    margin-bottom: 0 !important;
}

body.page-id-20524 .ogere13-security-button .elementor-widget-container,
body.page-id-20524 .ogere13-security-button .elementor-button-wrapper {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Keep a small, intentional bottom breathing room below the button. */
body.page-id-20524 .ogere13-security-section > .elementor-container {
    padding-bottom: 0 !important;
}

/* 3. End-of-page/footer gap: collapse only the final page wrappers. */
body.page-id-20524 .ogere13-security-section,
body.page-id-20524 .ogere13-security-section + *,
body.page-id-20524 #content,
body.page-id-20524 #primary,
body.page-id-20524 #main,
body.page-id-20524 main.site-main,
body.page-id-20524 .site-content,
body.page-id-20524 .site-content-contain,
body.page-id-20524 .content-area,
body.page-id-20524 .content-wrapper,
body.page-id-20524 .main-content,
body.page-id-20524 .page-wrapper,
body.page-id-20524 .page-content,
body.page-id-20524 .elementor,
body.page-id-20524 .elementor-section-wrap {
    margin-bottom: 0 !important;
}

body.page-id-20524 .ogere10-site-footer {
    margin-top: 0 !important;
}

/* Hide only genuinely empty trailing Elementor sections after Security if Elementor emits one. */
body.page-id-20524 .ogere13-security-section ~ .elementor-section:empty {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

@media (max-width: 1024px) {
    body.page-id-20524 .ogere13-security-card .elementor-widget-wrap {
        min-height: 142px !important;
    }
}

@media (max-width: 767px) {
    body.page-id-20524 .ogere13-welcome-section {
        padding-top: 18px !important;
        padding-bottom: 18px !important;
    }

    body.page-id-20524 .ogere13-security-section {
        padding-top: 40px !important;
        padding-bottom: 22px !important;
    }

    body.page-id-20524 .ogere13-security-grid > .elementor-container {
        display: block !important;
    }

    body.page-id-20524 .ogere13-security-card {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 12px !important;
    }

    body.page-id-20524 .ogere13-security-card:last-child {
        margin-bottom: 0 !important;
    }

    body.page-id-20524 .ogere13-security-card .elementor-widget-wrap {
        min-height: 0 !important;
    }

    body.page-id-20524 .ogere13-security-button {
        margin-top: 18px !important;
    }
}
