/* Q&A Page Styles */
.qa-modal, .ask-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 9999;
}

.qa-modal .modal-content, .ask-modal .modal-content {
    background: white;
    border-radius: 20px;
    padding: 0;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 10000;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

.qa-modal .modal-header, .ask-modal .modal-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 2px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.qa-modal .modal-body, .ask-modal .modal-body {
    padding: 2rem;
}

.qa-modal .modal-body h5 {
    color: #1e3a8a;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.qa-modal .modal-body p {
    line-height: 1.7;
    margin-bottom: 1rem;
}

.btn-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.btn-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.animate-modal-in {
    animation: modalFadeIn 0.3s ease-out;
}

.animate-modal-out {
    animation: modalFadeOut 0.3s ease-in;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes modalFadeOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
}
.qa-hero {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(217, 119, 6, 0.05));
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    margin-bottom: 3rem;
}

.question-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(30, 58, 138, 0.08);
    border: 1px solid rgba(30, 58, 138, 0.05);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.question-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: linear-gradient(45deg, #1e3a8a, #d97706);
    transition: left 0.5s ease;
}

.question-card:hover::before {
    left: 0;
}

.question-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.question-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(30, 58, 138, 0.15);
}

.question-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.question-card:hover .question-icon {
    transform: rotate(360deg) scale(1.1);
}

.category-filter {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.1);
    margin-bottom: 2rem;
}

.filter-btn {
    background: rgba(59, 130, 246, 0.1);
    border: 2px solid transparent;
    color: #1e3a8a;
    padding: 10px 20px;
    border-radius: 25px;
    margin: 0.25rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover, .filter-btn.active {
    background: #1e3a8a;
    color: white;
    border-color: #1e3a8a;
    transform: translateY(-2px);
}

.ask-question-card {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    border-radius: 20px;
    padding: 3rem;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ask-question-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
}

.btn-ask {
    background: white;
    color: #d97706;
    border: none;
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.btn-ask:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    color: #d97706;
}

.answer-preview {
    background: rgba(59, 130, 246, 0.05);
    border-left: 4px solid #3b82f6;
    padding: 1rem 1.5rem;
    border-radius: 0 10px 10px 0;
    margin-top: 1rem;
    font-style: italic;
}

.question-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.question-badge {
    background: linear-gradient(45deg, #d97706, #f59e0b);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.ask-form .form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.ask-form .form-control, .ask-form .form-select {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.ask-form .form-control:focus, .ask-form .form-select:focus {
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Staggered animations */
.question-card:nth-child(1) { animation-delay: 0.1s; }
.question-card:nth-child(2) { animation-delay: 0.2s; }
.question-card:nth-child(3) { animation-delay: 0.3s; }
.question-card:nth-child(4) { animation-delay: 0.4s; }
.question-card:nth-child(5) { animation-delay: 0.5s; }
.question-card:nth-child(6) { animation-delay: 0.6s; }

@media (max-width: 768px) {
    .question-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .qa-hero, .ask-question-card {
        padding: 2rem;
    }
    
    .filter-btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
}