/* EWO-137-B2-B2 final Arabic shared shell: navbar accessibility and premium footer. */
#mainNav.egyd-shared-nav {
  direction: rtl;
  white-space: nowrap;
}

#mainNav.egyd-shared-nav > li > a {
  letter-spacing: 0;
}

#mainNav.egyd-shared-nav > li.dropdown > a .caret {
  margin-right: 5px;
  margin-left: 0;
}

#mainNav.egyd-shared-nav .dropdown-menu {
  direction: rtl;
  right: 0;
  left: auto;
  min-width: 188px;
  width: max-content;
  max-width: min(280px, calc(100vw - 32px));
  padding: 8px 0;
  margin-top: 0;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-top: 2px solid #ed1b23;
  border-radius: 0 0 4px 4px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  text-align: right;
}

#mainNav.egyd-shared-nav .dropdown-menu > li > a {
  display: block;
  padding: 9px 16px !important;
  color: #222 !important;
  font-size: 14px;
  line-height: 1.4;
  text-align: right;
  white-space: nowrap;
}

#mainNav.egyd-shared-nav .dropdown-menu > li > a:hover,
#mainNav.egyd-shared-nav .dropdown-menu > li > a:focus {
  background: #f7f7f7;
  color: #ed1b23 !important;
  text-decoration: none;
  outline: none;
}

#mainNav.egyd-shared-nav > li > a:focus:not(:focus-visible) {
  outline: 0;
  box-shadow: none;
}

#mainNav.egyd-shared-nav > li > a:focus-visible {
  color: #fff !important;
  outline: 3px solid #fff !important;
  outline-offset: -3px;
  box-shadow: inset 0 0 0 1px #0b0b0b !important;
}

.header .navbar-toggle:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -3px;
  box-shadow: inset 0 0 0 1px #0b0b0b;
}

#mainNav.egyd-shared-nav > li.dropdown.open > a,
#mainNav.egyd-shared-nav > li.dropdown > a:focus {
  color: #ed1b23;
}

@media (min-width: 992px) {
  #mainNav.egyd-shared-nav > li.dropdown:hover > .dropdown-menu,
  #mainNav.egyd-shared-nav > li.dropdown.open > .dropdown-menu {
    display: block;
  }
}

@media (min-width: 992px) and (max-width: 1120px) {
  #mainNav.egyd-shared-nav > li > a {
    font-size: 13px;
    padding-left: 7px !important;
    padding-right: 7px !important;
  }
}

@media (max-width: 991px) {
  .header .navbar-header {
    float: none;
  }

  .header .navbar-toggle {
    display: block;
  }

  .header .navbar-collapse.collapse {
    display: none !important;
    height: auto !important;
    overflow: hidden !important;
  }

  .header .navbar-collapse.collapse.in,
  .header .navbar-collapse.in,
  .header .navbar-collapse.collapsing {
    display: block !important;
    height: 331px !important;
    max-height: 331px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  .header .navbar-nav {
    float: none !important;
  }

  .header .navbar-nav > li {
    float: none !important;
  }

  #main-nav.in #mainNav.egyd-shared-nav,
  #main-nav.collapsing #mainNav.egyd-shared-nav {
    margin: 0 -15px;
    padding: 4px 0 8px;
    white-space: normal;
  }

  #mainNav.egyd-shared-nav > li > a {
    min-height: 40px;
    padding: 5px 25px 5px 15px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    line-height: 24px;
  }

  #mainNav.egyd-shared-nav > li.dropdown.open > a {
    background: rgba(237, 27, 35, 0.18);
    color: #fff;
  }

  #mainNav.egyd-shared-nav > li.dropdown.open > .dropdown-menu {
    display: block !important;
    position: static;
    float: none;
    width: 100%;
    min-width: 0;
    max-width: none;
    padding: 3px 0 8px;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.22);
    box-shadow: none;
  }

  #mainNav.egyd-shared-nav .dropdown-menu > li > a {
    min-height: 36px;
    padding: 8px 42px 8px 15px !important;
    color: #e8e8e8 !important;
    font-size: 14px;
    white-space: normal;
  }

  #mainNav.egyd-shared-nav .dropdown-menu > li > a:hover,
  #mainNav.egyd-shared-nav .dropdown-menu > li > a:focus {
    background: rgba(255, 255, 255, 0.08);
    color: #fff !important;
  }
}

/* Keep the tablet language switch with the collapsed navbar header. */
@media (min-width: 768px) and (max-width: 991px) {
  .header .navbar > .language-selection {
    display: none !important;
  }

  .header .navbar-header > .language-selection {
    display: flex !important;
    float: right;
    min-height: 50px;
    align-items: center;
  }

  .header .navbar-header > .language-selection .language-icon-2 {
    display: inline-flex !important;
    float: none !important;
  }
}

.egyd-shared-footer {
  position: relative;
  overflow: hidden;
  padding: 38px 0 30px;
  background: linear-gradient(180deg, #070707 0%, #020202 100%);
  border-top: 4px solid #ed1b23;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 22px 44px rgba(237, 27, 35, 0.045);
}

.egyd-shared-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.egyd-shared-footer .container {
  max-width: 1210px;
}

.egyd-shared-footer .egyd-footer-grid {
  display: grid;
  grid-template-columns: minmax(270px, 1.46fr) minmax(235px, 1.1fr) minmax(185px, 0.94fr) minmax(285px, 1.34fr);
  gap: 27px 30px;
  align-items: start;
  direction: rtl;
}

.egyd-shared-footer .egyd-footer-section {
  flex: none;
  min-width: 0;
}

.egyd-shared-footer .egyd-footer-section-company-stack {
  display: grid;
  gap: 16px;
}

.egyd-shared-footer .egyd-footer-heading {
  position: relative;
  margin: 0 0 12px;
  padding: 0 0 9px;
  color: #fff;
  font-family: font1, Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  text-align: right;
}

.egyd-shared-footer .egyd-footer-heading-secondary {
  font-size: 20px;
}

.egyd-shared-footer .egyd-footer-heading::after,
.egyd-shared-footer .egyd-footer-trust-heading::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  background: #ed1b23;
}

.egyd-shared-footer .egyd-footer-heading::after {
  width: 36px;
  height: 3px;
}

.egyd-shared-footer .egyd-footer-heading-secondary::after {
  width: 34px;
}

.egyd-shared-footer .egyd-footer-heading a {
  color: #fff;
  text-decoration: none;
}

.egyd-shared-footer .egyd-footer-heading a:hover,
.egyd-shared-footer .egyd-footer-heading a:focus {
  color: #ed1b23;
  text-decoration: none;
}

.egyd-shared-footer .egyd-footer-links,
.egyd-shared-footer .egyd-footer-ratings,
.egyd-shared-footer .egyd-footer-logo-cloud,
.egyd-shared-footer .egyd-footer-social-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.egyd-shared-footer .egyd-footer-links li {
  position: relative;
  margin: 0 0 1px;
  padding: 3px 16px 3px 0 !important;
  line-height: 1.48;
}

.egyd-shared-footer .egyd-footer-links li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0.78em;
  width: 6px;
  height: 6px;
  border: 0;
  border-radius: 50%;
  background: #ed1b23;
  transform: translateY(-50%);
  box-shadow: 0 0 0 2px rgba(237, 27, 35, 0.18);
}

.egyd-shared-footer .egyd-footer-links li:hover::before {
  background: #fff;
  box-shadow: 0 0 0 2px rgba(237, 27, 35, 0.55);
}

.egyd-shared-footer .egyd-footer-links a {
  display: inline-flex;
  max-width: 100%;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 5px;
  padding: 0 !important;
  color: #e4e4e4;
  font-size: 14.5px;
  line-height: 1.5;
  text-align: right;
  text-decoration: none;
  unicode-bidi: isolate;
}

.egyd-shared-footer .egyd-link-ar {
  color: #e4e4e4;
}

.egyd-shared-footer .egyd-link-separator {
  color: rgba(255, 255, 255, 0.3);
  font-size: 10.5px;
}

.egyd-shared-footer .egyd-link-en {
  color: rgba(255, 255, 255, 0.46);
  font-family: Arial, sans-serif;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}

.egyd-shared-footer .egyd-footer-links a:hover,
.egyd-shared-footer .egyd-footer-links a:focus,
.egyd-shared-footer .egyd-footer-links a:hover .egyd-link-ar,
.egyd-shared-footer .egyd-footer-links a:focus .egyd-link-ar {
  color: #ed1b23;
  text-decoration: none;
}

.egyd-shared-footer .egyd-footer-links a:hover .egyd-link-en,
.egyd-shared-footer .egyd-footer-links a:focus .egyd-link-en {
  color: rgba(237, 27, 35, 0.82);
}

.egyd-shared-footer .egyd-footer-section-trust {
  display: grid;
  gap: 9px;
}

@media (min-width: 1200px) {
  .egyd-shared-footer .egyd-footer-section-trust {
    padding-right: 21px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }
}

.egyd-shared-footer .egyd-footer-brand-anchor {
  margin: 0 0 1px;
  color: rgba(255, 255, 255, 0.58);
  font-family: Arial, sans-serif;
  font-size: 12.5px;
  line-height: 1;
  text-align: right;
}

.egyd-shared-footer .egyd-footer-trust-module {
  min-width: 0;
}

.egyd-shared-footer .egyd-footer-trust-heading {
  position: relative;
  margin: 0 0 8px;
  padding: 0 0 6px;
  color: #fff;
  font-family: font1, Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  text-align: right;
}

.egyd-shared-footer .egyd-footer-trust-heading::after {
  width: 15px;
  height: 2px;
  opacity: 0.72;
}

.egyd-shared-footer .egyd-footer-ratings-module .egyd-footer-trust-heading::after {
  width: 18px;
  opacity: 0.95;
}

.egyd-shared-footer .egyd-footer-social-module .egyd-footer-trust-heading::after {
  display: none;
}

.egyd-shared-footer .egyd-footer-ratings {
  display: grid;
  gap: 4px;
}

.egyd-shared-footer .egyd-footer-rating {
  display: grid;
  grid-template-columns: 64px 86px 36px;
  max-width: 100%;
  align-items: center;
  justify-content: end;
  gap: 10px;
  color: #e8e8e8;
  direction: ltr;
  font-family: Arial, sans-serif;
  line-height: 1.2;
  text-decoration: none;
}

.egyd-shared-footer .egyd-footer-rating:hover,
.egyd-shared-footer .egyd-footer-rating:focus {
  color: #ed1b23;
  text-decoration: none;
}

.egyd-shared-footer .egyd-rating-brand {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11.5px;
  text-align: left;
}

.egyd-shared-footer .egyd-rating-stars {
  color: #ed1b23;
  font-size: 12.5px;
  letter-spacing: 0;
  white-space: nowrap;
}

.egyd-shared-footer .egyd-rating-score {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.egyd-shared-footer .egyd-footer-logo-cloud {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  width: 100%;
  justify-content: flex-end;
  gap: 10px;
  direction: ltr;
}

.egyd-shared-footer .egyd-footer-logo-cloud-tech {
  justify-content: space-between;
  gap: 10px;
}

.egyd-shared-footer .egyd-footer-logo-cloud-institutional {
  width: 86%;
  margin-left: auto;
  gap: 12px;
  justify-content: space-between;
}

.egyd-shared-footer .egyd-footer-logo-cloud li {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 0;
}

.egyd-shared-footer .egyd-footer-logo-cloud img {
  display: block;
  width: auto;
  height: auto;
  max-height: 40px;
  max-width: 106px;
  object-fit: contain;
  opacity: 0.92;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.32));
}

.egyd-shared-footer .egyd-footer-logo-cloud-institutional img {
  max-height: 40px;
  max-width: 104px;
}

.egyd-shared-footer .egyd-footer-social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.egyd-shared-footer .egyd-footer-social-links a {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.64);
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
}

.egyd-shared-footer .egyd-footer-social-links a:hover,
.egyd-shared-footer .egyd-footer-social-links a:focus {
  color: #ed1b23;
  text-decoration: none;
}

.egyd-shared-copyright {
  background: var(--egyd-a11y-red-surface, #e81b23);
  padding: 15px 0;
}

.egyd-shared-copyright .row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.egyd-shared-copyright,
.egyd-shared-copyright .col-sm-7,
.egyd-shared-copyright .egyd-footer-legal a,
.egyd-shared-copyright .egyd-footer-legal span {
  color: #fff !important;
}

.egyd-footer-legal {
  text-align: left;
}

.egyd-footer-legal a {
  display: inline-block;
  padding: 0 6px;
}

.egyd-footer-legal a:hover,
.egyd-footer-legal a:focus {
  color: #000 !important;
  text-decoration: none;
}

@media (max-width: 1199px) {
  .egyd-shared-footer .egyd-footer-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 28px 34px;
  }

  .egyd-shared-footer .egyd-footer-section-services {
    order: 1;
  }

  .egyd-shared-footer .egyd-footer-section-solutions {
    order: 2;
  }

  .egyd-shared-footer .egyd-footer-section-company-stack {
    order: 3;
  }

  .egyd-shared-footer .egyd-footer-section-trust {
    order: 4;
  }
}

@media (max-width: 991px) {
  .egyd-shared-footer {
    padding: 37px 0 29px;
  }

  .egyd-shared-footer .egyd-footer-grid {
    gap: 27px 30px;
  }

  .egyd-shared-footer .egyd-footer-section-trust {
    gap: 10px;
  }
}

@media (max-width: 767px) {
  .egyd-shared-footer {
    padding: 33px 0 27px;
  }

  .egyd-shared-footer .egyd-footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .egyd-shared-footer .egyd-footer-section-company-stack {
    gap: 16px;
  }

  .egyd-shared-footer .egyd-footer-heading {
    font-size: 20px;
    margin-bottom: 11px;
  }

  .egyd-shared-footer .egyd-footer-heading-secondary {
    font-size: 19px;
  }

  .egyd-shared-footer .egyd-footer-links li {
    margin-bottom: 1px;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
  }

  .egyd-shared-footer .egyd-footer-links a {
    font-size: 15px;
  }

  .egyd-shared-footer .egyd-link-en {
    font-size: 10.5px;
  }

  .egyd-shared-footer .egyd-footer-trust-heading {
    font-size: 15.5px;
  }

  .egyd-shared-footer .egyd-footer-logo-cloud {
    justify-content: flex-end;
    gap: 8px;
  }

  .egyd-shared-footer .egyd-footer-logo-cloud img {
    max-height: 32px;
    max-width: 86px;
  }

  .egyd-shared-footer .egyd-footer-logo-cloud-institutional img {
    max-height: 32px;
    max-width: 84px;
  }

  .egyd-shared-copyright .row {
    display: block;
  }

  .egyd-shared-copyright .col-sm-7,
  .egyd-footer-legal {
    width: 100%;
    text-align: center;
  }

  .egyd-footer-legal {
    margin-top: 8px;
  }
}

@media (max-width: 390px) {
  .egyd-shared-footer .egyd-footer-logo-cloud img {
    max-height: 31px;
    max-width: 82px;
  }

  .egyd-shared-footer .egyd-footer-logo-cloud-institutional {
    gap: 8px;
  }

  .egyd-shared-footer .egyd-footer-logo-cloud-institutional img {
    max-height: 31px;
    max-width: 82px;
  }
}

/* EWO-142-B1: keyboard bypass control; no default-state layout impact. */
.egyd-skip-link {
  position: fixed;
  top: 8px;
  inset-inline-start: 8px;
  z-index: 10000;
  padding: 10px 14px;
  border: 3px solid #fff;
  background: #111;
  color: #fff !important;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: underline;
  transform: translateY(-200%);
}

.egyd-skip-link:focus,
.egyd-skip-link:focus-visible {
  outline: 3px solid #000;
  outline-offset: 2px;
  transform: translateY(0);
}
