/* FAQ Accordion Styles */
.faq-container {
    padding: 40px 0;
    direction: rtl;
    text-align: right;
}

.faq-accordion {
    margin-top: 30px;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #e3e3e3;
    border-radius: 4px;
    overflow: hidden;
}

.faq-question {
    background-color: #f9f9f9;
}

.faq-question button {
    display: block;
    width: 100%;
    text-align: right;
    padding: 15px 20px;
    font-size: 18px;
    color: #333;
    font-weight: bold;
    text-decoration: none;
    position: relative;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question button:hover {
    background-color: #0277bd;
    color: #fff;
}

/* Arrow indicator */
.faq-icon {
    position: absolute;
    left: 20px; /* Left for RTL layout */
    right: auto;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    text-align: center;
}

.faq-icon::before {
    content: "";
    display: inline-block;
    width: 0; 
    height: 0; 
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #333;
}

.faq-toggle:hover .faq-icon::before {
    border-top-color: #fff;
}

.faq-toggle[aria-expanded="true"] .faq-icon::before {
    transform: rotate(180deg);
}

/* FAQ Answer Styling */
.faq-answer {
    display: none; /* Hide by default */
    background-color: #fff;
    border-top: 1px solid #eee;
}

.faq-answer.show {
    display: block;
}

.faq-answer-content {
    padding: 20px 25px; /* Add padding to answer content */
    line-height: 1.6;
    text-align: right;
    direction: rtl;
}

/* RTL specific styles */
.faq-question button {
    text-align: right;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .faq-container {
        padding: 20px 10px;
    }
    
    .faq-question button {
        padding: 12px 15px;
        font-size: 16px;
    }
    
    .faq-answer-content {
        padding: 15px; /* Smaller padding on mobile */
    }
}

/* Single FAQ page styles */
.single-faq-container {
    padding: 40px 0;
    direction: rtl;
    text-align: right;
}

.faq-navigation {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    border-top: 1px solid #e3e3e3;
    border-bottom: 1px solid #e3e3e3;
    padding: 20px 0;
    direction: rtl;
}

.faq-related {
    margin-top: 30px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
    direction: rtl;
    text-align: right;
}

.related-faqs {
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
}

.related-faqs li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.related-faqs li:last-child {
    border-bottom: none;
}