/* =========================================================
   MODERN FOOTER REDESIGN
   Scoped footer treatment for _FooterCopyright.B5.cshtml and
   _FooterSubscription.B5.cshtml. Uses theme tokens only.
========================================================= */

.oz-site-footer,
.footercopyright,
.oz-modern-footer,
.oz-footer-copyright {
    position: static !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: var(--footer-bg, var(--brand-primary-dark)) !important;
    color: var(--footer-text, var(--color-text-inverse)) !important;
    box-shadow: none !important;
}

.oz-modern-footer {
    overflow: hidden;
    background: radial-gradient(circle at 92% 22%, rgba(var(--brand-secondary-rgb, 13, 110, 253), .18), transparent 28rem), linear-gradient(135deg, var(--footer-bg, var(--brand-primary-dark)) 0%, var(--brand-primary, #052c65) 55%, var(--brand-primary-dark, #031f49) 100%) !important;
    font-family: var(--font-body);
}

.oz-modern-footer-container {
    max-width: 1440px;
    margin: 0 auto !important;
    padding: 2.2rem 2rem 1.35rem !important;
}

.oz-modern-footer-main {
    display: grid;
    grid-template-columns: minmax(16rem, 1.35fr) minmax(14rem, 1fr) minmax(18rem, 1.25fr);
    gap: 2.2rem;
    align-items: start;
}

.oz-modern-footer-brand,
.oz-modern-footer-links,
.oz-modern-footer-subscription {
    min-width: 0;
}

.oz-modern-footer-brand,
.oz-modern-footer-links {
    padding-right: 2rem;
    border-right: 1px solid rgba(255,255,255,.16);
}

.oz-modern-footer-brand-name {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .9rem;
    color: var(--footer-heading, var(--color-text-inverse));
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 2vw, 2rem);
    font-weight: 850;
    letter-spacing: .015em;
    line-height: 1.1;
}

.oz-modern-footer-brand-logo {
    display: block;
    width: auto;
    max-width: min(100%, 18rem);
    height: auto;
}

.oz-modern-footer-brand-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    min-width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-pill, 999px);
    background: rgba(255,255,255,.10);
    color: var(--footer-accent, var(--brand-secondary, #0d6efd)) !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
    font-size: 1.1rem;
}

.oz-modern-footer-brand-copy,
.oz-footer-subscription-message {
    max-width: 26rem;
    margin: 0;
    color: var(--footer-muted, rgba(255,255,255,.82));
    font-size: .98rem;
    line-height: 1.65;
}

.oz-modern-footer-heading {
    display: inline-block;
    margin: 0 0 1.1rem;
    padding: 0 0 .55rem;
    color: var(--footer-heading, var(--color-text-inverse));
    font-family: var(--font-heading);
    font-size: .88rem;
    font-weight: 850;
    letter-spacing: .035em;
    line-height: 1.2;
    text-transform: uppercase;
    border-bottom: 2px solid var(--footer-accent, var(--brand-secondary, #0d6efd));
}

.oz-modern-footer-links ul,
.oz-modern-footer-links ol,
.oz-footer-links ul,
.oz-footer-links ol {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, max-content));
    gap: .75rem 1.25rem;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.oz-modern-footer-links li,
.oz-footer-links li {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.oz-modern-footer-links a,
.oz-footer-links a {
    display: inline-flex !important;
    align-items: center;
    gap: .55rem;
    min-height: 1.8rem;
    color: var(--footer-link, rgba(255,255,255,.88)) !important;
    background: transparent !important;
    border: 0 !important;
    font-size: .96rem;
    font-weight: 500;
    line-height: 1.25;
    text-decoration: none !important;
    white-space: nowrap;
    transition: color .18s ease, transform .18s ease, opacity .18s ease;
}

    .oz-modern-footer-links a::after,
    .oz-footer-links a::after {
        content: "\f105";
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: .9rem;
        font-family: "Font Awesome 7 Free", "Font Awesome 6 Free", "Font Awesome 5 Free";
        font-weight: 900;
        color: var(--footer-accent, var(--brand-secondary, #0d6efd));
        font-size: .78rem;
        line-height: 1;
        opacity: .9;
        transition: transform .20s ease;
    }

    .oz-modern-footer-links a:hover,
    .oz-modern-footer-links a:focus,
    .oz-footer-links a:hover,
    .oz-footer-links a:focus {
        color: var(--footer-link-hover, var(--color-text-inverse)) !important;
        text-decoration: none !important;
        transform: translateX(2px);
    }

        .oz-modern-footer-links a:hover::after,
        .oz-modern-footer-links a:focus::after,
        .oz-footer-links a:hover::after,
        .oz-footer-links a:focus::after {
            transform: translateX(3px);
        }

.oz-footer-links .spanSplitLinkItem,
.oz-footer-links .splitLinkItem,
.oz-footer-links .footerSeparator,
.oz-footer-links li > span:not(:has(a)) {
    display: none !important;
}

.oz-modern-footer-subscription {
    max-width: 27rem;
}

.oz-footer-subscription-cta {
    display: grid;
    gap: .9rem;
}

.oz-modern-footer-subscription-title {
    margin-bottom: .25rem;
}

.oz-footer-subscription-link,
.oz-footer-subscription-link:visited {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    width: fit-content;
    min-width: 13.5rem;
    min-height: 3rem;
    padding: .75rem 1.35rem !important;
    border: 1px solid var(--footer-subscribe-border, var(--brand-secondary, #0d6efd)) !important;
    border-radius: var(--radius-md, .75rem) !important;
    background: linear-gradient(135deg, var(--footer-subscribe-bg, var(--brand-secondary, #0d6efd)), color-mix(in srgb, var(--brand-secondary, #0d6efd) 82%, var(--brand-primary, #052c65))) !important;
    color: var(--footer-subscribe-text, var(--color-text-inverse)) !important;
    box-shadow: 0 .65rem 1.35rem rgba(var(--brand-secondary-rgb, 13, 110, 253), .24);
    font-weight: 800;
    line-height: 1;
    text-decoration: none !important;
    white-space: nowrap;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

    .oz-footer-subscription-link:hover,
    .oz-footer-subscription-link:focus {
        color: var(--footer-subscribe-text, var(--color-text-inverse)) !important;
        transform: translateY(-1px);
        box-shadow: 0 .9rem 1.65rem rgba(var(--brand-secondary-rgb, 13, 110, 253), .30);
        filter: brightness(1.03);
        text-decoration: none !important;
    }

    .oz-footer-subscription-link i:last-child {
        transition: transform .20s ease;
    }

    .oz-footer-subscription-link:hover i:last-child,
    .oz-footer-subscription-link:focus i:last-child {
        transform: translateX(3px);
    }

.oz-modern-footer-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.5rem;
    align-items: center;
    margin-top: 2.1rem;
    padding-top: 1.35rem;
    border-top: 1px solid rgba(255,255,255,.18);
}

.oz-footer-copy {
    color: var(--footer-muted, rgba(255,255,255,.78));
    font-size: .92rem;
    font-weight: 500;
    line-height: 1.45;
}

    .oz-footer-copy .d-inline-flex {
        display: inline-flex !important;
        align-items: center;
        flex-wrap: nowrap;
        gap: .5rem !important;
    }

    .oz-footer-copy .fa-copyright {
        color: var(--footer-muted, rgba(255,255,255,.70));
        font-size: .9rem;
    }

.oz-modern-footer-bottom-links ul,
.oz-modern-footer-bottom-links ol {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center;
    justify-content: flex-end;
    gap: .4rem 0;
}

.oz-modern-footer-bottom-links li {
    display: inline-flex !important;
    align-items: center;
}

    .oz-modern-footer-bottom-links li + li::before {
        content: "";
        width: 1px;
        height: 1rem;
        margin: 0 .9rem;
        background: rgba(255,255,255,.22);
    }

.oz-modern-footer-bottom-links a {
    min-height: auto;
    font-size: .9rem;
}

    .oz-modern-footer-bottom-links a::after {
        content: none !important;
    }

    .oz-modern-footer-bottom-links a:hover,
    .oz-modern-footer-bottom-links a:focus {
        transform: none;
    }

@media (max-width: 1199.98px) {
    .oz-modern-footer-container {
        padding: 2rem 1.25rem 1.25rem !important;
    }

    .oz-modern-footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .oz-modern-footer-subscription {
        grid-column: 1 / -1;
        max-width: none;
        padding-top: 1.25rem;
        border-top: 1px solid rgba(255,255,255,.16);
    }

    .oz-modern-footer-brand,
    .oz-modern-footer-links {
        padding-right: 1.5rem;
    }

    .oz-modern-footer-bottom {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .oz-modern-footer-bottom-links ul,
    .oz-modern-footer-bottom-links ol {
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .oz-modern-footer {
        background: radial-gradient(circle at 50% 0%, rgba(var(--brand-secondary-rgb, 13, 110, 253), .16), transparent 18rem), linear-gradient(180deg, var(--brand-primary-dark, #031f49), var(--brand-primary, #052c65)) !important;
    }

    .oz-modern-footer-container {
        padding: 1.65rem 1rem 1.15rem !important;
    }

    .oz-modern-footer-main {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.35rem;
        text-align: center;
    }

    .oz-modern-footer-brand,
    .oz-modern-footer-links,
    .oz-modern-footer-subscription {
        padding: 0;
        border-right: 0;
    }

    .oz-modern-footer-brand-copy,
    .oz-footer-subscription-message {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        font-size: .93rem;
        line-height: 1.55;
    }

    .oz-modern-footer-brand-name {
        justify-content: center;
        margin-bottom: .7rem;
        font-size: 1.45rem;
    }

    .oz-modern-footer-brand-logo {
        max-width: min(100%, 15rem);
        margin-left: auto;
        margin-right: auto;
    }

    .oz-modern-footer-brand-icon {
        width: 2.15rem;
        min-width: 2.15rem;
        height: 2.15rem;
        font-size: .95rem;
    }

    .oz-modern-footer-heading {
        margin-bottom: .85rem;
        font-size: .82rem;
    }

    .oz-modern-footer-links {
        padding-top: 1.1rem;
        border-top: 1px solid rgba(255,255,255,.16);
    }

        .oz-modern-footer-links ul,
        .oz-modern-footer-links ol,
        .oz-footer-links ul,
        .oz-footer-links ol {
            display: grid !important;
            grid-template-columns: 1fr;
            gap: 0 !important;
            width: 100%;
            text-align: left;
        }

        .oz-modern-footer-links li,
        .oz-footer-links li {
            border-bottom: 1px solid rgba(255,255,255,.14);
        }

        .oz-modern-footer-links a,
        .oz-footer-links a {
            width: 100%;
            min-height: 2.75rem;
            justify-content: space-between;
            padding: .65rem 0 !important;
            white-space: normal;
        }

            .oz-modern-footer-links a:hover,
            .oz-modern-footer-links a:focus,
            .oz-footer-links a:hover,
            .oz-footer-links a:focus {
                transform: none;
            }

    .oz-modern-footer-subscription {
        padding-top: 1.1rem;
        border-top: 1px solid rgba(255,255,255,.16);
    }

    .oz-footer-subscription-cta {
        justify-items: center;
        gap: .75rem;
    }

    .oz-footer-subscription-link,
    .oz-footer-subscription-link:visited {
        width: 100%;
        min-width: 0;
        max-width: 25rem;
        min-height: 3rem;
    }

    .oz-modern-footer-bottom {
        margin-top: 1.25rem;
        padding-top: 1.15rem;
        gap: .9rem;
    }

    .oz-footer-copy {
        font-size: .86rem;
    }

        .oz-footer-copy .d-inline-flex {
            flex-wrap: wrap;
            justify-content: center;
        }

    .oz-modern-footer-bottom-links {
        display: none !important;
    }
}

/* Social media links in the footer brand column */
.oz-modern-footer-social-link {
    width: 42px;
    height: 42px;
    background-color: rgba(255, 255, 255, 0.12);
    font-size: 19px;
    transition: background-color 0.2s ease;
}

    .oz-modern-footer-social-link:hover,
    .oz-modern-footer-social-link:focus-visible {
        background-color: #1266d6;
    }

    .oz-modern-footer-social-link:focus-visible {
        outline: 2px solid #fff;
        outline-offset: 2px;
    }

/* Center social icons beneath the Follow Us heading on mobile only. */
@media (max-width: 767.98px) {
    .oz-modern-footer-social > .d-flex {
        justify-content: center;
    }
}

