/* SQH Learn 1.7.0 — clean, isolated site header and navigation */
.sqh-site-header,
.sqh-site-header * ,
.sqh-site-navigation,
.sqh-site-navigation * { box-sizing: border-box; }

.sqh-site-header {
  width: 100%;
  position: relative;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e4edf3;
}
.sqh-site-header__inner {
  width: min(1480px, calc(100% - 64px));
  min-height: 104px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  direction: rtl;
}
.sqh-site-brand {
  min-width: 0;
  flex: 0 1 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  color: #173b5e;
  text-decoration: none !important;
  direction: rtl;
}
.sqh-site-brand img.custom-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: min(300px, 24vw);
  max-height: 84px;
  object-fit: contain;
  flex: 0 1 auto;
}
.sqh-site-brand__fallback {
  width: 82px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #eaf4fb;
  color: #173b5e;
  font-size: 24px;
  font-weight: 800;
}
.sqh-site-brand__text {
  min-width: 0;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  text-align: right;
  line-height: 1.45;
}
.sqh-site-brand__title {
  color: #173b5e;
  font-size: clamp(17px, 1.45vw, 22px);
  font-weight: 800;
}
.sqh-site-brand__subtitle {
  margin-top: 4px;
  color: #71869a;
  font-size: 12px;
  font-weight: 500;
}
.sqh-site-tools {
  min-width: 0;
  flex: 0 1 650px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(14px, 2vw, 28px);
  direction: ltr;
}
.sqh-site-languages {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  direction: ltr;
}
.sqh-site-languages a,
.sqh-site-languages span {
  color: #173b5e;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.sqh-site-languages [aria-current="page"] {
  color: #126b58;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.sqh-site-search {
  position: relative;
  flex: 1 1 420px;
  width: 100%;
  max-width: 460px;
  min-width: 180px;
  margin: 0;
}
.sqh-site-search input[type="search"] {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 16px 0 46px;
  border: 1px solid #d7e2ec;
  border-radius: 12px;
  background: #fff;
  color: #173b5e;
  font: inherit;
  font-size: 13px;
  direction: rtl;
  text-align: right;
  outline: none;
}
.sqh-site-search input[type="search"]:focus {
  border-color: #76a9cf;
  box-shadow: 0 0 0 3px rgba(33,115,175,.10);
}
.sqh-site-search button {
  position: absolute;
  top: 50%;
  left: 7px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #1266a3;
  cursor: pointer;
}
.sqh-site-search button .dashicons {
  width: 22px;
  height: 22px;
  font-size: 22px;
}

.sqh-site-navigation {
  position: relative;
  z-index: 90;
  width: 100%;
  background: #173b5e;
  border-bottom: 3px solid #087f70;
  box-shadow: 0 3px 10px rgba(17,48,72,.08);
}
.sqh-site-navigation__inner {
  width: min(1480px, calc(100% - 64px));
  min-height: 54px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  direction: rtl;
}
.sqh-site-navigation__link {
  flex: 1 1 0;
  min-width: 0;
  min-height: 54px;
  padding: 10px clamp(8px, 1.2vw, 18px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-inline-start: 1px solid rgba(255,255,255,.13);
  color: #fff !important;
  font-size: clamp(12px, .92vw, 15px);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none !important;
  transition: background .18s ease;
}
.sqh-site-navigation__link:first-child { border-inline-start: 0; }
.sqh-site-navigation__link .dashicons {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: #eaf5ff;
  font-size: 20px;
  line-height: 20px;
}
.sqh-site-navigation__link:hover,
.sqh-site-navigation__link:focus-visible,
.sqh-site-navigation__link.is-current {
  background: rgba(255,255,255,.10);
  color: #fff !important;
}
.sqh-site-navigation__home {
  box-shadow: inset 0 -3px 0 #087f70;
}

@media (max-width: 1050px) {
  .sqh-site-header__inner,
  .sqh-site-navigation__inner { width: calc(100% - 36px); }
  .sqh-site-header__inner { gap: 18px; }
  .sqh-site-brand { gap: 12px; }
  .sqh-site-brand img.custom-logo { max-width: min(260px, 22vw); max-height: 72px; }
  .sqh-site-brand__text { max-width: 260px; }
  .sqh-site-tools { flex-basis: 52%; gap: 14px; }
  .sqh-site-search { min-width: 150px; }
  .sqh-site-navigation__link { gap: 6px; padding-inline: 8px; font-size: 12px; }
}
@media (max-width: 760px) {
  .sqh-site-header__inner {
    width: calc(100% - 28px);
    min-height: 0;
    padding: 12px 0;
    flex-wrap: wrap;
    gap: 12px;
  }
  .sqh-site-brand {
    flex: 1 1 100%;
    justify-content: space-between;
  }
  .sqh-site-brand img.custom-logo { max-width: min(42vw, 260px); max-height: 62px; }
  .sqh-site-brand__text { max-width: 52%; }
  .sqh-site-brand__title { font-size: 16px; }
  .sqh-site-brand__subtitle { font-size: 11px; }
  .sqh-site-tools {
    flex: 1 1 100%;
    max-width: none;
    justify-content: space-between;
    flex-direction: row-reverse;
    gap: 12px;
  }
  .sqh-site-search { flex: 1 1 auto; max-width: none; min-width: 0; }
  .sqh-site-search input[type="search"] { height: 42px; }
  .sqh-site-navigation__inner {
    width: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .sqh-site-navigation__link {
    min-height: 46px;
    padding: 8px 6px;
    font-size: 12px;
    border-bottom: 1px solid rgba(255,255,255,.12);
  }
}
@media (max-width: 520px) {
  .sqh-site-header__inner { width: calc(100% - 24px); }
  .sqh-site-brand img.custom-logo { max-width: 38vw; max-height: 54px; }
  .sqh-site-brand__text { max-width: 56%; }
  .sqh-site-brand__title { font-size: 14px; }
  .sqh-site-brand__subtitle { font-size: 10px; }
  .sqh-site-languages { gap: 8px; }
  .sqh-site-languages a,
  .sqh-site-languages span { font-size: 11px; }
  .sqh-site-search input[type="search"] { font-size: 12px; padding-right: 38px; }
  .sqh-site-navigation__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sqh-site-navigation__link .dashicons { display: none; }
}
