/* Definição de Cores e Fontes */
:root {
    --jd-green: #367C2B;
    --jd-yellow: #FFDE00;
    --jd-gray: #54585A;
    --jd-black: #000000;
    --jd-white: #FFFFFF;
    --jd-font: 'JD Sans Pro', Helvetica, sans-serif;
}

.page-id-6582 .subheader {
    display: none;
}

.jd-cta-wrapper {
    position: relative;
    width: 100%;
    min-height: 600px; /* Altura mínima para desktop */
    display: flex;
    align-items: center;
    background-color: var(--jd-green);
    overflow: hidden;
    font-family: var(--jd-font);
}

/* Imagem de Fundo e Overlay */
.jd-cta-background {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%; /* Imagem ocupa 60% da direita */
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* O Gradiente que faz a transição suave do verde sólido para a imagem */
.jd-cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradiente: Verde sólido na esquerda, transparente na direita */
    background: linear-gradient(90deg, var(--jd-green) 40%, rgba(54, 124, 43, 0.6) 70%, rgba(54, 124, 43, 0) 100%);
    z-index: 2;
}

/* Container Centralizado */
.jd-cta-container {
    position: relative;
    width: 100%;
    max-width: 1216px;
    margin: 0 auto;
    z-index: 3;
    padding: 60px 0;
}

.jd-cta-content {
    max-width: 647px; /* Limita a largura do texto */
    color: var(--jd-white);
}

.jd-btn.btn-hero-jd {
    padding: 14px 20px !important;
}

/* Badge (Novidade) */
.jd-badge-wrapper {
    margin-bottom: 8px;
}

.jd-badge-line {
    display: block;
    width: 70px;
    height: 4px;
    background-color: var(--jd-yellow);
    margin-bottom: 8px;
    border-radius: 2px;
}

.jd-badge-text {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--jd-white); /* Texto branco conforme imagem de ref */
}

/* Título */
.jd-title {
    font-size: 48px;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 16px;
    margin-top: 0;
    color: var(--jd-white);
}

/* Descrição */
.jd-description {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 32px;
    color: #EFEFEF;
}

/* Botões */
.jd-buttons-wrapper {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.jd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    gap: 16px;
}

.jd-btn-primary.jd-btn svg {
    fill: var(--jd-green);
}

.jd-btn-secondary.jd-btn svg {
    fill: #ffffff;
}

.jd-btn i, 
.jd-btn svg {
    font-size: 12px;
    width: 1.1em; /* Para SVGs */
    height: 1.1em;
}

/* Botão Primário (Branco) */
.jd-btn-primary {
    background-color: var(--jd-white);
    color: var(--jd-green);
    border: 2px solid var(--jd-white);
}

.jd-btn-primary:hover {
    opacity: .7;
}

/* Botão Secundário (Outline) */
.jd-btn-secondary {
    background-color: transparent;
    color: var(--jd-white);
    border: 1px solid var(--jd-yellow);
}

.jd-btn-secondary:hover {
    opacity: .7;
}

/* RESPONSIVIDADE (Mobile) */
@media (max-width: 768px) {
    .jd-cta-wrapper {
        flex-direction: column;
        justify-content: flex-end; /* Conteúdo no rodapé */
        min-height: 560px; /* Altura maior para caber imagem + texto */
    }

    /* Imagem ocupa o fundo todo no mobile */
    .jd-cta-background {
        width: 100%;
        height: 100%;
        background-position: top;
        background-size: contain;
        background-repeat: no-repeat;
    }

    /* Gradiente vindo de baixo para cima no mobile */
    .jd-cta-overlay {
        background: linear-gradient(0deg, var(--jd-green) 16%, rgba(54, 124, 43, 1) 64%, rgba(54, 124, 43, 0) 100%)
    }

    .jd-cta-container {
        padding: 0 16px 40px 16px;
        margin: 0;
        width: 100%;
    }

    .jd-cta-content {
        max-width: 100%;
    }

    .jd-title {
        font-size: 24px;
    }

    .jd-description {
        font-size: 16px;
    }

    .jd-buttons-wrapper {
        flex-direction: row;
        width: 100%;
        flex-wrap: wrap;
    }

    .jd-btn {
        padding: 10px 12px;
        font-size: 14px;
        gap: 0px;
    }

    .jd-btn.btn-hero-jd {
        padding: 10px 12px !important;
    }

    .jd-btn {
        width: 47%; /* Botões full width no mobile */
        justify-content: space-between;
    }
}