/* Shared public header and footer */
:root {
    --ba-chrome-bg: #000000;
    --ba-chrome-border: rgba(255, 255, 255, 0.12);
    --ba-chrome-muted: #92949c;
    --ba-chrome-text: #e9e9ec;
    --ba-chrome-red: #e4070e;
}

.ba-header,
.ba-footer {
    color: var(--ba-chrome-text);
    font-family: 'Inter', sans-serif;
}

.ba-header {
    width: calc(100% - 28px);
    margin: 14px auto 0;
    position: relative;
    z-index: 1030;
    background: #000000;
    border: 1px solid var(--ba-chrome-border);
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

.ba-header-shell {
    width: 100%;
}

.ba-header-content {
    width: 100%;
    min-height: 118px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: clamp(1.25rem, 4vw, 3.75rem);
    padding: 16px 22px;
}

.ba-brand {
    flex: 0 0 178px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.ba-brand img {
    display: block;
    width: 178px;
    max-height: 86px;
    object-fit: contain;
}

.ba-navigation {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.ba-nav-list {
    display: flex;
    align-items: center;
    gap: clamp(1.2rem, 2.8vw, 2.8rem);
    list-style: none;
    padding: 0;
    margin: 0;
}

.ba-nav-list a,
.ba-partner-login,
.ba-search-button {
    color: var(--ba-chrome-text);
    font-size: 0.95rem;
    font-weight: 400;
}

.ba-nav-list a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    text-decoration: none;
    white-space: nowrap;
    transition: color 160ms ease;
}

.ba-nav-list a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    border-radius: 3px;
    background: var(--ba-chrome-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 160ms ease;
}

.ba-nav-list a:hover,
.ba-nav-list a:focus-visible,
.ba-nav-list a.is-active {
    color: var(--ba-chrome-red);
}

.ba-nav-list a:hover::after,
.ba-nav-list a:focus-visible::after,
.ba-nav-list a.is-active::after {
    transform: scaleX(1);
}

.ba-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.ba-partner-login {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 44px;
    padding: 0.55rem 1rem;
    border-radius: 7px;
    background: var(--ba-chrome-red);
    color: #fff;
    text-decoration: none;
    transition: background 160ms ease, transform 160ms ease;
}

.ba-partner-login i {
    font-size: 0.75rem;
}

.ba-partner-login:hover,
.ba-partner-login:focus-visible {
    background: #c61920;
    color: #fff;
    transform: translateX(1px);
}

.ba-search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ba-chrome-text);
    cursor: pointer;
    transition: color 160ms ease;
}

.ba-search-button:hover,
.ba-search-button:focus-visible {
    color: #fff;
}

.ba-search-button i {
    font-size: 1.2rem;
}

.ba-menu-toggle {
    display: none;
    width: 44px;
    height: 42px;
    padding: 9px;
    border: 1px solid var(--ba-chrome-border);
    border-radius: 7px;
    background: transparent;
}

.ba-menu-toggle span {
    display: block;
    height: 2px;
    margin: 4px 0;
    border-radius: 2px;
    background: #fff;
}

@media (min-width: 821px) {
    .ba-navigation.collapse:not(.show) {
        display: flex;
    }
}

.ba-footer {
    width: calc(100% - 28px);
    margin: 52px auto 24px;
}

.ba-footer-shell {
    padding: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 0%, rgba(223, 32, 39, 0.16), transparent 28rem),
        #000000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.26);
}

.ba-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 34px 38px 18px;
}

.ba-footer-grid {
    display: grid;
    grid-template-columns: minmax(210px, 1.45fr) repeat(3, minmax(120px, 0.8fr));
    gap: clamp(1.75rem, 4vw, 3.5rem);
}

.ba-footer-wordmark {
    display: inline-block;
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: -0.055em;
    line-height: 1;
    text-decoration: none;
}

.ba-wordmark-bima {
    color: var(--ba-chrome-red);
}

.ba-wordmark-africa {
    color: #f5f5f7;
}

.ba-footer-tagline {
    margin: 0.75rem 0 1.35rem;
    color: var(--ba-chrome-muted);
    font-size: 1.05rem;
    line-height: 1.25;
}

.ba-social-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.ba-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    color: #c6c7cb;
    font-size: 1.15rem;
    line-height: 1;
    text-decoration: none;
    transition: color 160ms ease, transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.ba-social-links a:hover,
.ba-social-links a:focus-visible {
    color: var(--ba-chrome-red);
    border-color: rgba(223, 32, 39, 0.6);
    background: rgba(223, 32, 39, 0.12);
    transform: translateY(-2px);
}

.ba-footer-heading {
    margin: 0 0 0.8rem;
    color: #db0707;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ba-footer-links {
    display: grid;
    gap: 0.55rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.ba-footer-links a {
    color: var(--ba-chrome-text);
    font-size: 0.9rem;
    line-height: 1.35;
    text-decoration: none;
    transition: color 160ms ease, transform 160ms ease;
}

.ba-footer-links a:hover,
.ba-footer-links a:focus-visible {
    color: var(--ba-chrome-red);
    transform: translateX(3px);
}

.ba-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--ba-chrome-border);
}

.ba-copyright {
    margin: 0;
    margin-right: auto;
    color: var(--ba-chrome-muted);
    font-size: 0.9rem;
}

.ba-regulatory-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: fit-content;
    max-width: 100%;
    min-height: 86px;
    min-width: 0;
    padding: 0.55rem 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9px;
    background: rgba(0, 0, 0, 0.12);
}

.ba-regulatory-label {
    align-self: flex-start;
    color: var(--ba-chrome-text);
    font-size: 0.9rem;
    white-space: nowrap;
}

.ba-regulatory-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 111px;
    min-width: 111px;
    height: 67px;
    min-height: 67px;
    padding: 0.05rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.04);
    color: #d7a922;
    font-size: 0.64rem;
    line-height: 1.05;
    text-align: center;
}

.ba-regulatory-image-placeholder img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 64px;
    object-fit: contain;
}

.ba-regulatory-image-placeholder span {
    font-weight: 700;
}

.ba-regulatory-image-placeholder small {
    margin-top: 0.3rem;
    color: var(--ba-chrome-muted);
    font-size: 0.58rem;
    font-weight: 400;
}

.ba-regulatory-round {
    width: 67px;
    min-width: 67px;
    height: 67px;
    min-height: 67px;
    border-radius: 7px;
    border-color: rgba(169, 213, 233, 0.8);
    color: #a9d5e9;
    font-size: 0.62rem;
}

.ba-regulatory-shield {
    width: 101px;
    min-width: 101px;
    border-color: rgba(184, 213, 236, 0.8);
    border-radius: 4px;
    color: #e7f3ff;
    font-weight: 700;
}

@media (max-width: 1050px) {
    .ba-header-content {
        gap: 1.4rem;
    }

    .ba-brand {
        flex-basis: 145px;
    }

    .ba-brand img {
        width: 145px;
    }

    .ba-nav-list {
        gap: 1.25rem;
    }

    .ba-nav-list a,
    .ba-partner-login {
        font-size: 0.84rem;
    }

    .ba-partner-login {
        padding-inline: 0.75rem;
    }
}

@media (max-width: 820px) {
    .ba-header-content {
        min-height: 84px;
        flex-wrap: wrap;
        padding: 12px 16px;
    }

    .ba-brand {
        flex: 1 1 auto;
        justify-content: flex-start;
    }

    .ba-brand img {
        width: 144px;
        max-height: 60px;
    }

    .ba-menu-toggle {
        display: block;
    }

    .ba-navigation {
        flex: 0 0 100%;
        align-items: stretch;
        flex-direction: column;
        gap: 1rem;
        padding-top: 0.85rem;
        border-top: 1px solid var(--ba-chrome-border);
    }

    .ba-navigation.collapse:not(.show) {
        display: none;
    }

    .ba-navigation.collapse.show {
        display: flex;
    }

    .ba-nav-list {
        align-items: stretch;
        flex-direction: column;
        gap: 0;
    }

    .ba-nav-list a {
        min-height: 40px;
    }

    .ba-header-actions {
        justify-content: space-between;
    }

    .ba-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ba-footer-brand {
        grid-column: 1 / -1;
    }

    .ba-footer-bottom {
        flex-wrap: wrap;
        justify-content: center;
    }

    .ba-copyright {
        flex-basis: 100%;
    }
}

@media (max-width: 560px) {
    .ba-footer {
        margin-top: 28px;
    }

    .ba-footer-content {
        padding: 28px 20px 18px;
    }

    .ba-footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .ba-footer-brand {
        grid-column: auto;
    }

    .ba-footer-bottom {
        margin-top: 2rem;
    }

    .ba-regulatory-image-placeholder {
        width: 97px;
        min-width: 97px;
    }

    .ba-regulatory-round {
        width: 61px;
        min-width: 61px;
        justify-self: center;
    }

    .ba-regulatory-shield {
        width: 89px;
        min-width: 89px;
    }
}
