/* Ogere Remo refinement pass 19 */

/* -------------------------------------------------------------------------
 * Welcome Palace entrance: centre and enlarge proportionately within its column.
 * ---------------------------------------------------------------------- */
body.page-id-20524 .ogere19-welcome-palace-column > .elementor-widget-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-content: center !important;
}

body.page-id-20524 .ogere19-welcome-palace {
    width: 86% !important;
    max-width: 86% !important;
    margin: 0 auto !important;
    align-self: center !important;
}

body.page-id-20524 .ogere19-welcome-palace .elementor-widget-container {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    margin: 0 auto !important;
}

body.page-id-20524 .ogere19-welcome-palace img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
    object-fit: contain !important;
    object-position: center center !important;
}

/* -------------------------------------------------------------------------
 * Welcome from Ologere: use available vertical space for more readable type.
 * ---------------------------------------------------------------------- */
body.page-id-20524 .ogere6-ologere-copy,
body.page-id-20524 .ogere5-ologere-copy {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

body.page-id-20524 .ogere6-ologere-title h2,
body.page-id-20524 .ogere5-ologere-title h2 {
    font-size: 34px !important;
    line-height: 1.18 !important;
}

body.page-id-20524 .ogere6-ologere-copy > p,
body.page-id-20524 .ogere5-ologere-copy > p {
    margin-bottom: 13px !important;
    font-size: 15.2px !important;
    line-height: 1.62 !important;
}

body.page-id-20524 .ogere6-ologere-copy > h3,
body.page-id-20524 .ogere5-ologere-copy > h3 {
    margin-top: 5px !important;
    margin-bottom: 13px !important;
    font-size: 24px !important;
    line-height: 1.28 !important;
}

body.page-id-20524 .ogere6-ologere-priorities span,
body.page-id-20524 .ogere5-ologere-priorities span {
    font-size: 13.8px !important;
    line-height: 1.45 !important;
}

/* -------------------------------------------------------------------------
 * Support Ogere: native eGovenz Section Title widget + cards-only shortcode.
 * No manual title typography is imposed here. The theme's native Section Title
 * widget therefore uses the same type system as Discover and Upcoming Events.
 * ---------------------------------------------------------------------- */
body.page-id-20524 .ogere19-support-host {
    margin: 0 !important;
    padding: 58px 0 56px !important;
    background: #ffffff !important;
}

body.page-id-20524 .ogere19-support-host > .elementor-container {
    width: 100% !important;
    max-width: 100% !important;
}

body.page-id-20524 .ogere19-support-title {
    margin: 0 0 30px !important;
    padding: 0 !important;
}

body.page-id-20524 .ogere19-support-title .section-title-wrapper {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}

body.page-id-20524 .ogere19-support-cards-widget {
    margin: 0 !important;
    padding: 0 !important;
}

body.page-id-20524 .ogere19-support-cards-shell {
    margin-left: auto !important;
    margin-right: auto !important;
}

body.page-id-20524 .ogere19-support-grid {
    margin: 0 !important;
}

/* -------------------------------------------------------------------------
 * Mobile header: keep the Ogere logo/menu bar contained and sticky while
 * page content moves beneath it.
 * ---------------------------------------------------------------------- */
@media (max-width: 767px) {
    html,
    body {
        max-width: 100% !important;
        overflow-x: clip !important;
    }

    body .ogere4-site-header {
        position: sticky !important;
        top: 0 !important;
        left: auto !important;
        right: auto !important;
        z-index: 99999 !important;
        width: 100% !important;
        max-width: 100vw !important;
        min-width: 0 !important;
        height: auto !important;
        margin: 0 !important;
        transform: none !important;
        box-sizing: border-box !important;
        background: #ffffff !important;
    }

    body.admin-bar .ogere4-site-header {
        top: 46px !important;
    }

    body .ogere4-header-inner {
        width: calc(100% - 28px) !important;
        max-width: 100% !important;
        min-width: 0 !important;
        min-height: 68px !important;
        height: auto !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
        margin: 0 auto !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    body .ogere4-logo {
        flex: 0 1 152px !important;
        width: auto !important;
        max-width: 152px !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    body .ogere4-logo img {
        display: block !important;
        width: 100% !important;
        max-width: 152px !important;
        height: auto !important;
        margin: 0 !important;
    }

    body .ogere4-menu-toggle {
        display: inline-flex !important;
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: 104px !important;
        min-width: 0 !important;
        min-height: 42px !important;
        margin: 0 0 0 auto !important;
        padding: 8px 10px !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        font-size: 13px !important;
        line-height: 1.2 !important;
        box-sizing: border-box !important;
    }

    body .ogere4-menu-bars {
        flex: 0 0 20px !important;
        width: 20px !important;
    }

    body .ogere4-nav-panel {
        position: absolute !important;
        top: 100% !important;
        right: 14px !important;
        left: 14px !important;
        width: auto !important;
        max-width: calc(100vw - 28px) !important;
        box-sizing: border-box !important;
    }
}

/* -------------------------------------------------------------------------
 * Discover Ogere mobile cards: centre icon + label as a single horizontal row.
 * ---------------------------------------------------------------------- */
@media (max-width: 767px) {
    body.page-id-20524 .ogere9-discover-cards-section .ogere-discover-card {
        text-align: center !important;
    }

    body.page-id-20524 .ogere9-discover-cards-section .ogere-discover-card .feature-box-wrapper,
    body.page-id-20524 .ogere9-discover-cards-section .ogere-discover-card .feature-box-inner,
    body.page-id-20524 .ogere9-discover-cards-section .ogere-discover-card .feature-box-content,
    body.page-id-20524 .ogere9-discover-cards-section .ogere-discover-card .feature-box-list,
    body.page-id-20524 .ogere9-discover-cards-section .ogere-discover-card .fbox-list,
    body.page-id-20524 .ogere9-discover-cards-section .ogere-discover-card .media {
        text-align: center !important;
    }

    body.page-id-20524 .ogere9-discover-cards-section .ogere-discover-card .feature-box-list,
    body.page-id-20524 .ogere9-discover-cards-section .ogere-discover-card .fbox-list,
    body.page-id-20524 .ogere9-discover-cards-section .ogere-discover-card .media {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        flex-wrap: nowrap !important;
        gap: 9px !important;
    }

    body.page-id-20524 .ogere9-discover-cards-section .ogere-discover-card .feature-box-icon,
    body.page-id-20524 .ogere9-discover-cards-section .ogere-discover-card .fbox-icon,
    body.page-id-20524 .ogere9-discover-cards-section .ogere-discover-card .feature-icon {
        position: static !important;
        float: none !important;
        flex: 0 0 auto !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
    }

    body.page-id-20524 .ogere9-discover-cards-section .ogere-discover-card .feature-box-title,
    body.page-id-20524 .ogere9-discover-cards-section .ogere-discover-card .fbox-title,
    body.page-id-20524 .ogere9-discover-cards-section .ogere-discover-card h6 {
        float: none !important;
        flex: 0 1 auto !important;
        display: inline-block !important;
        width: auto !important;
        margin: 0 !important;
        text-align: center !important;
        vertical-align: middle !important;
    }
}

/* -------------------------------------------------------------------------
 * Responsive adjustments for Palace, Ologere and Support.
 * ---------------------------------------------------------------------- */
@media (max-width: 767px) {
    body.page-id-20524 .ogere19-welcome-palace {
        width: 86% !important;
        max-width: 86% !important;
        margin: 8px auto 0 !important;
    }

    body.page-id-20524 .ogere6-ologere-copy,
    body.page-id-20524 .ogere5-ologere-copy {
        padding: 22px 20px 24px !important;
    }

    body.page-id-20524 .ogere6-ologere-title h2,
    body.page-id-20524 .ogere5-ologere-title h2 {
        font-size: 29px !important;
    }

    body.page-id-20524 .ogere6-ologere-copy > p,
    body.page-id-20524 .ogere5-ologere-copy > p {
        font-size: 14.2px !important;
        line-height: 1.62 !important;
    }

    body.page-id-20524 .ogere6-ologere-copy > h3,
    body.page-id-20524 .ogere5-ologere-copy > h3 {
        font-size: 21px !important;
    }

    body.page-id-20524 .ogere6-ologere-priorities span,
    body.page-id-20524 .ogere5-ologere-priorities span {
        font-size: 13.2px !important;
    }

    body.page-id-20524 .ogere19-support-host {
        padding-top: 48px !important;
        padding-bottom: 50px !important;
    }

    body.page-id-20524 .ogere19-support-title {
        margin-bottom: 24px !important;
    }
}
