/* Baner CTA – uniwersalny. Pełna szerokość, tło i grafika z ACF */

/* Zapobiega poziomemu scrollowi (100vw + breakout) */
body:has(.vca-cta-box) {
    overflow-x: hidden;
}

.vca-cta-box {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    min-height: 180px;
    background-color: #23c767;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 4.375rem 0;
    box-sizing: border-box;
}

.vca-cta-box__bg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    max-width: 100vw;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.vca-cta-box__overlay {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    max-width: 100vw;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: repeat;
    z-index: 2;
    pointer-events: none;
}

.vca-cta-box__content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Przycisk wyśrodkowany pod tytułem (domyślnie) */
.vca-cta-box--button-center .vca-cta-box__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
}

/* Przycisk z prawej – tekst i przycisk w jednej linii */
.vca-cta-box--button-right .vca-cta-box__content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    text-align: left;
}

.vca-cta-box--button-right .vca-cta-box__text {
    flex: 1;
    min-width: 0;
    margin: 0;
}

.vca-cta-box--button-right .vca-cta-box__btn {
    flex-shrink: 0;
}

.vca-cta-box__text {
    box-sizing: border-box;
    display: block;
    margin: 0;
    color: rgb(255, 255, 255);
    font-family: "type-36", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 30px;
    font-weight: 400;
    line-height: 36px;
    height: 36px;
}

.vca-cta-box__btn {
    display: inline-block;
    padding: 13px 20px;
    background-color: #fff;
    color: #23c767;
    border: 1px solid #fff;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.25;
    text-decoration: none;
    transition: opacity 0.2s;
}

.vca-cta-box__btn:hover {
    background-color: #08a147;
    color: #fff;
    border-color: #08a147;
}

@media (max-width: 768px) {
    .vca-cta-box {
        padding: 1.25rem 0.625rem;
        min-height: 160px;
    }

    .vca-cta-box__text {
        font-size: 0.9375rem;
        height: auto;
        line-height: 1.4;
    }

    .vca-cta-box--button-right .vca-cta-box__content {
        flex-direction: column;
        text-align: center;
    }
}
