.faq-hero {
    position: relative;
    padding: 140px 0 80px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%);
    color: var(--white-color);
    margin-top: 0px;
    text-align: center;
    overflow: hidden;
}

.faq-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/FAQ/hero-FAQ.webp');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.faq-hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.faq-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.faq-hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.search-box {
    max-width: 500px;
    margin: 2rem auto 0;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    border: none;
    border-radius: 2rem;
    font-size: 1rem;
    background: var(--white-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.search-button {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    border: none;
    color: var(--white-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.search-button:hover {
    background: var(--secondary-color);
}

/* بخش اصلی FAQ */
.faq-main {
    padding: 5rem 0;
    background: var(--background-light);
}

.faq-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 1rem 2rem;
    background: var(--white-color);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 2rem;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-btn:hover,
.category-btn.active {
    background: var(--primary-color);
    color: var(--white-color);
}

.category-icon {
    font-size: 1.1rem;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-category-section {
    margin-bottom: 4rem;
}

.category-header {
    text-align: center;
    margin-bottom: 3rem;
}

.category-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.category-icon-large {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    font-size: 1.5rem;
}

.category-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.faq-items {
    display: grid;
    gap: 1rem;
    border: 1px solid var(--gray-light-color);
    border-radius: 2rem;

}

.faq-item {
    background: var(--white-color);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 2px solid transparent;
}

.faq-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-large);
}

.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--white-color);
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    flex: 1;
    padding-left: 1rem;
}

.faq-toggle {
    width: 40px;
    height: 40px;
    background: var(--background-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: var(--transition);
    flex-shrink: 0;
}

.faq-item.active .faq-toggle {
    background: var(--primary-color);
    color: var(--white-color);
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: var(--white-color);
}

.faq-item.active .faq-answer {
    padding: 0 2rem 2rem;
    max-height: 500px;
}

.faq-answer-content {
    color: var(--text-muted);
    line-height: 1.7;
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
}

.faq-answer-content p {
    margin-bottom: 1rem;
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

.answer-list {
    list-style: none;
    margin: 1rem 0;
}

.answer-list li {
    padding: 0.5rem 0;
    position: relative;
    padding-right: 1.5rem;
}

.answer-list li::before {
    content: '•';
    position: absolute;
    right: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* بخش تماس سریع */
.quick-contact {
    background: var(--white-color);
    border-radius: 1rem;
    padding: 2rem;
    margin-top: 3rem;
    text-align: center;
    box-shadow: var(--shadow-light);
}

.quick-contact-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.quick-contact-description {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-method {
    background: var(--background-light);
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-light);
}

.method-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--white-color);
    font-size: 1.5rem;
}

.method-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.method-info {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* CTA */
.faq-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white-color);
    padding: 5rem 0;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .faq-hero-title {
        font-size: 2.5rem;
    }

    .faq-categories {
        flex-direction: column;
        align-items: center;
    }

    .category-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .category-title {
        font-size: 1.5rem;
    }

    .faq-question {
        padding: 1.25rem 1.5rem;
    }

    .faq-question h3 {
        font-size: 1rem;
    }

    .contact-methods {
        grid-template-columns: 1fr;
    }

    .cta-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .faq-hero-title {
        font-size: 2rem;
    }

    .category-title {
        flex-direction: column;
        gap: 0.5rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 1.5rem 1.5rem;
    }
}

/* animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item {
    animation: fadeInUp 0.6s ease-out;
}