/* FAQ Page Styles */

/* FAQ Hero */
.faq-hero {
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
    padding: 8rem 0 4rem;
    text-align: center;
    color: white;
    margin-top: 80px;
}

.faq-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.faq-hero p {
    font-size: 1.3rem;
    opacity: 0.9;
}

/* FAQ Content */
.faq-content {
    padding: 4rem 0;
    background: #f8fafc;
}

/* FAQ Categories */
.faq-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.faq-category {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    color: #555;
}

.faq-category:hover {
    border-color: #1a237e;
    color: #1a237e;
}

.faq-category.active {
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
    border-color: #1a237e;
    color: white;
}

.faq-category i {
    font-size: 1.2rem;
}

/* FAQ Sections */
.faq-section {
    display: none;
    max-width: 900px;
    margin: 0 auto;
}

.faq-section.active {
    display: block;
}

.faq-section h2 {
    font-size: 2rem;
    color: #1a237e;
    margin-bottom: 2rem;
    text-align: center;
}

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

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

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
    padding-right: 1rem;
}

.faq-question i {
    color: #1a237e;
    transition: transform 0.3s ease;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 2rem 1.5rem;
}

.faq-answer p {
    color: #666;
    line-height: 1.8;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .faq-hero {
        padding: 6rem 0 3rem;
    }
    
    .faq-hero h1 {
        font-size: 2rem;
    }
    
    .faq-categories {
        gap: 0.5rem;
    }
    
    .faq-category {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .faq-category span {
        display: none;
    }
    
    .faq-question {
        padding: 1rem 1.5rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 1.5rem 1rem;
    }
}

/* RTL Support */
[dir="rtl"] .faq-question h3 {
    padding-right: 0;
    padding-left: 1rem;
}

[dir="rtl"] .faq-category {
    flex-direction: row-reverse;
}
