.three-images-section {
    position: relative;
    z-index: 1;
    width: 100%;
    background-color: #900f15;
    /* padding: 80px 0; */
}

.three-images-section__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    color: #fff;
}

.three-images-section__title {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 40px;
    text-align: left;
}

.three-images-section__table-wrapper {
    width: auto;
    overflow-x: auto;
    border-radius: 24px;
    background: transparent;
    position: relative;
    /* box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2); */
    -webkit-overflow-scrolling: touch;
}

.three-images-section__table-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(45deg, transparent 0, transparent 20px, rgba(255, 255, 255, 0.4) 44px, rgba(255, 255, 255, 0.4) calc(100% - 44px), transparent calc(100% - 20px), transparent 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    @media (max-width: 900px) {
        background: none;
    }
}

.three-images-section__table {
    /* width: 100%;
    border-collapse: collapse;
    min-width: 800px;
    box-shadow: 0px 4px 8px 0px #00000029;
    border-radius: 16px; */
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
    box-shadow: 0 4px 8px 0 #00000029;
    border-radius: 24px;
    background: #900f15;
}

.three-images-section__row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.three-images-section__row:last-child {
    border-bottom: none;
}

.three-images-section__row--highlighted {
    background-color: #cc092f;
}

.three-images-section__cell {
    padding: 12px;
    text-align: center;
    font-size: 16px;
    font-weight: 400;
    color: #fff;
}

.three-images-section__cell--header {
    padding: 12px;
    vertical-align: middle;
}

.three-images-section__header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    
}

.three-images-section__header-logo {
    max-height: 100%;
    object-fit: contain;
    max-height: 38px;
}

.three-images-section__cell--title {
    text-align: left;
    font-weight: 600;
    padding-left: 40px;
    width: 120px;
}

.three-images-section__cta {
    margin-top: 40px;
    text-align: left;
}

.three-images-section__cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 48px;
    border-radius: 999px;
    background: #FFFFFF;
    color: #B51420;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;

}

.three-images-section__cta-button:hover {
    transform: scale(1.05);
    background: #f5f5f5;
}

.three-images-section__footnote {
    font-size: 14px;
    font-weight: 300;
    margin: 40px 0 0;
    color: rgba(255, 255, 255, 0.8);
    text-align: left;
    line-height: 1.6;
    p{
        color: #D9DCDD;

    }
    a{
        color: #FFF;
        text-decoration: underline;
    }

}

@media (min-width: 901px) {
    .three-images-section {
        /* padding: 100px 0; */
    }

    .three-images-section::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 38%;
        height: 100%;
        background-image: var(--bg-image-desktop);
        background-size: cover;
        background-position: left center;
        z-index: -1;
    }

    .three-images-section__container {
        width: 62%;
        max-width: none;
        margin: 0;
        padding-left: max(24px, calc(50% - 38%));
        padding-top: 80px;
        padding-bottom: 80px;
        box-sizing: border-box;
    }

    .three-images-section__table-wrapper {
        padding: 16px;
        overflow: visible;
        border-radius: 24px;
        background: transparent;
        width: fit-content;
        backdrop-filter: blur(3px);
    }

    .three-images-section__table thead tr {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .three-images-section__table thead th:nth-child(2) {
        position: relative;
    }

    /* Vertical line between duple in header */
    .three-images-section__table thead th:nth-child(2)::after {
        content: "";
        position: absolute;
        top: 0px;
        bottom: -2px;
        left: 1px;
        width: 14px;
        background-color: inherit;
        z-index: -1;
    }

    /* Move duple columns closer */
    .three-images-section__table th:nth-child(2),
    .three-images-section__table td:nth-child(2) {
        padding-right: 0px;
    }

    .three-images-section__table th:nth-child(3),
    .three-images-section__table td:nth-child(3) {
        padding-left: 0px;
    }

    .three-images-section__table th:nth-child(2) .three-images-section__header-content {
        border-right: 1px solid rgba(255, 255, 255, 0.8);
    }

    /* Vertical line between duple columns in body rows */
    /* .three-images-section__table td:nth-child(2) {
        border-right: 1px solid rgba(255, 255, 255, 0.8);
    } */
}

@media (max-width: 900px) {
    .three-images-section {
        padding: 60px 0 40px 0;
        margin: 140px 0 0 0;
        /* margin-top: 340px; */
    }

    .three-images-section::before {
        content: "";
        position: absolute;
        top: -340px;
        left: 0;
        width: 100%;
        height: 340px;
        background-image: var(--bg-image-mobile);
        background-size: cover;
        background-position: center;
        z-index: -1;
    }

    .three-images-section__title {
        font-size: 26px;
        margin-bottom: 32px;
        z-index: 2;
        position: relative;
    }

    .three-images-section__table-wrapper {
        background: transparent;
        border-radius: 0;
        margin-left: 0;
    }

    .three-images-section__table {
        min-width: 600px;
        border-collapse: separate;
        border-spacing: 6px 0;
        box-shadow: none;
        padding: 5px 0;
        margin-left: -6px;
    }

    .three-images-section__row {
        border-bottom: none;
        background-color: transparent !important;
    }

    .three-images-section__row--highlighted .three-images-section__cell {
        background-color: #cc092f;
    }

    .three-images-section__cell {
        padding: 20px 16px;
        font-size: 14px;
        position: relative;
        border-top: 1px solid rgba(255, 255, 255, 0.4);
        border-radius: 0;
        /* All inside edges strictly straight */
    }

    .three-images-section__table tbody tr:last-child .three-images-section__cell {
        border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    }

    /* Block borders */
    .three-images-section__table th:nth-child(1),
    .three-images-section__table td:nth-child(1) {
        border-left: 1px solid rgba(255, 255, 255, 0.4);
        border-right: 1px solid rgba(255, 255, 255, 0.4);
    }

    .three-images-section__table th:nth-child(2),
    .three-images-section__table td:nth-child(2) {
        border-left: 1px solid rgba(255, 255, 255, 0.4);
        border-right: none;
    }

    .three-images-section__table th:nth-child(3),
    .three-images-section__table td:nth-child(3) {
        border-left: none;
        border-right: 1px solid rgba(255, 255, 255, 0.4);
    }

    .three-images-section__table th:nth-child(n+4),
    .three-images-section__table td:nth-child(n+4) {
        border-left: 1px solid rgba(255, 255, 255, 0.4);
        border-right: 1px solid rgba(255, 255, 255, 0.4);
    }

    /* Only curve the absolute outer edges of the table framework */
    .three-images-section__table thead th:first-child {
        border-top-left-radius: 12px;
    }

    .three-images-section__table thead th:last-child {
        border-top-right-radius: 12px;
    }

    .three-images-section__table tbody tr:last-child td:first-child {
        border-bottom-left-radius: 12px;
    }

    .three-images-section__table tbody tr:last-child td:last-child {
        border-bottom-right-radius: 12px;
    }

    /* Fake background bridge for Duple Col 2 & 3 to hide the physical 6px gap */
    .three-images-section__cell:nth-child(2)::before {
        content: "";
        position: absolute;
        top: -1px;
        bottom: 0;
        right: -6px;
        width: 6px;
        background-color: inherit;
        border-top: 1px solid rgba(255, 255, 255, 0.4);
        z-index: 1;
    }

    .three-images-section__table tbody tr:last-child td:nth-child(2)::before {
        bottom: -1px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    }

    /* Vertical line adjustment in header between Duple */
    .three-images-section__table thead th:nth-child(2) {
        position: relative;
    }

    .three-images-section__table thead th:nth-child(2)::after {
        content: "";
        position: absolute;
        top: 30%;
        bottom: 30%;
        right: -3px;
        width: 1px;
        background-color: rgba(255, 255, 255, 0.8);
        z-index: 2;
    }

    .three-images-section__cell--fixed {
        position: sticky;
        left: 0;
        z-index: 10;
        background-color: #900f15;
    }

    /* Patch to block content slipping visibly on the left corner curves of Column 1 */
    .three-images-section__cell--fixed::before {
        content: "";
        position: absolute;
        top: -4px;
        bottom: -4px;
        left: -14px;
        width: 13px;
        background-color: #900f15;
        z-index: 4;
    }

    /* Patch to block content slipping visibly behind the right scrollable gap of Column 1 */
    .three-images-section__cell--fixed::after {
        content: "";
        position: absolute;
        top: -4px;
        bottom: -4px;
        right: -6px;
        width: 6px;
        background-color: #900f15;
        z-index: -1;
    }

    .three-images-section__row--highlighted .three-images-section__cell--fixed {
        background-color: #cc092f;
    }

    .three-images-section__cell--header.three-images-section__cell--fixed {
        background-color: #900f15;
    }

    .three-images-section__cell--title {
        padding-left: 20px;
        width: 140px;
    }

    .three-images-section__header-logo {
        max-width: 120px;
    }

    .three-images-section__cta-button {
        width: 100%;
        width: -webkit-fill-available;
    }
}
