/* --- ESTILO GERAL DO FAQ--- */
.faq {
    padding: 80px 0;
}

.faq-title {
    color: var(--Grey-50);
    font-size: 56px;
    font-weight: thinner;
    text-align: center;
    margin-bottom: 64px;
}

/* --- ESTILO DOS ITENS DO FAQ --- */
.faq-list {
    max-width: 1020px;
    margin: 0 auto;

    display: flex;
    flex-direction: column;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

.faq-question-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 16px 0 16px 0;
}

.faq-question {
    color: var(--Grey-100);
    font-size: 24px;
    font-weight: thinner;
}

.faq-icon {
    min-width: 28px;

    cursor: pointer;
    transition: transform 0.3s ease;
}

.faq-item:hover .faq-icon {
    transform: scale(1.1);
}

/* --- ESTILO DAS RESPOSTAS E ANIMAÇÃO --- */
.faq-answer {
    color: var(--Grey-100);
    font-size: 16px;
    line-height: 1.6;
    

    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

/* --- ESTILO QUANDO O ITEM ESTÁ ATIVO --- */

/* Quando o .faq-item tiver a classe .active, a resposta se expande */
.faq-item.active .faq-answer {
    max-height: 200px; /* Altura suficiente para o texto aparecer */
    padding-bottom: 16px;
}

/* Quando o .faq-item tiver a classe .active, o ícone gira */
.faq-item.active .faq-icon {
    transform: rotate(180deg);
}