/* Ogere Remo refinement pass 15
 * Focused final homepage corrections plus a consistent content-start standard.
 */

/* 1. Welcome to Ogere Remo: reduce opening space, preserve a clear bottom gap,
 * and make the existing portrait crop materially shorter in the right column.
 */
body.page-id-20524 .ogere15-welcome-section {
    margin: 0 !important;
    padding-top: 6px !important;
    padding-bottom: 30px !important;
}

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

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

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

body.page-id-20524 .ogere15-welcome-palace {
    width: 76% !important;
    max-width: 76% !important;
    margin: 0 auto !important;
}

body.page-id-20524 .ogere15-welcome-palace img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
}

/* 2. Upcoming Events: keep the native eGovenz widget but allow enough clearance
 * above its date badges, centre the three-card row and equalise visual heights.
 */
body.page-id-20524 .ogere15-events-section {
    margin: 0 !important;
}

body.page-id-20524 .ogere15-events-section .elementor-widget-egovenzevent {
    width: 100% !important;
    max-width: 1120px !important;
    margin: 52px auto 0 !important;
}

body.page-id-20524 .ogere15-events-section .elementor-widget-egovenzevent > .elementor-widget-container {
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Theme event wrappers differ slightly by layout/version. These selectors are intentionally
 * restricted to the native event widget and cover the theme's row/carousel structures.
 */
body.page-id-20524 .ogere15-events-section .elementor-widget-egovenzevent .row,
body.page-id-20524 .ogere15-events-section .elementor-widget-egovenzevent .events-row,
body.page-id-20524 .ogere15-events-section .elementor-widget-egovenzevent .event-row,
body.page-id-20524 .ogere15-events-section .elementor-widget-egovenzevent .owl-stage {
    align-items: stretch !important;
    justify-content: center !important;
}

body.page-id-20524 .ogere15-events-section .elementor-widget-egovenzevent .owl-stage {
    display: flex !important;
}

body.page-id-20524 .ogere15-events-section .elementor-widget-egovenzevent .owl-item {
    display: flex !important;
    height: auto !important;
}

body.page-id-20524 .ogere15-events-section .elementor-widget-egovenzevent article,
body.page-id-20524 .ogere15-events-section .elementor-widget-egovenzevent .event-inner,
body.page-id-20524 .ogere15-events-section .elementor-widget-egovenzevent .events-inner,
body.page-id-20524 .ogere15-events-section .elementor-widget-egovenzevent .event-wrap,
body.page-id-20524 .ogere15-events-section .elementor-widget-egovenzevent .events-wrap,
body.page-id-20524 .ogere15-events-section .elementor-widget-egovenzevent .event-item,
body.page-id-20524 .ogere15-events-section .elementor-widget-egovenzevent .events-item {
    height: 100% !important;
}

body.page-id-20524 .ogere15-events-section .elementor-widget-egovenzevent .event-content,
body.page-id-20524 .ogere15-events-section .elementor-widget-egovenzevent .events-content,
body.page-id-20524 .ogere15-events-section .elementor-widget-egovenzevent .event-details,
body.page-id-20524 .ogere15-events-section .elementor-widget-egovenzevent .events-details {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

body.page-id-20524 .ogere15-events-section .elementor-widget-egovenzevent h5,
body.page-id-20524 .ogere15-events-section .elementor-widget-egovenzevent .event-title,
body.page-id-20524 .ogere15-events-section .elementor-widget-egovenzevent .events-title {
    min-height: 3.9em !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
    overflow: hidden !important;
}

body.page-id-20524 .ogere15-events-section .elementor-widget-egovenzevent .event-excerpt,
body.page-id-20524 .ogere15-events-section .elementor-widget-egovenzevent .events-excerpt {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 4 !important;
    overflow: hidden !important;
}

body.page-id-20524 .ogere15-events-section .elementor-widget-egovenzevent .read-more,
body.page-id-20524 .ogere15-events-section .elementor-widget-egovenzevent .event-more,
body.page-id-20524 .ogere15-events-section .elementor-widget-egovenzevent .more-link {
    margin-top: auto !important;
}

body.page-id-20524 .ogere15-events-section .ogere15-events-button {
    margin-top: 26px !important;
}

/* 3. Security: centre the combined card group, improve icon/text separation,
 * centre mobile text and give the button row the same visual breathing room as Events.
 */
body.page-id-20524 .ogere15-security-section {
    margin: 0 !important;
    padding-bottom: 0 !important;
}

body.page-id-20524 .ogere15-security-grid {
    width: 94% !important;
    max-width: 1320px !important;
    margin: 28px auto 0 !important;
}

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

body.page-id-20524 .ogere15-security-card .elementor-widget-wrap {
    height: 100% !important;
}

body.page-id-20524 .ogere15-security-contact-list p {
    display: flex !important;
    align-items: flex-start !important;
}

body.page-id-20524 .ogere15-security-contact-list i,
body.page-id-20524 .ogere15-security-contact-list svg {
    flex: 0 0 auto !important;
    margin-right: 9px !important;
}

body.page-id-20524 .ogere15-security-button-row {
    margin: 0 !important;
    padding: 22px 0 42px !important;
}

body.page-id-20524 .ogere15-security-button-row > .elementor-container {
    min-height: 72px !important;
    align-items: center !important;
    justify-content: center !important;
}

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

/* 4. Keep final Elementor output flush with the approved footer.
 * The Pass 15 measured guard handles any residual theme wrapper gap.
 */
body.page-id-20524 .ogere15-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;
    padding-bottom: 0 !important;
}

/* 5. General Ogere internal-page content start. Pass 15 also halves the first
 * Elementor section's stored top spacing on published pages. This is a fallback
 * guard against residual eGovenz wrapper padding, not a redesign of page sections.
 */
body:not(.page-id-20524) .ogere4-site-header + #page,
body:not(.page-id-20524) .ogere4-site-header + .site,
body:not(.page-id-20524) .ogere4-site-header + .site-content {
    margin-top: 0 !important;
}

@media (max-width: 1024px) {
    body.page-id-20524 .ogere15-welcome-palace {
        width: 84% !important;
        max-width: 84% !important;
    }

    body.page-id-20524 .ogere15-events-section .elementor-widget-egovenzevent {
        max-width: 900px !important;
        margin-top: 46px !important;
    }

    body.page-id-20524 .ogere15-security-grid {
        width: 96% !important;
    }
}

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

    body.page-id-20524 .ogere15-welcome-palace {
        width: 88% !important;
        max-width: 88% !important;
        margin-top: 4px !important;
        margin-bottom: 2px !important;
    }

    body.page-id-20524 .ogere15-events-section .elementor-widget-egovenzevent {
        width: 94% !important;
        max-width: 94% !important;
        margin-top: 42px !important;
    }

    body.page-id-20524 .ogere15-events-section .elementor-widget-egovenzevent h5,
    body.page-id-20524 .ogere15-events-section .elementor-widget-egovenzevent .event-title,
    body.page-id-20524 .ogere15-events-section .elementor-widget-egovenzevent .events-title {
        min-height: 0 !important;
        -webkit-line-clamp: 3 !important;
    }

    body.page-id-20524 .ogere15-security-grid {
        width: 92% !important;
        max-width: 92% !important;
        margin-top: 22px !important;
    }

    body.page-id-20524 .ogere15-security-card-title,
    body.page-id-20524 .ogere15-security-contact-list,
    body.page-id-20524 .ogere15-security-card-title h4,
    body.page-id-20524 .ogere15-security-contact-list p {
        text-align: center !important;
    }

    body.page-id-20524 .ogere15-security-contact-list p {
        justify-content: center !important;
        align-items: center !important;
        flex-wrap: wrap !important;
    }

    body.page-id-20524 .ogere15-security-contact-list i,
    body.page-id-20524 .ogere15-security-contact-list svg {
        margin-right: 8px !important;
    }

    body.page-id-20524 .ogere15-security-button-row {
        padding-top: 18px !important;
        padding-bottom: 34px !important;
    }

    body.page-id-20524 .ogere15-security-button-row > .elementor-container {
        min-height: 64px !important;
    }
}
