.msj-posts-cta{
    display: flex;
    flex-direction: row;   
    gap: 32px;
}

.msj-posts-list{
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 32px;
    width: 70%;
}

.msj-post-item{
    width:50%;
    display: flex;
    flex-direction: column;
}

.msj-cta-box{
    width: 30%;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: center;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    background: #f0f0f0;
    border-radius: 32px;
}

a.msj-post-link {
    display: flex;
    width: 100%;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: flex-start;
    align-items: center;
    flex: 1 1 auto;
    border: #FFC440 8px solid;
    border-radius: 8px;
}

.msj-post-thumb{
    width: 100%;

}

.msj-post-thumb img {
    width: 100%;
    height: auto;
}

.msj-post-content {
    text-align: center;
    padding: 24px;
}

a.msj-cta-button {
    background-color: #00A199;
    padding: 6px 18px;
    border-radius: 32px;
    color: white;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

a.msj-cta-button:hover {
    background-color: #E85480;
    color: white;
    transform: scale(1.1);
}

/* Show/hide CTA box */
.msj-cta-box { display: none; }
.msj-cta-box.msj-cta-needed { display: flex; }

/* Reorganise for full list of 3 posts */
.msj-posts-cta.count-3 {
    flex-direction: column;
}
.msj-posts-cta.count-3 .msj-posts-list {
    width: 100%;
}
.msj-posts-cta.count-3 .msj-cta-box {
    width: 100%;
}
.msj-posts-cta.count-3 .msj-posts-item{
    width: 33%;
}


/* Responsive queries for tablet and mobile */
@media screen and (max-width: 1024px) {
    .msj-cta-box { 
        display: flex; 
        width: 100%;
    }
    .msj-posts-list {
        width: 100%;
    }

    .msj-posts-cta.count-1 .msj-posts-list {
        width: 50%;
    }  
    
    .msj-posts-cta.count-1 .msj-cta-box {
        width: 50%;
    }

    .msj-posts-cta.count-2, .msj-posts-cta.count-3 {
        flex-direction: column;
    }

}

@media screen and (max-width: 768px) {
    .msj-posts-list {
        flex-direction: column;
    }
    .msj-post-item {
        width: 100%;
    }
}