/* FAQ Section */
.faq-section {
    /* Aligning with bottom padding flow */
    width: 100%;
    max-width: 1280px;
    margin: 64px auto 128px auto;
}

.faq-container-box {
    background: var(--color-bg-second);
    /* neutral-900 / #171717 */
    border-radius: 48px;
    margin: 0 32px;
    padding: 64px;
    box-sizing: border-box;
}

.faq-content-wrapper {
    display: flex;
    gap: 64px;
    justify-content: center;
    align-items: flex-start;
    /* Centered in container */
}

/* FAQ Header */
.faq-header {
    flex: 1;
    max-width: 500px;
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

.faq-header h2 {
    margin: 0;
}

/* FAQ List */
.faq-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.faq-item {
    background: #000000;
    border-radius: 16px;
    padding: 0;
    width: 100%;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.faq-item.active {
    border-color: rgba(255, 255, 255, 0.1);
}

.faq-question {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #FFFFFF;
    line-height: 1.3;
    cursor: pointer;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-icon {
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 6V18M6 12H18' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    /* Turn plus into x */
}

/* Accordion Animation using Grid */
.faq-answer-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    /* Apple-like ease */
}

.faq-item.active .faq-answer-wrapper {
    grid-template-rows: 1fr;
}

.faq-answer {
    overflow: hidden;
    color: rgba(235, 235, 245, 0.75);
    font-size: 16px;
    line-height: 1.5;
}

.faq-answer p {
    padding: 0 24px 24px 24px;
    /* Padding inside the auto-height element */
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .faq-content-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 48px;
    }

    .faq-header {
        max-width: 100%;
        position: static;
        /* Disable sticky on mobile */
    }

    .faq-container-box {
        padding: 48px 32px;
        margin: 0 24px;
    }
}

@media (max-width: 768px) {
    .faq-question {
        font-size: 20px;
    }

    .faq-item {
        padding: 12px;
    }
}