.post-cta {
    background: var(--white);
    padding: 10px 0; /* needs extra space */
}

.post-cta.has-background {
    background: linear-gradient(180deg, var(--primary-blue) 0%, var(--primary-blue) 100%);
    inset: 0;
    position: relative;
    padding: 80px 0; /* padding for the wave */
}

.post-cta.has-background .post-cta__card {
    background: var(--white);
    color: var(--text);
}

.post-cta__card {
    align-items: center;
    border: 2px solid var(--primary-red);
    border-radius: var(--radius-m);
    display: flex;
    flex-direction: row;
    gap: 28px;
    padding: 28px;
}

.post-cta__card--reverse {
    flex-direction: row-reverse;
}

.post-cta__card--half {
    .post-cta__icon {
        flex: 1;
        display: flex;
        justify-content: center;
    }
    .post-cta__body {
        flex: 1;
    }
}

.post-cta__icon {
    width: 240px;
    flex-shrink: 0;
    max-width: 100%;
}

.post-cta__icon img {
    display: block;
    height: auto;
    object-fit: scale-down;
    width: 100%;
    max-height: 300px;
}

.post-cta__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.post-cta h2 {
    font-family: var(--font-title);
    font-size: 40px;
    font-weight: 600;
    letter-spacing: -.03em;
    line-height: 1.2;
    margin: 0;
}

.post-cta p {
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

.post-cta .pill-button {
    align-self: flex-start;
    width: fit-content;
}

.post-cta--bounded .post-cta__inner {
    margin-inline: auto;
    max-width: 800px;
}

.post-cta__link-plain {
    align-self: flex-start;
    color: var(--heading);
    font-family: var(--font-title);
    font-size: 17px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.post-cta__link-plain:hover, .post-cta__link-plain:focus-visible {
    color: var(--primary-red);
}

@media (max-width: 760px) {
    .post-cat__icon {
        width: 160px;
    }

    .post-cta {
        padding-top: 40px;
        padding-bottom: 80px;
    }

    .post-cta__card {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .post-cta h2 {
        font-size: 32px;
    }
}
