:root {
    --edmund-transition-speed: 1s;
}

.call-to-action-row-desktop {
    display: block;
    background-color: var(--edmund-vivid-purple);
    height: 72px;
    width: 100%;
    position: relative;
    align-content: center;

    overflow: hidden;
}
.c2a-action-button:hover {
    color: var(--edmund-color-accent-yellow);
    background-color: var(--edmund-vivid-purple);
    border: 5px solid var(--edmund-color-accent-yellow);
}

.call-to-action-card,
.call-to-action-mask-left,
.call-to-action-mask-right,
.call-to-action-button-left,
.call-to-action-button-right {
    display: none;
}
.c2a-action-button {
    position: absolute;
    border-radius: 25px;
    border: 5px solid rgba(0, 0, 0, 0.2);
    background-color: var(--edmund-color-accent-yellow);
    color: var(--edmund-color-primary);
    bottom: unset;
    top: 12px;
    right: 2px;
    left: unset;
    font-weight: 600;
    font-size: 16px;
    height: 3em;
    line-height: 34px;
    width: 110px;
    text-align: center;
    transition: opacity calc(var(--edmund-transition-speed) / 2) ease;
}
.c2a-mobile-title,
.c2a-mobile-tagline {
    color: var(--edmund-white);
}
.c2a-mobile-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 7px;
    padding-left: 10px;
    transition: opacity var(--edmund-transition-speed) ease;
    opacity: 1;
}
.fade-out {
    opacity: 0;
}
.c2a-mobile-title {
    font-size: 24px;
    font-weight: 800;
}
.c2a-mobile-tagline {
    font-size: 16px;
    font-weight: 600;
}
@media only screen and (width >= 940px) {
    .c2a-mobile-container {
        display: none;
    }
    .c2a-action-button {
        top: unset;
        right: unset;
    }
    /* this is the image */
    .call-to-action-button-left:hover,
    .call-to-action-button-right:hover {
        opacity: 0.8;
        cursor: pointer;
    }
    .call-to-action-row-desktop {
        display: block;
        height: 200px;
        background-color: unset;
    }
    .call-to-action-mask-left {
        position: absolute;
        height: 162px; /* 4px taller than the image */
        top: -2px; /* position 2px above the image to create a bleed */
        left: -2px;
        z-index: 10;
    }
    .call-to-action-mask-right {
        position: absolute;
        height: 162px;
        top: -2px;
        right: -6px;
        z-index: 10;
    }
    .call-to-action-button-left {
        transform: scaleX(-1);
        position: absolute;
        height: 160px;
        top: -2px;
        left: -2px;
        opacity: 0.5;
        z-index: 10;
    }
    .call-to-action-button-right {
        position: absolute;
        height: 160px;
        top: -2px;
        right: 0px;
        opacity: 0.5;
        z-index: 10;
    }
    .call-to-action-card,
    .call-to-action-row-desktop {
        height: 158px;
        width: 900px;
    }
    .call-to-action-card {
        position: absolute;
        left: 0;
        transition: opacity var(--edmund-transition-speed) ease;
        top: 0;
    }
    .c2a-action-button {
        left: 622px;
        bottom: 4px;
        font-size: 20px;
        width: 154px;
        height: 37px;
        line-height: 25px;
        text-align: center;
        z-index: 10;
    }
    .call-to-action-card,
    .call-to-action-mask-left,
    .call-to-action-mask-right,
    .call-to-action-button-left,
    .call-to-action-button-right {
        display: block;
    }
}

@media only screen and (width >= 1240px) {
    .c2a-action-button {
        left: 832px;
        width: 200px;
        height: 42px;
        font-size: 24px;
        line-height: 31px;
        bottom: 10px;
    }
    .call-to-action-row-desktop {
    }
    .call-to-action-mask-left {
        height: 216px; /* 4px taller than the image */
        top: -2px; /* position 2px above the image to create a bleed */
        left: -4px;
    }
    .call-to-action-mask-right {
        height: 216px;
        top: -2px;
        right: -6px;
    }
    .call-to-action-button-left {
        height: 216px;
        top: -2px;
        left: -2px;
    }
    .call-to-action-button-right {
        height: 216px;
        top: -2px;
        right: 0px;
    }

    .call-to-action-card,
    .call-to-action-row-desktop {
        height: 210px;
        width: 1200px;
    }
}
