/* FAQ Page Styles */
.faq-main { 
    background: #f8f9fa;
    padding-top: 0;
    margin-top: 0;
}

/* Fix for header overlap */
.faq-main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.faq-main .hero-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
    position: relative;
}

/* Hero Section Enhancements - Cloned from Academy */
.faq-main .hero-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
    position: relative;
    background: radial-gradient(49.91% 49.91% at 50% 50.09%, rgba(95, 37, 158, 0.2) 0%, rgba(70, 24, 114, 0.2) 100%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
        url('../images/academy/banner.jpg') no-repeat center center;
    color: white;
    overflow: hidden;
    min-height: auto;
    background-size: cover;
}



.faq-main .hero-section .container {
    position: relative;
    z-index: 2;
    padding: 0;
    margin-top: 0;
    height: 285px;
    display: flex;
    align-items: center;
}

/* Add bottom margin for proper flow */
.faq-main .hero-section {
    margin-bottom: 0;
}

/* Override any common hero section margins */
.faq-main .default-common-hero-section {
    margin: 0 !important;
    padding: 0 !important;
}

/* Global override for any header overlap */
body .faq-main .hero-section,
html .faq-main .hero-section,
.faq-main .hero-section.default-common-hero-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
    top: 0 !important;
    position: relative !important;
}



.faq-main .common-banner-content h1 {
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 0;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.faq-main .common-banner-content p {
    color: rgba(255,255,255,0.95);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    font-weight: 500;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
}







/* FAQ Navigation Section */
.faq-navigation-section {
    background: white;
    border-bottom: 1px solid #e9ecef;
    padding: 20px 0 0;
    position: sticky;
    top: 0;
    z-index: 101;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-top: 0;
}

/* Add proper spacing between hero and navigation */
.faq-main .hero-section + .faq-navigation-section {
    margin-top: 0;
}

/* Make breadcrumb sticky as well */
.faq-breadcrumb {
    position: sticky;
    top: 0;
    background: white;
    z-index: 103;
    padding: 20px 0 15px;
    font-size: 0.9rem;
    color: #6c757d;
    border-bottom: 1px solid #f1f3f4;
}

.faq-navigation-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 102;
    background: white;
}



.faq-breadcrumb .separator {
    margin: 0 10px;
    color: #dee2e6;
}

.faq-breadcrumb .current-category {
    color: #2c3e50;
    font-weight: 500;
}

/* Horizontal Navigation Tabs */
.faq-nav-tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.faq-nav-tabs::-webkit-scrollbar {
    display: none;
}

.nav-tab {
    background: transparent;
    border: none;
    padding: 20px 25px;
    font-size: 1rem;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    position: relative;
}

.nav-tab:hover {
    color: #667eea;
    background: #f8f9fa;
}

.nav-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: #f8f9fa;
    font-weight: 600;
}

.nav-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: #667eea;
    border-radius: 2px 2px 0 0;
}

/* FAQ Content Section */
.faq-content-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin-top: 20px;
}

.faq-category-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.faq-category-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.category-header {
    text-align: center;
    margin-bottom: 50px;
}

.category-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.category-header p {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

/* FAQ Accordion */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    transition: background-color 0.3s ease;
}

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

.faq-question h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    flex: 1;
    padding-right: 20px;
}

.toggle-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
    transition: all 0.3s ease;
    min-width: 20px;
    text-align: center;
}

.faq-item.active .toggle-icon {
    transform: rotate(45deg);
    color: #764ba2;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f8f9fa;
}

.faq-answer p {
    padding: 0 30px 25px;
    margin: 0;
    color: #6c757d;
    line-height: 1.6;
    font-size: 1rem;
}



/* FAQ Side by Side Layout */
.faq-side-by-side {
    display: flex;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.faq-questions-list {
    flex: 0 0 400px;
    max-height: 600px;
    overflow-y: auto;
    border-right: 1px solid #e9ecef;
    padding-right: 20px;
}

.faq-question-item {
    padding: 15px 20px;
    margin-bottom: 10px;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #f1f3f4;
}

.faq-question-item:hover {
    background: #f8f9fa;
    border-color: #667eea;
    transform: translateX(5px);
}

.faq-question-item.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.faq-question-item h4 {
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
}

.faq-answers-panel {
    flex: 1;
    min-height: 600px;
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.faq-answer-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.faq-answer-content.active {
    display: block;
}

.faq-answer-content h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.3;
}

.faq-answer-content p {
    color: #6c757d;
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
}

.answer-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.answer-placeholder h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.answer-placeholder p {
    font-size: 1.1rem;
    margin: 0;
}

/* Scrollbar Styling */
.faq-questions-list::-webkit-scrollbar {
    width: 6px;
}

.faq-questions-list::-webkit-scrollbar-track {
    background: #f1f3f4;
    border-radius: 3px;
}

.faq-questions-list::-webkit-scrollbar-thumb {
    background: #c1c7cd;
    border-radius: 3px;
}

.faq-questions-list::-webkit-scrollbar-thumb:hover {
    background: #667eea;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .faq-side-by-side {
        flex-direction: column;
        gap: 30px;
    }
    
    .faq-questions-list {
        flex: none;
        max-height: 400px;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        padding-right: 0;
        padding-bottom: 20px;
    }
    
    .faq-answers-panel {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .faq-side-by-side {
        gap: 20px;
    }
    
    .faq-questions-list {
        max-height: 300px;
    }
    
    .faq-answers-panel {
        padding: 20px;
    }
    
    .faq-question-item {
        padding: 12px 15px;
    }
    
    .faq-question-item h4 {
        font-size: 0.9rem;
    }
}

/* Animation Enhancements */
.faq-item {
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-tab {
    animation: fadeInScale 0.6s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hover Effects */
.faq-item:hover .faq-question h4 {
    color: #667eea;
}

.faq-item.active .faq-question {
    background: #f0f2ff;
}

.faq-item.active .faq-question h4 {
    color: #667eea;
}

/* Focus States for Accessibility */
.category-tab:focus,
.faq-question:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Loading States */
.faq-category-content.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Print Styles */
@media print {
    .faq-category-tabs,
    .contact-support-section {
        display: none;
    }
    
    .faq-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .faq-answer {
        max-height: none !important;
        display: block !important;
    }
}
