/**
 * Header D7 #block-block-3 — logo 1/6 + «gioithieu» menu + tìm kiếm (Bootstrap grid).
 */

.site-header {
  position: relative;
  min-height: 116px;
  border-bottom: 3px solid #ddd;
  background: #fff;
}

.site-header__inner {
  min-height: 116px;
}

.site-header__logo {
  display: flex;
  align-items: flex-start;
  padding-top: 0.5rem;
}

.site-header__logo .block-system-branding-block,
.site-header__logo .region-header {
  margin: 0;
  width: 100%;
}

.site-header__logo .site-logo img {
  display: block;
  max-height: 78px;
  width: auto;
  max-width: 100%;
  padding-left: 11px;
}

.site-header__nav-col {
  position: relative;
}

.site-header__nav.gioithieu {
  padding-top: 50px;
  padding-right: 10px;
}

/* Nút hamburger mobile — D7 block-block-2 (#093482). */
.site-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 4px 10px 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #093482;
  cursor: pointer;
}

.site-menu-toggle:hover,
.site-menu-toggle:focus-visible {
  color: #062a5c;
  opacity: 0.92;
}

.shp-icon-bars {
  display: block;
  width: 22px;
  height: 18px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 18'%3E%3Cpath fill='black' d='M0 0h24v3H0V0zm0 7.5h24v3H0v-3zm0 7.5h24v3H0v-3z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.shp-icon-search {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='currentColor' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85Zm-5.242 1.06a5 5 0 1 1 0-10 5 5 0 0 1 0 10Z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  vertical-align: middle;
}

/* Offcanvas phải — D7 uk-offcanvas-bar-flip */
.shp-offcanvas {
  width: min(320px, 92vw);
}

.shp-offcanvas .offcanvas-title {
  font-family: Arial, "Segoe UI", Helvetica, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #333;
}

.shp-offcanvas-menu__link {
  display: block;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid rgb(0 0 0 / 8%);
  color: #333;
  font-size: 16px;
  text-decoration: none;
}

.shp-offcanvas-menu__link:hover,
.shp-offcanvas-menu__link:focus-visible {
  background: #f5f5f5;
  color: #f15a25;
}

.shp-offcanvas-menu__item--search .shp-offcanvas-menu__link {
  color: #093482;
  font-weight: 600;
}

.user-logged-in .site-primary-menu--desktop a.top-link {
  border-radius: 0;
  background: transparent;
  color: #333;
  font-size: 16px;
}

.user-logged-in .site-primary-menu--desktop a.top-link:hover {
  color: #f15a25;
}

/* Tương thích staging cũ (toggle .is-open) trước khi deploy page.html.twig offcanvas */
@media (max-width: 991.98px) {
  .site-header__nav .site-primary-menu:not(.site-primary-menu--desktop):not(.is-open) {
    display: none !important;
  }

  .site-header__nav .site-primary-menu:not(.site-primary-menu--desktop).is-open {
    display: block !important;
    clear: both;
    padding: 0.75rem 0 1rem;
  }
}

@media (max-width: 991.98px) {
  .site-header,
  .site-header__inner {
    min-height: 75px;
  }

  .site-header__logo {
    position: absolute;
    top: 7px;
    left: 10px;
    z-index: 20;
    width: 88px;
    max-width: 50%;
    padding-top: 0;
  }

  .site-header__logo .site-logo img {
    max-height: 56px;
    padding-left: 0;
  }

  .site-header__nav.gioithieu {
    padding-top: 0;
    min-height: 75px;
  }

  .site-header__nav-col {
    min-height: 75px;
  }

  .shp-header-row {
    min-height: 75px;
  }
}

@media (min-width: 992px) {
  .site-header__logo {
    position: static;
    width: auto;
    max-width: none;
  }
}