:root {
    --faq-bg: #ffffff;
    --faq-border: #e0e0e0;
    --faq-text: hsl(0, 0%, 37%);
    --faq-accent: #3498db;
    --faq-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-section {
    width: 100%;
    font-family: sans-serif;
    background-image: 
        radial-gradient(ellipse 400px 400px at 10% 10%, rgba(76, 150, 192, 0.856), rgba(3, 24, 116, 0.425)),
        radial-gradient(ellipse 400px 400px at 90% 5%, rgba(76, 150, 192, 0.856), rgba(24, 38, 161, 0.322));
    position: relative;
    padding-top: 100px;
    padding-bottom: 50px;
    align-items: center;
    justify-content: center;
}

.faq-container{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center
}

.wave{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
}

.faq-main-title {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.faq-item {
    border: 1px solid var(--faq-border);
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    background: var(--faq-bg);
    margin: 10px 40px 0px 40px;
}

.faq-question {
    /* width: 100%; */
    min-width: 100%;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    align-items: center;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: var(--faq-text);
    transition: var(--faq-transition);
}

.faq-question:hover {
    background-color: #f9f9f9;
}

.faq-icon::before, .faq-icon::after {
    content: '';
    position: absolute;
    background-color: var(--faq-accent);
    transition: var(--faq-transition);
}

/* Linha horizontal */
.faq-icon::before {
    width: 100%;
    height: 2px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

/* Linha vertical (para formar o +) */
.faq-icon::after {
    width: 2px;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

/* Transformação para o ícone de menos (-) */
.faq-item.active .faq-icon::after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

/* Animação suave da resposta */
.faq-answer {
    display: grid;
    grid-template-rows: 0fr; /* Altura zero */
    transition: grid-template-rows var(--faq-transition);
    font-size: 13px
}

.faq-item.active .faq-answer {
    grid-template-rows: 1fr; /* Altura automática fluida */
}

.faq-answer-content {
    overflow: hidden;
}

.faq-answer p {
    padding: 0 20px 20px 20px;
    margin: 0;
    color: #666;
    line-height: 1.6;
}

/* Destaque quando ativo */
.faq-item.active {
    border-color: var(--faq-accent);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

@media(max-width: 1280px){
    .faq-question{
        font-size: 13px;
        width: 90%
    }
    .faq-item{
        width: 90%;
    }
    .faq-answer{
        width: 90%;
    }
}