/* static/css/faq.css */
.faq-container {
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--card);
    color: var(--text);
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid var(--border);
}

.back-btn:hover {
    background-color: var(--background);
}

.faq-section {
    margin-bottom: 2.5rem;
    animation: fadeIn 0.5s ease-out;
}

.faq-section h2 {
    color: var(--text);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-family: 'Poppins', sans-serif;
}

.faq-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.25rem;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text);
    font-weight: 500;
    font-size: 1rem;
}

.faq-question span {
    flex: 1;
    margin-right: 1rem;
}

.faq-question i {
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    border-top: 0px solid var(--border);
}

.faq-answer p {
    padding: 1.25rem;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
}

.faq-answer ul, .faq-answer ol {
    padding: 0 1.25rem 1.25rem 2.5rem;
    color: var(--text-muted);
}

.faq-answer li {
    margin-bottom: 0.5rem;
}

.faq-item.active .faq-question {
    border-bottom: 1px solid var(--border);
}

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

.faq-item.active .faq-answer {
    max-height: 500px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .faq-container {
        padding: 1rem;
    }
    
    .faq-question {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .faq-answer p {
        padding: 1rem;
    }
    
    .faq-answer ul, .faq-answer ol {
        padding: 0 1rem 1rem 2rem;
    }
}
