/* Styles for FAQ page */

/* Hero Section */
.faq-hero {
    background-color: var(--primary-color);
    color: white;
    padding: 4rem 5%;
    text-align: center;
}

.faq-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.faq-hero .subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.faq-search {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    position: relative;
}

.faq-search input {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 30px;
    border: none;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq-search button {
    position: absolute;
    right: 5px;
    top: 5px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-search button:hover {
    background-color: var(--link-hover-color);
}

/* FAQ Categories */
.faq-categories {
    background-color: var(--background-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 70px;
    z-index: 10;
}

.categories-list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 1rem 0;
    gap: 0.5rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.categories-list::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.category-btn {
    background: none;
    border: none;
    padding: 0.7rem 1.2rem;
    font-size: 0.95rem;
    color: var(--text-color);
    cursor: pointer;
    border-radius: 20px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.category-btn:hover {
    background-color: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
}

.category-btn.active {
    background-color: var(--primary-color);
    color: white;
}

/* FAQ Content */
.faq-content {
    padding: 3rem 5%;
    background-color: var(--background-color);
}

.faq-content .container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-category {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.faq-category.active {
    display: block;
}

.faq-category h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.faq-item {
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-color);
}

.faq-question {
    padding: 1.5rem;
    background-color: var(--background-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question h3 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--text-color);
    font-weight: 600;
}

.faq-toggle {
    color: var(--primary-color);
    font-size: 1rem;
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 1000px;
}

.faq-answer p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-color);
    opacity: 0.8;
}

.faq-answer a {
    color: var(--primary-color);
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* Contact Section */
.faq-contact {
    padding: 3rem 5%;
    background-color: var(--secondary-color);
}

.contact-wrapper {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    background-color: var(--background-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.contact-text h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.contact-text p {
    margin-bottom: 2rem;
    color: var(--text-color);
    opacity: 0.8;
}

.contact-actions .btn {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive styles */
@media (max-width: 768px) {
    .faq-hero h1 {
        font-size: 2rem;
    }
    
    .faq-hero .subtitle {
        font-size: 1rem;
    }
    
    .faq-category h2 {
        font-size: 1.5rem;
    }
    
    .faq-question {
        padding: 1.2rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .contact-wrapper {
        padding: 1.5rem;
    }
    
    .contact-text h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .faq-hero {
        padding: 3rem 5%;
    }
    
    .faq-hero h1 {
        font-size: 1.8rem;
    }
    
    .faq-search input {
        padding: 0.8rem 1.2rem;
    }
    
    .category-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .faq-category h2 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-text h2 {
        font-size: 1.3rem;
    }
}
