/* RTL Fixes for cableksa-blog theme */

/* Force RTL on ALL elements */
html, body, div, section, article, aside, main, header, footer, nav,
h1, h2, h3, h4, h5, h6, p, span, a, blockquote, pre, code,
table, thead, tbody, tr, th, td,
form, fieldset, input, textarea, select, button,
ul, ol, li, dl, dt, dd,
figure, figcaption, details, summary,
.wp-block-post-content,
.wp-block-post-title,
.wp-block-group,
.wp-block-columns,
.wp-block-column,
.entry-content,
.post-content,
.wp-block-navigation,
.wp-block-navigation-item,
.wp-block-page-list,
.breadcrumb,
.wp-block-post-featured-image {
    direction: rtl !important;
    text-align: right !important;
}

/* Fix list markers (bullets/numbers) for RTL */
ul, ol {
    direction: rtl !important;
    text-align: right !important;
    padding-left: 0 !important;
    padding-right: 2em !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

li {
    direction: rtl !important;
    text-align: right !important;
}

/* Fix breadcrumb RTL */
.breadcrumb, nav[aria-label="breadcrumb"] {
    direction: rtl !important;
    text-align: right !important;
}

/* Fix nav menu for RTL */
.wp-block-navigation__container {
    direction: rtl !important;
    justify-content: flex-start !important;
}

/* Fix footer links */
footer, .wp-block-template-part footer {
    direction: rtl !important;
    text-align: right !important;
}

/* Fix images alignment */
figure, .wp-block-image {
    direction: rtl !important;
}

/* Fix tables */
table {
    direction: rtl !important;
    text-align: right !important;
}

th, td {
    direction: rtl !important;
    text-align: right !important;
}

/* Fix code blocks */
pre, code {
    direction: ltr !important;
    text-align: left !important;
}

/* Fix blockquote */
blockquote {
    direction: rtl !important;
    text-align: right !important;
    border-left: none !important;
    border-right: 4px solid #ccc !important;
    padding-left: 0 !important;
    padding-right: 1em !important;
}
