/* FAQ Page Styles */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

/* Search Container */
.search-container {
    max-width: 500px;
    margin: 0 auto;
}

.search-box {
    position: relative;
    background: white;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 1.1rem;
}

.search-input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border: none;
    outline: none;
    font-size: 1rem;
    background: transparent;
}

.search-input::placeholder {
    color: #6c757d;
}

/* Categories Section */
.categories-section {
    background: white;
    padding: 40px 0;
    border-bottom: 1px solid #e9ecef;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.category-tab {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.category-tab:hover {
    background: #e9ecef;
    border-color: #667eea;
}

.category-tab.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.faq-category {
    margin-bottom: 3rem;
}

.category-title {
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #667eea;
    display: inline-block;
}

.faq-item {
    background: white;
    border-radius: 15px;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.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 h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    padding-right: 20px;
}

.faq-question i {
    color: #667eea;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

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

.faq-item.active .faq-answer {
    padding: 25px 30px;
    max-height: 500px;
}

.faq-answer p {
    color: #495057;
    line-height: 1.7;
    margin: 0;
    font-size: 1rem;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: white;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.contact-subtitle {
    color: #6c757d;
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.contact-options {
    margin-top: 2rem;
}

.contact-option {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid transparent;
}

.contact-option:hover {
    background: white;
    border-color: #667eea;
    color: inherit;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.contact-option i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 1rem;
    display: block;
}

.contact-option h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.contact-option p {
    color: #6c757d;
    margin: 0;
    font-size: 0.95rem;
}

/* Footer */
.footer-section {
    background: #2c3e50;
    color: white;
    padding: 30px 0;
}

.footer-section p {
    margin: 0;
    opacity: 0.8;
}

/* Search functionality */
.faq-item.hidden {
    display: none;
}

.faq-category.empty {
    display: none;
}

.search-results-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 2rem;
    text-align: center;
}

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

.no-results i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .category-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .category-tab {
        flex-shrink: 0;
    }
    
    .faq-question {
        padding: 20px;
    }
    
    .faq-question h3 {
        font-size: 1.1rem;
    }
    
    .faq-answer {
        padding: 0 20px;
    }
    
    .faq-item.active .faq-answer {
        padding: 20px;
    }
    
    .contact-title {
        font-size: 2rem;
    }
    
    .contact-option {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .search-box i {
        left: 15px;
    }
    
    .search-input {
        padding: 12px 15px 12px 40px;
        font-size: 0.95rem;
    }
    
    .category-tab {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .faq-question {
        padding: 15px;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 15px;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
}

/* Smooth animations */
html {
    scroll-behavior: smooth;
}

/* Highlight search terms */
.highlight {
    background: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Accessibility improvements */
.faq-question:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.category-tab:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .hero-section,
    .categories-section,
    .contact-section,
    .footer-section,
    nav {
        display: none;
    }
    
    .faq-item {
        box-shadow: none;
        border: 1px solid #dee2e6;
        page-break-inside: avoid;
    }
    
    .faq-answer {
        max-height: none;
        padding: 20px !important;
    }
    
    .faq-question i {
        display: none;
    }
}