.hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 25px;
}

/** Esquerda: imagem grande **/
.hero__image-large {
    flex: 1;
    max-width: 300px;
    border-radius: 16px;
    overflow: hidden;
    background-color: #241e42;
    background-size: cover;
}

.hero__image-large img {
    width: 110%;
    height: auto;
    display: block;
}

/** Centro: texto e botão principal **/
.hero__content {
    flex: 1.5;
    padding: 0 40px;
}

.hero__content h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero__content p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 24px;
}

.btn-primary {
    display: inline-block;
    background-color: #2c3e50;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #1a252f;
}

/** Direita: cards verticais **/
.hero__cards {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero__card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero__card img {
    width: 100%;
    height: auto;
    display: block;
    background: #241e42;
}

.hero__card-content {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: #fff;
    max-width: 70%;
}

.hero__card-content h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.hero__card-content .btn-secondary {
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.hero__card-content .btn-secondary:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Extra: gráfico, texto e botão */
.hero__extra {
    margin-top: 32px;
    text-align: center;
    position: relative; /* Mantém a posição relativa para os elementos internos */
}

.hero__extra img {
    max-width: 250px;
    height: auto;
    margin-bottom: 16px;
    position: relative;
    left: -400px; /* Mantido para telas grandes */
}

.hero__extra p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 16px;
    position: relative;
    bottom: 150px;
    right: 60px; /* Mantido para telas grandes */
}

#bt_saiba {
    position: relative;
    bottom: 155px;
    right: 170px; /* Mantido para telas grandes */
    background-color: #2c3e50;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s;
}

#bt_saiba:hover {
    background-color: #1a252f;
}

/* Responsividade */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .hero__image-large,
    .hero__cards {
        margin: 0 0 24px 0;
        max-width: 100%;
    }

    .hero__content {
        padding: 0 0 24px 0;
    }

    .hero__cards {
        flex-direction: row;
        justify-content: center;
        gap: 16px;
    }

    .hero__card {
        flex: 1;
        max-width: 200px;
    }

    /* Ajuste para hero__extra em telas menores */
    .hero__extra img {
        left: 0; /* Ajusta a posição para evitar saída da tela */
        max-width: 100%; /* Garante que a imagem caiba na tela */
    }

    .hero__extra p {
        right: 0; /* Ajusta a posição para evitar sobreposição */
        bottom: 0; /* Reposiciona para melhor fluxo */
        font-size: 1rem;
        text-align: center;
    }

    #bt_saiba {
        right: 0; /* Ajusta a posição para centralizar */
        bottom: 0; /* Reposiciona para melhor fluxo */
        width: 100%; /* Ocupa a largura total para melhor usabilidade */
        padding: 12px;
    }
}

@media (max-width: 600px) {
    .hero__content h1 {
        font-size: 1.5rem;
    }

    .hero__content p {
        font-size: 0.9rem;
    }

    .btn-primary {
        width: 100%;
        padding: 10px;
    }

    .hero__cards {
        flex-direction: column;
        gap: 16px;
    }

    .hero__card {
        max-width: 100%;
    }

    .hero__card-content h3 {
        font-size: 1rem;
    }

    .hero__card-content {
        left: 12px;
        max-width: 80%;
    }

    /* Ajuste para hero__extra em telas muito pequenas */
    .hero__extra p {
        font-size: 0.9rem;
    }

    #bt_saiba {
        font-size: 0.9rem;
        padding: 10px;
    }
}