/**
 * CTA Banner - Flex Part Styles
 */

 .flex-part--cta_banner {
    padding-bottom: 80px;
}

.cta-banner {
    position: relative;
    width: 1440px;
    max-width: 100%;
    height: 400px;
    min-height: 400px;
    margin: 0 auto;
    padding-top: 80px;
    padding-bottom: 80px;
    overflow: hidden; /* Allow SVG to extend beyond bounds */
    isolation: isolate; /* Create new stacking context */
}

/* Background Image Layer - Bottom layer */
.cta-banner__bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Mobile image hidden on desktop */
.cta-banner__bg-image--mobile {
    display: none;
}

/* Background SVGs - Middle layer above background image */
.cta-banner__svg {
    position: absolute;
    z-index: 1; /* Above background image, below content */
    pointer-events: none;
    overflow: visible;
}

.cta-banner__svg svg {
    display: block;
    width: 100%;
    height: 100%;
    stroke-width: 3px;
    stroke: rgba(141, 200, 50, 0.00);
}

/* SVG 1: Left Top */
.cta-banner__svg--1 {
    left: 48px;
    top: -40px;
    width: 414px;
    height: 318px;
}

/* SVG 2: Left Bottom */
.cta-banner__svg--2 {
    left: 51px;
    bottom: -60px;
    width: 274px;
    height: 243px;
}

/* SVG 3: Right Center */
.cta-banner__svg--3 {
    right: 200px;
    top: 185px;
    transform: translateY(-50%);
    width: 153px;
    height: 372px;
}

/* Container */
.cta-banner .container {
    position: relative;
    z-index: 3; /* Above SVG layer */
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Inner content wrapper */
.cta-banner__inner {
    display: flex;
    width: 819px;
    max-width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

/* Title - Green H2 */
.cta-banner__title {
    color: #A7DF66;
    text-align: center;
    font-family: "Funnel Sans", sans-serif;
    font-size: 28px;
    font-style: normal;
    font-weight: 600;
    line-height: 120%;
    letter-spacing: 0;
    margin: 0;
}

/* Content */
.cta-banner__content {
    text-align: center;
    font: var(--font-body-lg);
    color: #A7DF66;
}

.cta-banner__content h2,
.cta-banner__content h3,
.cta-banner__content h4,
.cta-banner__content p {
    color: #A7DF66;
}

.cta-banner__content p {
    margin: 0;
}

.cta-banner__content p + p {
    margin-top: 16px;
}

/* Button */
.cta-banner__button {
    display: flex;
    padding: 16px 24px;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    border-radius: 4px;
    background: #FFF;
    color: #1D004B;
    font-family: var(--font-primary, "Funnel Sans");
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: 0;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.cta-banner__button:hover {
    box-shadow: 0 4px 12px rgba(29, 0, 75, 0.15);
}

/* Responsive */
@media (max-width: 1440px) {
    .cta-banner {
        width: 100%;
    }
    
    .cta-banner__svg--1 {
        left: -50px;
    }
    
    .cta-banner__svg--2 {
        left: -50px;
    }
    
    .cta-banner__svg--3 {
        right: -50px;
    }
}

@media (max-width: 1024px) {
    .cta-banner {
        height: auto;
        min-height: 400px;
    }
    
    .cta-banner__svg--1 {
        top: -50px;
        left: -30px;
    }
    
    .cta-banner__svg--2 {
        bottom: -30px;
        left: -30px;
    }
    
    .cta-banner__svg--3 {
        right: -30px;
    }
    
    .cta-banner__inner {
        width: 100%;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .flex-part--cta_banner {
        padding: 0 16px 60px 16px;
    }

    .cta-banner {
        padding: 0;
        height: auto;
        min-height: unset;
        aspect-ratio: 1 / 1;
    }

    /* Center content vertically and horizontally */
    .cta-banner .container {
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Show mobile image, hide desktop */
    .cta-banner__bg-image--desktop {
        display: none;
    }

    .cta-banner__bg-image--mobile {
        display: block;
    }

    .cta-banner__svg {
        display: none;
    }

    .cta-banner__inner {
        gap: 32px;
        padding: 24px;
        justify-content: center;
    }

    /* Title - Mobile */
    .cta-banner__title {
        color: var(--primary-colors-a-7-df-66, #A7DF66);
        text-align: center;
        font-family: "Poppins", sans-serif;
        font-size: 24px;
        font-style: normal;
        font-weight: 500;
        line-height: 150%;
    }

    /* Button - fit content, not full width */
    .cta-banner__button {
        padding: 14px 20px;
        width: auto;
    }
}

