/* static/css/faq.css */
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

/* Header and Navigation Styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.nav-brand h2 {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 0.95rem;
}

.nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* FAQ Container */
.faq-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 1rem 2rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.faq-container h1 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    text-align: center;
}

.faq-intro {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* FAQ Search */
.search-faq {
    display: flex;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-faq input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border: 1px solid #ddd;
    border-radius: 6px 0 0 6px;
    font-size: 1rem;
}

.search-faq button {
    background: linear-gradient(to right, #6a11cb, #2575fc);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 0 6px 6px 0;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-faq button:hover {
    background: linear-gradient(to right, #5809b5, #1c64e0);
}

/* FAQ Categories */
.faq-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.category-btn {
    padding: 0.6rem 1.2rem;
    background-color: #f0f4f8;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.category-btn:hover, .category-btn.active {
    background: linear-gradient(to right, #6a11cb, #2575fc);
    color: white;
    border-color: #6a11cb;
}

/* FAQ Sections */
.faq-section {
    margin-bottom: 2.5rem;
}

.faq-section h2 {
    font-size: 1.6rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem;
    background-color: #f9fafb;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f0f4f8;
}

.faq-question h3 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-right: 1rem;
}

.toggle-icon {
    font-size: 1.2rem;
    font-weight: bold;
    color: #6a11cb;
    min-width: 20px;
    text-align: center;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 1.2rem;
    background-color: white;
    color: #566573;
    line-height: 1.6;
}

/* Contact Support Section */
.contact-support {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f3f7fc 0%, #e8eaf6 100%);
    border-radius: 12px;
    margin-top: 2rem;
}

.contact-support h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.contact-support p {
    color: #566573;
    margin-bottom: 1.5rem;
}

.support-btn {
    display: inline-block;
    background: linear-gradient(to right, #6a11cb, #2575fc);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.support-btn:hover {
    background: linear-gradient(to right, #5809b5, #1c64e0);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 2rem 1rem;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 1.5rem;
    text-align: center;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #ffdd40;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #ffdd40;
}

.footer-section p {
    color: #ecf0f1;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ffdd40;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #3a506b;
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: row;
        padding: 1rem;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
        padding: 1rem;
        z-index: 100;
        gap: 0.5rem;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .faq-container {
        padding: 1rem;
        margin: 1rem;
    }
    
    .faq-container h1 {
        font-size: 1.8rem;
    }
    
    .faq-section h2 {
        font-size: 1.4rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .search-faq {
        flex-direction: column;
    }
    
    .search-faq input {
        border-radius: 6px 6px 0 0;
    }
    
    .search-faq button {
        border-radius: 0 0 6px 6px;
    }
    
    .faq-categories {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (min-width: 769px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    
    .footer-section {
        flex: 1;
        padding: 0 1rem;
    }
}

/* Very small screens */
@media (max-width: 380px) {
    .nav-brand h2 {
        font-size: 1.5rem;
    }
    
    .nav-menu a {
        font-size: 0.8rem;
        padding: 0.3rem 0.4rem;
    }
    
    .faq-container h1 {
        font-size: 1.6rem;
    }
    
    .faq-section h2 {
        font-size: 1.3rem;
    }
}