/* BLOCK: CTA Section */

.block-cta-section {
    width: 100%;
    position: relative;
}

.block-cta-section :is(h2) {
    font-weight: 600;
}

.block-cta-section .main-curve {
    /* width: 73.438rem; */
    width: 58.438rem;
    aspect-ratio: 1 / 1;
    position: absolute;
    bottom: 0;
    left: 25%;
    z-index: -1;
}

.block-cta-section .flex-2 .main-curve {
    bottom: -130%;
    left: -10rem;
}

.block-cta-section .flex-2 .cta-card:nth-child(even) .main-curve {
    /* bottom: -3rem;
    left:-16rem; */
    inset: unset;
    top: -31.5rem;
    left: -17rem;
}

.block-cta-section .main-curve::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    padding: 12.5rem;
    border-radius: 50%;
    background: linear-gradient(-90deg, var(--c-gradient-primary));
    mask: 
        linear-gradient(#000 0 0) exclude, 
        linear-gradient(#000 0 0) content-box;
}

.block-cta-section .flex-2 .main-curve:after {
    padding: 11rem;
    background: linear-gradient(90deg, var(--c-gradient-primary));
}

.block-cta-section .flex-2 .cta-card:nth-child(even) .main-curve:after {
    padding: 9rem;
}

.block-cta-section .text-content {
    margin-bottom: 3.5rem;
}

.block-cta-section .cta-cards-wrapper.flex-2 {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.938rem;
}

.block-cta-section .cta-card {
    background: linear-gradient(90deg,var(--c-gradient-primary));
    padding: 5rem 5.625rem 5rem 5rem;
    border-radius: var(--radius-l);
    color: #fff;
    display: flex;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.block-cta-section .cta-cards-wrapper.flex-2 .cta-card {
    flex-direction: column;
    padding: 5rem 1rem 5rem 1rem;
}

.block-cta-section .cta-cards-wrapper.flex-2 .cta-card .btn {
    text-wrap:auto;
}

.block-cta-section .left-side {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    flex-basis: 100%;
    position: relative;
    z-index: 2;
}

.block-cta-section .cta-cards-wrapper.flex-2 .left-side {
    align-items: center;
    text-align: center;
    padding-inline: 2.25rem;
}

.block-cta-section .left-side > :last-child {
    margin-bottom: 0;
}

.block-cta-section .right-side {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 0.5rem;
    flex-basis: 100%;
}

.block-cta-section .cta-cards-wrapper.flex-2 .right-side {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.block-cta-section .cta-card--logo {
    width: 7.313rem;
    height: auto;
    object-fit: cover;
    margin-bottom: 3.125rem;
}

.block-cta-section .cta-cards-wrapper :is(h1, h2, h3, h4, h5, h6, .p, .btn.link) {
    color: #fff;
}

.block-cta-section .cta-cards-wrapper h6 {
    background: rgba(255, 255, 255, 0.12);
    margin-bottom: 1.938rem;
}

.block-cta-section .cta-cards-wrapper.flex-2 h6 {
    margin-bottom: 1.6rem;
}

.block-cta-section .cta-cards-wrapper :is(h1, h2, h3, h5) {
    margin-bottom: 4rem;
}

.block-cta-section .cta-cards-wrapper.flex-2 :is(p, h1, h2, h3, h5) {
    /* margin-bottom: 2rem; */
    margin-top: 0;
}

.block-cta-section .cta-cards-wrapper.flex-2 h3 {
    margin-bottom: 1.2rem;
}

.block-cta-section .cta-cards-wrapper.flex-2 p {
    margin-bottom: 1.5rem;
    color: var(--c-alto);
}

.block-cta-section .cta-cards-wrapper h4 {
    margin-bottom: 0.75rem;
}

.block-cta-section .cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1.5rem;
}

.block-cta-section .flex-2 .cta-card:nth-child(even) {
    /* background: var(--c-primary); */
    background: linear-gradient(-90deg, var(--c-gradient-primary));
}

.block-cta-section .flex-2 .cta-card:nth-child(odd) {
    /* background: var(--c-tertiary); */
    background: linear-gradient(90deg, var(--c-gradient-primary));
}

.block-cta-section .flex-2 .cta-card:nth-child(odd) .main-curve {
    inset: unset;
    top: -4.85rem;
    right: -15.2rem;
    width: 60.438rem;
}

.block-cta-section .flex-2 .cta-card:nth-child(odd) .main-curve::after {
    padding: 10rem;
    background: linear-gradient(90deg, var(--c-gradient-tertiary));
}


@media screen and (width <= 800px) {
    .block-cta-section .cta-card {
        padding: 3.75rem 2.25rem;
    }
    .block-cta-section .cta-cards-wrapper.flex-2 {
        grid-template-columns: 1fr;
    }
    .block-cta-section .cta-cards-wrapper.flex-2 h6,
    .block-cta-section .cta-cards-wrapper.flex-2 :is(p, h1, h2, h3, h5) {
        margin-bottom: 0;
    }
    .block-cta-section .cta-card {
        gap: 1.375rem;
    }
    .block-cta-section .cta-cards-wrapper.flex-2 .left-side {
        display: flex;
        flex-direction: column;
        gap: 1.375rem;
    }
    .block-cta-section .cta-cards-wrapper.flex-2 .cta-card {
        padding: 4.25rem 1rem;
    }
}

@media screen and (width <= 620px) {
    .block-cta-section .cta-card {
        flex-direction: column;
        gap: 1.375rem;
    }
    .block-cta-section .left-side > :first-child {
        margin-top: 0;
    }
    .block-cta-section .left-side > :last-child {
        margin-bottom: 0;
    }
    .block-cta-section .cta-card--logo {
        margin-bottom: 2.5rem;
    }
    .block-cta-section .cta-cards-wrapper h6 {
        margin-bottom: 1.25rem;
    }
    .block-cta-section .right-side {
        justify-content: flex-start;
    }
    .block-cta-section .cta-buttons {
        align-items: flex-start;
    }
    .block-cta-section .cta-cards-wrapper :is(h1, h2, h3, h5) {
        margin-bottom: 2.25rem;
    }
    .block-cta-section .main-curve {
        width: 54.5rem;
        bottom: -3rem;
        left: 70%;
        transform: translateX(-50%);
    }
    .block-cta-section .main-curve::after {
        padding: 10rem;
    }
}