/* Call To Action Widget Styles */
.modernpress-cta-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 24px;
}

/* Layout 1 - Standard stacked layout */
.modernpress-cta-layout-1 {
    align-items: center;
    text-align: center;
}
.modernpress-cta-container.modernpress-cta-layout-5 {
    align-items: center;
    text-align: center;
    border-radius: 0px;
    background-color: #0D3FB0;
}

.modernpress-cta-layout-5 .modernpress-cta-heading {
    font-size: 40px;
    font-weight: 500;
    margin: 0 0 15px 0;
    line-height: 1.3;
    color: #fff;
}
.modernpress-cta-layout-5 .modernpress-cta-description {
    font-size: 16px;
    margin: 0;
    line-height: 1.6;
    /* max-width: 800px; */
    margin: 0 auto;
    color: #fff;
}

.modernpress-cta-layout-5 .modernpress-cta-btn-primary {
    background-color: #0D3FB0;
    color: #FFFFFF;
    border: 1px solid #fff;
}


.modernpress-cta-content {
    margin-bottom: 30px;
    width: 100%;
}

.modernpress-cta-heading {
    font-size: 40px;
    font-weight: 500;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.modernpress-cta-description {
    font-size: 16px;
    margin: 0;
    line-height: 1.6;
    /* max-width: 800px; */
    margin: 0 auto;
}

.modernpress-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

.modernpress-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: 160px;
}

.modernpress-cta-btn-primary {
    background-color: #0D3FB0;
    color: #FFFFFF;
    border: 1px solid transparent;
}

.modernpress-cta-btn-primary:hover {
    background-color: #0B2F85;
}

.modernpress-cta-btn-secondary {
    background-color: #FFFFFF;
    color: #0D3FB0;
    border: 1px solid #0D3FB0;
}

.modernpress-cta-btn-secondary:hover {
    background-color: #0D3FB0;
    color: #FFFFFF;
}

/* Dark version of secondary button */
.modernpress-cta-btn-dark {
    background-color: #000000;
    color: #FFFFFF;
    border: 1px solid #FFFFFF;
}

.modernpress-cta-btn-dark:hover {
    background-color: #333333;
    border-color: #FFFFFF;
}

/* Layout 2 - Side by side content and image */
.modernpress-cta-layout-2 .modernpress-cta-content-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-radius: 24px;
}

.modernpress-cta-layout-2 .modernpress-cta-content {
    /* padding: 30px; */
    margin-bottom: 0;
}
.modernpress-cta-layout-2 .modernpress-cta-heading {
    font-size: 32;
    font-weight: 500;
}

.modernpress-cta-layout-2 .modernpress-cta-image-wrapper {
    width: 100%;
}

.modernpress-cta-layout-2 .modernpress-cta-image {
    width: 100%;
    height: 100%;
}

.modernpress-cta-layout-2 .modernpress-cta-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modernpress-cta-layout-2 .modernpress-cta-placeholder-image {
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 300px;
}

.modernpress-cta-layout-2 .modernpress-cta-placeholder-image svg {
    width: 60px;
    height: 60px;
    color: #ccc;
}

.modernpress-cta-layout-2 .modernpress-cta-buttons {
    justify-content: flex-start;
    margin-top: 25px;
}

/* Layout 3 - Content on left, buttons on right */
.modernpress-cta-layout-3 .modernpress-cta-content-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    /* padding: 30px; */
    /* background-color: #f9f9f9; */
    border-radius: 24px;
}

.modernpress-cta-layout-3  {
    background-color: #0D3FB0;
}
.modernpress-cta-layout-3 .modernpress-cta-heading{
    color: #fff;
}
.modernpress-cta-layout-3 .modernpress-cta-content {
    margin-bottom: 30px;
    text-align: left;
}

.modernpress-cta-layout-3 .modernpress-cta-description {
    margin: 0;
    max-width: 100%;
    color: #fff;
}

.modernpress-cta-layout-3 .modernpress-cta-buttons {
    justify-content: center;
}

/* Layout 4 - Black background with title left, description and buttons right */
.modernpress-cta-layout-4 {
    background-color: #000000;
    color: #FFFFFF;
}

.modernpress-cta-layout-4 .modernpress-cta-content-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    /* padding: 40px; */
    border-radius: 24px;
    background-color: transparent;
}

.modernpress-cta-layout-4 .modernpress-cta-heading {
    font-size: 32px;
    font-weight: 500;
    color: #FFFFFF;
    margin: 0;
}

.modernpress-cta-layout-4 .modernpress-cta-description {
    color: #FFFFFF;
    opacity: 0.9;
    margin-bottom: 25px;
}
.modernpress-cta-layout-4 .modernpress-cta-buttons .modernpress-cta-btn-secondary {
    color: #FFFFFF;
    background-color: transparent;
}

.modernpress-cta-layout-4 .modernpress-cta-right-content {
    width: 100%;
}

.modernpress-cta-layout-4 .modernpress-cta-buttons {
    justify-content: flex-start;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .modernpress-cta-heading {
        font-size: 32px;
    }
    
    .modernpress-cta-description {
        font-size: 18px;
    }
    
    .modernpress-cta-layout-2 .modernpress-cta-content-wrapper {
        flex-direction: row;
        align-items: center;
    }
    
    .modernpress-cta-layout-2 .modernpress-cta-content {
        width: 50%;
        padding: 40px;
    }
    
    .modernpress-cta-layout-2 .modernpress-cta-image-wrapper {
        width: 50%;
        height: 100%;
        min-height: 400px;
    }
    
    /* Layout 3 responsive styles */
    .modernpress-cta-layout-3 .modernpress-cta-content-wrapper {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 40px;
    }
    
    .modernpress-cta-layout-3 .modernpress-cta-content {
        width: 60%;
        margin-bottom: 0;
        /* padding-right: 30px; */
    }
    
    .modernpress-cta-layout-3 .modernpress-cta-buttons-wrapper {
        width: 40%;
        display: flex;
        justify-content: flex-end;
    }
    
    .modernpress-cta-layout-3 .modernpress-cta-buttons {
        flex-direction: row;
        align-items: stretch;
    }
    .modernpress-cta-layout-3 .modernpress-cta-btn-primary {
        border: 1px solid #fff;
    }
    
    /* Layout 4 responsive styles */
    .modernpress-cta-layout-4 .modernpress-cta-content-wrapper {
        flex-direction: row;
        align-items: flex-start;
        padding: 60px 40px;
    }
    
    .modernpress-cta-layout-4 .modernpress-cta-title-wrapper {
        width: 50%;
        padding-right: 40px;
    }
    
    .modernpress-cta-layout-4 .modernpress-cta-right-content {
        width: 50%;
    }
    
    .modernpress-cta-layout-4 .modernpress-cta-heading {
        font-size: 32px;
        font-weight: 500;
        line-height: 1.2;
    }
}

@media (max-width: 767px) {
    .modernpress-cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .modernpress-cta-btn {
        width: 100%;
    }
    
    .modernpress-cta-layout-2 .modernpress-cta-image-wrapper {
        min-height: 250px;
    }
    
    .modernpress-cta-layout-4 .modernpress-cta-title-wrapper {
        margin-bottom: 25px;
    }
}