@font-face {
  font-family: "NeoSansArabic";
  src: url("../fonts/NeoSansArabic.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --main-color: #12c96b;
  --body-bg: #f4f6f8;
  --body-color: #182033;
  --header-bg: #111a2d;
  --header-color: #c8d0df;
  --logo-bg: transparent;
  --logo-color: #fff;
  --light-color: #fff;
  --dark-color: #111a2d;
  --gray-1: #f4f6f8;
  --gray-2: #dce2ea;
  --gray-3: #e8edf2;
  --copy-bg: #111a2d;
  --copy-color: #9eafca;
  --theme-shadow: rgba(15, 23, 42, .18);
  --theme-radius: 8px;
  --font-type: "NeoSansArabic", "Segoe UI", sans-serif;
}

html[data-theme="dark"] {
  --body-bg: #0c1424;
  --body-color: #f8fafc;
  --header-bg: #111a2d;
  --header-color: #fff;
  --light-color: #152139;
  --dark-color: #0c1424;
  --gray-1: #0c1424;
  --gray-2: #26344d;
  --gray-3: #111a2d;
  --copy-bg: #111a2d;
  --copy-color: #aebbd0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--body-bg);
  color: var(--body-color);
  font-family: var(--font-type);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.screen-reader,
.site-icon-sprite {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
}

#AYaHeader {
  position: relative;
  margin-bottom: 15px;
  border-top: 4px solid var(--main-color);
  z-index: 2000;
}

#AYaHeader .HdrInner {
  width: 100%;
  background: var(--header-bg);
  box-shadow: 0 0 4px var(--theme-shadow);
}

.site-chrome-container {
  width: min(100% - 24px, 1024px);
  min-height: 85px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.AYaLogo {
  width: 200px;
  max-width: 200px;
  margin-block: 8px;
  padding: 5px 0;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: var(--theme-radius);
  background: var(--logo-bg);
}

.AYaLogo a {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.AYaLogo span {
  display: block;
  min-height: 4px;
  color: var(--logo-color);
  text-align: center;
  line-height: 33px;
}

.AYaLogo .SiteName {
  font-size: 30px;
  color: var(--main-color);
}

.AYaLogo .SiteUrl {
  font-size: 19px;
  color: #fff;
}

.AYaMainNav {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 15px;
}

.MainMenu,
.AYaSocial {
  margin: 0;
  padding: 0;
  list-style: none;
}

.MainMenu {
  flex: 1;
  display: flex;
  align-items: center;
}

.MainMenu a {
  display: block;
  padding: 8px;
  color: var(--header-color);
  font-size: 17px;
  white-space: nowrap;
}

.MainMenu a:hover {
  color: var(--main-color);
}

.AYaSocial {
  display: flex;
  align-items: center;
  gap: 5px;
  direction: ltr;
  flex-direction: row;
}

.AYaSocial.icons-ltr {
  flex-direction: row-reverse;
}

#AYaHeader .AYaSocial > .telegram,
#AYaHeader .AYaSocial > .youtube,
#AYaHeader .AYaSocial > .facebook,
#AYaHeader .AYaSocial > .twitter {
  display: none;
}

.AYaSocial li {
  position: relative;
}

.hed-btn {
  width: 35px;
  height: 35px;
  padding: 0;
  border: 0;
  border-radius: var(--theme-radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: var(--dark-color);
  color: #fff;
}

.hed-btn:hover,
.hed-btn:focus-visible {
  opacity: .82;
  outline: 2px solid var(--main-color);
  outline-offset: 2px;
}

.hed-btn .icon {
  width: 22px;
  height: 22px;
  color: #fff;
  pointer-events: none;
}

.AYaSocial .twitter .hed-btn {
  background: #000;
}

.AYaSocial .facebook .hed-btn {
  background: #1877f2;
}

.AYaSocial .youtube .hed-btn {
  background: #cd201f;
}

.AYaSocial .telegram .hed-btn {
  background: #24a1de;
}

.language-toggle {
  background: var(--dark-color);
}

.language-menu-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 2300;
  display: none;
  min-width: 155px;
  padding: 6px;
  border: 1px solid var(--gray-2);
  border-radius: var(--theme-radius);
  background: var(--light-color);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .2);
  direction: rtl;
}

[dir="ltr"] .language-menu-list {
  right: 0;
  left: auto;
}

.language-control.open .language-menu-list {
  display: grid;
  gap: 4px;
}

.language-menu-item {
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--body-color);
  cursor: pointer;
  text-align: right;
  white-space: nowrap;
}

.language-menu-item:hover,
.language-menu-item:focus-visible {
  background: var(--main-color);
  color: #fff;
  outline: none;
}

html:not([data-theme="dark"]) .sun,
html[data-theme="dark"] .mon {
  display: none;
}

.site-footer {
  width: 100%;
  margin-top: 15px;
  padding: 26px 52px;
  box-shadow: 0 0 4px var(--theme-shadow);
  background: var(--copy-bg);
  color: var(--copy-color);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  border-top: 4px solid var(--main-color);
}

.footer-brand {
  color: var(--main-color);
  font-size: 14px;
  font-weight: 800;
}

.site-footer p {
  margin: 0;
}

.site-footer-social {
  margin-inline-start: auto;
}

.site-footer-generated {
  min-height: 92px;
  justify-content: center;
}

@media (max-width: 768px) {
  :root {
    --font-type: "Segoe UI", Tahoma, sans-serif;
  }

  #AYaHeader {
    margin-bottom: 10px;
  }

  .site-chrome-container {
    width: min(100% - 16px, 1024px);
    min-height: 65px;
    gap: 8px;
  }

  .AYaLogo {
    width: 112px;
    margin-block: 6px;
    padding: 3px;
  }

  .AYaLogo .SiteName {
    font-size: 20px;
    line-height: 25px;
  }

  .AYaLogo .SiteUrl {
    font-size: 11px;
    line-height: 18px;
  }

  .AYaMainNav {
    justify-content: flex-end;
  }

  .MainMenu {
    display: none;
  }

  .AYaSocial {
    gap: 4px;
  }

  .hed-btn {
    width: 34px;
    height: 34px;
  }

  .hed-btn .icon {
    width: 20px;
    height: 20px;
  }

  .site-footer {
    padding-inline: 16px;
  }
}

@media (max-width: 430px) {
  .site-chrome-container {
    width: calc(100% - 10px);
    gap: 5px;
  }

  .AYaLogo {
    width: 94px;
  }

  .AYaLogo .SiteName {
    font-size: 17px;
  }

  .AYaLogo .SiteUrl {
    font-size: 9px;
  }

  .AYaSocial {
    gap: 3px;
  }

  .hed-btn {
    width: 29px;
    height: 29px;
    border-radius: 6px;
  }

  .hed-btn .icon {
    width: 17px;
    height: 17px;
  }
}
