.faq-section {
    width: 90%;
    max-width: 800px;
    margin: 40px auto;
    text-align: center;
}

h1 {
    font-size: 39px;
    font-weight: bold;
    margin-bottom: 20px;
}

.faq-item {
    margin-top: 20px;
    border-radius: 10px;
    margin-bottom: 10px;
    /* Removemos overflow hidden para não cortar sombras ou bordas */
}

/* PERGUNTA (BARRA LARANJA) */
.faq-question {
    /* Layout Flexbox: Alinha texto e seta lado a lado perfeitamente */
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px; /* Espaço garantido entre texto e seta */
    
    background-color: #F58220;
    color: #fff;
    padding: 15px 30px; /* Padding confortável para Desktop */
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
    
    /* Texto */
    font-weight: bold;
    font-size: 16px; /* Tamanho bom para leitura */
    text-align: left;
    line-height: 1.4;
    white-space: normal; /* Permite quebra de linha no Desktop também */
}

.faq-question:hover {
    background-color: #f58320a9;
}

/* SETA */
.arrow {
    transition: transform 0.3s ease;
    flex-shrink: 0; /* Impede a seta de ser esmagada */
    font-size: 14px;
}

.faq-item.active .arrow {
    transform: rotate(180deg);
}

/* RESPOSTA (CAIXA BRANCA) */
.faq-answer {
    /* Estado fechado */
    max-height: 0;
    overflow: hidden;
    background: white;
    border: 1px solid #F58220;
    border-top: none;
    color: #F58220;
    text-align: left;
    border-radius: 0 0 10px 10px;
    padding: 0 30px; /* Começa sem padding vertical */
    opacity: 0;
    
    /* Transição suave */
    transition: all 0.5s ease-in-out;
}

/* RESPOSTA ABERTA */
.faq-item.active .faq-answer {
    /* Força abertura total ignorando JS */
    max-height: 1000px !important; 
    
    padding: 30px; /* Espaçamento interno */
    opacity: 1;
}

/* Divisória (caso esteja usando naquele outro HTML) */
.duvidas1 {
    margin-top: 80px;
    background-color: white;
    padding: 10px;
}


/* --- AJUSTES ESPECÍFICOS PARA CELULAR --- */
/* Aqui só mudamos o que precisa ser menor no celular */
@media (max-width: 768px) {
    
    .faq-section {
        width: 95%; /* Aproveita mais a tela */
    }

    .faq-question {
        padding: 15px 20px; /* Padding um pouco menor */
        font-size: 14px;    /* Fonte um pouco menor */
    }

    .faq-item.active .faq-answer {
        padding: 20px; /* Padding da resposta reduzido para mobile */
    }
    
    /* Ajuste do título principal no mobile */
    h1 {
        font-size: 28px;                                
    }
}