@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap");

.site-global-navbar {
  position: fixed !important;
  inset: 0 0 auto;
  z-index: 1000;
  width: 100%;
  padding: 8px 18px 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.site-global-navbar,
.site-global-navbar * {
  box-sizing: border-box;
}

.site-global-navbar .navbar-container {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  direction: ltr;
  width: min(1760px, 100%);
  min-height: 64px;
  margin: 0 auto;
  padding: 7px 18px;
  gap: 22px;
  border: 1px solid rgba(151, 176, 216, .22);
  border-radius: 999px;
  background: rgba(8, 14, 27, .97);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .24);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-global-navbar .navbar-brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  direction: ltr;
  color: #f4f7ff !important;
  text-decoration: none;
  white-space: nowrap;
}

.site-global-navbar .navbar-brand-logo {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
}

.site-global-navbar .navbar-brand-copy {
  display: grid;
  gap: 2px;
  direction: rtl;
  line-height: 1.25;
}

.site-global-navbar .navbar-brand-ar {
  font-size: 14px;
  font-weight: 900;
}

.site-global-navbar .navbar-brand-en {
  color: #aebbd0;
  direction: ltr;
  font-size: 9px;
  text-align: right;
}

.site-global-navbar .navbar-left {
  grid-row: 1;
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-self: center;
  gap: clamp(10px, 1.25vw, 21px);
  min-width: 0;
  direction: rtl;
}

.site-global-navbar .navbar-item,
.site-global-navbar .navbar-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: #eaf2ff !important;
  cursor: pointer;
  font: inherit;
  font-size: clamp(11px, .9vw, 14px);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.site-global-navbar .navbar-item:hover,
.site-global-navbar .navbar-button:hover,
.site-global-navbar .navbar-item:focus-visible,
.site-global-navbar .navbar-button:focus-visible {
  color: #85dfff !important;
}

.site-global-navbar .navbar-item {
  position: relative;
}

.site-global-navbar .navbar-tools {
  grid-row: 1;
  grid-column: 3;
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 9px;
  direction: ltr;
}

.site-global-navbar .navbar-programs-cta {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin-inline-end: 2px;
  padding: 0 19px;
  border: 1px solid #075cf5;
  border-radius: 999px;
  background: #075cf5;
  color: #fff !important;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.site-global-navbar .navbar-tool-button,
.site-global-navbar .navbar-language-button,
.site-global-navbar .navbar-mobile-btn {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(151, 176, 216, .25);
  border-radius: 50%;
  background: #111b2d;
  color: #f6f9ff !important;
  cursor: pointer;
  text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.site-global-navbar .navbar-tool-button:hover,
.site-global-navbar .navbar-language-button:hover,
.site-global-navbar .navbar-mobile-btn:hover,
.site-global-navbar .navbar-tool-button:focus-visible,
.site-global-navbar .navbar-language-button:focus-visible,
.site-global-navbar .navbar-mobile-btn:focus-visible {
  border-color: rgba(94, 192, 255, .7);
  background: #17263d;
  color: #a9edff !important;
  box-shadow: 0 0 0 3px rgba(82, 213, 230, .12), 0 0 18px rgba(82, 213, 230, .12);
}

.site-global-navbar .navbar-login-button:active {
  border-color: #075cf5 !important;
  background: #eaf2ff !important;
  color: #075cf5 !important;
}

.site-global-navbar .navbar-tool-button svg,
.site-global-navbar .navbar-mobile-btn svg,
.site-global-navbar .navbar-search button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.site-global-navbar .navbar-language-button {
  min-width: 42px;
  padding: 0 6px;
  border-radius: 999px;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
}

.site-global-navbar .navbar-theme-moon {
  display: none;
}

.site-global-navbar .navbar-search {
  position: absolute;
  top: calc(100% + 9px);
  left: 14px;
  z-index: 2;
  display: none;
  width: min(320px, calc(100vw - 36px));
  align-items: center;
  gap: 8px;
  padding: 7px;
  border: 1px solid rgba(151, 176, 216, .22);
  border-radius: 16px;
  background: #0d1727;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .34);
}

.site-global-navbar .navbar-search.is-open {
  display: flex;
}

.site-global-navbar .navbar-search input {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f4f7ff;
  font: inherit;
  font-size: 16px;
}

.site-global-navbar .navbar-search input::placeholder {
  color: #aebbd0;
}

.site-global-navbar .navbar-search button {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: #075cf5;
  color: #fff;
  cursor: pointer;
}

.site-global-navbar .dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 5;
  display: none;
  min-width: 220px;
  padding: 7px;
  border: 1px solid #263a57;
  border-radius: 14px;
  background: #101a2c;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .34);
}

.site-global-navbar .navbar-item.active .dropdown-menu {
  display: grid;
}

.site-global-navbar .dropdown-item {
  display: block;
  padding: 10px 12px;
  border-radius: 9px;
  color: #eaf2ff !important;
  font-size: 13px;
  text-decoration: none;
}

.site-global-navbar .dropdown-item:hover,
.site-global-navbar .dropdown-item:focus-visible {
  background: #182841;
  color: #85dfff !important;
}

.site-global-navbar .navbar-mobile {
  display: none;
  width: min(1760px, calc(100% - 20px));
  max-height: 0;
  margin: 8px auto 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #101a2c;
  opacity: 0;
  transition: max-height .25s ease, opacity .2s ease;
  scrollbar-color: rgba(139, 124, 255, .55) transparent;
  scrollbar-width: thin;
}

.site-global-navbar .navbar-mobile::-webkit-scrollbar {
  width: 6px;
}

.site-global-navbar .navbar-mobile::-webkit-scrollbar-track {
  background: transparent;
}

.site-global-navbar .navbar-mobile::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: rgba(139, 124, 255, .55);
}

.site-global-navbar .navbar-mobile.active {
  display: block;
  max-height: min(80vh, 620px);
  overflow-y: auto;
  border: 1px solid #263a57;
  opacity: 1;
}

.site-global-navbar .navbar-mobile-content {
  display: grid;
  padding: 7px;
}

.site-global-navbar .navbar-mobile-link {
  display: flex;
  min-height: 43px;
  align-items: center;
  padding: 10px 13px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #eaf2ff !important;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-align: start;
  text-decoration: none;
}

.site-global-navbar .navbar-mobile-link:hover,
.site-global-navbar .navbar-mobile-link:focus-visible {
  background: #182841;
  color: #85dfff !important;
}

.site-global-navbar .navbar-mobile-preferences {
  display: flex;
  gap: 8px;
  padding: 8px 6px;
}

.site-global-navbar .navbar-mobile-preference {
  flex: 1;
  min-height: 40px;
  border: 1px solid #263a57;
  border-radius: 10px;
  background: rgba(151, 176, 216, .08);
  color: #eaf2ff !important;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.site-global-navbar .navbar-mobile-programs {
  margin: 8px 6px 7px;
}

.site-global-navbar .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.site-global-navbar.ghayah-navbar-light .navbar-container {
  border-color: rgba(77, 97, 125, .22);
  background: rgba(248, 250, 253, .97);
}

.site-global-navbar.ghayah-navbar-light .navbar-item,
.site-global-navbar.ghayah-navbar-light .navbar-button,
.site-global-navbar.ghayah-navbar-light .navbar-tool-button,
.site-global-navbar.ghayah-navbar-light .navbar-language-button,
.site-global-navbar.ghayah-navbar-light .navbar-mobile-btn,
.site-global-navbar.ghayah-navbar-light .navbar-mobile-link,
.site-global-navbar.ghayah-navbar-light .navbar-brand,
.site-global-navbar.ghayah-navbar-light .navbar-brand-ar {
  color: #17243a !important;
}

.site-global-navbar.ghayah-navbar-light .navbar-brand-en {
  color: #66758b;
}

.site-global-navbar.ghayah-navbar-light .navbar-tool-button,
.site-global-navbar.ghayah-navbar-light .navbar-language-button,
.site-global-navbar.ghayah-navbar-light .navbar-mobile-btn {
  border-color: rgba(77, 97, 125, .2);
  background: #fff;
}

.site-global-navbar.ghayah-navbar-light .navbar-login-button:active {
  border-color: #111827 !important;
  background: #f3f4f6 !important;
  color: #111827 !important;
}

.site-global-navbar.ghayah-navbar-light .navbar-theme-sun {
  display: none;
}

.site-global-navbar.ghayah-navbar-light .navbar-theme-moon {
  display: block;
}

.site-global-navbar.ghayah-navbar-light .navbar-search,
.site-global-navbar.ghayah-navbar-light .navbar-mobile {
  border-color: #d6dfeb;
  background: #fff;
}

.site-global-navbar.ghayah-navbar-light .navbar-search input {
  color: #17243a;
}

.site-global-navbar.ghayah-navbar-light .navbar-mobile-link:hover,
.site-global-navbar.ghayah-navbar-light .navbar-mobile-preference {
  color: #17243a !important;
}

html[lang="en"] .site-global-navbar .navbar-brand,
html[lang="en"] .site-global-navbar .navbar-brand-copy {
  direction: ltr;
}

html[lang="en"] .site-global-navbar .navbar-left {
  grid-column: 2;
  justify-self: center;
}

html[lang="en"] .site-global-navbar .navbar-brand-en {
  text-align: left;
}

html[lang="en"] .site-global-navbar .navbar-tools {
  grid-column: 3;
  justify-self: end;
}

body:not(.ghayah-redesigned).ghayah-theme-light {
  background: #f4f7fb !important;
  color: #17243a;
  color-scheme: light;
}

body:not(.ghayah-redesigned).ghayah-theme-light .navbar-mobile,
body:not(.ghayah-redesigned).ghayah-theme-light .dropdown-menu,
body:not(.ghayah-redesigned).ghayah-theme-light .dropdown-menu-mobile {
  background: #fff !important;
}

body:not(.ghayah-redesigned).ghayah-theme-light h1,
body:not(.ghayah-redesigned).ghayah-theme-light h2,
body:not(.ghayah-redesigned).ghayah-theme-light h3,
body:not(.ghayah-redesigned).ghayah-theme-light h4,
body:not(.ghayah-redesigned).ghayah-theme-light .text-text-primary {
  color: #17243a;
}

body:not(.ghayah-redesigned).ghayah-theme-light p,
body:not(.ghayah-redesigned).ghayah-theme-light .text-text-secondary {
  color: #526278;
}

body:not(.ghayah-redesigned).ghayah-theme-light .card,
body:not(.ghayah-redesigned).ghayah-theme-light .diploma-card,
body:not(.ghayah-redesigned).ghayah-theme-light .course-overview-panel,
body:not(.ghayah-redesigned).ghayah-theme-light .details-panel,
body:not(.ghayah-redesigned).ghayah-theme-light .purchase-card {
  border-color: #d6dfeb;
  background-color: #fff !important;
  color: #17243a;
}

body:not(.ghayah-redesigned).ghayah-theme-light .site-global-navbar .navbar-item,
body:not(.ghayah-redesigned).ghayah-theme-light .site-global-navbar .navbar-button,
body:not(.ghayah-redesigned).ghayah-theme-light .site-global-navbar .navbar-tool-button,
body:not(.ghayah-redesigned).ghayah-theme-light .site-global-navbar .navbar-language-button {
  color: #17243a !important;
}

body:not(.ghayah-redesigned).ghayah-theme-light .site-global-navbar .navbar-login-button:active { color: #111827 !important; }

body:not(.ghayah-redesigned).ghayah-theme-light .site-global-navbar .navbar-programs-cta {
  border-color: #111827 !important;
  background: #111827 !important;
  color: #fff !important;
}

body:not(.ghayah-redesigned).ghayah-theme-light input,
body:not(.ghayah-redesigned).ghayah-theme-light select,
body:not(.ghayah-redesigned).ghayah-theme-light textarea {
  border-color: #c6d2e2;
  background-color: #fff;
  color: #17243a;
}

body.has-global-navbar .page-wrap {
  padding-top: 96px;
}

body.has-global-navbar .diploma-page {
  padding-top: 100px;
}

body.needs-global-navbar-offset {
  padding-top: 82px !important;
}

body:not(.ghayah-redesigned):not(.ghayah-theme-light) {
  background: #090f1d;
  color: #eaf2ff;
  color-scheme: dark;
}

body:not(.ghayah-redesigned):not(.ghayah-theme-light) .diploma-page,
body:not(.ghayah-redesigned):not(.ghayah-theme-light) .page-wrap,
body:not(.ghayah-redesigned):not(.ghayah-theme-light) main.wrap {
  background-color: #090f1d;
  color: #eaf2ff;
}

body:not(.ghayah-redesigned):not(.ghayah-theme-light) .diploma-page__heading h1,
body:not(.ghayah-redesigned):not(.ghayah-theme-light) .course-hero h1,
body:not(.ghayah-redesigned):not(.ghayah-theme-light) #programsGrid .card h3 {
  color: #a9ddff;
}

@media (max-width: 1350px) {
  .site-global-navbar {
    padding-inline: 10px;
  }

  .site-global-navbar .navbar-container {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 62px;
    padding: 6px 10px;
    gap: 8px;
    border-radius: 22px;
  }

  .site-global-navbar .navbar-brand {
    grid-row: 1;
    grid-column: 1;
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 8px;
    color: #f4f7ff;
    text-decoration: none;
  }

  .site-global-navbar .navbar-brand-logo {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    object-fit: contain;
  }

  .site-global-navbar .navbar-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .site-global-navbar .navbar-brand-ar {
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
  }

  .site-global-navbar .navbar-brand-en {
    color: #aebbd0;
    direction: ltr;
    font-size: 9px;
    text-align: right;
    white-space: nowrap;
  }

  .site-global-navbar .navbar-left {
    display: none;
  }

  .site-global-navbar .navbar-tools {
    grid-row: 1;
    grid-column: 2;
    justify-self: end;
    gap: 7px;
  }

  .site-global-navbar .navbar-tools > .navbar-programs-cta,
  .site-global-navbar .navbar-tools > a[href$="/order-status.html"],
  .site-global-navbar .navbar-tools > a[href$="/sa/homepage.html"],
  .site-global-navbar .navbar-tools > [data-navbar-theme-toggle],
  .site-global-navbar .navbar-tools > [data-navbar-language-toggle] {
    display: none;
  }

  .site-global-navbar .navbar-tool-button,
  .site-global-navbar .navbar-language-button,
  .site-global-navbar .navbar-mobile-btn {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }

  .site-global-navbar .navbar-mobile-btn {
    display: grid;
  }

  html[lang="en"] .site-global-navbar .navbar-brand {
    grid-column: 1;
    justify-self: start;
  }

  html[lang="en"] .site-global-navbar .navbar-tools {
    grid-column: 2;
    justify-self: end;
  }
}

@media (min-width: 1451px) {
  .site-global-navbar .navbar-mobile-btn,
  .site-global-navbar .navbar-mobile {
    display: none !important;
  }
}

@media (max-width: 380px) {
  .site-global-navbar .navbar-tools {
    gap: 5px;
  }

  .site-global-navbar .navbar-tool-button,
  .site-global-navbar .navbar-language-button,
  .site-global-navbar .navbar-mobile-btn {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }
}

/* Keep the logo on the left and the controls on the right on every page and in both languages. */
.site-global-navbar .navbar-brand { direction: ltr; }
html[lang="ar"] .site-global-navbar .navbar-brand-copy { direction: rtl; text-align: right; }
html[lang="en"] .site-global-navbar .navbar-brand-copy { direction: ltr; text-align: left; }
@media (max-width: 1450px) {
  .site-global-navbar .navbar-brand { grid-column: 1; justify-self: start; }
  .site-global-navbar .navbar-tools { grid-column: 2; justify-self: end; }
}
@media (max-width: 380px) {
  .site-global-navbar .navbar-brand-copy { min-width: 0; max-width: 132px; overflow: hidden; }
  .site-global-navbar .navbar-brand-en { font-size: 8px; overflow: hidden; text-overflow: ellipsis; }
}

/* Distinguish the dark-mode control from the login icon. */
.site-global-navbar:not(.ghayah-navbar-light) .navbar-tools [data-navbar-theme-toggle] { margin-inline: 4px; border-color: rgba(94, 192, 255, .58); background: #10243b; color: #a9edff; box-shadow: 0 0 0 1px rgba(82, 213, 230, .12); }


/* Laptop header: keep the academy identity at the left and controls at the right. */
@media (min-width: 1351px) {
  .site-global-navbar .navbar-brand { grid-column: 1; justify-self: start; }
  .site-global-navbar .navbar-tools { grid-column: 3; justify-self: end; }
  html[lang="ar"] .site-global-navbar .navbar-brand-copy { direction: rtl; text-align: right; }
  html[lang="en"] .site-global-navbar .navbar-brand-copy { direction: ltr; text-align: left; }
  .site-global-navbar .navbar-programs-cta { min-height: 36px; padding-inline: 15px; border-color: #1e40af; background: #1e40af; color: #fff !important; font-size: 12px; font-weight: 800; }
}

/* Arabic layout: academy identity at the right and utility icons at the left. */
html[lang="ar"] .site-global-navbar .navbar-brand {
  direction: rtl;
}

html[lang="ar"] .site-global-navbar .navbar-brand-copy {
  direction: rtl;
  text-align: right;
}

@media (min-width: 1351px) {
  html[lang="ar"] .site-global-navbar .navbar-brand {
    grid-column: 3;
    justify-self: end;
  }

  html[lang="ar"] .site-global-navbar .navbar-left {
    grid-column: 2;
    direction: rtl;
  }

  html[lang="ar"] .site-global-navbar .navbar-tools {
    grid-column: 1;
    justify-self: start;
  }
}

@media (max-width: 1350px) {
  html[lang="ar"] .site-global-navbar .navbar-brand {
    grid-column: 2;
    justify-self: end;
  }

  html[lang="ar"] .site-global-navbar .navbar-tools {
    grid-column: 1;
    justify-self: start;
  }
}

html[lang="en"] .site-global-navbar .navbar-brand {
  grid-column: 1;
  justify-self: start;
  direction: ltr;
}

html[lang="en"] .site-global-navbar .navbar-brand-copy {
  direction: ltr;
  text-align: left;
}

@media (min-width: 1351px) {
  html[lang="en"] .site-global-navbar .navbar-tools {
    grid-column: 3;
    justify-self: end;
  }
}

@media (max-width: 1350px) {
  html[lang="en"] .site-global-navbar .navbar-tools {
    grid-column: 2;
    justify-self: end;
  }
}

/* Keep theme and language available in the compact homepage header as requested. */
@media (max-width: 1350px) {
  body.ghayah-redesigned > nav.site-global-navbar .navbar-tools > [data-navbar-theme-toggle],
  body.ghayah-redesigned > nav.site-global-navbar .navbar-tools > [data-navbar-language-toggle] {
    display: grid;
  }
}

/* Shared header layout: keep the brand at the reading start and tools opposite it. */
.site-global-navbar {
  padding: 8px clamp(10px, 1.2vw, 18px) 0;
  direction: ltr;
}

.site-global-navbar .navbar-container {
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto);
  gap: clamp(10px, 1.2vw, 20px);
  min-width: 0;
}

.site-global-navbar .navbar-brand {
  min-width: 0;
  max-width: 100%;
  flex: 0 1 auto;
}

.site-global-navbar .navbar-brand-copy {
  min-width: 0;
  max-width: 210px;
  overflow: hidden;
  white-space: nowrap;
}

.site-global-navbar .navbar-brand-ar,
.site-global-navbar .navbar-brand-en {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-global-navbar .navbar-left {
  min-width: 0;
  max-width: 100%;
  flex-wrap: nowrap;
}

.site-global-navbar .navbar-tools {
  flex: 0 0 auto;
  gap: clamp(5px, .55vw, 9px);
}

.site-global-navbar .navbar-search {
  inset-inline: 12px auto;
  left: auto;
}

html[lang="ar"] .site-global-navbar .navbar-brand {
  grid-column: 3;
  justify-self: end;
  direction: rtl;
}

html[lang="ar"] .site-global-navbar .navbar-brand-copy {
  direction: rtl;
  text-align: right;
}

html[lang="ar"] .site-global-navbar .navbar-left {
  grid-column: 2;
  direction: rtl;
}

html[lang="ar"] .site-global-navbar .navbar-tools {
  grid-column: 1;
  justify-self: start;
}

html[lang="en"] .site-global-navbar .navbar-brand {
  grid-column: 1;
  justify-self: start;
  direction: ltr;
}

html[lang="en"] .site-global-navbar .navbar-brand-copy {
  direction: ltr;
  text-align: left;
}

html[lang="en"] .site-global-navbar .navbar-left {
  grid-column: 2;
  direction: ltr;
}

html[lang="en"] .site-global-navbar .navbar-tools {
  grid-column: 3;
  justify-self: end;
}

@media (max-width: 1450px) {
  .site-global-navbar {
    padding-inline: 10px;
  }

  .site-global-navbar .navbar-container {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 62px;
    padding: 6px 12px;
    gap: 8px;
    border-radius: 22px;
  }

  .site-global-navbar .navbar-left {
    display: none;
  }

  .site-global-navbar .navbar-tools > .navbar-programs-cta,
  .site-global-navbar .navbar-tools > a[href$="/order-status.html"],
  .site-global-navbar .navbar-tools > a[href$="/sa/homepage.html"] {
    display: none;
  }

  .site-global-navbar .navbar-tools > [data-navbar-theme-toggle],
  .site-global-navbar .navbar-tools > [data-navbar-language-toggle] {
    display: grid;
  }

  .site-global-navbar .navbar-tool-button,
  .site-global-navbar .navbar-language-button,
  .site-global-navbar .navbar-mobile-btn {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }

  .site-global-navbar .navbar-mobile-btn {
    display: grid;
  }

  html[lang="ar"] .site-global-navbar .navbar-brand { grid-column: 2; justify-self: end; }
  html[lang="ar"] .site-global-navbar .navbar-tools { grid-column: 1; justify-self: start; }
  html[lang="en"] .site-global-navbar .navbar-brand { grid-column: 1; justify-self: start; }
  html[lang="en"] .site-global-navbar .navbar-tools { grid-column: 2; justify-self: end; }

  .site-global-navbar .navbar-mobile {
    position: absolute;
    inset: calc(100% + 8px) 10px auto;
    width: auto;
    max-height: 0;
    margin: 0;
  }

  .site-global-navbar .navbar-mobile.active {
    max-height: min(78vh, 600px);
  }
}

@media (max-width: 600px) {
  .site-global-navbar .navbar-container {
    min-height: 58px;
    padding: 6px 9px;
    gap: 7px;
  }

  .site-global-navbar .navbar-brand-logo {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
  }

  .site-global-navbar .navbar-brand-copy {
    max-width: 142px;
  }

  .site-global-navbar .navbar-brand-ar { font-size: 12px; }
  .site-global-navbar .navbar-brand-en { font-size: 8px; }
  .site-global-navbar .navbar-tools > [data-navbar-language-toggle] { display: none; }
  .site-global-navbar .navbar-search { inset-inline: 4px auto; width: min(320px, calc(100vw - 28px)); }
  .site-global-navbar .navbar-mobile { inset-inline: 4px; }
}

@media (max-width: 420px) {
  .site-global-navbar .navbar-brand-copy { max-width: 112px; }
  .site-global-navbar .navbar-tool-button,
  .site-global-navbar .navbar-mobile-btn {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 360px) {
  .site-global-navbar .navbar-container { padding-inline: 7px; gap: 5px; }
  .site-global-navbar .navbar-brand-logo { flex-basis: 34px; width: 34px; height: 34px; }
  .site-global-navbar .navbar-brand-copy { max-width: 96px; }
  .site-global-navbar .navbar-tool-button,
  .site-global-navbar .navbar-mobile-btn { flex-basis: 36px; width: 36px; height: 36px; }
  .site-global-navbar .navbar-tools { gap: 4px; }
}

@media (min-width: 1451px) {
  .site-global-navbar .navbar-mobile-btn,
  .site-global-navbar .navbar-mobile { display: none !important; }
}
