/* CTA Footer Block Styles */

/* Break out of container to make full-width */
.cta-footer-block {
    position: relative;
    width: 100vw !important;
    max-width: 100vw !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    box-sizing: border-box;
}

/* Override Elementor container max-width when block is inside */
.e-con-inner:has(.cta-footer-block),
.elementor-container:has(.cta-footer-block),
main:has(.cta-footer-block) {
    max-width: none !important;
    overflow-x: visible !important;
}

/* Fallback for browsers without :has() support */
.cta-footer-block {
    max-width: 100vw !important;
}

/* CTA Footer Section */
.cta-footer-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Background Image */
.cta-footer-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.cta-footer-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Content Container */
.cta-footer-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 4rem 1rem;
    width: 100%;
}

/* Text Content - match resources-headline responsiveness */
.cta-footer-text {
    font-size: 20px;
    line-height: 30px;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #000;
    white-space: normal;
    word-wrap: break-word;
}

@media (min-width: 768px) {
    .cta-footer-text {
        font-size: 24px;
        line-height: 36px;
    }
}

@media (min-width: 1024px) {
    .cta-footer-text {
        font-size: 30px;
        line-height: 41px;
    }
}

.cta-footer-text span {
    display: inline;
}

.cta-footer-black-text {
    color: #000;
}

/* CTA footer purple gradient (original colors) – cross-browser safe */
.cta-footer-purple-text {
    background: linear-gradient(to right, #9333ea 0%, #ec4899 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    display: inline;
}

/* CTA Button */
.cta-footer-cta {
    margin-top: 0;
    margin-bottom: 0;
}

.cta-footer-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    background-color: #000;
    color: #fff !important;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.2s ease-in-out;
    border: 2px solid transparent;
}

.cta-footer-btn:hover {
    background-color: #fff !important;
    color: #000 !important;
    border-color: #000 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cta-footer-content {
        min-height: 300px;
        padding: 3rem 1rem;
    }
}

