/* Global Style - (Variables preserved) */
:root {
    /*--mp-primary-color: #0073aa;*/
    /*--mp-secondary-color: #333333;*/
    /*--mp-text-color: #222222;*/
    /*--mp-bg-color: #ffffff;*/
    /*--mp-gap: 15px;*/
    /*--mp-radius: 8px;*/
}

/* -----------------------------------------------------------
 * 1. Accordion Main Styles
 * ----------------------------------------------------------- */
summary.ra-sb-faq-summary {
    background: #F5F7F8;
    border-radius: 8px;
    padding: 16px 24px;
    position: relative;
    list-style: none;
    cursor: pointer;
    margin-bottom: 10px;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary.ra-sb-faq-summary:hover {
    background: #eef1f3;
}

summary.ra-sb-faq-summary::-webkit-details-marker {
    display: none;
}

summary.ra-sb-faq-summary::marker {
    content: none !important;
}

/* Title Wrapper */
.ra-sb-faq-title-wrapper {
    width: calc(100% - 40px);
    /* Space for arrow */
}

h3.ra-sb-faq-title {
    font-size: 15px;
    font-family: 'Yekan-Bakh', sans-serif;
    font-weight: 700;
    margin: 0;
    color: #2F3237;
    line-height: 1.5;
}

/* Arrow Icon */
.ra-sb-faq-arrow-down {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.ra-sb-faq-arrow-down svg {
    transition: transform 0.4s ease;
}

.ra-sb-faq-wrapper[open] .ra-sb-faq-arrow-down svg {
    transform: rotate(180deg);
}

/* Content Body */
.ra-sb-faq-content {
    font-family: 'Yekan-Bakh', sans-serif;
    font-weight: 400;
    color: rgba(95, 101, 116, 0.9);
    margin-top: 0;
    padding: 10px 24px 24px 24px;
    line-height: 2em;
    text-align: justify;
    font-size: 14px;
}

/* -----------------------------------------------------------
 * 2. Internal Link Button (Show More Info)
 * ----------------------------------------------------------- */
.ra-sb-faq-footer {
    margin-top: 20px;
    text-align: left;
    /* دکمه سمت چپ قرار گیرد */
    border-top: 1px dashed #e1e1e1;
    /* یک خط جداکننده ظریف */
    padding-top: 15px;
}

a.ra-sb-faq-more-btn {
    color: #3c44ff;
    font-weight: 700;
    text-decoration: none;
    transition: .4s ease;
    display: inline-flex;
    align-items: center;
    font-size: 13px;
}

a.ra-sb-faq-more-btn:hover {
    color: #2f3237;
}

/* -----------------------------------------------------------
 * 3. Load More Button (AJAX)
 * ----------------------------------------------------------- */
.ra-sb-faq-load-more-wrapper {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 20px;
}

#ra-sb-load-more-btn {
    background: #F5F7F8;
    color: #2F3237;
    border: 1px solid transparent;
    padding: 12px 30px;
    border-radius: 8px;
    font-family: 'Yekan-Bakh', sans-serif;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 160px;
    /* عرض ثابت برای جلوگیری از پرش هنگام لودینگ */
}

#ra-sb-load-more-btn:hover {
    background: #eef1f3;
    border-color: #d1d5db;
}

#ra-sb-load-more-btn.loading {
    opacity: 0.8;
    cursor: wait;
    pointer-events: none;
    /* غیرفعال کردن کلیک مجدد */
}

/* Spinner Animation */
.ra-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #2F3237;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: none;
    /* مخفی در حالت عادی */
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

#ra-sb-load-more-btn.loading .ra-spinner {
    display: inline-block;
    /* نمایش در حالت لودینگ */
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* -----------------------------------------------------------
 * 4. Responsive Styles
 * ----------------------------------------------------------- */

/* Desktop */
@media screen and (min-width: 1026px) {
    /* Desktop styles here */
}

/* Tablet (767px - 1025px) */
@media screen and (min-width: 767px) and (max-width: 1025px) {
    summary.ra-sb-faq-summary {
        padding: 14px 20px;
    }
}

/* Mobile */
@media screen and (max-width: 766px) {
    summary.ra-sb-faq-summary {
        padding: 12px 16px;
    }

    h3.ra-sb-faq-title {
        font-size: 14px;
    }

    .ra-sb-faq-arrow-down {
        left: 16px;
        /* تنظیم موقعیت فلش در موبایل */
    }

    .ra-sb-faq-content {
        padding: 10px 16px 20px 16px;
    }
}


/* مخفی کردن اولین سوال FAQ فقط در صفحاتی که کلاس blog را دارند */
.blog .ra-sb-faq-accordion-container > :first-child {
    display: none;
}