.site-footer .block {
        border: none;
}

.site-footer .layout__region--first .layout--twocol-section {
    display: flex;
    position: relative;
     color: white;
        /* background-color:#0B2545; */
            background: var(--color-bg);
}

.logos-container img {
        max-width: 200px;
        height: 100px;
        object-fit:contain;
}

.site-footer .items .logo-item {
        flex: 0 0 calc(33% - 4px);
        justify-items: center;
}

.site-footer .items {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
}

.logos-container article {
        padding: 0;
}

.logos-container .node__content {
        margin-top: 0;
}

.logos-container .field--type-entity-reference {
        margin: 0;
}

.logos-container .node .field--type-image {
        margin: 0;
}


.site-footer .layout .block:not(.logos-container) {
        padding:2rem;
}

.site-footer .layout .block-content-free_layout.block {
        padding: 0;
}

.view-id-logos {
        width: fit-content;
        margin: auto;
}

.site-footer a {
        color: white;
        text-decoration: none;
}

.site-footer a:hover {
        color: #F4F7FA;
}

.site-footer .layout--onecol {
        background: #F4F7FA;
}

.site-footer .layout__region--first .layout--twocol-section:first-child {
        padding-left: calc((100vw - 1320px) / 2);
}

.site-footer .layout__region--second .block {
    /* padding-right: calc((100vw - 1320px) / 2); */
    padding: 2rem;
}

.site-footer {
    position: relative;
    padding-top: 2.5rem;   /* clearance so the line isn't crammed against content */
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left:50%;
    transform: translateX(-50%);
    width: min(1200px, 90%);            /* never full-bleed; caps on big screens */
    height: 2px;
}
/* ==========================================================================
   Footer menu — targets the .footer-menu classes from the custom
   menu--footer.html.twig override (plain markup, no Bootstrap nav/flex-row).
   Strips list styling so it reads as a nav, not a bulleted list.
   ========================================================================== */

.site-footer .footer-menu,
.site-footer .footer-menu__submenu {
        list-style: none;
        margin: 0;
        padding: 0;
}

.site-footer .footer-menu {
        display: flex;
        flex-direction: column;
}

.site-footer .footer-menu__item {
        margin: 0;
        padding: 0;
}

.site-footer .footer-menu a {
        color: white;
        text-decoration: none;
        display: inline-block;
        padding: 0.15rem 0;
        line-height: 1.5;
}

.site-footer .footer-menu a:hover,
.site-footer .footer-menu a:focus-visible {
        color: #F4F7FA;
        text-decoration: underline;
        text-underline-offset: 3px;
}

.site-footer .footer-menu a:focus-visible {
        outline: 2px solid #F4F7FA;
        outline-offset: 2px;
        border-radius: 2px;
}

/* Nested submenu items, if the footer menu ever grows children:
   indented slightly, slightly dimmed */
.site-footer .footer-menu__submenu {
        margin-top: 0.25rem;
        padding-left: 0.85rem;
}

.site-footer .footer-menu__submenu a {
        color: rgba(255, 255, 255, 0.8);
        font-size: 0.925em;
}

@media (max-width: 1199px) {
     .site-footer .layout__region--first {
        display: flex;
        flex-direction: column;
    }
}

/* ==========================================================================
   Responsive — preserves the signature full-bleed navy behavior:
   the navy panel runs off the LEFT edge of the viewport while its
   content stays aligned to the site container. Only the top-RIGHT
   corner is rounded, and that stays true at every width.
   ========================================================================== */

/* Tablet: regions likely still side-by-side but tighter — soften block
   padding, comfier link targets. */
@media (max-width: 991px) {
    .site-footer .layout .block {
        padding: 1.5rem;
    }

    .site-footer .footer-menu a {
        padding: 0.4rem 0;
    }
}

/* Mobile: regions stack. The navy panel keeps its single top-right
   radius — it just no longer shares a row. Nav content stays
   right-aligned, matching the desktop anchor edge. */
@media (max-width: 767px) {
    .site-footer .layout__region--first {
        width: 100%;
        margin-left: 0;
        justify-content: flex-end;
    }

    .site-footer .layout__region--second .block {
        max-width: none;
        margin-right: 0;
    }

    /* Logos: 3-across is cramped here — go 2-across */
    .site-footer .items .logo-item {
        flex: 0 0 calc(50% - 4px);
    }

    .logos-container img {
        max-width: 160px;
        height: 80px;
    }

    .site-footer .layout .block {
        padding: 1.5rem 1rem;
    }
}

/* Small phones: single centered logo column; menu links get full-height
   tap targets, right-aligned as a group */
@media (max-width: 420px) {
    .site-footer .items .logo-item {
        flex: 0 0 100%;
    }

    .logos-container img {
        max-width: 180px;
    }

    .site-footer .footer-menu {
        text-align: right;
        width: 100%;
    }

    .site-footer .footer-menu a {
        display: block;
        padding: 0.5rem 0;
    }
}

.layout:has(.logos-container) {
        display: block;
}

.site-footer .layout__region--first .layout--twocol-section.layout--twocol-section--50-50 > .layout--twocol-section {
        flex: 0 1 50%;
}

.site-footer .layout--twocol-section.layout--twocol-section--50-50 > .layout__region--second {
        flex: 0 1 50%;
}