/* ============================================================================
   FAQ SECTION STYLING - Professional & SEO-Optimized
   ============================================================================ */

.faq-section {
    margin: 40px 0;
    padding: 30px 0;
    border-top: 2px solid #f0f0f0;
    border-bottom: 2px solid #f0f0f0;
}

.faq-title {
    font-size: 24px;
    font-weight: 600;
    color: #222;
    margin-bottom: 30px;
    text-align: center;
}

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

/* FAQ Item styling */
.faq-item {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
}

.faq-item:hover {
    border-color: #2196F3;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.1);
}

.faq-item.active {
    border-color: #2196F3;
    background: #f8f9fa;
}

/* Question button */
.faq-question {
    width: 100%;
    padding: 18px 20px;
    background: #fff;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
    font-size: 16px;
    font-weight: 500;
    color: #222;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-item.active .faq-question {
    background: #f8f9fa;
    border-bottom-color: #2196F3;
    font-weight: 600;
}

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

.faq-question:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px #2196F3;
}

.question-text {
    flex: 1;
}

/* Icon animation */
.faq-icon {
    font-size: 20px;
    color: #999;
    margin-left: 15px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: #2196F3;
}

/* Answer section */
.faq-answer {
    padding: 20px;
    background: #fafafa;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
    }
    to {
        opacity: 1;
        max-height: 500px;
        overflow: visible;
    }
}

.answer-content p {
    margin: 0 0 15px 0;
    line-height: 1.6;
    color: #555;
}

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

/* Helpful section */
.faq-helpful {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.faq-helpful p {
    margin: 0;
    color: #999;
    font-size: 13px;
    font-weight: 500;
}

.faq-helpful-btn {
    padding: 6px 12px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.faq-helpful-btn:hover {
    background: #e8e8e8;
    border-color: #999;
}

.faq-helpful-btn.active {
    background: #2196F3;
    color: #fff;
    border-color: #2196F3;
}

.helpful-percent {
    font-size: 12px;
    color: #999;
    margin-left: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .faq-section {
        margin: 20px 0;
        padding: 20px 0;
    }
    
    .faq-title {
        font-size: 20px;
    }
    
    .faq-question {
        padding: 15px 15px;
        font-size: 14px;
    }
    
    .faq-icon {
        font-size: 18px;
    }
    
    .faq-answer {
        padding: 15px;
    }
    
    .faq-helpful {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .helpful-percent {
        margin-left: 0;
        margin-top: 8px;
    }
}

/* Accessibility */
.faq-question:focus-visible {
    outline: 2px solid #2196F3;
    outline-offset: 2px;
}

/* Print styling */
@media print {
    .faq-helpful {
        display: none;
    }
    
    .faq-item.active {
        border: 1px solid #999;
    }
    
    .faq-answer {
        display: block !important;
        background: #fff;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .faq-section {
        border-color: #333;
    }
    
    .faq-title {
        color: #eee;
    }
    
    .faq-item {
        background: #1a1a1a;
        border-color: #333;
    }
    
    .faq-question {
        background: #1a1a1a;
        color: #eee;
        border-color: #333;
    }
    
    .faq-item.active .faq-question {
        background: #222;
    }
    
    .faq-answer {
        background: #222;
    }
    
    .answer-content p {
        color: #ccc;
    }
    
    .faq-icon {
        color: #666;
    }
    
    .faq-item.active .faq-icon {
        color: #2196F3;
    }
}
