/* FAQ Block Frontend Styles */
.faq-block {
    background-color: #1E202A;
    padding: 40px 40px;
    margin: 20px -25px;
    min-width: 976px;
    border-radius: 10px;
    margin-top: 40px;
}

.faq-container {
    max-width: 1200px;
    margin: 0 auto;
}

.faq-title {
    text-align: left;
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--faq-title-color, #681AE6);
    line-height: 100%;
    margin: 0 0 20px 0;
    font-family: 'Clash Display', 'Clash Display Variable', sans-serif !important;
}

.faq-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 40px 0;
    max-width: 800px;
}

.faq-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* FAQ Questions List */
.faq-questions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 20px;
    text-align: left;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Noto Sans', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
}

.faq-question-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(104, 26, 230, 0.3);
}

.faq-item.is-open .faq-question-btn {
    background: #681AE6;
    border-color: #681AE6;
    color: #ffffff;
    border-radius: 8px;
}

.faq-question-text {
    flex: 1;
    text-align: left;
}

.faq-toggle-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #681AE6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    color: #ffffff;
}

.faq-item.is-open .faq-toggle-icon {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.faq-item.is-open .faq-toggle-icon::before {
    transform: rotate(90deg);
    color: #ffffff;
}

.faq-answer {
    /* Hide the original answer - it will be shown in right panel */
    display: none !important;
}

/* FAQ Selected Content */
.faq-selected {
    background: #E9ECFC;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 32px;
    position: sticky;
    top: 20px;
    min-height: 447px;
}

.faq-selected-content {
    opacity: 1;
    transform: translateY(0);
}

.faq-selected-content h3 {
    color: #2D303E;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 20px 0;
    font-family: 'Vela Sans', sans-serif;
    line-height: 1.3;
}

.faq-selected-content .faq-answer-content {
    color: #626273;
    font-size: 16px;
    line-height: 1.6;
}

.faq-selected-content .faq-answer-content p {
    color: #626273;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 15px 0;
}

.faq-selected-content .faq-answer-content p:last-child {
    margin-bottom: 0;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .faq-block {
        padding: 30px 15px;
        margin: 0;
        min-width: auto;
        border-radius: 0;
    }
    
    .faq-title {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .faq-subtitle {
        font-size: 14px;
        margin-bottom: 30px;
    }
    
    .faq-content {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .faq-questions {
        order: 1;
    }
    
    /* Hide desktop answer panel on mobile */
    .faq-selected {
        display: none !important;
    }
    
    /* Show mobile answer under each question */
    .faq-answer {
        display: block !important;
        background: #1E202A;
        margin-top: 0;
        padding: 0 20px;
        border-top: none;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    /* Show answer when item is open */
    .faq-item.is-open .faq-answer {
        opacity: 1;
        max-height: 500px;
        padding: 20px;
    }
    
    .faq-answer .faq-answer-content {
        color: rgba(255, 255, 255, 0.9) !important;
        font-size: 14px;
        line-height: 1.6;
    }
    
    .faq-answer .faq-answer-content p {
        margin: 0 0 15px 0;
        font-size: 14px;
        color: rgba(255, 255, 255, 0.9) !important;
    }
    
    /* Force white color for all FAQ answer content */
    .faq-answer .faq-answer-content,
    .faq-answer .faq-answer-content *,
    .faq-item .faq-answer .faq-answer-content,
    .faq-item .faq-answer .faq-answer-content *,
    .faq-item.is-open .faq-answer .faq-answer-content,
    .faq-item.is-open .faq-answer .faq-answer-content * {
        color: rgba(255, 255, 255, 0.9) !important;
    }
    
    .faq-answer .faq-answer-content p:last-child {
        margin-bottom: 0;
    }
    
    .faq-question-btn {
        padding: 15px;
        border-radius: 8px 8px 0 0;
    }
    
}

@media (max-width: 480px) {
    .faq-question-btn {
        padding: 12px;
    }
    
    .faq-toggle-icon {
        width: 20px;
        height: 20px;
        font-size: 16px;
    }
    
    .faq-answer .faq-answer-content {
        font-size: 13px;
    }
    
    .faq-answer .faq-answer-content p {
        font-size: 13px;
    }
    
    .faq-item.is-open .faq-answer {
        padding: 15px;
    }
}
