/* Arabic language-course price card layout fix
   Rebuild the discounted course rows so the price column uses the left side
   and the course title/details can use the full right-side space without overlap. */

html[lang="ar"] .language-course-list .sls-course-price-row {
    display: grid !important;
    grid-template-columns: 132px minmax(0, 1fr) !important;
    column-gap: 26px !important;
    row-gap: 8px !important;
    align-items: center !important;
    width: 90% !important;
    min-height: 92px !important;
    padding: 18px 0 !important;
    margin: 0 auto !important;
    direction: ltr !important;
    text-align: initial !important;
    overflow: visible !important;
}

html[lang="ar"] .language-course-list .sls-course-text {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-end !important;
    width: 100% !important;
    min-width: 0 !important;
    text-align: right !important;
    direction: rtl !important;
    padding-right: 4px !important;
    overflow: visible !important;
}

html[lang="ar"] .language-course-list .sls-course-text strong,
html[lang="ar"] .language-course-list .sls-course-text small {
    display: block !important;
    width: 100% !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

html[lang="ar"] .language-course-list .sls-course-text strong {
    font-size: 1.06rem !important;
    line-height: 1.25 !important;
    margin-bottom: 4px !important;
}

html[lang="ar"] .language-course-list .sls-course-text small {
    font-size: .95rem !important;
    line-height: 1.45 !important;
    color: #24364a !important;
}

html[lang="ar"] .language-course-list .sls-price-stack {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    width: 132px !important;
    min-width: 132px !important;
    max-width: 132px !important;
    gap: 10px !important;
    direction: ltr !important;
    unicode-bidi: isolate !important;
    justify-self: start !important;
}

html[lang="ar"] .language-course-list .sls-old-price,
html[lang="ar"] .language-course-list .sls-sale-price {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    margin: 0 !important;
    direction: ltr !important;
    unicode-bidi: isolate !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

html[lang="ar"] .language-course-list .sls-old-price {
    display: block !important;
    width: 132px !important;
    text-align: left !important;
    padding-left: 6px !important;
    font-size: 15px !important;
}

html[lang="ar"] .language-course-list .sls-sale-price {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 116px !important;
    min-width: 116px !important;
    max-width: 116px !important;
    height: 40px !important;
    padding: 0 12px !important;
    font-size: 15px !important;
}

html[lang="ar"] .sls-price-badge,
html[lang="ar"] .sls-calc-option b {
    direction: ltr !important;
    unicode-bidi: isolate !important;
    white-space: nowrap !important;
}

@media (max-width: 760px) {
    html[lang="ar"] .language-course-list .sls-course-price-row {
        grid-template-columns: 120px minmax(0, 1fr) !important;
        column-gap: 18px !important;
        min-height: 88px !important;
    }

    html[lang="ar"] .language-course-list .sls-price-stack {
        width: 120px !important;
        min-width: 120px !important;
        max-width: 120px !important;
        gap: 8px !important;
    }

    html[lang="ar"] .language-course-list .sls-old-price {
        width: 120px !important;
        font-size: 14px !important;
    }

    html[lang="ar"] .language-course-list .sls-sale-price {
        width: 112px !important;
        min-width: 112px !important;
        max-width: 112px !important;
        font-size: 14px !important;
    }

    html[lang="ar"] .language-course-list .sls-course-text strong {
        font-size: 1rem !important;
    }

    html[lang="ar"] .language-course-list .sls-course-text small {
        font-size: .9rem !important;
    }
}

@media (max-width: 520px) {
    html[lang="ar"] .language-course-list .sls-course-price-row {
        grid-template-columns: 1fr !important;
        row-gap: 12px !important;
        min-height: 0 !important;
        direction: rtl !important;
    }

    html[lang="ar"] .language-course-list .sls-course-text {
        padding-right: 0 !important;
    }

    html[lang="ar"] .language-course-list .sls-price-stack {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 14px !important;
    }

    html[lang="ar"] .language-course-list .sls-old-price {
        width: auto !important;
        padding-left: 0 !important;
    }

    html[lang="ar"] .language-course-list .sls-sale-price {
        width: auto !important;
        min-width: 112px !important;
    }
}
