/* Ogere Remo refinement pass 10
 * Focused fixes only: section rhythm, site tail/footer visibility and same-context navigation.
 */

/* Keep parent/theme wrappers from adding phantom vertical space after Elementor. */
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;
}

/* Welcome: reduce the opening gap, but restore a clear white break before Stats. */
body.page-id-20524 .ogere10-welcome-section {
    margin: 0 0 44px !important;
    padding: 30px 0 0 !important;
}

/* Do not change the internal Stats design. Only neutralise accidental outer margins. */
body.page-id-20524 .ogere9-stats-section {
    margin-top: 0 !important;
}

/* Keep the already-approved generated sections compact and evenly separated. */
body.page-id-20524 .ogere9-support-section {
    margin: 0 !important;
    padding-top: 58px !important;
    padding-bottom: 56px !important;
}

body.page-id-20524 .ogere9-events-section {
    margin: 0 !important;
    padding-top: 56px !important;
    padding-bottom: 36px !important;
}

/* Security is rendered at get_footer, immediately after the main content. */
.ogere10-front-security {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ogere10-front-security .ogere9-security-section {
    margin: 0 !important;
    padding-top: 42px !important;
    padding-bottom: 34px !important;
}

/* There must be no artificial band between Security and the custom footer. */
.ogere10-front-security + .ogere10-site-footer {
    margin-top: 0 !important;
}

/* Pass 10 footer: same approved visual treatment, rendered before the parent footer template. */
.ogere10-site-footer {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    clear: both !important;
    background: #071326 !important;
    color: rgba(255,255,255,.86) !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
}

.ogere10-footer-main {
    padding: 52px 0 24px !important;
}

.ogere10-footer-grid {
    display: grid !important;
    grid-template-columns: minmax(300px, 1.65fr) repeat(3, minmax(130px, 1fr)) !important;
    align-items: start !important;
    gap: 38px !important;
}

.ogere10-footer-brand,
.ogere10-footer-column {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.ogere10-footer-logo {
    display: block !important;
    width: fit-content !important;
    margin: 0 0 16px !important;
    text-align: left !important;
}

.ogere10-footer-logo img {
    display: block !important;
    width: 205px !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
}

.ogere10-footer-tagline {
    max-width: 420px !important;
    margin: 0 0 8px !important;
    color: #fff !important;
    font-weight: 600 !important;
}

.ogere10-footer-brand > p:last-child {
    max-width: 460px !important;
    margin: 0 !important;
}

.ogere10-footer-column h3 {
    display: block !important;
    margin: 3px 0 14px !important;
    padding: 0 !important;
    color: #fff !important;
    background: transparent !important;
    font-family: Poppins, Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
}

.ogere10-footer-column ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ogere10-footer-column li {
    margin: 0 0 7px !important;
}

.ogere10-site-footer a {
    color: rgba(255,255,255,.88) !important;
    text-decoration: none !important;
}

.ogere10-site-footer a:hover {
    color: #fff !important;
}

.ogere10-footer-contact-row {
    margin-top: 28px !important;
    padding-top: 19px !important;
    border-top: 1px solid rgba(255,255,255,.12) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 22px !important;
}

.ogere10-footer-email,
.ogere10-footer-social {
    display: flex !important;
    align-items: center !important;
}

.ogere10-footer-email {
    gap: 8px !important;
    color: #fff !important;
    font-weight: 600 !important;
}

.ogere10-footer-email svg,
.ogere10-footer-social svg {
    width: 16px !important;
    height: 16px !important;
    fill: currentColor !important;
}

.ogere10-footer-social {
    gap: 7px !important;
}

.ogere10-footer-social a {
    width: 30px !important;
    height: 30px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(255,255,255,.22) !important;
    border-radius: 50% !important;
}

.ogere10-footer-legal {
    margin-top: 18px !important;
    padding-top: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 8px 20px !important;
    border-top: 1px solid rgba(255,255,255,.11) !important;
}

.ogere10-footer-legal a {
    font-size: 12px !important;
}

.ogere10-footer-bottom {
    margin: 0 !important;
    border-top: 1px solid rgba(255,255,255,.11) !important;
    background: #050f20 !important;
}

.ogere10-footer-bottom-inner {
    min-height: 52px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    text-align: center !important;
    font-size: 12px !important;
}

/* Keep the hidden eGovenz footer hidden after our visible custom footer is output. */
body .site-footer:not(.ogere4-site-footer),
body .zozo-footer,
body .footer-section,
body .footer-middle,
body .footer-wrapper,
body .footer-wrap,
body .footer-main:not(.ogere4-footer-main),
body .footer-bottom:not(.ogere10-footer-bottom) {
    display: none !important;
}

@media (max-width: 1180px) {
    .ogere10-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .ogere10-footer-brand {
        grid-column: 1 / -1 !important;
    }
}

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

    body.page-id-20524 .ogere9-support-section {
        padding-top: 48px !important;
        padding-bottom: 46px !important;
    }

    body.page-id-20524 .ogere9-events-section {
        padding-top: 46px !important;
        padding-bottom: 28px !important;
    }

    .ogere10-front-security .ogere9-security-section {
        padding-top: 36px !important;
        padding-bottom: 28px !important;
    }

    .ogere10-footer-main {
        padding: 44px 0 22px !important;
        text-align: center !important;
    }

    .ogere10-footer-grid {
        grid-template-columns: 1fr !important;
        gap: 26px !important;
        text-align: center !important;
    }

    .ogere10-footer-brand,
    .ogere10-footer-column {
        grid-column: 1 / -1 !important;
        text-align: center !important;
    }

    .ogere10-footer-logo {
        margin: 0 auto 15px !important;
    }

    .ogere10-footer-logo img {
        width: 185px !important;
        margin: 0 auto !important;
    }

    .ogere10-footer-tagline,
    .ogere10-footer-brand > p:last-child {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .ogere10-footer-column h3,
    .ogere10-footer-column ul,
    .ogere10-footer-column li {
        text-align: center !important;
    }

    .ogere10-footer-contact-row {
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 14px !important;
    }

    .ogere10-footer-email,
    .ogere10-footer-social {
        justify-content: center !important;
    }

    .ogere10-footer-legal {
        justify-content: center !important;
        text-align: center !important;
    }

    .ogere10-footer-bottom-inner {
        padding: 12px 0 !important;
        gap: 5px !important;
        text-align: center !important;
    }

    .ogere10-footer-bottom-inner > span {
        flex-basis: 100% !important;
    }

    .ogere10-footer-separator {
        display: none !important;
    }
}
