/* ========================================
   FAQ Page Styles
   ======================================== */

/* CSS Custom Properties (FAQ-specific) */
:root {
    --color-accent: #a8b4c4;
    --color-bg: #1a1a1a;
    --color-bg-card: #252525;
    --color-bg-card-alt: #2a2a2a;
    --color-text: #c0c4cc;
    --color-text-muted: #808690;
    --color-accent-light: #c0c8d4;
}

/* ========================================
   FAQ Section
   ======================================== */
.faq-section {
    padding: 100px 0 120px;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ========================================
   FAQ Item - Accordion Card
   ======================================== */
.faq-item {
    background-color: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease;
}

.faq-item:hover {
    border-color: rgba(168, 180, 196, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.faq-item.active {
    background-color: var(--color-bg-card-alt);
    border-left: 3px solid var(--color-accent);
    border-color: rgba(168, 180, 196, 0.25);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

/* ========================================
   FAQ Question Button
   ======================================== */
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 30px;
    background: transparent;
    border: none;
    text-align: left;
    font-family: inherit;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.6;
    cursor: pointer;
    transition: background-color 0.3s ease, padding 0.3s ease;
    color: var(--color-text);
}

.faq-question:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.faq-item.active .faq-question {
    padding-bottom: 16px;
}

/* ========================================
   Q Badge
   ======================================== */
.faq-q {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    color: var(--color-bg);
    font-size: 16px;
    font-weight: 700;
    border-radius: 50%;
    box-shadow: 0 3px 12px rgba(168, 180, 196, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover .faq-q {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(168, 180, 196, 0.4);
}

/* ========================================
   Arrow Icon
   ======================================== */
.faq-arrow {
    flex-shrink: 0;
    margin-left: auto;
    color: var(--color-text-muted);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-item:hover .faq-arrow {
    color: var(--color-accent);
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
    color: var(--color-accent);
}

/* ========================================
   FAQ Answer - Smooth Height Transition
   ======================================== */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.4s ease;
    opacity: 0;
}

.faq-item.active .faq-answer {
    opacity: 1;
}

.faq-answer-inner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 0 30px 28px 30px;
    line-height: 2;
    color: var(--color-text-muted);
}

/* ========================================
   A Badge
   ======================================== */
.faq-a {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.06);
    color: var(--color-text-muted);
    font-size: 16px;
    font-weight: 700;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ========================================
   FAQ Answer Text
   ======================================== */
.faq-answer-inner p {
    padding-top: 8px;
    font-size: 15px;
    line-height: 2;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .faq-section {
        padding: 60px 0 80px;
    }

    .faq-list {
        gap: 12px;
    }

    .faq-question {
        padding: 22px 20px;
        font-size: 15px;
        gap: 14px;
    }

    .faq-item.active .faq-question {
        padding-bottom: 12px;
    }

    .faq-q {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .faq-a {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .faq-answer-inner {
        padding: 0 20px 22px 20px;
        gap: 12px;
    }

    .faq-answer-inner p {
        font-size: 14px;
        padding-top: 6px;
    }

    .faq-arrow svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .faq-question {
        padding: 18px 16px;
        font-size: 14px;
        gap: 12px;
    }

    .faq-q {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .faq-a {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .faq-answer-inner {
        padding: 0 16px 18px 16px;
    }
}
