/* FAQ Section Styles */
.faq-section {
    background-color: #f8f9fa;
}

.section-title .main-title {
    color: #1f2937;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 27px;
}

.title-underline {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    margin: 0 auto;
    border-radius: 2px;
}

.faq-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

/* .faq-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
} */

.faq-question {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: none;
    width: 100%;
    text-align: right;
    transition: all 0.3s ease;
    position: relative;
}

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

.faq-question.active {
    background: linear-gradient(290.81deg, #050514 0.29%, #263D95 99.92%) !important;
    color: white;
}

.faq-question.active .question-text {
    color: white;
}

.faq-question.active .faq-icon {
    color: white;
    transform: rotate(0deg);
}

.question-text {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.5;
    flex: 1;
    text-align: right;
}

.faq-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 18px;
    transition: all 0.3s ease;
    margin-left: 16px;
}

.faq-icon i {
    transition: transform 0.3s ease;
}

.faq-answer {
    background: #ffffff;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer.show {
    max-height: 200px;
    animation: fadeIn 0.3s ease;
}

.answer-content {
    padding: 0 24px 20px 24px;
    color: #6b7280;
    font-size: 15px;
    line-height: 1.6;
    text-align: right;
}

.answer-content p {
    margin: 0;
}

/* FAQ Modal Styles */
.faq-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.faq-modal.show {
    display: flex;
}

.faq-modal-content {
    background: linear-gradient(290.81deg, #050514 0.29%, #263D95 99.92%) !important;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    margin: 20px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.faq-modal-header {
    padding: 24px 24px 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* border-bottom: 1px solid rgba(255, 255, 255, 0.2); */
}

.modal-question {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    flex: 1;
    text-align: right;
    line-height: 1.4;
}

.faq-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    margin-left: 16px;
    flex-shrink: 0;
}

.faq-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.faq-modal-body {
    padding: 16px 24px 24px 24px;
}

.faq-modal-body p {
    color: white;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    text-align: right;
    opacity: 0.9;
}

/* Animation for collapse */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 991px) {
    .faq-column {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .faq-section .row.g-4 {
        --bs-gutter-y: 0 !important;
        background: #ffffff;
        border: 1px solid #E6EBF0;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        overflow: hidden;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .faq-section .row.g-4 > div {
        margin-bottom: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .col-lg-6:first-child .faq-column {
        margin-bottom: 0 !important;
    }

    .col-lg-6:last-child .faq-column {
        margin-top: 0 !important;
    }

    .faq-column {
        gap: 0 !important;
    }
    
    .faq-item {
        border-radius: 0 !important;
        box-shadow: none !important;
        border-bottom: 1px solid #E6EBF0 !important;
        border-top: none !important;
        border-left: none !important;
        border-right: none !important;
    }

    .col-lg-6:last-child .faq-item:last-child {
        border-bottom: none !important;
    }

    .faq-question {
        padding: 16px 20px;
    }
    
    .question-text {
        font-size: 13px;
    }
    
    .answer-content {
        padding: 0 20px 16px 20px;
        font-size: 13px;
    }

    .answer-content p {
        font-size: 13px;
    }
    
    .faq-icon {
        width: 20px;
        height: 20px;
        font-size: 16px;
        margin-left: 12px;
    }
    
    .faq-modal-content {
        margin: 10px;
    }
    
    .faq-modal-header {
        padding: 20px 20px 12px 20px;
    }
    
    .modal-question {
        font-size: 16px;
    }
    
    .faq-modal-body {
        padding: 12px 20px 20px 20px;
    }
}

@media (max-width: 480px) {
    .faq-question {
        padding: 14px 16px;
    }
    
    .answer-content {
        padding: 0 16px 14px 16px;
    }
    
    .faq-modal-header {
        padding: 16px 16px 10px 16px;
    }
    
    .faq-modal-body {
        padding: 10px 16px 16px 16px;
    }

    .section-title .main-title {
        margin-bottom: 15px;
        font-size: 16px;
    }
}

/* RTL Support */
[dir="rtl"] .faq-question {
    text-align: right;
}

[dir="rtl"] .faq-icon {
    margin-left: 0;
    margin-right: 16px;
}

[dir="rtl"] .answer-content {
    text-align: right;
}

[dir="rtl"] .modal-question {
    text-align: right;
}

[dir="rtl"] .faq-modal-body p {
    text-align: right;
}

.faq-item .show .answer-content {
    background: linear-gradient(290.81deg, #050514 0.29%, #263D95 99.92%) !important;
}

.faq-item .show .answer-content p {
    color: #fff;
}