/* Disable Astra footer output (we render a custom footer instead) */
.site-footer,
.site-footer .ast-footer-wrap,
.site-footer .ast-small-footer,
.site-footer .ast-small-footer-wrap {
    display: none !important;
}

/* Overlay the custom footer only at the bottom of the page */
.jst-footer {
    position: relative;
    z-index: 10;
    color: #E2E8F0 !important;
    background: transparent;
    pointer-events: auto;
    isolation: isolate;
    opacity: 1 !important;
    visibility: visible !important;
}

.jst-footer a,
.jst-footer a:visited {
    color: #E2E8F0 !important;
    -webkit-text-fill-color: currentColor !important;
    transition: color 0.2s ease !important;
}

.jst-footer a:hover,
.jst-footer a:focus {
    color: #7DD3FC !important;
    -webkit-text-fill-color: currentColor !important;
}

.jst-footer__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 35px;
    padding-right: 24px;
    padding-bottom: 35px;
    padding-left: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--jst-chrome-bg, rgba(2, 6, 23, 0.55));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--jst-chrome-border, rgba(255, 255, 255, 0.08));
    opacity: 1 !important;
    visibility: visible !important;
}

/* Solid black footer background only on Home + Our Strategy pages */
body.home .jst-footer__inner,
body.page-template-pg-home .jst-footer__inner,
body.page-our-strategy .jst-footer__inner,
body.page-template-page-our_strategy .jst-footer__inner,
body.page-template-page-our_strategy-php .jst-footer__inner,
body.page-template-templates-page-our_strategy-php .jst-footer__inner,
body[class*="page-template-templates-page-our_strategy"] .jst-footer__inner,
body.page-template-jst-our_strategy-php .jst-footer__inner,
body[class*="our_strategy"] .jst-footer__inner,
body[class*="our-strategy"] .jst-footer__inner {
    background: #000000;
}

/* Full-width black footer background on Home + Our Strategy pages */
body.home .jst-footer,
body.page-template-pg-home .jst-footer,
body.page-our-strategy .jst-footer,
body.page-template-page-our_strategy .jst-footer,
body.page-template-page-our_strategy-php .jst-footer,
body.page-template-templates-page-our_strategy-php .jst-footer,
body[class*="page-template-templates-page-our_strategy"] .jst-footer,
body.page-template-jst-our_strategy-php .jst-footer,
body[class*="our_strategy"] .jst-footer,
body[class*="our-strategy"] .jst-footer {
    background: #000000;
}



.jst-footer__menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 0;
    padding: 0;
    justify-content: center;
    align-items: center;
}

.jst-footer__menu li {
    margin: 0;
    padding: 0;
}

.jst-footer__menu a {
    color: #E2E8F0 !important;
    text-decoration: none;
    font-weight: 300;
    font-size: 1rem;
    transition: color 0.2s ease !important;
}

.jst-footer__menu a:hover,
.jst-footer__menu a:focus {
    color: #7DD3FC !important;
}

/* Keep footer text visible across breakpoints */
.jst-footer__menu,
.jst-footer__menu a,
.jst-footer__menu a:visited,
.jst-footer__meta,
.jst-footer__meta span {
    opacity: 1 !important;
    visibility: visible !important;
    color: #E2E8F0 !important;
    -webkit-text-fill-color: currentColor !important;
}

/* Strong fallback: ensure all footer text renders on iOS */
.jst-footer * {
    color: #E2E8F0 !important;
    -webkit-text-fill-color: currentColor !important;
    opacity: 1 !important;
    visibility: visible !important;
    mix-blend-mode: normal !important;
    filter: none !important;
    text-shadow: 0 0 0 #E2E8F0 !important;
}


.jst-footer__meta {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: center;
    text-align: center;
    font-size: 1rem;
    font-weight: 300;
    color: #E2E8F0 !important;
}

@media (max-width: 980px) {
    .jst-footer__inner {
        flex-direction: column;
        text-align: center;
    }

    .jst-footer__menu {
        justify-content: center;
    }

    .jst-footer__meta {
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 980px) {
    body.home .jst-footer__inner,
    body.page-template-pg-home .jst-footer__inner {
        background: #000000 !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border-top: none !important;
        box-shadow: none !important;
    }
}

/* High-specificity overrides to ensure visibility on all devices (especially iOS) */
body .jst-footer,
body .jst-footer *,
body .jst-footer .jst-footer__inner,
body .jst-footer .jst-footer__menu,
body .jst-footer .jst-footer__menu li,
body .jst-footer .jst-footer__meta,
body .jst-footer .jst-footer__copyright {
    color: #E2E8F0 !important;
    -webkit-text-fill-color: currentColor !important;
    background-clip: border-box !important;
    -webkit-background-clip: border-box !important;
    opacity: 1 !important;
    visibility: visible !important;
    text-shadow: none !important;
    mix-blend-mode: normal !important;
    filter: none !important;
    transform: translateZ(0); /* Force hardware acceleration */
}

body .jst-footer a,
body .jst-footer a:visited {
    color: #E2E8F0 !important;
    -webkit-text-fill-color: currentColor !important;
    text-decoration: none !important;
    background: transparent !important;
    transition: color 0.2s ease !important;
}

body .jst-footer a:hover,
body .jst-footer a:focus {
    color: #7DD3FC !important;
    -webkit-text-fill-color: currentColor !important;
}

