/* Call to Action Widget Styles */
.mystik-cta-widget {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    gap: 20px;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Add overlay for background images */
.mystik-cta-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mystik-cta-widget[style*="background-image"]::before {
    opacity: 1;
}

.mystik-cta-widget .cta-content,
.mystik-cta-widget .cta-button-wrapper {
    position: relative;
    z-index: 1;
}

.mystik-cta-widget .cta-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mystik-cta-widget .cta-content-wrapper {
    display: flex;
    flex-direction: column;
}

.mystik-cta-widget .cta-title {
    font-size: 24px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.3;
}

.mystik-cta-widget .cta-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 0;
}

.mystik-cta-widget .cta-button-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.mystik-cta-widget .cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    background-color: #2563EB;
    color: #ffffff;
    border-radius: 4px;
    transition: all 0.3s ease;
    /* Remove box shadow */
    box-shadow: none;
}

/* Ensure icons are properly aligned */
.mystik-cta-widget .cta-button .cta-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.mystik-cta-widget .cta-button .icon-before {
    margin-right: 8px;
}

.mystik-cta-widget .cta-button .icon-after {
    margin-left: 8px;
}

/* Make sure the icon is colored properly */
.mystik-cta-widget .cta-button i,
.mystik-cta-widget .cta-button svg {
    color: inherit;
    fill: currentColor;
}

.mystik-cta-widget .cta-button:hover {
    background-color: #1E40AF;
}

/* Responsive styles */
@media (max-width: 767px) {
    .mystik-cta-widget {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .mystik-cta-widget .cta-content-wrapper {
        align-items: center;
    }
    
    .mystik-cta-widget .cta-button-wrapper {
        justify-content: center;
        margin-top: 20px;
    }

    .mystik-cta-widget .cta-content-wrapper {
        align-items: center;
        margin-bottom: 20px;
    }

    .mystik-cta-widget .cta-button-wrapper {
        justify-content: center;
        width: 100%;
    }
}
