:root {
    --primary-red: #ff0000;
    --dark-red: #cc0000;
    --bg-black: #0f0f0f;
    --pure-black: #000000;
    --card-bg: #111111;
    --text-light: #ffffff;
    --text-gray: #cccccc;
}

/* ================= CONTAINER ================= */
#questions-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: var(--bg-black);
}

/* ================= BACKGROUND ================= */
.question-bg {
    position: absolute;
    inset: 0;

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    z-index: 1;
}

/* ================= OVERLAY ================= */
.question-overlay {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.65);

    z-index: 2;
}


/* ================= SECTION ================= */
.questions {
    position: relative;
    z-index: 3;

    width: 100%;
    max-width: 1400px;

    padding: 100px 20px;

    margin: 0 auto;

    display: flex;
    flex-direction: column;
}

/* ================= HEADER ================= */
.question-header {

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
}

.question-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.question-header::before,
.question-header::after {
    content: "";
    height: 2px;
    flex-grow: 1;
    max-width: 150px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}
/* ================= FAQ CONTAINER ================= */
.faq-container {
    width: 100%;
    max-width: 100%;

    display: flex;
    flex-direction: column;

    gap: 18px;
}

/* ================= FAQ ITEM ================= */
.faq-item {

    width: 100%;

    background: linear-gradient(
        145deg,
        rgba(20,20,20,0.92),
        rgba(10,10,10,0.75)
    );

    border: 1px solid rgba(255,255,255,0.06);

    border-radius: 14px;

    overflow: hidden;

    transition: all 0.35s ease;

    backdrop-filter: blur(14px);

    box-shadow:
        0 0 0 1px rgba(255,255,255,0.02),
        0 12px 40px rgba(0,0,0,0.5);
}

/* ================= HOVER ================= */
.faq-item:hover {
    border-color: rgba(255,0,0,0.25);
    transform: translateY(-2px);
}

/* ================= ACTIVE ================= */
.faq-item.active {

    border-color: rgba(255,0,0,0.45);

    box-shadow:
        0 0 20px rgba(255,0,0,0.12),
        0 15px 50px rgba(0,0,0,0.7);
}

/* ================= QUESTION ================= */
.faq-question {

    width: 100%;

    background: transparent;
    border: none;
    outline: none;

    padding: 26px 32px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    cursor: pointer;

    color: #fff;

    font-size: 1rem;
    font-weight: 600;
    text-align: left;

    transition: 0.3s;
}

/* ================= ICON ================= */
.faq-icon {

    font-size: 2.2rem;

    color: rgba(255,255,255,0.7);

    transition:
        transform 0.35s ease,
        color 0.3s ease;
}

/* ROTATE */
.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: #fff;
}

/* ================= ANSWER ================= */
.faq-answer {

    max-height: 0;

    overflow: hidden;

    transition:
        max-height 0.4s ease,
        padding 0.3s ease;
}

/* ACTIVE ANSWER */
.faq-item.active .faq-answer {

    max-height: 300px;

    padding:
        0 32px 28px 32px;
}

/* ================= TEXT ================= */
.faq-answer p {

    color: var(--text-gray);

    line-height: 1.8;

    font-size: 0.96rem;

    max-width: 95%;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

    .questions {
        padding: 90px 20px;
    }

    .question-header {
        margin-bottom: 40px;
    }

    .faq-container {
        gap: 14px;
    }

    .faq-question {

        padding: 20px 20px;

        font-size: 0.95rem;

        gap: 16px;
    }

    /* SCROLL NAS RESPOSTAS */
    .faq-item.active .faq-answer {

        max-height: 220px;

        overflow-y: auto;

        padding:
            0 20px 20px 20px;
    }

    /* ESTILO DA SCROLLBAR */
    .faq-answer::-webkit-scrollbar {
        width: 4px;
    }

    .faq-answer::-webkit-scrollbar-thumb {
        background: rgba(255, 0, 0, 0.6);
        border-radius: 10px;
    }

    .faq-answer::-webkit-scrollbar-track {
        background: transparent;
    }

    .faq-answer p {
        font-size: 0.92rem;
        max-width: 100%;
    }

}