/* Stand-in page shell for the v2 teaser: the Education City header drawn
   across the top of each Figma frame. The real site header replaces it;
   nothing in css/teaser.css depends on it. Arabic sets dir=rtl on the
   header, so the logo and the first item sit on the right. */

@font-face {
  font-family: "QF";
  src: url("../../../fonts/qf-medium-webfont.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "QF";
  src: url("../fonts/QF-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  /* This file has no Arabic. Keep it off Arabic text so those letters
     cannot fall through to empty boxes. */
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

body {
  margin: 0;
  background: #1e1466;
}

.ec-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-sizing: border-box;
  height: 58px;
  padding-block: 12px 0;
  color: #fff;
  font-family: "QF", "QF Arabic", Tahoma, sans-serif;
}

.ec-header a {
  color: inherit;
  text-decoration: none;
}

.ec-header a:focus-visible,
.ec-menu__toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  border-radius: 4px;
}

.ec-header img {
  display: block;
}

.ec-header__brand {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.ec-header__logo img {
  width: 72px;
  height: auto;
}

/* Menu: the hamburger opens the site links below the header. */
.ec-menu {
  position: relative;
}

.ec-menu__toggle {
  display: block;
  padding: 12px;
  margin: -12px;
  list-style: none;
  cursor: pointer;
}

.ec-menu__toggle::-webkit-details-marker {
  display: none;
}

.ec-menu__panel {
  position: absolute;
  top: calc(100% + 16px);
  left: -8px;
  display: flex;
  flex-direction: column;
  min-width: 200px;
  padding: 8px 0;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 8px;
  background: #1e1466;
  box-shadow: 0 12px 32px rgb(0 0 0 / 0.35);
}

.ec-menu__panel a {
  padding: 10px 16px;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.ec-menu__panel a:hover {
  background: rgb(255 255 255 / 0.08);
}

.ec-nav {
  display: none;
}

.ec-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ec-header .ec-login {
  display: flex;
  align-items: center;
  height: 34px;
  padding: 0 8px;
  border: 0;
  border-radius: 20px;
  background: #fff;
  color: #0c1f4b;
  font-size: 12px;
  font-weight: 700;
  line-height: 30.206px;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: none;
  outline: none;
  appearance: none;
}

.ec-header .ec-login:hover,
.ec-header .ec-login:focus,
.ec-header .ec-login:focus-visible {
  border: 0;
  box-shadow: none;
  outline: none;
}

.ec-lang {
  font-size: 13px;
  line-height: 27.06px;
}

.ec-login:hover,
.ec-nav a:hover,
.ec-lang:hover {
  opacity: 0.85;
}

/* From tablet up the teaser fills the screen below the header; on phones
   it sizes to its content. */
@media (min-width: 640px) {
  .gt-teaser {
    --gt-teaser-min-height: calc(100svh - 90px);
  }

  .ec-header {
    height: 90px;
    gap: 16px;
    padding-block: 0;
  }

  .ec-header__brand {
    gap: 11px;
  }

  .ec-header__logo img {
    width: 98px;
    height: 31px;
  }

  .ec-header__actions {
    gap: min(32px, 4vw);
  }

  .ec-header .ec-login {
    height: 42px;
    padding: 0 14px;
    font-size: 17px;
  }

  .ec-lang {
    font-size: 16px;
  }
}

@media (min-width: 1024px) {
  .gt-teaser {
    --gt-teaser-min-height: calc(100svh - 112px);
  }

  .ec-header {
    height: 112px;
  }

  .ec-menu {
    display: none;
  }

  .ec-header__logo img {
    width: 202px;
    height: 64px;
  }

  .ec-nav {
    display: flex;
    gap: 30px;
    font-size: 18px;
    font-weight: 500;
    line-height: 27.06px;
    white-space: nowrap;
  }

  .ec-header__actions {
    gap: 32px;
  }
}
