/* Header - font project, màu brand #FF4605 */

:root {
  --header-primary: #FF4605;
  --header-primary-dark: #FF8A05;
  --header-text: #222;
  --header-muted: #666;
}

.masthead,
.header-sticky,
.header-mb,
.menu-drawer {
  font-family: "Display-Regular", "SVN-Regular", sans-serif;
}

.masthead {
  position: relative;
  padding-block: 20px 10px;
  box-shadow: 0 10px 20px rgba(121, 145, 173, 0.44);
  background: #fff;
  z-index: 20;
}

.masthead > .container {
  position: relative;
  padding-bottom: 0;
}

.icon-boxs {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.icon-box {
  display: flex;
  align-items: center;
  margin-right: 25px;
  margin-bottom: 40px;
}

.icon-box:last-child {
  margin-right: 0;
}

.header-mb {
  position: sticky;
  left: 0;
  top: 0;
  width: 100%;
  display: none;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px 20px;
  background: var(--header-primary);
  box-shadow: 0 10px 30px rgba(69, 39, 160, 0.2);
  border-radius: 0 0 30px 30px;
  z-index: 100;
}

.menu-drawer {
  display: none;
}

.masthead .logo,
.header-sticky .logo,
.header-mb .logo {
  display: inline-block;
  filter: none;
  height: auto;
  max-width: none;
}

.masthead .logo img,
.header-sticky .logo img {
  max-width: 150px;
  width: auto;
  height: auto;
  filter: none !important;
  object-fit: contain;
}

.masthead .icon-img {
  font-size: 2rem;
  color: #FF4605 !important;
  margin-right: 15px;
  width: auto;
  height: auto;
  flex-shrink: 0;
  aspect-ratio: auto;
}

.masthead .icon-img i {
  color: #FF4605 !important;
}

.icon-text p {
  margin-bottom: 0;
  color: var(--header-muted);
  font-family: "Display-Regular", "SVN-Regular", sans-serif;
  font-size: 0.875rem;
}

.icon-text a {
  font-family: "Display-Bold", "SVN-Bold", sans-serif;
  color: var(--header-text);
  font-size: 1.125rem;
  text-decoration: none;
}

.icon-text a:hover {
  color: var(--header-primary);
}

.wide-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -22px;
}

.wide-nav .nav {
  position: relative;
  background: #FF4605 !important;
  padding-inline: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  list-style: none;
}

.wide-nav .nav::before {
  content: "";
  position: absolute;
  top: 0;
  left: -79px;
  width: 80px;
  height: 100%;
  background: #FF4605 !important;
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 50% 100%);
}

.masthead .nav > li,
.header-sticky .nav > li,
.wide-nav .nav > li {
  position: relative;
  padding-block: 14px;
  list-style: none;
}

.masthead .nav > li:hover i,
.header-sticky .nav > li:hover i,
.wide-nav .nav > li:hover i {
  transform: rotate(90deg);
}

.masthead .nav > li:hover .drop,
.header-sticky .nav > li:hover .drop,
.wide-nav .nav > li:hover .drop {
  visibility: visible;
}

.masthead .nav > li:hover .sub-nav,
.header-sticky .nav > li:hover .sub-nav,
.wide-nav .nav > li:hover .sub-nav {
  transform: translate(0, 0);
}

.masthead .nav > li > a,
.wide-nav .nav > li > a {
  font-family: "Display-Bold", "SVN-Bold", sans-serif;
  color: #fff !important;
  font-size: 1.125rem;
  text-decoration: none;
}

.masthead .nav > li i,
.wide-nav .nav > li i {
  color: #fff;
  font-size: 0.75rem;
  margin-left: 2px;
  transition: all 0.5s ease;
}

.header-sticky .nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header-sticky .nav > li > a {
  font-family: "Display-Bold", "SVN-Bold", sans-serif;
  font-size: 1.125rem;
  color: #000 !important;
  text-decoration: none;
}

.header-sticky .nav > li i {
  color: #000;
  font-size: 0.75rem;
  margin-left: 2px;
  transition: all 0.5s ease;
}

.header-sticky .nav > li:hover > a,
.header-sticky .nav > li:hover i {
  color: var(--header-primary) !important;
}

.drop {
  position: absolute;
  top: 55px;
  left: -10px;
  width: max-content;
  visibility: hidden;
  overflow: hidden;
  padding: 0 10px 10px;
  z-index: 50;
}

.masthead .sub-nav,
.header-sticky .sub-nav,
.wide-nav .sub-nav {
  background: #fff;
  box-shadow: 0 0 10px rgba(121, 145, 173, 0.44);
  transform: translate(0, -110%);
  transition: all 0.5s;
  position: relative;
  z-index: 90;
  border-radius: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  visibility: visible;
  opacity: 1;
  width: max-content;
}

.masthead .sub-nav li,
.header-sticky .sub-nav li,
.wide-nav .sub-nav li {
  border-bottom: 1px solid var(--header-primary);
  position: relative;
  list-style: none;
}

.masthead .sub-nav li:last-child,
.header-sticky .sub-nav li:last-child,
.wide-nav .sub-nav li:last-child {
  border-bottom: none;
}

.masthead .sub-nav a,
.header-sticky .sub-nav a,
.wide-nav .sub-nav a {
  display: block !important;
  padding: 8px 40px 8px 15px;
  color: #000 !important;
  font-family: "Display-Regular", "SVN-Regular", sans-serif;
  transition: all 0.5s;
  font-size: 0.875rem;
  text-decoration: none;
}

.masthead .sub-nav a:hover,
.header-sticky .sub-nav a:hover,
.wide-nav .sub-nav a:hover {
  transform: translateX(5px);
  color: var(--header-primary) !important;
}

.header-sticky {
  display: none !important;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  display: none;
  opacity: 0;
  transition: opacity 0.3s;
  backdrop-filter: blur(3px);
}

.menu-overlay.active {
  display: block;
  opacity: 1;
}

@media (max-width: 820px) {
  .header-sticky,
  .masthead {
    display: none;
  }

  .header-mb {
    display: flex;
  }

  .header-mb .logo img {
    max-width: 150px;
    filter: brightness(0) invert(1) !important;
  }

  .menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
  }

  .menu-drawer {
    display: block;
    position: fixed;
    top: 0;
    left: -60%;
    width: 60%;
    height: 100%;
    background: #fff;
    z-index: 999;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 25px;
    flex-direction: column;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
  }

  .menu-drawer.open {
    left: 0;
  }

  .menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #e9e9e9;
    padding-bottom: 15px;
  }

  .menu-header img {
    max-width: 135px;
  }

  .menu-link {
    font-family: "Display-Bold", "SVN-Bold", sans-serif;
    position: relative;
    padding: 15px 0;
    font-size: 1.125rem;
    color: var(--header-primary) !important;
    border-bottom: 1px solid #e9e9e9;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
  }

  .menu-link i {
    width: 20px;
    color: var(--header-primary);
  }

  .menu-item.has-children {
    position: relative;
  }

  .menu-item.has-children > .expand-bar {
    display: block;
  }

  .menu-item.open > .menu-link {
    border-bottom: none;
    padding-bottom: 8px;
  }

  .menu-item.open > .menu-children {
    display: block;
  }

  .menu-children {
    margin-left: 16px;
    margin-bottom: 8px;
    display: none;
    border-bottom: 1px solid #e9e9e9;
  }

  .menu-child-link {
    display: block;
    padding: 10px 16px 10px 20px;
    font-size: 14px;
    font-family: "Display-Regular", "SVN-Regular", sans-serif;
    color: #555 !important;
    text-decoration: none;
  }

  .menu-child-link:hover {
    color: var(--header-primary) !important;
  }

  .expand-bar {
    position: absolute;
    top: 9px;
    right: 10px;
    width: 40px;
    height: 40px;
    z-index: 99;
    display: none;
    cursor: pointer;
  }

  .expand-bar::before,
  .expand-bar::after {
    content: "";
    position: absolute;
    width: 15px;
    height: 2px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #999;
    transition: all 0.3s;
  }

  .expand-bar::after {
    transform: translate(-50%, -50%) rotate(90deg);
  }

  .expand-bar.open::before,
  .expand-bar.open::after {
    transform: translate(-50%, -50%) rotate(180deg);
  }

  .menu-hotline-box {
    margin-top: 30px;
    background: linear-gradient(135deg, var(--header-primary) 0%, var(--header-primary-dark) 100%);
    padding: 20px;
    border-radius: 16px;
    color: #fff;
    text-align: center;
    box-shadow: 0 10px 20px rgba(247, 167, 48, 0.35);
  }

  .menu-hotline-box .menu-hotline-title {
    font-family: "Display-Bold", "SVN-Bold", sans-serif;
    font-size: 1.125rem;
    margin-bottom: 5px;
    opacity: 0.9;
  }

  .menu-hotline-box .menu-hotline-number {
    font-family: "Display-Bold", "SVN-Bold", sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    display: block;
    margin-top: 5px;
    color: #fff !important;
    letter-spacing: 1px;
    text-decoration: none;
  }
}
