/*
 * Nabed theme — RTL overrides.
 *
 * Loaded via rtl.css @import when WordPress detects is_rtl() (locale ar, he, fa…).
 * Keep this file lean; most layout primitives use flex/grid + logical properties
 * and already adapt automatically. Only add rules here when a specific element
 * doesn't mirror correctly.
 */

body {
	direction: rtl;
	text-align: right;
	font-family: 'Almarai', var(--seamlessmd-font-sans);
}

body h1, body h2, body h3, body h4, body h5, body h6 {
	font-family: 'Almarai', var(--seamlessmd-font-heading);
}

/* Nav menu dropdown caret — logical spacing for RTL */
.seamlessmd-nav-menu .menu-item-has-children > a::after {
	margin-left: 0;
	margin-right: 4px;
}

/* Dropdowns open aligned to the right edge in RTL */
.seamlessmd-nav-menu .sub-menu {
	left: auto;
	right: 0;
}

/* Announcement bar arrow — flip */
.seamlessmd-announcement-link .fa-arrow-right {
	transform: scaleX(-1);
}

/* Footer contact icons spacing */
.seamlessmd-footer-contact i {
	margin-right: 0;
	margin-left: 8px;
}

/* Button icon spacing already uses `gap` so no override needed */

/* Bootstrap float + text helpers flip when the body is RTL */
body.rtl .ml-auto { margin-left: 0 !important; margin-right: auto !important; }
body.rtl .mr-auto { margin-right: 0 !important; margin-left: auto !important; }
body.rtl .text-left { text-align: right !important; }
body.rtl .text-right { text-align: left !important; }
body.rtl .float-left { float: right !important; }
body.rtl .float-right { float: left !important; }

/* Mega-nav dropdown sidebar full-bleed background: the base rule in
 * seamlessmd-theme.css uses `left:100%` on `.dropdown-column--sidebar::after`
 * to extend the grey band from the sidebar's right edge out to the
 * viewport right edge. In RTL the sidebar sits on the LEFT of the panel,
 * so that same `left:100%` starts the band at the sidebar's right edge
 * and runs it across the card columns — overlaying and hiding the whole
 * card grid. Flip the anchor so the band extends leftward in RTL. */
.seamlessmd-site-header .dropdown-column--sidebar::after {
	left: auto;
	right: 100%;
}
