/* Mainstage S2 — Centered with Trust Logos */

.mstg.v2 {

    /* -- Spacing overrides ---------------------------- */

    --mstg-tls-pd-v-bt:      160;
    --mstg-tls-pd-v-bt-mbl:  80;

    .inf {
        padding-top: 14em;
        padding-bottom: 0;
    }
    
    .grd svg {
        width: 3rem;
        height: 3rem;
    }

    .inf .fnt_t-k {
        display: none
    }

    .inf div.mrg_tp:has(.btn) {
        display: none
    }

    /* Card fill is painted by the pattern-bg ::after overlay, not the element */
    .crd.pattern-bg::after {
        background-color: #ff941f;
    }

    picture.bg img {
        opacity: 1 !important;
    }
    li a.crd svg path,
    li a.crd strong  {
        fill: #000;
        color: #000;
        stroke: #000;
    }
    li a.crd.bg-bx {
        border-radius: var(--btn-v1-bdr-rds);
    }
    .grd.mx-4.gp_sp-sml {
        top: 5em;
        position: relative;
    }
    .grd > li a.crd {
        border-radius: 15px;
        overflow: hidden;
        text-align: center;
        }

        .grd > li:nth-child(1) a.crd,
        .grd > li:nth-child(1) a.crd::after {
            background-color: #a5c74f;
        }

        .grd > li:nth-child(1) a.crd strong {
            color: #ffffff;
        }

        .grd > li:nth-child(2) a.crd,
        .grd > li:nth-child(2) a.crd::after {
            background-color: #ff7f01;
        }

        .grd > li:nth-child(2) a.crd strong {
            color: #212c5f;
        }

        .grd > li:nth-child(3) a.crd,
        .grd > li:nth-child(3) a.crd::after {
            background-color: #b4d9ec;
        }

        .grd > li:nth-child(3) a.crd strong {
            color: #212c5f;
        }

        .grd > li:nth-child(4) a.crd,
        .grd > li:nth-child(4) a.crd::after {
            background-color: #1e61a6;
        }

        .grd > li:nth-child(4) a.crd strong {
            color: #ffffff;
        }

        .grd > li a.crd strong {
            font-size: 36px;
            font-weight: 800;
        }
        .grd > li a.crd svg {
            width: 45px;
            height: 40px;
            padding: 9px;
            box-sizing: border-box;
            clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
        }

        .grd > li a.crd svg path {
            stroke: none;
        }

        .grd > li:nth-child(1) a.crd svg {
            background-color: #1e61a6;
        }

        .grd > li:nth-child(1) a.crd svg path {
            fill: #ffffff;
        }

        .grd > li:nth-child(2) a.crd svg {
            background-color: #ffffff;
        }

        .grd > li:nth-child(2) a.crd svg path {
            fill: #1e61a6;
        }

        .grd > li:nth-child(3) a.crd svg {
            background-color: #032447;
        }

        .grd > li:nth-child(3) a.crd svg path {
            fill: #ffffff;
        }

        .grd > li:nth-child(4) a.crd svg {
            background-color: #ff7f01;
        }

        .grd > li:nth-child(4) a.crd svg path {
            fill: #ffffff;
        }
        .grd > li a.crd {
            padding-top: 40px;
            padding-bottom: 40px;
        }

        .vid-btn {
            display: none;
        }
    @media screen and (max-width: 1279px) {
        .inf {
            text-align: center;
        }
    }

    &[data-colors="primary-dark"]{
        &::before{
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(to top, var(--dk-bg), transparent);
            z-index: 1;
        }
    }
    .mn_wd{
        z-index: 2;
    }
    .bg {
        z-index: 1;
    }
    /* -- Background image opacity --------------------- */

    --mstg-img-bg-o: 0.45;

    /* -- Body text max-width -------------------------- */

    p {
        max-width: 58ch;
    }
    
    picture {
        z-index: 100;
    }

    + picture {
        background-color: white;
    }

    @media screen and (max-width: 699px) {
        ul.grd {
            gap: 1rem;
        }
        /* .crd {
            height: 7rem;
        } */
        .crd > .flx-at-1280.gp_sp {
            display: flex;
        }
        .crd svg {
            font-size: 4rem;
        }
        .crd strong {
            font-size: 2rem;
            text-align: center;
        }
        .cnt-stl,
        .bdr_tp {
            display: none !important;
        }
    }
     @media screen and (min-width: 1280px) {
       .bg::after {
            content: none;
            background: none;
        }

        .bg .bg {
            background: transparent;
        }

        .bg .bg::after {
            content: "";
            position: absolute;
            inset: 0;
            background: linear-gradient(
                to right,
                rgba(30, 97, 166, 0.98) 0%,
                rgba(30, 97, 166, 0.85) 25%,
                rgba(30, 97, 166, 0.4) 45%,
                transparent 60%
            );
            pointer-events: none;
            z-index: 1;
        }

            .bg video {
                opacity: 1 !important;
                filter: none !important;
            }

            .inf {
                position: relative;
                z-index: 2;
        }
    }

}
