/* Arabic RTL overrides for Bank of Khartoum frontend. */

html[dir="rtl"],
body[dir="rtl"] {
  direction: rtl;
}

body[dir="rtl"] {
  font-family: "Noto Sans Arabic", sans-serif;
  text-align: right;
}

body[dir="rtl"] input,
body[dir="rtl"] textarea,
body[dir="rtl"] select,
body[dir="rtl"] button {
  font-family: inherit;
}

body[dir="rtl"] .c-header {
  direction: rtl;
  padding-left: 42px;
  padding-right: 50px;
}

body[dir="rtl"] .header_logo {
  order: 0;
}

body[dir="rtl"] .header_nav {
  order: 1;
  direction: rtl;
  gap: 16px;
  justify-content: flex-start;
}

body[dir="rtl"] .c_vert {
  left: 50px;
  right: auto;
}

body[dir="rtl"] .vert_actions a::before {
  left: calc(100% + 12px);
  right: auto;
}

body[dir="rtl"] .brand-logo {
  height: 94px;
}

body[dir="rtl"] .nav_menu,
body[dir="rtl"] .mega_menu,
body[dir="rtl"] .footer-grid,
body[dir="rtl"] .footer-links,
body[dir="rtl"] .contact-options-grid,
body[dir="rtl"] .reference-account-actions,
body[dir="rtl"] .accounts-controls {
  direction: rtl;
}

body[dir="rtl"] .nav_menu {
  direction: rtl;
  gap: 18px;
}

body[dir="rtl"] .nav_menu .menu_item {
  direction: rtl;
}

body[dir="rtl"] .nav_search,
body[dir="rtl"] .nav_lang,
body[dir="rtl"] .nav_burger {
  direction: rtl;
  order: initial;
}

/* Finance-card status badge follows the Arabic reading side. */
html[dir="rtl"] .finance-card-visual .finance-coming-soon {
  right: 18px;
  left: auto;
}

body[dir="rtl"] .item_label {
  letter-spacing: 0;
  line-height: 1.35;
  text-align: right;
  unicode-bidi: plaintext;
}

body[dir="rtl"] .item_label::after {
  left: auto;
  right: 0;
  transform-origin: right;
}

body[dir="rtl"] .internet-banking-link img {
  margin-left: 0;
  margin-right: 0;
}

body[dir="rtl"] .search_dropdown {
  text-align: right;
}

body[dir="rtl"] .search_close {
  left: 14px;
  right: auto;
}

body[dir="rtl"] .search_field {
  grid-template-columns: auto 1fr;
}

body[dir="rtl"] .search_input {
  direction: rtl;
  text-align: right;
}

body[dir="rtl"] .search_submit {
  grid-column: 1;
  grid-row: 1;
}

body[dir="rtl"] .search_input {
  grid-column: 2;
  grid-row: 1;
}

body[dir="rtl"] .mega_menu {
  text-align: right;
}

body[dir="rtl"] .personal-mega-tabs,
body[dir="rtl"] .business-mega-tabs,
body[dir="rtl"] .digital-mega-tabs,
body[dir="rtl"] .digital-mega-groups,
body[dir="rtl"] .private-mega-tabs,
body[dir="rtl"] .private-mega-groups {
  border-left: 1px solid rgba(0, 0, 0, 0.12);
  border-right: 0;
  padding-left: 24px;
  padding-right: 0;
}

body[dir="rtl"] .personal-mega-panel,
body[dir="rtl"] .business-mega-panel,
body[dir="rtl"] .digital-mega-panel,
body[dir="rtl"] .private-mega-inner {
  text-align: right;
}

body[dir="rtl"] .digital-mega-group-tab,
body[dir="rtl"] .private-mega-tab,
body[dir="rtl"] .private-mega-group-tab {
  direction: ltr;
  text-align: right;
}

body[dir="rtl"] :is(.personal-mega-tab, .business-mega-tab, .digital-mega-tab) {
  direction: ltr;
  text-align: right;
  unicode-bidi: plaintext;
}

/* Resolve each CMS label from its first strong character. This keeps Latin
   abbreviations such as QR together without forcing the Arabic text to LTR. */
body[dir="rtl"] :is(
  .digital-mega-group-tab,
  .private-mega-tab,
  .private-mega-group-tab,
  .personal-mega-panel span,
  .business-mega-panel span,
  .digital-mega-panel span,
  .private-mega-detail-panel span,
  .mega_menu a
) {
  unicode-bidi: plaintext;
}

/* Keep every desktop mega-menu arrow on the physical left in RTL. */
body[dir="rtl"] :is(
  .personal-mega-tab,
  .business-mega-tab,
  .digital-mega-tab,
  .digital-mega-group-tab,
  .private-mega-tab,
  .private-mega-group-tab
)::before {
  content: "\f104";
  margin-right: 10px;
  margin-left: 0;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

body[dir="rtl"] :is(
  .personal-mega-tab,
  .business-mega-tab,
  .digital-mega-tab,
  .digital-mega-group-tab,
  .private-mega-tab,
  .private-mega-group-tab
)::after {
  display: none;
}

body[dir="rtl"] .digital-mega-group-tab::before,
body[dir="rtl"] .private-mega-tab::before,
body[dir="rtl"] .private-mega-group-tab::before {
  content: "\f104";
}

body[dir="rtl"] .digital-mega-group-tab::after,
body[dir="rtl"] .private-mega-tab::after,
body[dir="rtl"] .private-mega-group-tab::after {
  content: "\f060";
  transform: translateX(6px);
}

body[dir="rtl"] .digital-mega-group-tab:is(:hover, :focus-visible, .active),
body[dir="rtl"] .private-mega-tab:is(:hover, :focus-visible, .active),
body[dir="rtl"] .private-mega-group-tab:is(:hover, :focus-visible, .active) {
  transform: translateX(-2px);
  box-shadow: inset -3px 0 0 #bb8b16;
}

body[dir="rtl"] .digital-mega-group-tab:is(:hover, :focus-visible, .active)::after,
body[dir="rtl"] .private-mega-tab:is(:hover, :focus-visible, .active)::after,
body[dir="rtl"] .private-mega-group-tab:is(:hover, :focus-visible, .active)::after {
  transform: translateX(0);
}

body[dir="rtl"] .digital-mega-detail-panel,
body[dir="rtl"] .private-mega-panel,
body[dir="rtl"] .private-mega-detail-panel {
  text-align: right;
}

body[dir="rtl"] .mega_menu a,
body[dir="rtl"] .footer-links a,
body[dir="rtl"] .accounts-page-hero-content,
body[dir="rtl"] .account-intro-section,
body[dir="rtl"] .account-benefits-copy,
body[dir="rtl"] .account-requirements-copy,
body[dir="rtl"] .open-account-content,
body[dir="rtl"] .contact-options-intro,
body[dir="rtl"] .reference-account-card-shell span {
  text-align: right;
}

body[dir="rtl"] .accounts-page-hero-content {
  left: auto;
  right: clamp(28px, 4vw, 90px);
  bottom: 8.5%;
  align-items: flex-start;
  width: min(760px, 56vw);
  text-align: right;
}

body[dir="rtl"] .accounts-page-hero-overlay {
  background:
    linear-gradient(180deg, rgb(0 0 0 / 35%) 0%, rgba(0, 0, 0, 0.16) 48%, rgb(0 0 0 / 42%) 100%),
    linear-gradient(270deg, rgb(0 0 0 / 48%), rgba(0, 0, 0, 0.08) 62%);
}

body[dir="rtl"] .accounts-page-hero-content p {
  letter-spacing: 0;
  line-height: 1.7;
  text-transform: none;
}

body[dir="rtl"] .accounts-page-hero-content h1 {
  font-size: 43px;
  line-height: 1.09;
  max-width: 780px;
}

body[dir="rtl"] .accounts-page-hero-content span {
  margin-left: 0;
  margin-right: 0;
  text-align: right;
}

body[dir="rtl"] .account-requirements-list li,
body[dir="rtl"] .open-account-step,
body[dir="rtl"] .account-feature-card,
body[dir="rtl"] .account-benefit-card,
body[dir="rtl"] .contact-option-card {
  text-align: right;
}

body[dir="rtl"] .account-intro-section {
  text-align: center;
}

body[dir="rtl"] .account-intro-section p {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

body[dir="rtl"] .account-features-header {
  direction: rtl;
}

body[dir="rtl"] .account-features-header h2 {
  text-align: right;
}

/* Mirror Bankak feature navigation arrows to match RTL movement. */
html[dir="rtl"][data-page="bankak-account"] .bankak-feature-controls button i {
  transform: scaleX(-1);
}

body[dir="rtl"] .account-features-header .accounts-controls {
  flex-direction: row-reverse;
  gap: 14px;
  margin-left: 0;
  margin-right: auto;
}

body[dir="rtl"] .account-features-header .accounts-arrow {
  width: 48px;
  height: 48px;
  border: 2px solid #ffffff;
  background: #BB8B16;
  color: #ffffff;
  font-size: 1.05rem;
  line-height: 1;
  box-shadow: 0 14px 34px rgba(187, 139, 22, 0.18);
}

body[dir="rtl"] .account-features-header .accounts-arrow i {
  display: block;
  transform: none;
}

body[dir="rtl"] .account-features-header .accounts-arrow:hover,
body[dir="rtl"] .account-features-header .accounts-arrow:focus-visible {
  background: #BB8B16;
  color: #ffffff;
  transform: translateY(-2px);
}

body[dir="rtl"] .account-features-header .accounts-arrow:disabled {
  border-color: #ffffff;
  background: #e5d4a8;
  color: #ffffff;
  opacity: 1;
  box-shadow: none;
}

body[dir="rtl"] .account-features-grid {
  direction: rtl;
}

body[dir="rtl"] .account-feature-card {
  align-items: center;
  text-align: center;
}

body[dir="rtl"] .account-feature-card h3,
body[dir="rtl"] .account-feature-card p {
  text-align: center;
}

body[dir="rtl"] .account-benefits-section {
  direction: rtl;
}

body[dir="rtl"] .account-benefits-section > * {
  direction: rtl;
}

body[dir="rtl"] .account-benefits-copy h2,
body[dir="rtl"] .account-benefit-card h3,
body[dir="rtl"] .account-benefit-card p {
  text-align: right;
}

body[dir="rtl"] .account-benefit-card {
  padding-right: 26px;
  padding-left: 0;
  border-right: 3px solid #BB8B16;
  border-left: 0;
}

body[dir="rtl"] .account-requirements-section {
  direction: rtl;
}

body[dir="rtl"] .account-requirements-section > * {
  direction: rtl;
}

body[dir="rtl"] .account-requirements-section.is-image-right .account-requirements-media {
  order: -1;
}

body[dir="rtl"] .account-requirements-copy h2 {
  text-align: right;
}

body[dir="rtl"] .account-requirements-list li {
  padding-left: 0;
  padding-right: 2.75rem;
  text-align: right;
}

body[dir="rtl"] .account-requirements-list li::before {
  left: auto;
  right: 0;
}

body[dir="rtl"] .team-accordion-panel li {
  padding-left: 0;
  padding-right: 22px;
  text-align: right;
}

body[dir="rtl"] .team-accordion-panel li::before {
  left: auto;
  right: 0;
}

body[dir="rtl"] .open-account-section {
  direction: rtl;
}

body[dir="rtl"] .open-account-section.has-open-account-media {
  direction: rtl;
}

body[dir="rtl"] .open-account-section.has-open-account-media > * {
  direction: rtl;
}

body[dir="rtl"] .open-account-content {
  margin-left: 0;
  margin-right: 0;
  text-align: right;
}

body[dir="rtl"] .open-account-section.is-content-right .open-account-content {
  order: 0;
  margin-left: 0;
  margin-right: auto;
}

body[dir="rtl"] .open-account-section.is-content-left .open-account-content {
  order: 2;
}

body[dir="rtl"] .open-account-content h2,
body[dir="rtl"] .open-account-step h3,
body[dir="rtl"] .open-account-step p {
  text-align: right;
}

body[dir="rtl"] .open-account-steps {
  padding-left: 0;
  padding-right: 48px;
}

html[dir="rtl"] body[dir="rtl"] .open-account-content h2,
html[dir="rtl"] body[dir="rtl"] .open-account-steps,
html[dir="rtl"] body[dir="rtl"] .open-account-step,
html[dir="rtl"] body[dir="rtl"] .open-account-step h3,
html[dir="rtl"] body[dir="rtl"] .open-account-step p,
html[dir="rtl"] body[dir="rtl"] .open-account-step .account-rich-copy {
  margin-right: 0 !important;
  text-align: right !important;
}

html[dir="rtl"] body[dir="rtl"] .open-account-content h2,
html[dir="rtl"] body[dir="rtl"] .open-account-steps {
  margin-left: auto !important;
}

html[dir="rtl"] body[dir="rtl"] .open-account-section.is-background-full .open-account-steps {
  width: min(520px, 100%) !important;
  padding-right: 0 !important;
}

html[dir="rtl"] body[dir="rtl"] .open-account-section.is-background-full .open-account-step {
  padding-right: 0 !important;
  padding-left: 0 !important;
}

body[dir="rtl"] .open-account-step span {
  left: auto;
  right: -48px;
}

body[dir="rtl"] .contact-options-section {
  direction: rtl;
}

body[dir="rtl"] .contact-options-section > * {
  direction: rtl;
}

body[dir="rtl"] .contact-options-intro h2,
body[dir="rtl"] .contact-options-intro p {
  text-align: right;
}

body[dir="rtl"] .contact-options-grid {
  direction: rtl;
}

body[dir="rtl"] .contact-option-card {
  justify-items: center;
  text-align: center;
}

body[dir="rtl"] .contact-option-card strong,
body[dir="rtl"] .contact-option-card small {
  text-align: center;
}

body[dir="rtl"] .reference-account-button i,
body[dir="rtl"] .account-feature-card i,
body[dir="rtl"] .contact-option-card i,
body[dir="rtl"] .reference-account-button .fa-arrow-right,
body[dir="rtl"] .reference-account-button .fa-arrow-left {
  transform: scaleX(-1);
}

body[dir="rtl"] .reference-account-button::after {
  content: "\f060";
}

/* Card CTAs: label first in RTL reading order, followed by a left arrow. */
html[dir="rtl"][data-page="cards"] .cards-product-button {
  position: relative;
  direction: rtl;
  padding-left: 48px;
}

html[dir="rtl"][data-page="cards"] .cards-product-button::after {
  position: absolute;
  left: 18px;
}

html[dir="rtl"][data-page="cards"] .cards-product-button.read-more::after {
  content: "\f060";
}

html[dir="rtl"][data-page="cards"] .cards-product-button.apply-now::after {
  content: "\f060";
}

body[dir="rtl"] .c_vert {
  left: clamp(18px, 2.5vw, 50px);
  right: auto;
}

/* Keep Arabic hero copy anchored to the reading side. */
body[dir="rtl"] .c-hero .c_content {
  left: auto;
  right: 50px;
  text-align: right;
}

body[dir="rtl"] .c-hero .c_descr {
  left: auto;
  right: 50px;
  align-items: flex-start;
  text-align: right;
}

body[dir="rtl"] .c-hero .content_title,
body[dir="rtl"] .c-hero .content_descr {
  direction: rtl;
  text-align: right;
}

body[dir="rtl"] .c-hero .bottom_scroll {
  direction: rtl;
  letter-spacing: 0;
}

body[dir="rtl"] .c-hero .bottom_scroll::after {
  transform: scaleX(-1);
}

body[dir="rtl"] .c-hero .hero-slider-bullets {
  left: 60px;
  right: auto;
  direction: ltr;
  justify-content: flex-start;
}

body[dir="rtl"] .vert_actions a::before {
  left: calc(100% + 12px);
  right: auto;
  transform: translate(-8px, -50%);
}

body[dir="rtl"] .vert_actions a:hover::before,
body[dir="rtl"] .vert_actions a:focus-visible::before {
  transform: translate(0, -50%);
}

body[dir="rtl"] .vert_actions a:hover {
  transform: translateX(2px);
}

body[dir="rtl"] .back-to-top,
body[dir="rtl"] .scroll-top,
body[dir="rtl"] [aria-label="Back to top"] {
  left: 2rem;
  right: auto;
}

body[dir="rtl"] .swiper,
body[dir="rtl"] [data-feature-slider] {
  direction: rtl;
}

body[dir="rtl"] .account-features-header,
body[dir="rtl"] .reference-account-card-shell,
body[dir="rtl"] .contact-option-card {
  direction: rtl;
}

body[dir="rtl"] .account-features-header {
  text-align: right;
}

body[dir="rtl"] .account-features-header .accounts-controls {
  margin-left: 0;
  margin-right: auto;
}

body[dir="rtl"] .account-feature-card {
  align-items: flex-start;
  text-align: right;
}

body[dir="rtl"] .account-feature-card:first-child {
  border-color: #BB8B16;
  box-shadow: 0 6px 14px rgba(17, 17, 17, 0.08);
}

body[dir="rtl"] .account-feature-icon,
body[dir="rtl"] .contact-option-card span {
  margin-left: auto;
  margin-right: auto;
}

body[dir="rtl"] .account-feature-icon {
  align-self: flex-start;
  margin-left: 0;
  margin-right: 0;
}

body[dir="rtl"] .account-feature-card h3,
body[dir="rtl"] .account-feature-card p,
body[dir="rtl"] .account-feature-card .account-rich-copy,
body[dir="rtl"] .account-feature-card .account-rich-copy p {
  width: 100%;
  text-align: right;
}

@media (min-width: 1025px) {
  html[dir="rtl"] body[dir="rtl"] .account-features-grid {
    direction: rtl !important;
    justify-content: flex-start !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  html[dir="rtl"] body[dir="rtl"] .account-feature-card {
    direction: rtl !important;
    scroll-snap-align: start !important;
  }
}

body[dir="rtl"] .open-account-step span {
  margin-left: 0;
  margin-right: 0;
}

@media (max-width: 1280px) {
  body[dir="rtl"] .c-header {
    padding-left: 24px;
    padding-right: 28px;
  }

  body[dir="rtl"] .brand-logo {
    height: 78px;
  }

  body[dir="rtl"] .nav_menu {
    gap: 14px;
  }

  body[dir="rtl"] .item_label {
    font-size: 14px;
  }

  body[dir="rtl"] .internet-banking-link img {
    height: 28px;
  }

  body[dir="rtl"] .c_vert {
    left: 28px;
  }
}

@media (max-width: 1024px) {
  body[dir="rtl"] .c-header {
    padding: 14px 22px;
  }

  body[dir="rtl"] .header_logo {
    order: 0;
  }

  body[dir="rtl"] .header_nav {
    order: 1;
  }

  body[dir="rtl"] .mobile_drawer {
    left: 0;
    right: auto;
    direction: rtl;
    text-align: right;
    transform: translateX(-100%);
  }

  body[dir="rtl"] .mobile_drawer.open {
    transform: translateX(0);
  }

  body[dir="rtl"] .drawer_close {
    left: 18px;
    right: auto;
  }
}

@media (max-width: 980px) {
  body[dir="rtl"] .account-benefits-section,
  body[dir="rtl"] .account-requirements-section,
  body[dir="rtl"] .open-account-section.has-open-account-media,
  body[dir="rtl"] .contact-options-section {
    grid-template-columns: 1fr;
  }

  body[dir="rtl"] .account-benefits-media,
  body[dir="rtl"] .account-requirements-media,
  body[dir="rtl"] .open-account-media {
    order: 0 !important;
  }

  body[dir="rtl"] .account-benefits-copy,
  body[dir="rtl"] .account-requirements-copy,
  body[dir="rtl"] .open-account-content {
    order: 1 !important;
  }
}

@media (max-width: 767.98px) {
  body[dir="rtl"] .c-hero .hero-slider-bullets {
    left: 18px;
    right: auto;
  }

  body[dir="rtl"] .c-hero .c_inner {
    align-items: flex-end;
  }

  body[dir="rtl"] .c-hero .c_content,
  body[dir="rtl"] .c-hero .c_descr {
    left: auto;
    right: auto;
    width: 100%;
  }

  body[dir="rtl"] .accounts-page-hero-content {
    left: 22px;
    right: 22px;
    bottom: 9%;
    width: auto;
  }

  body[dir="rtl"] .accounts-page-hero-content h1 {
    font-size: 43px;
  }

  body[dir="rtl"] .accounts-page-hero-content,
  body[dir="rtl"] .account-intro-section,
  body[dir="rtl"] .account-benefits-copy,
  body[dir="rtl"] .account-requirements-copy,
  body[dir="rtl"] .open-account-content {
    text-align: right;
  }

  body[dir="rtl"] .account-intro-section,
  body[dir="rtl"] .account-intro-section p,
  body[dir="rtl"] .contact-option-card,
  body[dir="rtl"] .contact-option-card strong,
  body[dir="rtl"] .contact-option-card small {
    text-align: center;
  }

  body[dir="rtl"] .account-feature-card,
  body[dir="rtl"] .account-feature-card h3,
  body[dir="rtl"] .account-feature-card p,
  body[dir="rtl"] .account-feature-card .account-rich-copy,
  body[dir="rtl"] .account-feature-card .account-rich-copy p {
    text-align: right;
  }

  body[dir="rtl"] .account-features-header .accounts-controls {
    flex-direction: row-reverse;
    margin-right: 0;
  }

  body[dir="rtl"] .open-account-steps {
    padding-right: 42px;
    width: 100%;
  }

  body[dir="rtl"] .open-account-step span {
    right: -42px;
  }
}

@media (max-width: 560px) {
  body[dir="rtl"] .brand-logo {
    height: 62px;
  }

  body[dir="rtl"] .search_toggle,
  body[dir="rtl"] .nav_lang,
  body[dir="rtl"] .nav_burger {
    height: 40px;
    min-width: 40px;
    width: 40px;
  }
}

body[dir="rtl"] .footer-subscribe > div {
  direction: rtl;
  margin-left: unset;
  margin-right: auto;
}

body[dir="rtl"] .footer-subscribe {
  text-align: left;
}

body[dir="rtl"] .footer-apps {
  text-align: left;
}

body[dir="rtl"] .footer-experience {
  text-align: center;
}

body[dir="rtl"] .footer-subscribe input {
  direction: ltr;
  text-align: left;
}

body[dir="rtl"] .footer-subscribe label {
  direction: rtl;
}

/* Arabic homepage: RTL icons, slider controls and interactive movement. */
html[dir="rtl"][data-page="home"] body {
  text-align: right;
}

html[dir="rtl"][data-page="home"] .accounts-header,
html[dir="rtl"][data-page="home"] .news-slider-intro,
html[dir="rtl"][data-page="home"] .finance-journey-inner,
html[dir="rtl"][data-page="home"] .legacy-timeline-copy,
html[dir="rtl"][data-page="home"] .bankak-tab-panel,
html[dir="rtl"][data-page="home"] .news-slide-body,
html[dir="rtl"][data-page="home"] .card-head,
html[dir="rtl"][data-page="home"] .card-info {
  direction: rtl;
  text-align: right;
}

/* In RTL, previous lives on the right and next lives on the left. */
html[dir="rtl"][data-page="home"] .accounts-controls,
html[dir="rtl"][data-page="home"] .legacy-timeline-arrows {
  direction: ltr;
  flex-direction: row;
}

/* Pin account controls explicitly: next on the left, previous on the right. */
html[dir="rtl"][data-page="home"] .accounts-controls .accounts-arrow-prev {
  order: 2;
}

html[dir="rtl"][data-page="home"] .accounts-controls .accounts-arrow-next {
  order: 1;
}

html[dir="rtl"][data-page="home"] .legacy-timeline-arrows [data-legacy-prev] {
  order: 2;
}

html[dir="rtl"][data-page="home"] .legacy-timeline-arrows [data-legacy-next] {
  order: 1;
}

html[dir="rtl"][data-page="home"] .accounts-arrow i,
html[dir="rtl"][data-page="home"] .legacy-timeline-arrows i,
html[dir="rtl"][data-page="home"] .bankak-arrow i,
html[dir="rtl"][data-page="home"] .finance-journey-button .fa-arrow-right {
  transform: scaleX(-1);
}

html[dir="rtl"][data-page="home"] .bankak-arrow-left {
  left: auto;
  right: 24px;
}

html[dir="rtl"][data-page="home"] .bankak-arrow-right {
  right: auto;
  left: 24px;
}

/* Keep every decorative/service icon upright and centered. */
html[dir="rtl"][data-page="home"] .vert_actions .icon,
html[dir="rtl"][data-page="home"] .account-feature-icon,
html[dir="rtl"][data-page="home"] .legacy-milestone-card i,
html[dir="rtl"][data-page="home"] .bankak-reveal-store i,
html[dir="rtl"][data-page="home"] .finance-calculator-card i {
  direction: ltr;
  transform: none;
}

/* Font Awesome CTA arrows must point toward the RTL reading direction. */
html[dir="rtl"][data-page="home"] .steps-button::after,
html[dir="rtl"][data-page="home"] .bottom_scroll::after,
html[dir="rtl"][data-page="home"] .bankak-read-more::after,
html[dir="rtl"][data-page="home"] .bankak-reveal-button::after,
html[dir="rtl"][data-page="home"] .legacy-timeline-button::after,
html[dir="rtl"][data-page="home"] .news-explore-more::after,
html[dir="rtl"][data-page="home"] .read-more::after,
html[dir="rtl"][data-page="home"] .button.primary::after,
html[dir="rtl"][data-page="home"] .news-slide-card > a::after {
  content: "\2190" !important;
  font-family: Arial, sans-serif !important;
  font-weight: 400 !important;
  transform: none !important;
}

html[dir="rtl"][data-page="home"] .steps-button,
html[dir="rtl"][data-page="home"] .bottom_scroll,
html[dir="rtl"][data-page="home"] .bankak-read-more,
html[dir="rtl"][data-page="home"] .bankak-reveal-button,
html[dir="rtl"][data-page="home"] .legacy-timeline-button,
html[dir="rtl"][data-page="home"] .news-explore-more,
html[dir="rtl"][data-page="home"] .read-more,
html[dir="rtl"][data-page="home"] .button.primary,
html[dir="rtl"][data-page="home"] .finance-journey-button,
html[dir="rtl"][data-page="home"] .finance-card-button,
html[dir="rtl"][data-page="home"] .news-slide-card > a {
  direction: rtl !important;
  flex-direction: row !important;
  gap: 15px !important;
}

html[dir="rtl"][data-page="home"] .steps-button:hover::after,
html[dir="rtl"][data-page="home"] .steps-button:focus-visible::after,
html[dir="rtl"][data-page="home"] .bottom_scroll:hover::after,
html[dir="rtl"][data-page="home"] .bottom_scroll:focus-visible::after,
html[dir="rtl"][data-page="home"] .bankak-read-more:hover::after,
html[dir="rtl"][data-page="home"] .bankak-read-more:focus-visible::after,
html[dir="rtl"][data-page="home"] .bankak-reveal-button:hover::after,
html[dir="rtl"][data-page="home"] .bankak-reveal-button:focus-visible::after,
html[dir="rtl"][data-page="home"] .legacy-timeline-button:hover::after,
html[dir="rtl"][data-page="home"] .legacy-timeline-button:focus-visible::after,
html[dir="rtl"][data-page="home"] .news-explore-more:hover::after,
html[dir="rtl"][data-page="home"] .news-explore-more:focus-visible::after,
html[dir="rtl"][data-page="home"] .read-more:hover::after,
html[dir="rtl"][data-page="home"] .read-more:focus-visible::after,
html[dir="rtl"][data-page="home"] .button.primary:hover::after,
html[dir="rtl"][data-page="home"] .button.primary:focus-visible::after {
  transform: translateX(-6px) !important;
}

html[dir="rtl"][data-page="home"] .news-slide-card > a {
  left: auto;
  right: 34px;
}

html[dir="rtl"][data-page="home"] .news-slide-card > a::after {
  margin-left: 0 !important;
  margin-right: auto !important;
  transform: translateX(6px) !important;
}

html[dir="rtl"][data-page="home"] .news-slide-card:hover > a::after,
html[dir="rtl"][data-page="home"] .news-slide-card:focus-within > a::after {
  transform: translateX(0) !important;
}

html[dir="rtl"][data-page="home"] .finance-card-button i {
  transform: none !important;
}

html[dir="rtl"][data-page="home"] .finance-journey-button .fa-arrow-right {
  transform: none !important;
  transition: transform 0.25s ease;
}

html[dir="rtl"][data-page="home"] .finance-card-button i::before,
html[dir="rtl"][data-page="home"] .finance-journey-button .fa-arrow-right::before {
  content: "\f060" !important;
}

html[dir="rtl"][data-page="home"] .finance-card-button:hover i,
html[dir="rtl"][data-page="home"] .finance-card-button:focus-visible i,
html[dir="rtl"][data-page="home"] .finance-journey-button:hover .fa-arrow-right,
html[dir="rtl"][data-page="home"] .finance-journey-button:focus-visible .fa-arrow-right {
  transform: translateX(-6px) !important;
}

@media (max-width: 860px) {
  html[dir="rtl"][data-page="home"] .bankak-arrow-left {
    left: auto;
    right: 10px;
  }

  html[dir="rtl"][data-page="home"] .bankak-arrow-right {
    right: auto;
    left: 10px;
  }
}

/* Arabic USSD journey: preserve English composition, localize content only. */
html[dir="rtl"][data-page="ussd"] :is(.ussd-intro-section, .ussd-panel, .ussd-services-grid, .ussd-flow-copy) ul {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"][data-page="ussd"] :is(.ussd-intro-section, .ussd-panel, .ussd-services-grid, .ussd-flow-copy) li {
  padding-right: 22px;
  padding-left: 0;
  text-align: right;
}

html[dir="rtl"][data-page="ussd"] :is(.ussd-intro-section, .ussd-panel, .ussd-services-grid, .ussd-flow-copy) li::before {
  right: 0;
  left: auto;
}

/* Keep USSD slider arrows in their visual positions: left arrow on the left,
   right arrow on the right. The slider movement itself remains RTL-aware. */
html[dir="rtl"][data-page="ussd"] .ussd-slider-controls {
  direction: ltr;
}

body[dir="rtl"] .finance-journey-section .finance-journey-inner {
  direction: ltr;
}

body[dir="rtl"] .finance-journey-section .finance-journey-copy {
  direction: rtl;
  grid-column: 2;
  grid-row: 1;
  padding: 36px 0;
  text-align: right;
}

body[dir="rtl"] .finance-journey-section .finance-journey-copy > p {
  margin-left: auto;
  margin-right: 0;
}

body[dir="rtl"] .finance-journey-section .finance-journey-steps {
  direction: rtl;
  grid-column: 1;
  grid-row: 1;
  padding-left: 0;
  padding-right: 4px;
  text-align: right;
}

body[dir="rtl"] .finance-journey-section .finance-journey-line {
  left: auto;
  right: 25px;
}

body[dir="rtl"] .finance-journey-section .finance-journey-step {
  direction: ltr;
  grid-template-columns: 1fr 52px;
}

body[dir="rtl"] .finance-journey-section .finance-journey-step > .finance-journey-number {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
}

body[dir="rtl"] .finance-journey-section .finance-journey-step > div {
  direction: rtl;
  grid-column: 1;
  grid-row: 1;
  text-align: right;
}

body[dir="rtl"] .finance-journey-section .finance-journey-step p {
  margin-left: auto;
  margin-right: 0;
}

@media (min-width: 861px) {
  /* Mirror the English composition without changing its sizing or spacing. */
  body[dir="rtl"] .finance-journey-section .finance-journey-copy {
    justify-self: end;
  }

  body[dir="rtl"] .finance-journey-section .finance-journey-steps {
    justify-self: start;
  }
}

@media (max-width: 860px) {
  body[dir="rtl"] .finance-journey-section .finance-journey-copy {
    grid-column: 1;
    grid-row: 1;
  }

  body[dir="rtl"] .finance-journey-section .finance-journey-steps {
    grid-column: 1;
    grid-row: 2;
  }

  body[dir="rtl"] .finance-journey-section .finance-journey-copy {
    max-width: 100%;
    padding: 0;
  }

  body[dir="rtl"] .finance-journey-section .finance-journey-copy > p {
    max-width: 100%;
  }
}

/* Dynamic Arabic homepage CTAs (the page data attribute may be a custom slug). */
body[dir="rtl"] .accounts-section .read-more,
body[dir="rtl"] .scroll-showcase .steps-button,
body[dir="rtl"] .c-hero .bottom_scroll,
body[dir="rtl"] .insights-section .bankak-read-more,
body[dir="rtl"] .bankak-reveal-section .bankak-reveal-button,
body[dir="rtl"] .legacy-timeline-section .legacy-timeline-button,
body[dir="rtl"] .news-slider-section .news-explore-more,
body[dir="rtl"] .news-slider-section .news-slide-card > a,
body[dir="rtl"] .finance-journey-section .finance-journey-button {
  direction: rtl !important;
  flex-direction: row !important;
  gap: 15px !important;
}

body[dir="rtl"] .news-slider-section .news-slide-card > a {
  right: 34px !important;
  left: auto !important;
}

body[dir="rtl"] .accounts-section .read-more::after,
body[dir="rtl"] .scroll-showcase .steps-button::after,
body[dir="rtl"] .c-hero .bottom_scroll::after,
body[dir="rtl"] .insights-section .bankak-read-more::after,
body[dir="rtl"] .bankak-reveal-section .bankak-reveal-button::after,
body[dir="rtl"] .legacy-timeline-section .legacy-timeline-button::after,
body[dir="rtl"] .news-slider-section .news-explore-more::after,
body[dir="rtl"] .news-slider-section .news-slide-card > a::after {
  content: "\2190" !important;
  order: 2 !important;
  margin: 0 !important;
  font-family: Arial, sans-serif !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  transform: none !important;
}

body[dir="rtl"] .accounts-section .read-more:hover::after,
body[dir="rtl"] .accounts-section .read-more:focus-visible::after,
body[dir="rtl"] .scroll-showcase .steps-button:hover::after,
body[dir="rtl"] .scroll-showcase .steps-button:focus-visible::after,
body[dir="rtl"] .c-hero .bottom_scroll:hover::after,
body[dir="rtl"] .c-hero .bottom_scroll:focus-visible::after,
body[dir="rtl"] .insights-section .bankak-read-more:hover::after,
body[dir="rtl"] .insights-section .bankak-read-more:focus-visible::after,
body[dir="rtl"] .bankak-reveal-section .bankak-reveal-button:hover::after,
body[dir="rtl"] .bankak-reveal-section .bankak-reveal-button:focus-visible::after,
body[dir="rtl"] .legacy-timeline-section .legacy-timeline-button:hover::after,
body[dir="rtl"] .legacy-timeline-section .legacy-timeline-button:focus-visible::after,
body[dir="rtl"] .news-slider-section .news-explore-more:hover::after,
body[dir="rtl"] .news-slider-section .news-explore-more:focus-visible::after,
body[dir="rtl"] .news-slider-section .news-slide-card:hover > a::after,
body[dir="rtl"] .news-slider-section .news-slide-card:focus-within > a::after {
  transform: translateX(-6px) !important;
}

body[dir="rtl"] .finance-journey-section .finance-journey-button .fa-arrow-right {
  order: 2 !important;
  transform: none !important;
}

body[dir="rtl"] .finance-journey-section .finance-journey-button .fa-arrow-right::before {
  content: "\f060" !important;
}

body[dir="rtl"] .finance-journey-section .finance-journey-button:hover .fa-arrow-right,
body[dir="rtl"] .finance-journey-section .finance-journey-button:focus-visible .fa-arrow-right {
  transform: translateX(-6px) !important;
}

/* Dynamic Arabic account slider: left is next, right is previous. */
body[dir="rtl"] .accounts-section .accounts-controls {
  direction: ltr !important;
  flex-direction: row !important;
}

body[dir="rtl"] .accounts-section .accounts-arrow-prev {
  order: 2 !important;
}

body[dir="rtl"] .accounts-section .accounts-arrow-next {
  order: 1 !important;
}

body[dir="rtl"] .accounts-section .accounts-arrow i {
  transform: scaleX(-1) !important;
}

/* Arabic Bankak reveal: keep the English layout, localize only the content. */
body[dir="rtl"] .bankak-reveal-section .bankak-reveal-stage {
  direction: ltr;
  grid-template-columns: minmax(0, 52.5vw) minmax(380px, 1fr);
}

body[dir="rtl"] .bankak-reveal-section .bankak-reveal-image-side {
  grid-column: 1;
  grid-row: 1;
}

body[dir="rtl"] .bankak-reveal-section .bankak-reveal-content-side {
  direction: rtl;
  grid-column: 2;
  grid-row: 1;
  text-align: right;
}

body[dir="rtl"] .bankak-reveal-section .bankak-reveal-tabs,
body[dir="rtl"] .bankak-reveal-section .bankak-reveal-store-links {
  direction: rtl;
}

@media (max-width: 860px) {
  body[dir="rtl"] .bankak-reveal-section .bankak-reveal-stage {
    grid-template-columns: 1fr;
  }

  body[dir="rtl"] .bankak-reveal-section .bankak-reveal-image-side {
    grid-column: 1;
    grid-row: 1;
  }

  body[dir="rtl"] .bankak-reveal-section .bankak-reveal-content-side {
    grid-column: 1;
    grid-row: 2;
  }
}

/* Arabic Get Started CTA stays on the physical right. */
body[dir="rtl"] .scroll-showcase .steps-button {
  right: auto;
  left: clamp(32px, 6vw, 108px);
}

@media (max-width: 860px) {
  body[dir="rtl"] .scroll-showcase .steps-button {
    left: auto;
    right: auto;
    align-self: auto;
    width: fit-content;
    margin-left: auto !important;
    margin-right: 0 !important;
  }
}

/* Arabic timeline: align 01 with the first circle on the right. */
body[dir="rtl"] .scroll-showcase .steps-track {
  direction: rtl;
}

body[dir="rtl"] .scroll-showcase .track-step {
  padding-left: 0;
  padding-right: 0;
  text-align: right;
}

body[dir="rtl"] .scroll-showcase .track-step::after {
  left: auto;
  right: 0;
}

body[dir="rtl"] .scroll-showcase .track-line {
  left: 0;
  right: 21px;
  transform-origin: right center;
}

body[dir="rtl"] .scroll-showcase .track-step span,
body[dir="rtl"] .scroll-showcase .track-step strong {
  margin-left: 0;
  margin-right: 0;
  text-align: right;
}

@media (max-width: 860px) {
  body[dir="rtl"] .scroll-showcase .track-step {
    padding-left: 0;
    padding-right: 58px;
  }
}

@media (max-width: 560px) {
  body[dir="rtl"] .scroll-showcase .track-step {
    padding-right: 54px;
  }
}

/* Arabic Legacy Timeline controls: next left, previous right. */
body[dir="rtl"] .legacy-timeline-section .legacy-timeline-arrows {
  direction: ltr;
  flex-direction: row;
}

body[dir="rtl"] .legacy-timeline-section [data-legacy-prev] {
  order: 0;
}

body[dir="rtl"] .legacy-timeline-section [data-legacy-next] {
  order: 0;
}

body[dir="rtl"] .legacy-timeline-section .legacy-timeline-arrows i {
  transform: none;
}

body[dir="rtl"] .legacy-timeline-section .legacy-years-shell {
  position: relative;
  direction: ltr;
}

body[dir="rtl"] .legacy-timeline-section .legacy-years-track {
  direction: rtl;
}

body[dir="rtl"] .legacy-timeline-section .legacy-year-step {
  justify-content: flex-start;
  text-align: right;
}

body[dir="rtl"] .legacy-timeline-section .legacy-year-step span {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: left;
}

body[dir="rtl"] .legacy-timeline-section .legacy-year-step::after {
  right: 0;
  left: auto;
}

/* Arabic intro: mirror the English presentation while keeping RTL placement. */
body[dir="rtl"] .account-intro-section {
  direction: rtl;
  justify-items: end;
  color: #111;
  text-align: right;
}

body[dir="rtl"] .account-intro-section > div {
  direction: rtl;
  width: min(900px, 100%);
  justify-self: end;
  margin-left: auto;
  margin-right: 0;
  text-align: right;
}

body[dir="rtl"] .account-intro-section h2 {
  color: #111;
  text-align: right;
}

body[dir="rtl"] .account-intro-section p,
body[dir="rtl"] .account-intro-section p *,
body[dir="rtl"] .account-intro-section > div > div,
body[dir="rtl"] .account-intro-section .account-rich-copy,
body[dir="rtl"] .account-intro-section .account-rich-copy * {
  color: #4e4e4e;
  font-size: 18px;
  text-align: right;
}

html[dir="rtl"][data-page="account-inner"] .account-intro-section > div,
html[dir="rtl"][data-page="card-inner"] .account-intro-section > div {
  width: min(900px, 100%);
  justify-self: end;
  margin-left: auto;
  margin-right: 0;
  text-align: right;
}

html[dir="rtl"][data-page="account-inner"] .account-intro-section h2,
html[dir="rtl"][data-page="account-inner"] .account-intro-section .account-rich-copy,
html[dir="rtl"][data-page="account-inner"] .account-intro-section .account-rich-copy p,
html[dir="rtl"][data-page="card-inner"] .account-intro-section h2,
html[dir="rtl"][data-page="card-inner"] .account-intro-section .account-rich-copy,
html[dir="rtl"][data-page="card-inner"] .account-intro-section .account-rich-copy p {
  text-align: right !important;
}

/* Bankak lists: place bullets on the RTL start edge beside the Arabic text. */
html[dir="rtl"][data-page="bankak-account"] main :is(ul, ol) {
  direction: rtl;
  padding-right: 28px !important;
  padding-left: 0 !important;
  text-align: right;
}

html[dir="rtl"][data-page="bankak-account"] main ul > li {
  padding-right: 22px !important;
  padding-left: 0 !important;
  text-align: right;
}

html[dir="rtl"][data-page="bankak-account"] main ul > li::before {
  right: 0 !important;
  left: auto !important;
}

html[dir="rtl"][data-page="bankak-account"] main ol {
  list-style-position: outside;
}

/* The base Bankak table is left-aligned; restore the Arabic reading edge. */
html[dir="rtl"][data-page="bankak-account"] .bankak-limit-table th,
html[dir="rtl"][data-page="bankak-account"] .bankak-limit-table td {
  text-align: right;
}

html[dir="rtl"][data-page="bankak-account"] .bankak-deposit-section .open-account-content {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"][data-page="bankak-account"] .bankak-deposit-section .open-account-content > p {
  margin-right: 0;
  margin-left: auto;
  text-align: right;
}

html[dir="rtl"][data-page="bankak-account"] .bankak-deposit-section .open-account-steps {
  direction: rtl;
  padding-right: 0;
  padding-left: 0;
}

html[dir="rtl"][data-page="bankak-account"] .bankak-deposit-section .open-account-step {
  padding-right: 22px;
  padding-left: 0;
  text-align: right;
}

html[dir="rtl"][data-page="bankak-account"] .bankak-deposit-section .open-account-step::before {
  right: 0;
  left: auto;
}

html[dir="rtl"][data-page="bankak-account"] .bankak-deposit-section .open-account-step p {
  margin: 0;
  text-align: right;
}

/* Place side-line accents on the right of Arabic text. */
html[dir="rtl"][data-page="bankak-account"] .bankak-registration-list article {
  padding-right: 24px;
  padding-left: 0;
  border-right: 2px solid #bb8b16;
  border-left: 0;
  text-align: right;
}

body[dir="rtl"] .account-benefits-copy li,
body[dir="rtl"] .account-benefits-copy > p,
html[dir="rtl"][data-page="about-us"] .about-achievements-list p,
html[dir="rtl"][data-page="about-us"] .about-global-copy,
html[dir="rtl"][data-page="account-inner"] .about-global-copy,
html[dir="rtl"]:is([data-page="card-inner"], [data-page="account-inner"]) .card-limit-item {
  padding-left: 0;
  padding-right: 28px;
  border-right: 3px solid #BB8B16;
  border-left: 0;
  text-align: right;
}

/* Benefit-card lists already have native bullets. Match the English layout by
   removing the generic benefits accent from individual list items in RTL. */
body[dir="rtl"] .account-benefit-card ul {
  padding-right: 26px;
  padding-left: 0;
}

body[dir="rtl"] .account-benefit-card li {
  padding-right: 0;
  padding-left: 0;
  border-right: 0;
  border-left: 0;
}

html[dir="rtl"][data-page="about-us"] .about-values-card {
  padding-right: 28px;
  padding-left: 0;
  border-right: 2px solid rgba(255, 255, 255, 0.82);
  border-left: 0;
  text-align: right;
}

/* Keep the decorative milestone line and its absolute marker positions stable. */
html[dir="rtl"][data-page="about-us"] .about-milestones-line {
  direction: ltr;
  isolation: isolate;
  transform: scaleX(-1);
}

html[dir="rtl"][data-page="about-us"] .about-milestones-line::before {
  left: 0;
  right: 30%;
  width: auto;
  z-index: 0;
}

html[dir="rtl"][data-page="about-us"] .about-milestones-line span {
  z-index: 1;
}

body[dir="rtl"] .account-benefits-copy li,
body[dir="rtl"] .account-benefits-copy > p {
  padding-right: 22px;
  padding-left: 0;
}

/* Mirror Bankak photographic backgrounds in Arabic without mirroring content. */
html[dir="rtl"][data-page="bankak-account"] :is(.bankak-deposit-section, .bankak-open-account-section) {
  position: relative;
  isolation: isolate;
  background-color: #070707;
  background-image: none;
  overflow: hidden;
}

html[dir="rtl"][data-page="bankak-account"] :is(.bankak-deposit-section, .bankak-open-account-section)::before,
html[dir="rtl"][data-page="bankak-account"] :is(.bankak-deposit-section, .bankak-open-account-section)::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

html[dir="rtl"][data-page="bankak-account"] :is(.bankak-deposit-section, .bankak-open-account-section)::before {
  z-index: -2;
  transform: scaleX(-1);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

html[dir="rtl"][data-page="bankak-account"] .bankak-open-account-section::before {
  background-image: var(--bankak-requests-image, url("assets/bankakpagerequest.jpg"));
}

html[dir="rtl"][data-page="bankak-account"] :is(.bankak-deposit-section, .bankak-open-account-section)::after {
  z-index: -1;
  background: linear-gradient(270deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.74) 42%, rgba(0, 0, 0, 0.5) 100%);
}

@media (max-width: 860px) {
  html[dir="rtl"][data-page="bankak-account"] .bankak-deposit-section::before {
    background-image: url("assets/bankak.png");
  }

  html[dir="rtl"][data-page="bankak-account"] .bankak-open-account-section::before {
    background-image: url("assets/account.png");
  }

  html[dir="rtl"][data-page="bankak-account"] :is(.bankak-deposit-section, .bankak-open-account-section)::after {
    background: rgba(0, 0, 0, 0.78);
  }
}

/* Arabic mobile legacy timeline: keep the active first year visible while
   preserving RTL copy alignment. */
@media (max-width: 860px) {
  body[dir="rtl"] .legacy-timeline-section .legacy-years-shell,
  body[dir="rtl"] .legacy-timeline-section .legacy-years-window,
  body[dir="rtl"] .legacy-timeline-section .legacy-years-track {
    direction: ltr !important;
  }

  body[dir="rtl"] .legacy-timeline-section .legacy-years-track {
    padding-right: 0 !important;
    padding-left: 22px !important;
  }

  body[dir="rtl"] .legacy-timeline-section .legacy-year-step {
    justify-content: flex-start !important;
    text-align: left !important;
  }

  body[dir="rtl"] .legacy-timeline-section .legacy-year-step span {
    direction: ltr !important;
    unicode-bidi: isolate !important;
    text-align: left !important;
  }

  body[dir="rtl"] .legacy-timeline-section .legacy-timeline-arrows {
    justify-content: flex-end !important;
  }

  body[dir="rtl"] .legacy-timeline-section .legacy-timeline-copy,
  body[dir="rtl"] .legacy-timeline-section .legacy-timeline-copy h2,
  body[dir="rtl"] .legacy-timeline-section .legacy-milestone-card,
  body[dir="rtl"] .legacy-timeline-section .legacy-milestone-card p {
    direction: rtl !important;
    text-align: right !important;
  }
}

/* Final desktop RTL layout guard.
   Page-builder and legacy page CSS can load after the base layout rules, so
   keep these structural positions authoritative for every Arabic page. */
@media (min-width: 1025px) {
  html[dir="rtl"] body[dir="rtl"] .c-header {
    direction: rtl !important;
  }

  html[dir="rtl"] body[dir="rtl"] .c-header > .header_logo {
    order: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  html[dir="rtl"] body[dir="rtl"] .c-header > .header_nav {
    direction: rtl !important;
    order: 1 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  html[dir="rtl"] body[dir="rtl"] .accounts-page-hero .accounts-page-hero-content {
    direction: rtl !important;
    right: clamp(28px, 5vw, 90px) !important;
    left: auto !important;
    align-items: flex-start !important;
    margin: 0 !important;
    text-align: right !important;
  }

  html[dir="rtl"] body[dir="rtl"] .accounts-page-hero .accounts-page-hero-content > * {
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: right !important;
  }

  html[dir="rtl"] body[dir="rtl"] .accounts-page-hero > .c_vert,
  html[dir="rtl"] body[dir="rtl"] [data-inner-page-quick-actions] .c_vert {
    left: 50px !important;
    right: auto !important;
  }
}

/* Inner page banners: keep Arabic banner scale and heading sizes matched to
   the English layout while preserving RTL alignment. */
html[dir="rtl"] body[dir="rtl"] .accounts-page-hero-content {
  bottom: 9%;
  width: min(720px, 58vw);
}

html[dir="rtl"] body[dir="rtl"] .accounts-page-hero-content h1 {
  max-width: 100%;
  margin-bottom: 20px;
  font-size: 43px;
  line-height: 1.09;
  letter-spacing: 0;
}

@media (max-width: 860px) {
  html[dir="rtl"] body[dir="rtl"] .accounts-page-hero-content {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: min(520px, calc(100% - 44px));
    max-width: min(520px, 100%);
    padding: 96px 0 112px;
    margin: auto 22px 0;
  }
}

@media (max-width: 768px) {
  html[dir="rtl"]:not([data-page="home"]) body[dir="rtl"] .accounts-page-hero,
  html[dir="rtl"]:not([data-page="home"]) body[dir="rtl"] .cards-page-hero {
    height: 380px !important;
    min-height: 380px !important;
    max-height: 380px;
  }
}

@media (max-width: 640px) {
  html[dir="rtl"] body[dir="rtl"] .accounts-page-hero-content {
    width: calc(100% - 36px);
    padding: 84px 0 104px;
    margin: auto 18px 0;
  }

  html[dir="rtl"] body[dir="rtl"] .accounts-page-hero-content h1 {
    margin-bottom: 8px;
    font-size: clamp(1.8rem, 8vw, 2.7rem) !important;
    line-height: 1.12;
  }

  html[dir="rtl"] body[dir="rtl"] .accounts-page-hero-content span {
    font-size: 0.95rem;
    line-height: 1.55;
  }
}

/* Arabic mobile inner content: show list bullets only, without side accents. */
@media (max-width: 640px) {
  html[dir="rtl"] body[dir="rtl"] .account-benefits-grid .account-benefit-card,
  html[dir="rtl"] body[dir="rtl"] .account-benefits-copy li,
  html[dir="rtl"] body[dir="rtl"] .account-benefits-copy > p {
    border-right: 0 !important;
    border-left: 0 !important;
  }

  html[dir="rtl"] body[dir="rtl"] .account-benefits-grid .account-benefit-card {
    padding: 0 0 22px !important;
  }

  html[dir="rtl"] body[dir="rtl"] .account-benefits-copy li {
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  html[dir="rtl"] body[dir="rtl"] .account-benefit-card .account-rich-copy ul,
  html[dir="rtl"] body[dir="rtl"] .account-benefit-card ul {
    list-style: disc outside !important;
    padding-right: 22px !important;
    padding-left: 0 !important;
  }

  html[dir="rtl"] body[dir="rtl"] .account-benefit-card li::marker {
    color: #BB8B16;
  }

  html[dir="rtl"] body[dir="rtl"] .account-benefit-card h3,
  html[dir="rtl"] body[dir="rtl"] .account-benefit-card p {
    padding-right: 0 !important;
    text-align: right !important;
  }
}
/* Careers template RTL refinements */
html[dir="rtl"] .career-intro:before{right:0;left:auto}html[dir="rtl"] .career-intro-media{padding-right:48px;padding-left:0}html[dir="rtl"] .career-intro-media:before{right:0;left:auto}html[dir="rtl"] .career-media-note{right:auto;left:-30px}html[dir="rtl"] .career-card-number{right:auto;left:32px}html[dir="rtl"] .career-button span,html[dir="rtl"] .career-text-link span{display:inline-block;transform:scaleX(-1)}@media(max-width:700px){html[dir="rtl"] .career-intro-media{padding-right:20px;padding-left:0}html[dir="rtl"] .career-media-note{left:0}}
html[dir="rtl"] .career-current-vacancies-button{flex-direction:row-reverse}html[dir="rtl"] .career-current-vacancies-button span{display:inline-block;transform:scaleX(-1)}
html[dir="rtl"] .career-join-media:after{right:auto;left:-12px}

/* Media center CTAs: arrows point left in Arabic. */
html[dir="rtl"] .media-filter-form button[type="submit"] .fa-arrow-right {
  transform: scaleX(-1);
}

html[dir="rtl"] .media-card a::after {
  content: "\f060";
}
