/* استایل اصلی FAQ */
.faq-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.faq-container:hover {
    transform: scale(1.02);
}

/* استایل هر آیتم سوال و پاسخ */
.faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background: #f9f9f9;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background 0.3s ease;
}

.faq-item:hover {
    background-color: #f1f1f1;
    transform: translateY(-5px);
}

/* عنوان سوال */
.faq-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    padding: 10px;
    background-color: #007bff;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-title:hover {
    background-color: #0056b3;
}

/* آیکون */
.faq-toggle-icon {
    font-size: 22px;
    color: #fff;
    transition: transform 0.3s ease;
}

/* محتوای جواب */
.faq-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    font-size: 16px;
    line-height: 2.1;
    color: #555;
    background-color: #f9f9f9;
    border-top: 1px solid #e0e0e0;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-content p {
    margin: 15px 0;
}

/* تغییر آیکون هنگام باز شدن */
.faq-item.open .faq-toggle-icon {
    transform: rotate(45deg);
}

.faq-item.open .faq-content {
    max-height: 500px;
    padding: 15px 20px;
}

/* افکت سایه برای hover */
.faq-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* استفاده از رنگ‌ها و فضاهای خالی جذاب‌تر */
.faq-container {
    background: linear-gradient(135deg, #007bff, #00bfff);
    color: #fff;
}

.faq-title {
    background-color: #28a745;
}

.faq-title:hover {
    background-color: #218838;
}

.faq-content {
    background-color: #f1f1f1;
}
