/* FAQ Section */
.faq-section {
    padding: 100px 5%;
    background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.02));
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.1);
}

.faq-question {
    width: 100%;
    padding: 1.5rem 2rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 2rem;
}

.faq-item.active .faq-answer {
    max-height: 2000px;
    padding: 0 2rem 1.5rem 2rem;
    transition: max-height 0.5s ease-in, padding 0.3s ease-in;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul,
.faq-answer ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.faq-answer li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.8rem;
}

.faq-answer li:last-child {
    margin-bottom: 0;
}

.faq-answer strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Light mode specific */
body[data-theme="light"] .faq-item {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(99, 102, 241, 0.1);
}

body[data-theme="light"] .faq-item:hover {
    background: white;
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .faq-question {
        padding: 1.2rem 1.5rem;
        font-size: 1rem;
    }

    .faq-answer {
        padding: 0 1.5rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 1.5rem 1.2rem 1.5rem;
    }
}
