/* FAQ Page Styles */

/* Header Section */
.faq-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.faq-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 1rem;
}

.faq-subtitle {
    font-size: 1.125rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Content Section */
.faq-content-section {
    background-color: #f8f9fa;
    padding: 3rem 0;
}

/* Category Styling */
.faq-category {
    margin-bottom: 1.5rem;
    margin-top: 2.5rem;
}

.faq-category:first-child {
    margin-top: 0;
}

.faq-category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #5190d5;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #5190d5;
}

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

/* Accordion Styles */
.w-faq-accordion {
    /*max-width: 900px;*/
    margin: 0 auto;
}

.w-faq-item {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.w-faq-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.w-faq-item.active {
    box-shadow: 0 4px 20px rgba(81, 144, 213, 0.15);
}

/* Toggle Button */
.w-faq-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    gap: 1rem;
    transition: background-color 0.2s ease;
}

.w-faq-toggle:hover {
    background-color: #f8f9fa;
}

.w-faq-item.active .w-faq-toggle {
    background-color: #5190d5;
}

.w-faq-question {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #333;
    line-height: 1.5;
    flex: 1;
}

.w-faq-item.active .w-faq-question {
    color: #fff;
}

/* Icon */
.w-faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: #f0f4f8;
    color: #5190d5;
    transition: all 0.3s ease;
}

.w-faq-icon i {
    font-size: 0.875rem;
    transition: transform 0.3s ease;
}

.w-faq-item.active .w-faq-icon {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.w-faq-item.active .w-faq-icon i {
    transform: rotate(45deg);
}

/* Answer */
.w-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.w-faq-item.active .w-faq-answer {
    max-height: 1000px;
    transition: max-height 0.5s ease-in;
}

.w-faq-answer-inner {
    padding: 1.5rem 1.5rem 1.5rem 1.5rem;
    color: #555;
    line-height: 1.7;
}

.w-faq-answer-inner p {
    margin: 0 0 1rem 0;
}

.w-faq-answer-inner p:last-child {
    margin-bottom: 0;
}

.w-faq-answer-inner ul,
.w-faq-answer-inner ol {
    margin: 0 0 1rem 1.5rem;
    padding: 0;
}

.w-faq-answer-inner li {
    margin-bottom: 0.5rem;
}

.w-faq-answer-inner a {
    color: #5190d5;
    text-decoration: none;
    transition: color 0.2s ease;
}

.w-faq-answer-inner a:hover {
    color: #3a6ea5;
    text-decoration: underline;
}

/* CTA Section */
.faq-cta-section {
    background: linear-gradient(135deg, #5190d5 0%, #3a6ea5 100%);
}

.faq-cta {
    text-align: center;
    padding: 2rem 0;
}

.faq-cta-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.75rem 0;
}

.faq-cta-text {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 1.5rem 0;
}

.faq-cta .w-btn {
    background: #fff;
    color: #5190d5;
    padding: 0.875rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.faq-cta .w-btn:hover {
    background: #f0f4f8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* RTL Support */
html[dir="rtl"] .w-faq-toggle,
body.rtl .w-faq-toggle {
    text-align: right;
}

/*html[dir="rtl"] .faq-category-title,*/
/*body.rtl .faq-category-title {*/
/*    flex-direction: row-reverse;*/
/*}*/

/* Responsive Design */
@media (max-width: 768px) {
    .faq-title {
        font-size: 1.875rem;
    }

    .faq-subtitle {
        font-size: 1rem;
    }

    .w-faq-toggle {
        padding: 1rem 1.25rem;
    }

    .w-faq-question {
        font-size: 1rem;
    }

    .w-faq-answer-inner {
        padding: 0 1.25rem 1.25rem 1.25rem;
        font-size: 0.9375rem;
    }

    .faq-cta-title {
        font-size: 1.5rem;
    }

    .faq-cta-text {
        font-size: 1rem;
    }

    .faq-category-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .faq-header {
        padding: 1rem 0;
    }

    .faq-title {
        font-size: 1.5rem;
    }

    .w-faq-icon {
        width: 28px;
        height: 28px;
        min-width: 28px;
    }

    .w-faq-icon i {
        font-size: 0.75rem;
    }
}

/* Animation for page load */
.w-faq-item {
    opacity: 0;
    transform: translateY(20px);
    animation: faqFadeIn 0.5s ease forwards;
}

.w-faq-item:nth-child(1) { animation-delay: 0.1s; }
.w-faq-item:nth-child(2) { animation-delay: 0.15s; }
.w-faq-item:nth-child(3) { animation-delay: 0.2s; }
.w-faq-item:nth-child(4) { animation-delay: 0.25s; }
.w-faq-item:nth-child(5) { animation-delay: 0.3s; }
.w-faq-item:nth-child(6) { animation-delay: 0.35s; }
.w-faq-item:nth-child(7) { animation-delay: 0.4s; }
.w-faq-item:nth-child(8) { animation-delay: 0.45s; }
.w-faq-item:nth-child(9) { animation-delay: 0.5s; }
.w-faq-item:nth-child(10) { animation-delay: 0.55s; }

@keyframes faqFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-cta .w-btn span.w-btn-label {
    color: black;
}

.faq-cta .w-btn:hover span.w-btn-label {
    color: white;
}