/* faq.css - FAQ Section Styles */

/* FAQ Section Container */
.faq-section {
    padding: 4rem 1.5rem;
    background: #ffffff;
}

.faq-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-section .section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.faq-section .section-header p {
    color: #4a5568;
    font-size: 1.125rem;
}

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

/* Individual FAQ Item */
.faq-item {
    background: #f7fafc;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
    border-color: #8a2be2;
    box-shadow: 0 2px 4px rgba(106, 17, 203, 0.08);
}

/* FAQ Question */
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    color: #1a1a2e;
    background: #ffffff;
    transition: background 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-question:hover {
    background: #edf2f7;
}

.faq-question i {
    color: #6a11cb;
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.1rem;
}

/* Active State - Rotate Icon */
.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* FAQ Answer */
.faq-answer {
    max-height: 0;
    padding: 0 2rem;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.2s ease;
    color: #4a5568;
    line-height: 1.6;
    background: #f7fafc;
}

/* Active State - Show Answer */
.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 2rem 1.5rem 2rem;
}

/* FAQ Answer Links */
.faq-answer a {
    color: #6a11cb;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dashed #8a2be2;
}

.faq-answer a:hover {
    color: #5a0cb3;
    border-bottom-style: solid;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .faq-section {
        padding: 3rem 1rem;
    }
    
    .faq-question {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 1.5rem 1rem 1.5rem;
    }
    
    .faq-answer {
        font-size: 0.9rem;
    }
    
    .faq-section .section-header h2 {
        font-size: 1.75rem;
    }
}

/* Print Styles - Hide FAQ when printing */
@media print {
    .faq-section {
        display: none !important;
    }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    .faq-item,
    .faq-question,
    .faq-question i,
    .faq-answer {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
