/* FAQ Section Specific Styles (Based on Payout Section) */
.faq-section {
    position: relative;
    padding: 10px 0 80px;
    overflow: hidden;
    background-color: #0f172a;
    /* Dark background as per payout.html */
    color: #f1f5f9;
    font-family: 'Outfit', sans-serif;

    /* Scoped Variables (Reuse payout variables) */
    --faq-primary: #6366f1;
    --faq-primary-light: #818cf8;
    --faq-primary-dark: #4f46e5;
    --faq-secondary: #8b5cf6;
    --faq-accent: #10b981;
    --faq-accent-light: #34d399;
    --faq-gold: #f59e0b;
    --faq-gold-light: #fbbf24;
    --faq-dark-bg: #0f172a;
    --faq-dark-card: #1e293b;
    --faq-dark-border: #334155;
    --faq-dark-text: #f1f5f9;
    --faq-dark-subtext: #cbd5e1;
    --faq-gradient-primary: linear-gradient(135deg, #6366f1, #8b5cf6);
    --faq-gradient-accent: linear-gradient(135deg, #10b981, #0d9488);
    --faq-gradient-gold: linear-gradient(135deg, #f59e0b, #d97706);
    --faq-gradient-multi: linear-gradient(135deg, #6366f1, #8b5cf6, #10b981);
    --faq-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --faq-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --faq-shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.4);
    --faq-shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.5);
    --faq-shadow-glow: 0 0 60px rgba(99, 102, 241, 0.25);
    --faq-radius-sm: 12px;
    --faq-radius-md: 16px;
    --faq-radius-lg: 24px;
    --faq-radius-xl: 32px;
}

/* Background Pattern */
.faq-section .background-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: var(--faq-dark-bg);
    opacity: 1;
    overflow: hidden;
    pointer-events: none;
}

.faq-section .pattern-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
    background-size: 100px 100px, 80px 80px;
    opacity: 0.5;
}

.faq-section .pattern-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(90deg, transparent 49.9%, rgba(99, 102, 241, 0.02) 50%, transparent 50.1%),
        linear-gradient(transparent 49.9%, rgba(99, 102, 241, 0.02) 50%, transparent 50.1%);
    background-size: 50px 50px, 50px 50px;
    opacity: 0.3;
}

.faq-section .floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.05;
    animation: faqFloatShape 35s infinite ease-in-out;
}

@keyframes faqFloatShape {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.05;
    }

    33% {
        transform: translate(60px, -70px) scale(1.15);
        opacity: 0.08;
    }

    66% {
        transform: translate(-40px, 50px) scale(0.9);
        opacity: 0.06;
    }
}

/* Layout */
.faq-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* Header Adjustments to match site style */
.faq-header {
    margin-top: 10px !important;
    margin-bottom: 4px;
    background: transparent !important;
    border: none !important;
    position: relative !important;
    top: auto !important;
    z-index: 10 !important;
    text-align: center;
}

.faq-header h3 {
    margin-top: 0 !important;
    font-family: 'Outfit', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #EC4899 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    line-height: 1.1;
    display: inline-block;
    position: relative;
    width: fit-content;
}

.faq-header h3::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    max-width: 120px;
    height: 4px;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #EC4899 100%);
    border-radius: 2px;
}

/* FAQ Grid */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    /* Wider cards for text */
    gap: 30px;
    margin-bottom: 0;
}

.faq-card {
    background: rgba(30, 41, 59, 0.4);
    border-radius: var(--faq-radius-lg);
    padding: 2px 40px;
    border: 1px solid var(--faq-dark-border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.faq-card:hover {
    transform: translateY(-5px);
    border-color: var(--faq-primary);
    box-shadow: var(--faq-shadow-xl);
}

.faq-question {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 16px;
    color: var(--faq-dark-text);
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.faq-number {
    color: var(--faq-primary-light);
    font-size: 1.4rem;
    font-weight: 800;
    margin-right: 5px;
}

.faq-answer {
    font-size: 1.1rem;
    color: var(--faq-dark-subtext);
    line-height: 1.7;
    margin-left: 45px;
    /* Align with text start */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease-out;
}

.faq-card.active .faq-answer {
    max-height: 300px;
    /* Arbitrary large height */
    opacity: 1;
    margin-top: 15px;
}

.faq-question {
    cursor: pointer;
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 0;
    /* Remove bottom margin when closed */
    color: var(--faq-dark-text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
    opacity: 0.65;
    transition: opacity 0.3s ease;
}

.faq-card:hover .faq-question,
.faq-card.active .faq-question {
    opacity: 1;
}

.faq-question-content {
    display: flex;
    align-items: center;
}

.faq-toggle-icon {
    font-size: 1.2rem;
    color: var(--faq-primary);
    transition: transform 0.3s ease;
}

.faq-card.active .faq-toggle-icon {
    transform: rotate(45deg);
    color: var(--faq-accent);
}

.faq-card.active .faq-question {
    margin-bottom: 0;
}


/* Animations */
.faq-section .particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

.faq-section .particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: faqParticleFloat 30s infinite linear;
}

@keyframes faqParticleFloat {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 0.7;
    }

    90% {
        opacity: 0.7;
    }

    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .faq-header {
        margin-bottom: 40px;
    }

    .faq-header h3 {
        font-size: 2.8rem;
    }

    .faq-card {
        padding: 2px 25px;
    }

    .faq-answer {
        margin-left: 0;
        margin-top: 10px;
    }

    .faq-question {
        flex-direction: column;
        gap: 5px;
    }
}