/* CTA Section Widget Styles - Mobile First */

.cta-section-widget {
    position: relative;
    width: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    overflow: hidden;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.cta-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.cta-container-custom {
    margin: 0 auto;
}

.cta-content {
    text-align: center;
    color: #ffffff;
}

.cta-content--left {
    text-align: left;
}

.cta-content--right {
    text-align: right;
}

.cta-heading {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
    line-height: 1.2;
}

.cta-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-button-wrapper {
    margin-bottom: 1.5rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.25rem;
    background-color: #ffffff;
    color: var(--e-global-color-primary, #3b82f6);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.cta-button:hover {
    background-color: var(--e-global-color-accent, #1d4ed8);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.cta-optional-line {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-style: italic;
}

/* Tablet Styles */
@media (min-width: 768px) {
    .cta-section-widget {
        padding: 4rem 3rem;
        min-height: 400px;
    }
    
    .cta-heading {
        font-size: 1.75rem;
        margin-bottom: 1.25rem;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .cta-section-widget {
        padding: 5rem 2rem;
        min-height: 500px;
    }
    
    .cta-heading {
        font-size: 2.25rem;
        margin-bottom: 1.5rem;
    }
}

/* Large Desktop Styles */
@media (min-width: 1200px) {
    .cta-section-widget {
        min-height: 600px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .cta-heading {
        color: #ffffff;
    }
    
    .cta-description {
        color: rgba(255, 255, 255, 0.9);
    }
}

/* Background Image Specific Styles */
.cta-section-widget[style*="background-image"] {
    background-attachment: fixed;
}

@media (max-width: 768px) {
    .cta-section-widget[style*="background-image"] {
        background-attachment: scroll;
    }
}

/* Gradient Background Specific Styles */
.cta-section-widget[style*="gradient"] {
    background-attachment: fixed;
}

@media (max-width: 768px) {
    .cta-section-widget[style*="gradient"] {
        background-attachment: scroll;
    }
}

/* Content Alignment Specific Styles */
.cta-content--left .cta-description {
    margin-left: 0;
    margin-right: auto;
}

.cta-content--right .cta-description {
    margin-left: auto;
    margin-right: 0;
}

/* Animation Classes */
.cta-content {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
