/*
|--------------------------------------------------------------------------
| FEATURED SOLUTION
|--------------------------------------------------------------------------
*/

.mb2b-featured-solution {
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.mb2b-featured-solution *,
.mb2b-featured-solution *::before,
.mb2b-featured-solution *::after {
    box-sizing: border-box;
}

.mb2b-featured-solution__featured {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto 32px;
    padding: 52px 24px 34px;
    border: 1px solid #E2E8F0;
    border-radius: 18px;
    background: #FFFFFF;
}

.mb2b-featured-solution__header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 30px;
}

.mb2b-featured-solution__eyebrow,
.mb2b-featured-solution__custom-eyebrow {
    margin-bottom: 6px;
    color: #FFA300;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.mb2b-featured-solution__heading {
    margin: 0 0 4px;
    color: #112C62;
    font-size: 52px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.02em;
}

.mb2b-featured-solution__description {
    color: #112C62;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
}

.mb2b-featured-solution__benefits {
    display: grid;
    grid-template-columns: repeat(
        var(--mb2b-benefit-columns, 4),
        max-content
    );
    justify-content: var(--mb2b-benefit-item-alignment, center);
    justify-items: start;
    align-items: center;
    width: 100%;
    column-gap: 22px;
    row-gap: 12px;
    margin-top: 16px;
}

.mb2b-featured-solution__benefit {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    width: auto;
    max-width: 100%;
    gap: 7px;
    color: #475569;
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
}

.mb2b-featured-solution__benefit:hover {
    text-decoration: none;
}

.mb2b-featured-solution__benefit-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    color: #FFA300;
}

.mb2b-featured-solution__benefit-icon svg {
    display: block;
    width: 18px;
    height: 18px;
}


/*
|--------------------------------------------------------------------------
| PRODUCT GRID
|--------------------------------------------------------------------------
*/

.mb2b-featured-solution__products {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}

.mb2b-featured-solution__product {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    background: #FFFFFF;
    text-decoration: none;
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.mb2b-featured-solution__product--linked:hover {
    transform: translateY(-3px);
    border-color: #FFA300;
    box-shadow: 0 8px 24px rgba(17, 44, 98, .08);
}

.mb2b-featured-solution__product-image {
    width: 100%;
    aspect-ratio: 1 / .9;
    overflow: hidden;
    background: #F8FAFC;
}

.mb2b-featured-solution__product-image--empty {
    background: #F8FAFC;
}

.mb2b-featured-solution__product-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mb2b-featured-solution__product-body {
    padding: 13px 14px 15px;
}

.mb2b-featured-solution__product-title {
    margin: 0 0 6px;
    color: #112C62;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
}

.mb2b-featured-solution__product-description {
    color: #64748B;
    font-size: 12px;
    line-height: 1.45;
}


/*
|--------------------------------------------------------------------------
| PRODUCT CTA
|--------------------------------------------------------------------------
*/

.mb2b-featured-solution__product-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: fit-content;
    min-width: 300px;
    margin: 22px auto 0;
    padding: 12px 22px;
    border: 1px solid #FFA300;
    border-radius: 4px;
    color: #FFA300;
    background: #FFFFFF;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    transition:
        color .2s ease,
        background-color .2s ease;
}

.mb2b-featured-solution__product-cta:hover {
    color: #FFFFFF;
    background: #FFA300;
}

.mb2b-featured-solution__cta-arrow {
    font-size: 20px;
    line-height: 1;
}


/*
|--------------------------------------------------------------------------
| CUSTOM SOLUTION
|--------------------------------------------------------------------------
*/

.mb2b-featured-solution__custom {
    position: relative;
    display: block;
    min-height: 390px;
    overflow: hidden;
    border-radius: 18px;
    background-color: #112C62;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.mb2b-featured-solution__custom::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            90deg,
            rgba(17, 44, 98, .88) 0%,
            rgba(17, 44, 98, .70) 32%,
            rgba(17, 44, 98, .38) 58%,
            rgba(17, 44, 98, .04) 100%
        );
    pointer-events: none;
}

.mb2b-featured-solution__custom-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 58%;
    min-width: 0;
    min-height: 390px;
    padding: 42px 52px;
}

.mb2b-featured-solution__custom-eyebrow {
    margin-bottom: 12px;
}

.mb2b-featured-solution__custom-heading {
    margin: 0 0 14px;
    color: #FFFFFF;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.02em;
}

.mb2b-featured-solution__custom-description {
    max-width: 540px;
    color: #FFFFFF;
    font-size: 15px;
    line-height: 1.55;
    opacity: .9;
}


/*
|--------------------------------------------------------------------------
| STEPS
|--------------------------------------------------------------------------
*/

/* STEP SEQUENTIAL ANIMATION */

@keyframes mb2b-step-reveal {
    from {
        opacity: 0;
        transform: translate3d(
            0,
            var(--mb2b-step-animation-distance, 14px),
            0
        );
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes mb2b-step-number-highlight {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 163, 0, 0);
    }

    40% {
        box-shadow:
            0 0 0 var(--mb2b-step-animation-highlight, 8px)
            rgba(255, 163, 0, .14);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 163, 0, 0);
    }
}

.mb2b-featured-solution__custom:not(.is-visible)
.mb2b-featured-solution__step {
    opacity: 0;
    transform: translate3d(
        0,
        var(--mb2b-step-animation-distance, 14px),
        0
    );
}

.mb2b-featured-solution__custom.is-visible
.mb2b-featured-solution__step {
    animation-name: mb2b-step-reveal;
    animation-duration: var(--mb2b-step-animation-duration, .7s);
    animation-timing-function: cubic-bezier(.22, 1, .36, 1);
    animation-fill-mode: both;
}

.mb2b-featured-solution__custom.is-visible
.mb2b-featured-solution__step-number {
    animation-name: mb2b-step-number-highlight;
    animation-duration:
        var(--mb2b-step-animation-highlight-duration, .8s);
    animation-timing-function: ease-out;
    animation-fill-mode: both;
}

.mb2b-featured-solution__custom.is-visible
.mb2b-featured-solution__step:nth-child(1) {
    animation-delay:
        calc(var(--mb2b-step-animation-stagger, .18s) * 0);
}

.mb2b-featured-solution__custom.is-visible
.mb2b-featured-solution__step:nth-child(2) {
    animation-delay:
        calc(var(--mb2b-step-animation-stagger, .18s) * 1);
}

.mb2b-featured-solution__custom.is-visible
.mb2b-featured-solution__step:nth-child(3) {
    animation-delay:
        calc(var(--mb2b-step-animation-stagger, .18s) * 2);
}

.mb2b-featured-solution__custom.is-visible
.mb2b-featured-solution__step:nth-child(4) {
    animation-delay:
        calc(var(--mb2b-step-animation-stagger, .18s) * 3);
}

.mb2b-featured-solution__custom.is-visible
.mb2b-featured-solution__step:nth-child(1)
.mb2b-featured-solution__step-number {
    animation-delay:
        calc(var(--mb2b-step-animation-stagger, .18s) * 0);
}

.mb2b-featured-solution__custom.is-visible
.mb2b-featured-solution__step:nth-child(2)
.mb2b-featured-solution__step-number {
    animation-delay:
        calc(var(--mb2b-step-animation-stagger, .18s) * 1);
}

.mb2b-featured-solution__custom.is-visible
.mb2b-featured-solution__step:nth-child(3)
.mb2b-featured-solution__step-number {
    animation-delay:
        calc(var(--mb2b-step-animation-stagger, .18s) * 2);
}

.mb2b-featured-solution__custom.is-visible
.mb2b-featured-solution__step:nth-child(4)
.mb2b-featured-solution__step-number {
    animation-delay:
        calc(var(--mb2b-step-animation-stagger, .18s) * 3);
}

.mb2b-featured-solution__steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.mb2b-featured-solution__step {
    position: relative;
    min-width: 0;
}

.mb2b-featured-solution__step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 18px;
    left: 38px;
    width: calc(100% + 18px);
    height: 1px;
    background: rgba(255, 163, 0, .75);
    z-index: 0;
}

.mb2b-featured-solution__step-number {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: 9px;
    border: 1px solid #FFA300;
    border-radius: 50%;
    color: #FFFFFF;
    background: #112C62;
    font-size: 12px;
    font-weight: 700;
}

.mb2b-featured-solution__step-title {
    max-width: 150px;
    color: #FFFFFF;
    font-size: 12px;
    line-height: 1.35;
    opacity: .92;
}


/*
|--------------------------------------------------------------------------
| CUSTOM CTA
|--------------------------------------------------------------------------
*/

.mb2b-featured-solution__custom-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: fit-content;
    margin-top: 26px;
    padding: 13px 20px;
    border-radius: 4px;
    color: #FFFFFF;
    background: #FFA300;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    transition:
        transform .2s ease,
        background-color .2s ease;
}

.mb2b-featured-solution__custom-cta:hover {
    transform: translateY(-2px);
}

.mb2b-featured-solution__custom-cta-icon {
    display: inline-flex;
    width: 19px;
    height: 19px;
}

.mb2b-featured-solution__custom-cta-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}


/*
|--------------------------------------------------------------------------
| CUSTOM IMAGE
|--------------------------------------------------------------------------
*/

.mb2b-featured-solution__custom-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.mb2b-featured-solution__custom-img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
}

/*
|--------------------------------------------------------------------------
| RESPONSIVE — CUSTOM SOLUTION
|--------------------------------------------------------------------------
*/

/* TABLET */
@media (min-width: 768px) and (max-width: 1024px) {

    .mb2b-featured-solution__custom {
        width: 100%;
        height: auto;
        min-height: 390px;
        overflow: hidden;
    }

    .mb2b-featured-solution__custom-content {
        position: relative;
        z-index: 2;
        width: 68%;
        height: auto;
        min-height: 390px;
        padding: 38px 34px;
        box-sizing: border-box;
    }

    .mb2b-featured-solution__custom-image {
        position: absolute;
        inset: 0;
        z-index: 0;
        width: 100%;
        height: 100%;
        min-height: 0;
        overflow: hidden;
    }

    .mb2b-featured-solution__custom-img {
        position: absolute;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        min-width: 100%;
        min-height: 100%;
        max-width: none;
        object-fit: cover;
        object-position: center center;
    }

    .mb2b-featured-solution__custom-heading {
        font-size: 34px;
    }

    .mb2b-featured-solution__custom-description {
        max-width: 560px;
    }

    .mb2b-featured-solution__steps {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 12px;
    }

    .mb2b-featured-solution__step-title {
        max-width: 145px;
    }

}


/* MOBILE */
@media (max-width: 767px) {

    .mb2b-featured-solution__custom {
        position: relative;
        display: block;
        width: 100%;
        height: auto;
        min-height: 0;
        overflow: hidden;
        border-radius: 12px;
    }

    .mb2b-featured-solution__custom-content {
        position: relative;
        z-index: 2;
        display: flex;
        flex-direction: column;
        width: 100%;
        height: auto;
        min-height: 0;
        padding: 34px 24px 40px;
        box-sizing: border-box;
    }

    .mb2b-featured-solution__custom-eyebrow {
        max-width: 100%;
    }

    .mb2b-featured-solution__custom-heading {
        max-width: 100%;
        font-size: 31px;
        line-height: 1.08;
    }

    .mb2b-featured-solution__custom-description {
        max-width: 100%;
        font-size: 14px;
        line-height: 1.55;
    }

    .mb2b-featured-solution__steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 18px;
        margin-top: 28px;
    }

    .mb2b-featured-solution__step {
        width: 100%;
    }

    .mb2b-featured-solution__step:not(:last-child)::after {
        display: none;
    }

    .mb2b-featured-solution__step-number {
        width: 36px;
        height: 36px;
        margin-bottom: 9px;
    }

    .mb2b-featured-solution__step-title {
        max-width: 150px;
        font-size: 12px;
        line-height: 1.4;
    }

    .mb2b-featured-solution__custom-cta {
        max-width: 100%;
        margin-top: 28px;
    }

    .mb2b-featured-solution__custom-image {
        position: absolute;
        inset: 0;
        z-index: 0;
        width: 100%;
        height: 100%;
        min-height: 0;
        overflow: hidden;
    }

    .mb2b-featured-solution__custom-img {
        position: absolute;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        min-width: 100%;
        min-height: 100%;
        max-width: none;
        object-fit: cover;
        object-position: center center;
    }

}


/* SMALL MOBILE */
@media (max-width: 480px) {

    .mb2b-featured-solution__custom-content {
        padding: 30px 20px 36px;
    }

    .mb2b-featured-solution__steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 14px;
    }

}

/*
|--------------------------------------------------------------------------
| PRODUCT GRID — RESPONSIVE FINAL
|--------------------------------------------------------------------------
*/

/* TABLET */
@media (min-width: 768px) and (max-width: 1024px) {

    .mb2b-featured-solution__products {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
        width: 100%;
    }

    .mb2b-featured-solution__product {
        width: 100%;
        min-width: 0;
    }

}

/* MOBILE */
@media (max-width: 767px) {

    .mb2b-featured-solution__products {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
    }

    .mb2b-featured-solution__product {
        width: 100%;
        min-width: 0;
    }

}

/*
|--------------------------------------------------------------------------
| PRODUCT GRID — CONTAINER RESPONSIVE
|--------------------------------------------------------------------------
*/

.mb2b-featured-solution {
    container-type: inline-size;
    container-name: mb2b-featured;
}

/* Tablet / narrow widget */
@container mb2b-featured (max-width: 1024px) {

    .mb2b-featured-solution__products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

}

/* Mobile / narrow widget */
@container mb2b-featured (max-width: 767px) {

    .mb2b-featured-solution__products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .mb2b-featured-solution__product {
        width: 100%;
        min-width: 0;
    }

    .mb2b-featured-solution__product-image {
        width: 100%;
        aspect-ratio: 1 / .9;
        min-height: 0;
    }

    .mb2b-featured-solution__product-body {
        min-width: 0;
        padding: 10px;
    }

    .mb2b-featured-solution__product-title {
        font-size: 12px;
        line-height: 1.3;
    }

    .mb2b-featured-solution__product-description {
        font-size: 11px;
        line-height: 1.4;
    }

}

/* Very narrow mobile */
@container mb2b-featured (max-width: 480px) {

    .mb2b-featured-solution__products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

}
