@import url("https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;600;700&display=swap");

@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://img1.wsimg.com/gfonts/s/quicksand/v37/6xKtdSZaM9iE8KbpRA_hK1QN.woff2") format("woff2");
}

@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("https://img1.wsimg.com/gfonts/s/quicksand/v37/6xKtdSZaM9iE8KbpRA_hK1QN.woff2") format("woff2");
}

html.local-drawer-open,
body.local-drawer-open {
  overflow: hidden;
}

site-drawer {
  display: contents;
}

.site-navigation-drawer {
  position: fixed;
  z-index: 10002;
  inset: 0 auto 0 0;
  width: min(391px, 100vw);
  height: 100vh;
  padding-top: 56px;
  color: #151515;
  background: #f6f6f6;
  box-shadow: 10px 0 28px rgba(0, 0, 0, 0.14);
  transform: translate3d(-100%, 0, 0);
  visibility: hidden;
  transition: transform 0.3s ease-in-out, visibility 0s linear 0.3s;
  will-change: transform;
}

/* Do not animate while the page restores the saved language. Otherwise an
   Arabic drawer can briefly travel across the screen during a refresh. */
.site-navigation-drawer:not(.local-drawer-ready) {
  transition: none;
}

.site-navigation-drawer.local-drawer-open {
  transform: translate3d(0, 0, 0);
  visibility: visible;
  transition-delay: 0s;
}

.site-navigation-drawer.local-language-hidden {
  visibility: hidden !important;
  transition: none !important;
}

html.local-language-changing site-drawer {
  display: none !important;
}

html.local-language-changing .site-navigation-drawer {
  visibility: hidden !important;
  transition: none !important;
}

@media (max-width: 1024px) {
  html.local-language-changing .site-navigation-drawer {
    visibility: hidden !important;
    transition: none !important;
  }
}

@media (max-width: 1024px) {
  html.local-language-switching .site-navigation-drawer {
    transition: none !important;
  }
}

.site-drawer-close {
  position: absolute;
  z-index: 2;
  top: 77px;
  right: 37px;
  left: auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  color: #151515;
  background: transparent;
  cursor: pointer;
  transition: color 0.2s ease;
}

.site-drawer-close svg {
  display: block;
  width: 40px;
  height: 40px;
  padding: 6px;
  fill: currentColor;
}

.site-drawer-close:hover {
  color: #185127;
}

.site-drawer-close:focus-visible {
  color: #151515;
  outline: none;
}

.site-drawer-close:active {
  color: #003a00;
}

.site-drawer-navigation {
  width: 100%;
  height: calc(100vh - 56px);
  padding: 72px 24px 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.site-drawer-list {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.site-drawer-list li {
  margin: 0;
  padding: 0;
}

.site-drawer-link {
  width: 100%;
  min-height: 61.39px;
  display: flex;
  align-items: center;
  padding: 16px 24px 16px 51px;
  border: 0;
  color: #151515;
  background: transparent;
  font-family: "Quicksand", sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 26.4px;
  text-align: left;
  text-decoration: none;
  transition: color 0.18s ease;
}

.site-drawer-link[aria-current="page"] {
  font-weight: 700 !important;
}

.site-drawer-link:not([aria-current="page"]),
.site-drawer-link:not([aria-current="page"]) .site-drawer-link-label {
  font-weight: 400 !important;
  font-style: normal;
}

.site-drawer-link-label {
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.site-drawer-link[aria-current="page"] .site-drawer-link-label {
  border-bottom-color: #006400;
}

.site-drawer-link:hover,
.site-drawer-link:focus-visible {
  color: #185127;
  background: transparent;
  outline: none;
}

.site-drawer-link:hover .site-drawer-link-label,
.site-drawer-link:focus-visible .site-drawer-link-label {
  border-bottom-color: #185127;
}

@media (min-width: 1024px) {
  .site-drawer-close {
    top: 77px;
    right: 37px;
    left: auto;
  }

  .site-drawer-navigation {
    padding: 72px 24px 0;
  }

  .site-drawer-link {
    padding-left: 51px;
  }
}

@media (max-width: 767px) {
  .site-navigation-drawer {
    width: min(320px, 85vw);
  }

  .site-drawer-close {
    right: 20px;
  }

  .site-drawer-navigation {
    padding-right: 16px;
    padding-left: 16px;
  }

  .site-drawer-link {
    padding-left: 24px;
    font-size: 20px;
  }
}

@media (max-width: 767px) {
  site-drawer::before {
    content: "";
    position: fixed;
    z-index: 10001;
    inset: 0;
    background: transparent;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
  }

  body.local-drawer-open site-drawer::before {
    opacity: 1;
    pointer-events: auto;
  }

  body.local-drawer-open {
    background: #999999 !important;
  }

  body.local-drawer-open > :not(site-toolbar),
  body.local-drawer-open site-toolbar .sticky-toolbar {
    filter: brightness(0.6);
  }

}

/* Arabic uses a right-to-left navigation drawer. */
html[lang="ar"] .site-navigation-drawer {
  inset: 0 0 0 auto;
  box-shadow: -10px 0 28px rgba(0, 0, 0, 0.14);
  transform: translate3d(100%, 0, 0);
}

html[lang="ar"] .site-navigation-drawer.local-drawer-open {
  transform: translate3d(0, 0, 0);
}

html[lang="ar"] .site-drawer-close {
  right: auto;
  left: 37px;
}

html[lang="ar"] .site-drawer-link {
  direction: rtl;
  justify-content: flex-start;
  padding: 16px 51px 16px 24px;
  text-align: right;
}

/* Use the site's chosen Arabic typeface in the drawer on every page. */
html[lang="ar"] .site-navigation-drawer,
html[lang="ar"] .site-navigation-drawer * {
  font-family: "Tajawal", "Quicksand", sans-serif !important;
}

@media (max-width: 767px) {
  html[lang="ar"] .site-drawer-close {
    right: auto;
    left: 20px;
  }

  html[lang="ar"] .site-drawer-link {
    direction: rtl;
    justify-content: flex-start;
    padding-right: 24px;
    padding-left: 16px;
  }
}
