/* =========================================================================
   Adsense Pro Mag — RTL (Arabic) overrides
   Loaded only when the site language is Arabic.
   ========================================================================= */

[dir="rtl"] body {
	font-family: var(--apm-font-ar);
	letter-spacing: 0;
}

[dir="rtl"] .apm-brand__title,
[dir="rtl"] .apm-section__title,
[dir="rtl"] .apm-card__title,
[dir="rtl"] .apm-widget__title,
[dir="rtl"] .apm-footer__brand {
	font-family: var(--apm-font-ar);
	letter-spacing: 0;
}

[dir="rtl"] .apm-hero__title,
[dir="rtl"] .apm-entry__title,
[dir="rtl"] .apm-archive__title {
	font-family: var(--apm-font-ar);
	letter-spacing: 0;
}

/* Flip directional arrows so they point the correct way in Arabic */
[dir="rtl"] .apm-section__link svg,
[dir="rtl"] .apm-pagination .next svg,
[dir="rtl"] .apm-pagination .prev svg {
	transform: scaleX(-1);
}

/* WhatsApp icon is direction-neutral, keep it unchanged */
[dir="rtl"] .apm-share__btn--copy svg {
	transform: none;
}

/* Ticker scrolls the other way in Arabic */
[dir="rtl"] .apm-ticker__track {
	animation-name: apm-ticker-rtl;
}

@keyframes apm-ticker-rtl {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(50%);
	}
}

/* Quote and callout corners */
[dir="rtl"] .apm-entry__content blockquote {
	border-radius: var(--apm-radius-sm) 0 0 var(--apm-radius-sm);
}

/* Numbers inside Arabic UI keep Latin glyphs but align with Arabic text */
[dir="rtl"] .apm-entry__meta,
[dir="rtl"] .apm-card__meta,
[dir="rtl"] .apm-ticker__item,
[dir="rtl"] .apm-pagination .page-numbers {
	font-feature-settings: "tnum";
	letter-spacing: 0;
}

/* Search result thumbs stay aligned with the start edge */
[dir="rtl"] .apm-search-result {
	text-align: start;
}

/* Sidebar widget images keep their radius on the correct side */
[dir="rtl"] .apm-mini__thumb,
[dir="rtl"] .apm-hero__item-thumb,
[dir="rtl"] .apm-search-result__thumb {
	border-radius: 6px;
}

/* Slightly looser line height for Arabic body copy */
[dir="rtl"] .apm-entry__content,
[dir="rtl"] .apm-card__excerpt,
[dir="rtl"] .apm-footer__about {
	line-height: 1.95;
}

[dir="rtl"] .apm-section__title {
	padding-inline-start: 0;
}

/* Form labels and inputs read right to left */
[dir="rtl"] .apm-field input,
[dir="rtl"] .apm-field textarea,
[dir="rtl"] .apm-search-form__input {
	text-align: start;
}

/* Toast / status messages */
[dir="rtl"] .apm-form__status,
[dir="rtl"] .apm-search-hint,
[dir="rtl"] .apm-search-empty {
	text-align: start;
}
