.faq-container {
    max-width: 800px;
    margin: 20px auto;
    font-family: inherit;
}

.faq-group {
    margin-bottom: 25px;
}

.faq-group-title {
    background: #f8f9fa;
    padding: 10px 15px;
    border-right: 4px solid #0073aa;
    font-size: 1.1rem;
    color: #0073aa;
}






.faq-answer p {
    padding: 15px;
    margin: 0;
    line-height: 1.8;
    color: #555;
}

.faq-main-title {
    background: #f8f9fa;
   font-size: 1rem;
    color: #0073aa;
    border-right: 5px solid #0073aa; /* یک خط عمودی کنار عنوان */
    padding-right: 15px;
    margin: 40px 0 20px;
}



#faqSearchInput {
    width: 100%;
    padding: 15px 45px 15px 20px; /* فضای خالی برای آیکون در سمت راست */
    font-size: 16px;
    border: 2px solid #eee;
    border-radius: 8px;
    outline: none;
    transition: 0.3s;
    font-family: inherit;
    color: #333; /* رنگ متن تایپ شده */
}

/* اصلاح رنگ Placeholder از قرمز به خاکستری استاندارد */
#faqSearchInput::placeholder {
    color: #999 !important;
    opacity: 1;
}

/* استایل آیکون ذره‌بین */
.faq-search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    pointer-events: none;
    display: flex;
    align-items: center;
}

#faqSearchInput:focus {
    border-color: #0073aa;
}

#faqSearchInput:focus + .faq-search-icon {
    color: #0073aa;
}


/* باکس بالا و دکمه‌ها */
.faq-header-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    margin-bottom: 25px;
}
.faq-search-wrapper { flex: 1; min-width: 250px; position: relative; }
.faq-actions button {
    background: #f0f0f0;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    transition: 0.3s;
}
.faq-actions button:hover { background: #e0e0e0; }

/* استایل سوال و آیکون */
.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: right;
    padding: 18px;
    background: #fff;
    border: 1px solid #eee;
    cursor: pointer;
    font-weight: bold;
    font-family: inherit;
    transition: 0.3s;
    border-radius: 8px;
    margin-bottom: 5px;
}
.faq-question:hover { background: #fcfcfc; border-color: #0073aa; }

/* آیکون فلش */
.faq-icon {
    width: 10px;
    height: 10px;
    border-right: 2px solid #666;
    border-bottom: 2px solid #666;
    transform: rotate(45deg);
    transition: 0.3s;
    margin-left: 10px;
}
.faq-item.active .faq-icon {
    transform: rotate(-135deg);
    margin-top: 5px;
}
.faq-item.active .faq-question {
    color: #0073aa;
    background: #f0f8ff;
}

.faq-answer {
    display: none;
    padding: 15px 25px;
    background: #fff;
    border-right: 2px solid #0073aa;
    margin-bottom: 15px;
}

