/*
 * RTL overrides for Arabic pages.
 * Applied only when the theme marks the page as Arabic (dir=rtl/body class).
 */

html[dir="rtl"] body,
body.ent-dir-rtl {
  direction: rtl;
  text-align: right;
  font-family: "Tajawal", "Noto Naskh Arabic", "Noto Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
}

html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select,
body.ent-dir-rtl input,
body.ent-dir-rtl textarea,
body.ent-dir-rtl select {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .rank-math-breadcrumb,
body.ent-dir-rtl .rank-math-breadcrumb {
  text-align: right;
}

html[dir="rtl"] .breadcrumb-separator,
body.ent-dir-rtl .breadcrumb-separator {
  display: inline-block;
  transform: scaleX(-1);
}

html[dir="rtl"] .section-title,
body.ent-dir-rtl .section-title {
  border-left: 0;
  border-right: 0.3125rem solid #ffe328;
}

html[dir="rtl"] .section-title::after,
body.ent-dir-rtl .section-title::after {
  left: auto;
  right: 0;
}

html[dir="rtl"] .site-header .header-container,
body.ent-dir-rtl .site-header .header-container {
  direction: rtl;
}

html[dir="rtl"] .main-navigation .primary-menu-container li,
body.ent-dir-rtl .main-navigation .primary-menu-container li {
  text-align: right;
}

html[dir="rtl"] .gtranslate_wrapper .gt_switcher .gt_selected a,
body.ent-dir-rtl .gtranslate_wrapper .gt_switcher .gt_selected a {
  padding: 0.625rem 0.875rem 0.625rem 2.625rem !important;
}

html[dir="rtl"] .gtranslate_wrapper .gt_switcher .gt_selected a::after,
body.ent-dir-rtl .gtranslate_wrapper .gt_switcher .gt_selected a::after {
  right: auto !important;
  left: 16px !important;
}

html[dir="rtl"] .gtranslate_wrapper .gt_switcher .gt_option,
body.ent-dir-rtl .gtranslate_wrapper .gt_switcher .gt_option {
  right: auto !important;
  left: 0 !important;
}

html[dir="rtl"] .ent-mnav__top,
html[dir="rtl"] .ent-mnav-search,
html[dir="rtl"] .ent-mnav__cat-row,
body.ent-dir-rtl .ent-mnav__top,
body.ent-dir-rtl .ent-mnav-search,
body.ent-dir-rtl .ent-mnav__cat-row {
  direction: rtl;
}

html[dir="rtl"] .ent-mnav__cat-link,
html[dir="rtl"] .ent-mnav__toplinks-list a,
body.ent-dir-rtl .ent-mnav__cat-link,
body.ent-dir-rtl .ent-mnav__toplinks-list a {
  text-align: right;
}

html[dir="rtl"] .ent-mnav__subcats,
body.ent-dir-rtl .ent-mnav__subcats {
  padding: 0.5rem 1rem 0.625rem 0;
}

html[dir="rtl"] .ent-mnav__subcats ul,
body.ent-dir-rtl .ent-mnav__subcats ul {
  border-left: 0;
  border-right: 2px solid rgba(0, 0, 0, 0.1);
}

html[dir="rtl"] .ent-mnav__subcats li,
body.ent-dir-rtl .ent-mnav__subcats li {
  padding: 0.5rem 0.75rem 0.5rem 0;
}

html[dir="rtl"] .ent-mega__left,
body.ent-dir-rtl .ent-mega__left {
  border-right: 0;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  padding-right: 0;
  padding-left: 0.75rem;
}

html[dir="rtl"] .ent-mega__sub,
body.ent-dir-rtl .ent-mega__sub {
  text-align: right;
}

html[dir="rtl"] .ent-mega__subs-wrap.is-scrollable::before,
body.ent-dir-rtl .ent-mega__subs-wrap.is-scrollable::before {
  right: auto;
  left: 14px;
}

html[dir="rtl"] .ent-mega__subs-wrap.is-scrollable::after,
body.ent-dir-rtl .ent-mega__subs-wrap.is-scrollable::after {
  right: 0;
  left: 8px;
}

html[dir="rtl"] .ent-mega__subs-wrap.is-scrollable .ent-mega__subs,
body.ent-dir-rtl .ent-mega__subs-wrap.is-scrollable .ent-mega__subs {
  padding-right: 0;
  padding-left: 0.5rem;
}

html[dir="rtl"] .ent-search-dropdown,
body.ent-dir-rtl .ent-search-dropdown {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .ent-search-dropdown #ent-search-input,
body.ent-dir-rtl .ent-search-dropdown #ent-search-input {
  text-align: right;
}

html[dir="rtl"] .ent-search-dropdown .ent-search-col--right,
body.ent-dir-rtl .ent-search-dropdown .ent-search-col--right {
  border-left: 0;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  padding-left: 0;
  margin-left: 0;
  padding-right: 1.125rem;
  margin-right: 1.125rem;
}

html[dir="rtl"] .ent-search-dropdown .ent-search-news-list .news-item .first-row,
body.ent-dir-rtl .ent-search-dropdown .ent-search-news-list .news-item .first-row {
  direction: rtl;
}

html[dir="rtl"] .page-content,
body.ent-dir-rtl .page-content {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .page-content p,
html[dir="rtl"] .page-content li,
html[dir="rtl"] .page-content h1,
html[dir="rtl"] .page-content h2,
html[dir="rtl"] .page-content h3,
html[dir="rtl"] .page-content h4,
body.ent-dir-rtl .page-content p,
body.ent-dir-rtl .page-content li,
body.ent-dir-rtl .page-content h1,
body.ent-dir-rtl .page-content h2,
body.ent-dir-rtl .page-content h3,
body.ent-dir-rtl .page-content h4 {
  text-align: right !important;
}

html[dir="rtl"] .page-content ul,
html[dir="rtl"] .page-content ol,
body.ent-dir-rtl .page-content ul,
body.ent-dir-rtl .page-content ol {
  padding-right: 1.35rem;
  padding-left: 0 !important;
}

html[dir="rtl"] .single .page-header .page-title,
body.ent-dir-rtl.single .page-header .page-title {
  text-align: right;
}

html[dir="rtl"] .single .page-content ul,
html[dir="rtl"] .single .page-content ol,
body.ent-dir-rtl.single .page-content ul,
body.ent-dir-rtl.single .page-content ol {
  margin: 0 1.5rem 1rem 0;
  padding-right: 1.5rem;
  padding-left: 0;
}

html[dir="rtl"] .single .post-author .author-info,
body.ent-dir-rtl.single .post-author .author-info {
  text-align: right;
}

html[dir="rtl"] .single .page-footer,
body.ent-dir-rtl.single .page-footer {
  flex-direction: row-reverse;
}

html[dir="rtl"] .single .page-footer-nav__arrow svg,
body.ent-dir-rtl.single .page-footer-nav__arrow svg {
  transform: scaleX(-1);
}

html[dir="rtl"] .single .sidebar .post-author,
html[dir="rtl"] .single .sidebar-toggle-author,
body.ent-dir-rtl.single .sidebar .post-author,
body.ent-dir-rtl.single .sidebar-toggle-author {
  left: auto;
  right: 1rem;
}

html[dir="rtl"] .single .ent-share__toast,
body.ent-dir-rtl.single .ent-share__toast {
  margin-left: 0;
  margin-right: 0.5rem;
}

html[dir="rtl"] .category-page .page-header .category-description,
body.ent-dir-rtl .category-page .page-header .category-description {
  margin-left: 0;
  margin-right: 1.5rem;
}

html[dir="rtl"] .category-page,
body.ent-dir-rtl .category-page {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .category-page .section-title,
html[dir="rtl"] .category-page .section-title h1,
html[dir="rtl"] .category-page .section-title h2,
html[dir="rtl"] .category-page .section-title p,
body.ent-dir-rtl .category-page .section-title,
body.ent-dir-rtl .category-page .section-title h1,
body.ent-dir-rtl .category-page .section-title h2,
body.ent-dir-rtl .category-page .section-title p {
  text-align: right;
}

html[dir="rtl"] .category-page .category-subcats-list,
body.ent-dir-rtl .category-page .category-subcats-list {
  justify-content: flex-start;
}

html[dir="rtl"] .category-page .news-item,
html[dir="rtl"] .category-page .news-item-info,
html[dir="rtl"] .category-page .news-item-title,
html[dir="rtl"] .category-page .news-item-excerpt,
html[dir="rtl"] .category-page .news-item-datetime,
html[dir="rtl"] .category-page .news-item-category,
body.ent-dir-rtl .category-page .news-item,
body.ent-dir-rtl .category-page .news-item-info,
body.ent-dir-rtl .category-page .news-item-title,
body.ent-dir-rtl .category-page .news-item-excerpt,
body.ent-dir-rtl .category-page .news-item-datetime,
body.ent-dir-rtl .category-page .news-item-category {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .category-page .news-item-top-meta,
html[dir="rtl"] .category-page .news-item-meta,
body.ent-dir-rtl .category-page .news-item-top-meta,
body.ent-dir-rtl .category-page .news-item-meta {
  direction: rtl;
  justify-content: flex-start;
}

html[dir="rtl"] .category-page .news-item-category,
body.ent-dir-rtl .category-page .news-item-category {
  justify-content: flex-start;
}

html[dir="rtl"] .single .page-header,
html[dir="rtl"] .single .page-title,
html[dir="rtl"] .single .page-categories,
html[dir="rtl"] .single .page-meta,
html[dir="rtl"] .single .article-lead,
html[dir="rtl"] .single .page-content,
html[dir="rtl"] .single .page-content p,
html[dir="rtl"] .single .page-content li,
body.ent-dir-rtl.single .page-header,
body.ent-dir-rtl.single .page-title,
body.ent-dir-rtl.single .page-categories,
body.ent-dir-rtl.single .page-meta,
body.ent-dir-rtl.single .article-lead,
body.ent-dir-rtl.single .page-content,
body.ent-dir-rtl.single .page-content p,
body.ent-dir-rtl.single .page-content li {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .single .page-meta,
body.ent-dir-rtl.single .page-meta {
  justify-content: flex-start;
}

html[dir="rtl"] .single .content-layout,
body.ent-dir-rtl.single .content-layout {
  direction: rtl;
}

html[dir="rtl"] .single .ent-share,
body.ent-dir-rtl.single .ent-share {
  direction: rtl;
  justify-content: flex-start;
}

html[dir="rtl"] .single .sidebar .widget-related-posts a,
body.ent-dir-rtl.single .sidebar .widget-related-posts a {
  direction: rtl;
}

html[dir="rtl"] .single .sidebar .sidebar-post-title,
body.ent-dir-rtl.single .sidebar .sidebar-post-title {
  text-align: right;
}

html[dir="rtl"] .breaking-news .breaking-news__lead-arrow,
body.ent-dir-rtl .breaking-news .breaking-news__lead-arrow {
  margin-right: 0;
  margin-left: 0.5rem;
}

html[dir="rtl"] .breaking-news .breaking-news__details,
body.ent-dir-rtl .breaking-news .breaking-news__details {
  margin-left: 0;
  margin-right: auto;
}

html[dir="rtl"] .breaking-news .breaking-news-card:hover .breaking-news__details,
body.ent-dir-rtl .breaking-news .breaking-news-card:hover .breaking-news__details {
  transform: translateX(-3px);
}

html[dir="rtl"] .ent-info-page .ent-info-page__hero,
body.ent-dir-rtl .ent-info-page .ent-info-page__hero {
  border-left: 1px solid var(--info-border);
  border-right: 0.375rem solid #ffe328;
}

html[dir="rtl"] .ent-info-page .ent-info-page__hero::after,
body.ent-dir-rtl .ent-info-page .ent-info-page__hero::after {
  right: auto;
  left: 1.375rem;
}

html[dir="rtl"] .ent-info-page .ent-info-page__content,
body.ent-dir-rtl .ent-info-page .ent-info-page__content {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .ent-info-page .ent-info-page__content p,
html[dir="rtl"] .ent-info-page .ent-info-page__content li,
html[dir="rtl"] .ent-info-page .ent-info-page__content h2,
html[dir="rtl"] .ent-info-page .ent-info-page__content h3,
html[dir="rtl"] .ent-info-page .ent-info-page__content h4,
body.ent-dir-rtl .ent-info-page .ent-info-page__content p,
body.ent-dir-rtl .ent-info-page .ent-info-page__content li,
body.ent-dir-rtl .ent-info-page .ent-info-page__content h2,
body.ent-dir-rtl .ent-info-page .ent-info-page__content h3,
body.ent-dir-rtl .ent-info-page .ent-info-page__content h4 {
  direction: rtl;
  text-align: right !important;
}

html[dir="rtl"] .ent-info-page .ent-info-page__content ul,
html[dir="rtl"] .ent-info-page .ent-info-page__content ol,
body.ent-dir-rtl .ent-info-page .ent-info-page__content ul,
body.ent-dir-rtl .ent-info-page .ent-info-page__content ol {
  direction: rtl;
  text-align: right;
  list-style-position: outside;
  margin: 0 0 1rem;
  padding-left: 0 !important;
  padding-right: 1.35rem !important;
}

html[dir="rtl"] .ent-info-page .ent-info-page__content li::marker,
body.ent-dir-rtl .ent-info-page .ent-info-page__content li::marker {
  unicode-bidi: isolate;
}

html[dir="rtl"] .ent-info-page .ent-info-page__content blockquote,
body.ent-dir-rtl .ent-info-page .ent-info-page__content blockquote {
  border-left: 0;
  border-right: 0.25rem solid #ffe328;
}

html[dir="rtl"] .ent-info-page .ent-info-page__content th,
html[dir="rtl"] .ent-info-page .ent-info-page__content td,
body.ent-dir-rtl .ent-info-page .ent-info-page__content th,
body.ent-dir-rtl .ent-info-page .ent-info-page__content td {
  text-align: right;
}

html[dir="rtl"] .faq__answer ul,
html[dir="rtl"] .faq__answer ol,
body.ent-dir-rtl .faq__answer ul,
body.ent-dir-rtl .faq__answer ol {
  margin: 0.5rem 1.25rem 0.5rem 0;
}

html[dir="rtl"] .ent-person .ent-person__text ul,
html[dir="rtl"] .ent-person .ent-person__text ol,
body.ent-dir-rtl .ent-person .ent-person__text ul,
body.ent-dir-rtl .ent-person .ent-person__text ol {
  padding-left: 0;
  padding-right: 1.1rem;
}

html[dir="rtl"] .site-footer .footer-content-right,
body.ent-dir-rtl .site-footer .footer-content-right {
  direction: rtl;
}

html[dir="rtl"] .site-footer .footer-content-right .footer-follow-wrap,
body.ent-dir-rtl .site-footer .footer-content-right .footer-follow-wrap {
  align-items: flex-end;
}

html[dir="rtl"] .site-footer .footer-content-right .footer-follow .footer-follow-title,
body.ent-dir-rtl .site-footer .footer-content-right .footer-follow .footer-follow-title {
  text-align: right;
}

html[dir="rtl"] .site-footer .footer-content-right .footer-follow .footer-social-list,
body.ent-dir-rtl .site-footer .footer-content-right .footer-follow .footer-social-list {
  justify-content: flex-start;
}

html[dir="rtl"] .site-footer .footer-content-right .footer-follow .footer-store-badges,
body.ent-dir-rtl .site-footer .footer-content-right .footer-follow .footer-store-badges {
  justify-content: flex-start;
  width: auto;
  margin-inline: 0;
  align-self: flex-end;
}

@media screen {
  html[dir="rtl"] .site-footer .footer-content-right .footer-follow .footer-social-list,
  body.ent-dir-rtl .site-footer .footer-content-right .footer-follow .footer-social-list {
    justify-content: flex-start;
  }
}

html[dir="rtl"] .section-title p,
html[dir="rtl"] .section-title .button,
body.ent-dir-rtl .section-title p,
body.ent-dir-rtl .section-title .button {
  text-align: right;
}

html[dir="rtl"] .news-item-info,
html[dir="rtl"] .news-item-title,
html[dir="rtl"] .news-item-excerpt,
html[dir="rtl"] .news-item-category,
html[dir="rtl"] .post-author-name,
html[dir="rtl"] .reading-time,
body.ent-dir-rtl .news-item-info,
body.ent-dir-rtl .news-item-title,
body.ent-dir-rtl .news-item-excerpt,
body.ent-dir-rtl .news-item-category,
body.ent-dir-rtl .post-author-name,
body.ent-dir-rtl .reading-time {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .news-item-top-meta,
html[dir="rtl"] .news-item-meta,
html[dir="rtl"] .page-meta,
body.ent-dir-rtl .news-item-top-meta,
body.ent-dir-rtl .news-item-meta,
body.ent-dir-rtl .page-meta {
  direction: rtl;
  justify-content: flex-start;
  text-align: right;
}

html[dir="rtl"] .news-item-datetime,
html[dir="rtl"] .page-date,
body.ent-dir-rtl .news-item-datetime,
body.ent-dir-rtl .page-date {
  direction: rtl;
  unicode-bidi: plaintext;
  margin-bottom: 0;
}

html[dir="rtl"] .site-footer .footer-hubs.footer-hubs-all .footer-hub-toggle,
body.ent-dir-rtl .site-footer .footer-hubs.footer-hubs-all .footer-hub-toggle {
  text-align: right;
}

html[dir="rtl"] .site-footer .footer-bottom .container,
body.ent-dir-rtl .site-footer .footer-bottom .container {
  flex-direction: row-reverse;
}

html[dir="rtl"] .theme-toggle,
body.ent-dir-rtl .theme-toggle {
  right: auto;
  left: 0.5rem;
}

html[dir="rtl"] .error-404 .search-form .search-input-container .search-submit,
body.ent-dir-rtl .error-404 .search-form .search-input-container .search-submit {
  left: auto;
  right: 0.9375rem;
}

html[dir="rtl"] .page-content blockquote,
body.ent-dir-rtl .page-content blockquote {
  border-left: 0;
  border-right: 0.25rem solid #000;
}

html[dir="rtl"] .dark-mode .ent-mega__left,
body.ent-dir-rtl.dark-mode .ent-mega__left {
  border-right: 0;
  border-left: 1px solid hsla(0, 0%, 100%, 0.08);
}

html[dir="rtl"] .dark-mode .ent-search-dropdown .ent-search-col--right,
body.ent-dir-rtl.dark-mode .ent-search-dropdown .ent-search-col--right {
  border-left: 0;
  border-right: 1px solid hsla(0, 0%, 100%, 0.08);
}

html[dir="rtl"] .dark-mode .ent-mnav__subcats ul,
body.ent-dir-rtl.dark-mode .ent-mnav__subcats ul {
  border-left: 0;
  border-right: 2px solid hsla(0, 0%, 100%, 0.1);
}

@media (max-width: 1023px) {
  html[dir="rtl"] .main-navigation .primary-menu-container,
  body.ent-dir-rtl .main-navigation .primary-menu-container {
    text-align: right;
  }
}

@media (max-width: 768px) {
  html[dir="rtl"] .breaking-news .breaking-news__details,
  body.ent-dir-rtl .breaking-news .breaking-news__details {
    right: auto;
    left: 14px;
  }

  html[dir="rtl"] .site-footer .footer-content-right .footer-follow-wrap,
  body.ent-dir-rtl .site-footer .footer-content-right .footer-follow-wrap {
    align-items: center;
  }

  html[dir="rtl"] .site-footer .footer-content-right .footer-follow .footer-follow-title,
  body.ent-dir-rtl .site-footer .footer-content-right .footer-follow .footer-follow-title {
    text-align: center;
  }

  html[dir="rtl"] .site-footer .footer-content-right .footer-follow .footer-social-list,
  body.ent-dir-rtl .site-footer .footer-content-right .footer-follow .footer-social-list {
    justify-content: flex-start;
  }

  html[dir="rtl"] .site-footer .footer-content-right .footer-follow .footer-store-badges,
  body.ent-dir-rtl .site-footer .footer-content-right .footer-follow .footer-store-badges {
    justify-content: center;
    align-self: center;
    width: 100%;
  }

  html[dir="rtl"] .site-footer .footer-bottom .container,
  body.ent-dir-rtl .site-footer .footer-bottom .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
