/* Your existing CSS */
.usa-banner__content#partners-banner .usa-media-block__body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 2vw;
}

.usa-banner__content#partners-banner .usa-media-block__body img {
    flex: 1 1 0;
    max-width: 20%;
    height: auto;
    object-fit: contain;
    min-width: 0;
}

/* Modified header with slanted separator */
.usa-banner__header {
    background-color: #1b1b1b;
    color: white;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

/* Create the slanted separator effect */
.usa-banner__header::before {
    content: '';
    position: absolute;
    top: 0;
    right: -50px;
    /* Move it further right to extend beyond the container */
    width: 250px;
    /* Make it wider to ensure full coverage */
    height: 100%;
    background-color: #3D4551;
    /* Red color for the right section */
    transform: skewX(-45deg);
    transform-origin: top right;
    z-index: 1;
}

/* Ensure the content stays above the slanted background */
.usa-banner__header .grid-row {
    position: relative;
    z-index: 2;
}

/* Style the right section content */
.usa-banner__header .partners-button-wrapper {
    position: relative;
    z-index: 3;
}

.usa-banner__header .partners-button-wrapper .usa-banner__header-action,
.usa-banner__header .partners-button-wrapper .usa-banner__button-text {
    color: white;
}

.usa-accordion {
    background-color: #1b1b1b;
    color: white;
}

.usa-accordion>a {
    color: inherit;
}

.usa-banner__content {
    background-color: #1b1b1b;
    color: white;
    max-width: none;
    margin-left: 0;
}

#partners-banner {
    background-color: #DDD6D2;
}

.usa-banner__button,
.usa-banner__button:hover {
    color: #dfe1e2;
}

.usa-banner__button::after {
    background-color: #dfe1e2;
}

.usa-banner__button:hover::after {
    background-color: #dfe1e2;
}

.usa-banner__button[aria-expanded=true]::after {
    background-color: #dfe1e2;
}

.usa-banner__button[aria-expanded=true]:hover::after {
    background-color: #dfe1e2;
}

.usa-banner__header {
    font-size: .75rem;
    padding: 8px;
}

.usa-banner .usa-accordion {
    font-size: 16px;
    font-family: "Public Sans", sans-serif;
    text-transform: none;
    font-style: normal;
    font-variation-settings: 'pnum' 0;
    font-weight: 400;
}

/* Additional styling for better visual separation */
.usa-banner__header .usa-banner__inner {
    position: relative;
    z-index: 2;
}

/* Optional: Add some padding to the right section to account for the slant */
.usa-banner__header .partners-button-wrapper {
    padding-right: 1rem;
}

/* Optional: Adjust the flag and left text to ensure proper contrast */
.usa-banner__header .usa-banner__header-flag,
.usa-banner__header .usa-banner__header-text,
.usa-banner__header .usa-banner__header-action {
    position: relative;
    z-index: 2;
}

.usa-banner__button::after {
    background-color: #dfe1e2;
    mask-image: url("https://cdnjs.cloudflare.com/ajax/libs/uswds/3.13.0/img/usa-icons/expand_more.svg");
}

.usa-banner__button[aria-expanded=true]::after {
    background-color: #dfe1e2;
    mask-image: url("https://cdnjs.cloudflare.com/ajax/libs/uswds/3.13.0/img/usa-icons/expand_less.svg");
}

/* Responsive adjustments */
@media screen and (max-width: 640px) {
    .usa-banner__header::before {
        right: -30px;
        width: 200px;
        transform: skewX(-15deg);
    }

    .usa-banner__header .partners-button-wrapper {
        padding-right: 0.5rem;
    }
}

@media screen and (max-width: 480px) {
    .usa-banner__header::before {
        right: -20px;
        width: 150px;
        transform: skewX(-10deg);
    }
}