.cta {
    margin-bottom: 5px;
    color: white;
    text-transform: uppercase;
}

.cta,
.cta .background {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 200px;
}

@media (min-width: 40em) and (max-width: 1024px){
    .cta,
    .cta .background {
        max-height: 198px;
    }
}

.cta .background {
    overflow: hidden;
}

.cta .background::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: rgba(0,0,0,0.25);
}  

.cta .background img {
    width: 100%;
    height: 100%;
    min-height: 200px;
    object-fit: cover;
}

.cta .overlay {
    position: absolute;
    width: 100%;
    top: 50%;
    left: 50%;
    z-index: 2;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 12px;
    max-width: 224px;
    background-color: var(--green);
}

.cta .overlay .text-wrapper {
    text-align: center;
}

.cta .overlay h4 {
    font-size: 14.63px;
    color: white;
    font-family: var(--font-body);
}

.cta .overlay h5 {
    font-size: 18.69px;
    font-family: var(--font-display);
    letter-spacing: 0.025em;
    color: white;
}

.cta.enews .overlay img {
    order: 2;
}

@media (min-width: 64em) {
    
    .panel-footer .cta-container {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 6px;
        margin-bottom: 6px;
    }

    .cta {
        position: relative;
        overflow: hidden;
        margin: 0;
    }

    .cta .background img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .cta .overlay h4,
    .cta .overlay h5 {
        position: relative;
    }
    
    .cta .overlay .text-wrapper {
        transition: transform ease-in 200ms;
        padding-bottom: 4px;
    }

    .cta .overlay h5 {
        font-size: 22px;
        line-height: 33px;
    }
    .cta .overlay {
        background-color: transparent;
        padding: 18.5px 12px 14.5px;
        max-width: 277px;
    }
    
    .cta .overlay::before {
        content: "";
        position: absolute;
        width: 100%;
        height: 100%;
        background-color: var(--green);
        opacity: 1;
        top: 50%;
        left: 50%;
        transition: all ease-in 400ms;
        transform: translate(-50%, -50%) scale(1);
    }

    .cta:hover .overlay::before {
        transform: translate(-50%, -50%) scale(10);
        opacity: 0.5;
    }

    .cta:hover .overlay .text-wrapper {
        transform: scale(1.2);
    }

    .cta .overlay .text-wrapper:after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 3px;
        transform: scaleX(0);
        transform-origin: center center;
        background-color: var(--blue);
        transition: all ease-in 200ms;
    }

    .cta:hover .overlay .text-wrapper:after {
        transform: scaleX(1);
    }
}