/* FAQ Section Styles - FIXED */
.faq-section {
    background-color: var(--deep-space, #0a0a18);
    position: relative;
    padding: 120px 0;
}

.faq-section .section-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--starlight, #f8fafc);
    position: relative;
    display: inline-block;
    text-shadow: 0 0 10px var(--cyber-aqua-glow, rgba(6, 182, 212, 0.5));
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
}

.faq-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--neon-violet, #a855f7), var(--cyber-aqua, #06b6d4));
    border-radius: 2px;
}

.faq-section .section-subtitle {
    font-size: 1.25rem;
    color: var(--cosmic-text, #e2e8f0);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.6;
    opacity: 0.8;
    font-family: 'Exo 2', sans-serif;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: var(--space-light, #1e1e3f);
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.18));
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--cyber-aqua, #06b6d4);
    box-shadow: 0 5px 20px var(--cyber-aqua-glow, rgba(6, 182, 212, 0.3));
}

.faq-item.active {
    border-color: var(--neon-violet, #a855f7);
    box-shadow: 0 5px 25px var(--neon-violet-glow, rgba(168, 85, 247, 0.4));
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--starlight, #f8fafc);
    transition: all 0.3s ease;
    font-family: 'Exo 2', sans-serif;
    font-size: 1.1rem;
    user-select: none;
    -webkit-user-select: none;
}

.faq-question:hover {
    color: var(--cyber-aqua, #06b6d4);
    background: rgba(6, 182, 212, 0.05);
}

.faq-item.active .faq-question {
    color: var(--neon-violet, #a855f7);
    background: rgba(168, 85, 247, 0.05);
}

.faq-question i {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--cyber-aqua, #06b6d4);
    font-size: 0.9rem;
    min-width: 16px;
    text-align: center;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--neon-violet, #a855f7);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.02);
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 2000px; /* Increased to accommodate content */
}

.faq-answer-content {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
}

.faq-item.active .faq-answer-content {
    opacity: 1;
    transform: translateY(0);
}

.faq-answer p {
    color: var(--cosmic-text, #e2e8f0);
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-family: 'Exo 2', sans-serif;
}

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

.faq-answer ul {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.faq-answer li {
    margin-bottom: 0.8rem;
    color: var(--cosmic-text, #e2e8f0);
    position: relative;
    padding-left: 1.5rem;
    opacity: 0.8;
    line-height: 1.5;
}

.faq-answer li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--matrix-green, #22c55e);
    text-shadow: 0 0 8px var(--matrix-green-glow, rgba(34, 197, 94, 0.5));
    font-weight: bold;
}

.faq-answer strong {
    color: var(--starlight, #f8fafc);
    font-weight: 600;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .faq-section .section-title {
        font-size: 2.2rem;
    }
    
    .faq-question {
        padding: 1.25rem;
        font-size: 1rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 1.25rem 1.25rem;
    }
    
    .faq-answer {
        padding: 0 1.25rem;
    }
}

@media (max-width: 576px) {
    .faq-section .section-title {
        font-size: 1.8rem;
    }
    
    .faq-question {
        padding: 1rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 1rem 1rem;
    }
    
    .faq-answer {
        padding: 0 1rem;
    }
}
