.faq-section {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    min-height: 60vh;
}

.faq-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
}

.faq-subtitle {
    text-align: center;
    margin-bottom: 60px;
    color: var(--color-text-secondary);
    font-size: var(--font-size-xl);
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.faq-question {
    padding: 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: var(--font-weight-semibold);
    font-size: 1.1rem;
    color: var(--color-text);
    user-select: none;
}

.faq-question:hover {
    background-color: rgba(var(--color-primary-rgb), 0.02);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    padding: 0 24px;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 24px 24px;
    border-top: 1px solid transparent; /* Fix for animation smoothness if needed */
}

.faq-icon {
    transition: transform 0.3s ease;
    color: var(--color-primary);
}

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