/* Old-design headers: replaces the header-02.jpg banner image (Datamatix logo +
   "36 Glorious Years") with the current logo, tagline and 38-years badge.
   Sizes and spacing copy the main site's masthead (.masthead__* in main.css)
   so both headers look the same. */
@font-face {
  font-family: emiratesFont;
  src: url("../fonts/EmiratesSM Regular.otf");
}

@font-face {
  font-family: emiratesBoldFont;
  src: url("../fonts/Emirates Bold.ttf");
}

/* Undo the old .left-part spacing; use the masthead's 8px / 13px instead */
header .left-part:has(.hdr38) {
  margin: 0;
  padding: 8px 0 13px;
  min-height: 0;
}

/* The link around the header stretches the full width (it was a shrinking
   flex item in the old .left-part row) */
header .left-part > a:has(> .hdr38) {
  display: block;
  flex: 1 1 auto;
  width: 100%;
}

/* Same width as the main site's .shell, centred */
header .hdr38 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 0;
  text-decoration: none;
  /* Same left-to-right order on the Arabic pages (their header is dir="rtl") */
  direction: ltr;
}

/* Old stylesheets set `* { font-family: ... }`; keep the header's own fonts */
header .hdr38 * {
  font-family: inherit;
}

header .hdr38 img {
  display: block;
  width: auto;
  max-width: none;
}

header .hdr38__logo {
  height: 124px;
}

header .hdr38__tag {
  flex: 1 1 260px;
  text-align: center;
  font-family: emiratesFont, Arial, sans-serif;
  font-size: 21.6px;
  font-weight: 400;
  line-height: 1.5;
  color: #14181f;
}

header .hdr38__badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: emiratesBoldFont, Arial, sans-serif;
  font-size: 18.4px;
  line-height: 1;
  text-align: left;
  text-transform: uppercase;
  color: #224fa5;
}

header .hdr38__badge img {
  height: 74px;
}

@media (max-width: 640px) {
  header .hdr38 {
    justify-content: center;
  }

  header .hdr38__tag {
    order: 3;
    flex-basis: 100%;
  }

  header .hdr38__logo {
    height: 46px;
  }

  header .hdr38__badge {
    font-size: 12.8px;
  }

  header .hdr38__badge img {
    height: 44px;
  }
}

@media (max-width: 400px) {
  header .hdr38__tag {
    font-size: 14.4px;
  }
}
