/* EncyLife v7.4 — Front-end RTL. Loaded via functions.php when is_rtl(). */
/* NOTE: --font-body / --font-display are intentionally NOT defined here.
   They are defined in style.css (defaults) and overridden by inc/settings/dynamic-css.php
   based on the user's Typography settings. Hardcoding them here with !important
   was preventing the admin font selector from working. */
html { direction: rtl; }
body { direction: rtl; text-align: right; font-family: var(--font-body); }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); letter-spacing: 0; }
ul,ol { margin: 0 1.2rem 1.1rem 0; padding: 0; }
html[dir="rtl"] .lt-header-inner { flex-direction: row !important; }
html[dir="rtl"] .lt-nav-list { flex-direction: row !important; }
.site-header .lt-header-inner { text-align: right; }
.lt-logo__text { text-align: right; }
.lt-logo-img { max-height: 48px; width: auto; }
.lt-nav-list { text-align: right; }
.lt-nav-list > li > a { text-align: right; }
.lt-nav-list .sub-menu { left: auto; right: 0; text-align: right; }
.lt-header-tools { text-align: right; }
.lt-hamburger { margin: 0; }
.lt-mobile-menu { left: 0; right: auto; transform: translateX(-100%); }
.lt-mobile-menu.is-open { transform: translateX(0); }
.lt-mobile-menu__header { text-align: right; }
.lt-mobile-nav-list { text-align: right; }
.lt-mobile-nav-list .sub-menu { text-align: right; }
.lt-card-grid { direction: rtl; }
.lt-card__body { text-align: right; }
.lt-card__title { text-align: right; }
.lt-card__excerpt { text-align: right; }
.lt-card__footer { flex-direction: row-reverse; justify-content: space-between; }
.lt-card__cta { text-align: right; }
.lt-card__bookmark { right: auto; left: 12px; }
.lt-card__overlay-cta::after { content: " ←" !important; }
.lt-single__header { text-align: right; }
.lt-single__meta { flex-direction: row-reverse; justify-content: flex-end; }
.lt-single__author { flex-direction: row-reverse; }
.lt-single__tags { text-align: right; }
.lt-single__content { text-align: right; direction: rtl; }
.lt-single__content p,.lt-single__content li,.lt-single__content blockquote,.lt-single__content h2,.lt-single__content h3,.lt-single__content h4 { text-align: right; }
.lt-toc { text-align: right; }
.lt-toc__list { margin: 0 1.2rem 0 0; }
.lt-breadcrumbs { flex-direction: row-reverse; text-align: right; }
.lt-breadcrumbs .separator { transform: scaleX(-1); }
.lt-pagination .nav-links { flex-direction: row-reverse; }
.lt-pagination a[rel="prev"] span[aria-hidden="true"],.lt-pagination .prev span[aria-hidden="true"],.lt-pagination a[rel="next"] span[aria-hidden="true"],.lt-pagination .next span[aria-hidden="true"] { transform: scaleX(-1); display: inline-block; }
.category-header { text-align: right; }
.category-eyebrow { flex-direction: row-reverse; }
.category-start-here__list li a { flex-direction: row-reverse; text-align: right; }
.category-start-here__bullet { transform: scaleX(-1); }
.lt-share { flex-direction: row !important; }
.lt-share__label { margin-left: 8px; margin-right: 0 !important; }
.lt-drawer__panel { left: 0; right: auto; transform: translateX(-100%); }
.lt-drawer.is-open .lt-drawer__panel { transform: translateX(0); }
.lt-drawer__header { flex-direction: row-reverse; }
.lt-drawer__item { flex-direction: row-reverse; text-align: right; }
.lt-drawer__item-body { text-align: right; }
.site-footer { text-align: right; }
.foot-top-inner { direction: rtl; }
.foot-col { text-align: right; }
.foot-col-title { text-align: right; }
.foot-social { flex-direction: row-reverse; }
.foot-bot { text-align: right; }
.lt-newsletter { text-align: right; }
.lt-newsletter__form { flex-direction: row-reverse; }
.lt-newsletter__form input { text-align: right; }
.lt-search-form { flex-direction: row-reverse; }
.lt-search-field { text-align: right; padding-left: 44px; padding-right: 44px; }
.lt-search-icon { left: 14px; right: auto; }
.lt-comments { text-align: right; }
.lt-comments__list { padding-right: 0; }
.lt-comments__form { text-align: right; }
.comment-body { flex-direction: row-reverse; }
.comment-meta { flex-direction: row-reverse; }
.lt-payment-wrap { text-align: right; }
.lt-payment-method { text-align: right; }
.lt-usdt-wallet { flex-direction: row-reverse; }
.lt-usdt-wallet-input { direction: ltr; text-align: left; }
.lt-usdt-form p { text-align: right; }
.lt-usdt-form input[type="text"],.lt-usdt-form input[type="email"] { direction: ltr; text-align: left; }
.lt-payment-history-table th,.lt-payment-history-table td { text-align: right; }
.lt-empty-state { text-align: right; }
.lt-404__inner { text-align: right; }
.lt-404__actions { flex-direction: row-reverse; justify-content: flex-end; }
.skip-link { left: auto; right: -9999px; border-radius: 0 0 0 6px; }
.skip-link:focus { left: auto; right: 0; }
.back-to-top { left: 24px; right: auto; }
.progress-bar__fill { background: linear-gradient(270deg, var(--gold), var(--gold-lt)); }
.lt-btn { flex-direction: row-reverse; letter-spacing: 0; }
.lt-card__cta::after,.lt-related__name::after,.lt-cta-arrow { display: inline-block; transform: scaleX(-1); }

/* CTA arrow fix for RTL — force arrow to point LEFT (correct for Arabic) */
.lt-hero-premium__cta svg { transform: rotate(180deg) !important; }
.lt-hero-premium__cta:hover svg { transform: rotate(180deg) translateX(3px) !important; }

/* Promo card arrow fix */
.lt-promo-card__arrow { transform: scaleX(-1); }
.lt-promo-card:hover .lt-promo-card__arrow { transform: scaleX(-1) translateX(0); }

/* RTL Ad fixes — prevent ads from breaking RTL layout */
.lt-ad, .lt-top-banner, .lt-footer-banner, .lt-widget-ad {
        direction: ltr;
        text-align: center;
        overflow: hidden;
        max-width: 100%;
}
.lt-ad ins.adsbygoogle, .lt-ad iframe, .lt-ad img {
        direction: ltr;
        max-width: 100% !important;
        margin: 0 auto !important;
}

/* CTA arrow fix for RTL — force arrow to point LEFT (correct for Arabic) */
.lt-card__views,.lt-stat-num,.lt-pay-status,code,pre,.lt-shortcode,.lt-payment-history-table td:nth-child(3),.lt-payment-history-table td:nth-child(5),.lt-payment-history-table td:nth-child(6) { direction: ltr; unicode-bidi: isolate; }
time,.lt-single__meta time { direction: ltr; unicode-bidi: isolate; }
.lt-card__title,.lt-card__excerpt,.lt-single__title,.lt-related__name,.lt-drawer__item-title,.category-title,.lt-404__title { overflow-wrap: anywhere; word-break: normal; hyphens: auto; }
