/* Index Page Q&A Section Styling */
.index-qa-section {
    padding: 10px 5px 0 0;
    margin: 0;
    min-height: 100%;
    max-height: 100%;
    overflow-y: auto;
}

.index-qa-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.index-qa-item:last-child {
    margin-bottom: 0;
}

.index-qa-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.index-qa-question {
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
    color: #1f2937;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px;
    transition: background-color 0.2s ease;
}

.index-qa-question:hover {
    background-color: #f8f9fa;
    border-radius: 12px;
}

.index-qa-answer {
    padding: 15px 20px;
    background-color: #f9fafb;
    color: #374151;
    line-height: 1.6;
}

.index-answer-text {
    margin: 0;
}

.index-toggle-icon {
    font-size: 18px;
    font-weight: bold;
    color: #6b7280;
    transition: transform 0.2s ease;
}

/* Index Pagination Styling */

.index-pagination-btn {
    margin: 0 5px;
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: normal;
    transition: all 0.3s ease;
    min-width: 40px;
}

.index-pagination-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Index Empty State Styling */
.index-qa-section .index-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: white;
}

.index-qa-section .index-empty-state i {
    font-size: 48px;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.8);
}

.index-qa-section .index-empty-state h3 {
    margin-bottom: 10px;
    color: white;
}

.index-qa-section .index-empty-state p {
    color: rgba(255,255,255,0.8);
    margin: 0;
}

/* Custom scrollbar for Index Q&A section */
.index-qa-section::-webkit-scrollbar {
    width: 6px;
}

.index-qa-section::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
}

.index-qa-section::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
}

.index-qa-section::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5);
}

/* Responsive Design for Index */
@media (max-width: 768px) {
    .index-qa-section {
        padding: 10px 6px 0;
        margin: 0 0;
    }
    
    .index-qa-question {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .index-qa-answer {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .index-pagination-btn {
        padding: 6px 10px;
        margin: 0 3px;
        min-width: 35px;
        font-size: 14px;
    }
    
    #index-pagination {
        margin: 0;
        padding: 10px 0;
    }
}

@media (max-width: 480px) {
    .index-qa-section {
        padding: 10px 6px 0;
        margin: 0 0;
    }
    
    .index-qa-question {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .index-qa-answer {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .index-pagination-btn {
        padding: 5px 8px;
        margin: 0 2px;
        min-width: 30px;
        font-size: 12px;
    }
} 