/*
 * Arabic (right-to-left) overrides.
 * Load AFTER the shared ../assets/bootstrap/css/bootstrap.css and ../assets/css/style-main.css.
 * Only the differences from the English layout live here; fix everything else once, in the shared files.
 */

/* ---------- Bootstrap grid: columns float right ---------- */
@media (min-width: 768px) {
  .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 {
    float: right;
  }
  .col-sm-offset-4 {
    margin-left: 0;
    margin-right: 33.33333333%;
  }
}
@media (min-width: 992px) {
  .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 {
    float: right;
  }
  .col-md-offset-4 {
    margin-left: 0;
    margin-right: 33.33333333%;
  }
}

/* ---------- Base typography ---------- */
body {
  font-family: 'Cairo', sans-serif;
  text-align: right;
}
.numbers .number figure {
  font-family: 'Roboto', sans-serif;
}
/* The English hero heading uses weight 300; the Arabic keeps the default h1 weight (100). */
section.hero-slider .caption .block-content h1 {
  font-weight: 100;
}
/* English-only footer sizes are not used in Arabic. */
.footercontact {
  font-size: inherit !important;
}
.copyright a {
  font-size: inherit;
}

/* ---------- Main navigation ---------- */
.main-navigation {
  direction: rtl;
  float: right;
}
.main-navigation.bg-dark.bg-expand-right {
  background-color: transparent;
}
.main-navigation.bg-dark.bg-expand-right:before {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 2000px;
  background-color: rgba(0, 0, 0, 0.7);
  content: "";
  z-index: -1;
}
.main-navigation.bg-white.bg-expand-right {
  background-color: transparent;
}
.main-navigation.bg-white.bg-expand-right:before {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 2000px;
  background-color: rgba(255, 255, 255, 0.9);
  content: "";
  z-index: -1;
}
.main-navigation.navigation-fix-to-top, .main-navigation.fix-to-top {
  right: 14%;
}
.main-navigation .navigation-items {
  left: auto;
  right: 0;
  padding-right: 0px;
}
.main-navigation .navigation-items li {
  float: right;
  margin-left: 0;
  margin-right: -1px;
}
.hero-slider .heading-wrapper .caption .main-navigation.fix-to-top .block-content {
  padding-right: 20px;
  padding-left: 0px;
}

/* ---------- Elements ---------- */
a i {
  margin-left: 0;
  margin-right: 5px;
}
.numbers .separator {
  right: auto;
  left: 0;
}
section#others .container, section#features p, section#intronote h2 {
  direction: rtl;
}

/* ---------- Map tabs (other-maps pages) ---------- */
.maps-big .nav-maps > li:before {
  content: "\f104";
  left: auto;
  right: 0px;
}
.maps-big .nav-maps > li.active > a, .maps-big .nav-maps > li.active a:hover, .maps-big .nav-maps > li.active a:active, .maps-big .nav-maps > li.active a:focus {
  padding-left: 0;
  padding-right: 20px;
}

/* ---------- Phones ---------- */
@media (max-width: 767px) {
  /* Re-apply the shared phone rule: menu items stack instead of floating right. */
  .main-navigation .navigation-items li {
    float: none;
  }
  section#offline-nav .description {
    text-align: center !important;
  }
}

/* ---------- Other-maps pages: back link on the right, language switch on the left ---------- */
.om-topbar {
  flex-direction: row-reverse;
}

/* ---------- Other-maps pages: search box on the right, magnifier on the right, x on the left ---------- */
.om-search { margin-left: auto; }
.map-search-field:before { left: auto; right: 14px; }
.map-search input[type="search"] { padding: 10px 42px 10px 44px; }
.map-search-clear { right: auto; left: 0; }
.maps-big.om-searching .nav-maps > li.active > a, .maps-big.om-searching .nav-maps > li.active a:hover,
.maps-big.om-searching .nav-maps > li.active a:active, .maps-big.om-searching .nav-maps > li.active a:focus { padding-right: 0; }