
    body {
    font-family: Arial, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    margin: 0;
    padding: 0;
    direction: rtl;
    text-align: right;
}

.faq-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.faq-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.faq-text {
    flex: 1;
    min-width: 300px;
    padding-left: 50px;
}

.faq-text h1 {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 10px;
}

.faq-text p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 25px;
}

.faq-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.faq-image img {
    max-width: 100%;
    height: auto;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-box input {
    width: 100%;
    padding: 15px 50px 15px 15px;
    border: 1px solid #ccc;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.2);
}

.search-box .fas {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1.2rem;
}

.faq-list .faq-item {
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-list .faq-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.faq-question {
    padding: 20px;
    background-color: #f9f9f9;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f1f1f1;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
}

.faq-question .fas {
    font-size: 1.2rem;
    color: #007bff;
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    background-color: #fafafa;
}

.faq-answer p {
    padding: 20px 0;
    margin: 0;
    color: #555;
    line-height: 1.6;
}

/* حالة السؤال المفتوح */
.faq-item.active .faq-question {
    background-color: #e6f2ff;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* قيمة كبيرة بما يكفي لاستيعاب المحتوى */
    padding: 20px;
}

.faq-item.active .faq-question .fas {
    transform: rotate(45deg);
}

@media (max-width: 768px) {
    .faq-hero {
        flex-direction: column;
        text-align: center;
    }
    .faq-text {
        padding-left: 0;
        padding-bottom: 30px;
    }
    .faq-text h1 {
        font-size: 2.5rem;
    }

        