/* Main CTA Section Styles */
.cta-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    z-index: 1;
}

/* Background and overlay styles */
.main-cta-section {
    background-image: var(--cta-bg-image);
    background-size: cover;
    background-position: center;
    color: var(--color-white, #ffffff);
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.main-cta-section .cta-overlay {
    background: linear-gradient(135deg, 
                rgba(44, 62, 80, 0.85), 
                rgba(52, 73, 94, 0.75));
}

.no-image-cta .cta-overlay {
    background: linear-gradient(135deg, 
                var(--color-secondary, #34495e), 
                var(--color-secondary-light, #2c3e50));
}

/* Particles effect overlay */
.cta-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='2' fill='%23ffffff' /%3E%3C/svg%3E");
    background-size: 60px 60px;
}

/* Main container and layout */
.cta-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 50px;
    border-radius: 12px;
    z-index: 1;
}

.main-cta-section .cta-container {
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.no-image-cta .cta-container {
    background-color: transparent;
}

/* Decorative shapes */
.cta-shape {
    position: absolute;
    border-radius: 50%;
    background-color: var(--color-primary, #ff5a5f);
    opacity: 0.1;
}

.cta-shape-1 {
    width: 150px;
    height: 150px;
    top: -40px;
    left: -60px;
}

.cta-shape-2 {
    width: 100px;
    height: 100px;
    bottom: -30px;
    right: -40px;
}

/* Content styling */
.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.cta-title-underline {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--color-primary, #ff5a5f);
    border-radius: 2px;
}

.cta-text {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-action {
    margin-top: 30px;
}

/* Button styling */
.cta-button {
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    background-color: var(--color-primary, #ff5a5f);
    border: 2px solid var(--color-primary, #ff5a5f);
    color: white;
    box-shadow: 0 8px 25px rgba(255, 90, 95, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(255, 90, 95, 0.4);
    background-color: transparent;
    color: white;
}

.cta-button i {
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(5px);
}

/* Position variants */
.position-left .cta-container {
    margin-left: 0;
    text-align: left;
}

.position-left .cta-title-underline {
    left: 0;
    transform: none;
}

.position-left .cta-text {
    margin-left: 0;
}

.position-right .cta-container {
    margin-right: 0;
    text-align: right;
}

.position-right .cta-title-underline {
    left: auto;
    right: 0;
    transform: none;
}

.position-right .cta-text {
    margin-right: 0;
}

/* Responsive adjustments */
@media (max-width: 1199.98px) {
    .cta-section {
        padding: 80px 0;
    }
    
    .cta-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 991.98px) {
    .cta-container {
        padding: 40px;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-text {
        font-size: 1rem;
    }
}

@media (max-width: 767.98px) {
    .cta-section {
        padding: 60px 0;
    }
    
    .cta-container {
        padding: 30px;
    }
    
    /* Force center alignment on mobile */
    .position-left .cta-container,
    .position-right .cta-container {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    
    .position-left .cta-title-underline,
    .position-right .cta-title-underline {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .position-left .cta-text,
    .position-right .cta-text {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 575.98px) {
    .cta-section {
        padding: 50px 0;
    }
    
    .cta-container {
        padding: 25px 20px;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .cta-text {
        font-size: 0.95rem;
    }
    
    .cta-button {
        padding: 10px 25px;
        font-size: 1rem;
    }
}