/* --- Base layout --- */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px;
  border-bottom: 1px solid #eee;
  background: #fff;
  position: relative;
  z-index: 1000;
  position: fixed;
  top: 0;
  width: 100vw;
}

.mobile-menu {
  display: none;
}

/* Menu + Buttons nằm bên phải, bắt đầu từ giữa */
.right {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Logo luôn nằm bên trái */
.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.logo-box {
  display: flex;
  flex-direction: column;
  align-items: center; 
  text-decoration: none;  
  padding-bottom: 5px; 
}

.logo-box img {
  height: 51px;
  display: block;
  border-bottom: 1px solid #707070;
}

.logo-subtitle {
  font-size: 11px;
  color: #707070;
  margin-top: 5px;
  margin-bottom: 0;
  text-align: center;
}

/* --- Nav --- */
.nav .menu {
  display: flex;
  list-style: none;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.nav .menu li.current{
  position: relative;
}

.nav .menu li.current::before{
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 2px;
  background-color: #4AA3C3;
  top: -4px;
  left: 50%;
  margin-left: -2px;
}

.nav .menu li a {
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  color: #4B7282;
  white-space: nowrap;
}

.nav .menu li.dropdown a.head_dropdown{
  padding-right: 20px;
  position: relative;
}

.nav .menu li.dropdown a.head_dropdown::before{
  content: "";
  width: 12px;
  height: 7px;
  position: absolute;
  right: 0;
  top: 50%;
  margin-top: -3.5px;
  background: url("../images/hiring-risk/down_arrow.svg") no-repeat;
  background-size: contain;
}

.nav .menu li a b{
  font-size: 12px;
  display: none;
}

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: 100%; left: 0;
  background: white;
  border: 1px solid #2B6298;
  list-style: none;
  padding: 11px 0 11px 0;
  margin: 0;
  display: none;
  min-width: 200px;
  z-index: 10;
  border-radius: 0;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li a {
  display: block;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  color: #4B7282;  
  padding: 0 34px 9px 23px;
}
.dropdown-menu li a:hover { background: #f0f0f0; }

/* --- Buttons --- */
.buttons {
  display: flex;
  align-items: center;
  gap: 30px;
}
.btn {
  padding: 10px 20px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.btn-icon {
  height: auto;
  display: block;
}

.btn-icon.env{
  width: 25.48px;
}

.btn-icon.doc{
  width: 20.4px;
}

.contact { background: #FFEB3B; color: #333; }
.request { background: #2B6298; color: #fff; }


/* --- Hamburger --- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: #333;
  transition: 0.3s;
}

/* --- Responsive --- */

/* 1. Desktop lớn >= 1440px (1920x1080) */
@media (min-width: 1440px) {
  .header { padding: 16px 30px 16px 30px; }
  .logo { font-size: 30px; }
  .nav .menu { gap: 40px; }
  .btn { font-size: 22px; font-weight: 700; padding: 12px 53px; }
  .btn.request { padding: 12px 66px; }
}

/* 2. Laptop phổ biến 1366x768 */
@media (max-width: 1439px) and (min-width: 993px) {
  .header { padding: 12px 40px; }
  .logo { font-size: 24px; }
  .nav .menu { gap: 20px; }
  .btn { font-size: 14px; padding: 10px 22px; }
}

/* 3. Tablet (768px–1024px) */
@media (max-width: 992px) and (min-width: 769px) {
  .request { display: none; }   /* ẩn nút xanh */
  .nav {
    position: absolute;
    top: 100%; left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #ddd;
    display: none;
    flex-direction: column;
  }
  .nav.active { display: flex; }
  .nav .menu { flex-direction: column; gap: 0; }
  .nav .menu li { border-bottom: 1px solid #eee; }
  .nav .menu li a { padding: 14px 20px; display: block; }

  .hamburger { display: flex; }
}

/* <768px: chỉ còn nút vàng + hamburger, menu ẩn */
/* --- Mobile Responsive --- */
@media (max-width: 767.98px) {
  /* Ẩn subtitle và nút xanh */
  .logo .logo-subtitle { display: none; }  
  .request { display: none; }      

  /* Logo nhỏ lại */
  .logo-box img {
    height: 23px;
    border-bottom: none;
  }

  /* Header layout: logo - contact - hamburger */
  .header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 0 16px;
  }

  .right {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  /* Contact button nhỏ gọn */
  .buttons{
    gap: 0;
  }

  .btn.contact {
    background: #FFEB3B;
    color: #333;
    padding: 6px 12px;
    border-radius: 0;
    font-size: 13px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-direction: column;
  }
  .btn-icon.env {
    width: 16px;
    height: auto;
  }

  /* Hamburger */
  .hamburger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
  }
  .hamburger span {
    width: 24px;
    height: 3px;
    background: #1A3E5C;
    display: block;
  }
  .hamburger .menu-label {
    font-size: 11px;
    color: #1A3E5C;
    margin-top: 2px;
  }

  /* Nav ẩn đi (offcanvas) */
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100%;
    background: #fff;
    border-left: 1px solid #ddd;
    flex-direction: column;
    padding: 20px;
    transition: right 0.3s ease;
    z-index: 2000;
    display: none;
  }
  .nav.active {
    display: flex;
    right: 0;
  }

  .nav .menu {
    flex-direction: column;
    margin: 0;
    padding: 0;
    width: 100%;
  }
  .nav .menu li {
    border-bottom: 1px solid #eee;
  }
  .nav .menu li a {
    padding: 14px 0;
    display: block;
    font-size: 16px;
  }

  /* Offcanvas menu */
  .mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 5px rgba(0,0,0,0.2);
    padding: 60px 43px 20px 43px;
    transition: right 0.3s ease;
    z-index: 2000;
    display: flex;
    flex-direction: column;
  }

  .mobile-menu.active {
    right: 0; /* khi bật thì trượt ra */
  }

  .mobile-menu .request{
    display: block;
  }

  /* Menu items */
  .mobile-menu .menu {
    list-style: none;
    padding: 0;
    margin: 0 0 35px 0;
    flex: 0 0 auto;
  }
  .mobile-menu .menu li {
    border-bottom: 1px solid #c2c2c2;
  }
  .mobile-menu .menu li a {
    display: block;
    padding: 9px 0;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    color: #4B7282;
  }
  .mobile-menu .menu li:nth-child(1) a{
    padding: 5px 0;
  }

  .contact-info {
    font-size: 14px;
    color: #333;
  }
  .contact-info .phone {
    font-size: 20px;
    font-weight: bold;
    color: #1A3E5C;
    margin: 10px 0;
  }
  .contact-info .btn {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
  }

  .overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    z-index: 1500;
  }

  .overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .mobile-menu .contact-info{
    width: 256px;
    margin: 0 auto;
  }

  .mobile-menu .contact-info p.work_time{
    font-size: 14px;
    font-weight: 700;
    color: #2B6298;
    margin-bottom: 3px;
  }

  .mobile-menu .contact-info p.phone {
    margin-top: 0;
    margin-bottom: 15px;
  }

  .mobile-menu .contact-info p.phone span{
    padding-left: 41px;
    font-size: 30px;
    font-weight: 700;
    color: #2B6298;
    position: relative;
  }

  .mobile-menu .contact-info p.phone span::before{
    content: "";
    width: 32px;
    height: 32px;
    left: 0;
    background: url("../images/phone_circle_blue.svg") no-repeat;
    background-size: 32px 32px;
    position: absolute;
    top: 50%;
    margin-top: -16px;
  }

  .mobile-menu .contact-info .inquiries_from_web{
    font-size: 14px;
    font-weight: 700;
    color: #2B6298;
    margin-bottom: 10px;
  }

  .mobile-menu .contact-info a.btn_{
    width: 256px;
    height: 50px;
    line-height: 50px;
    display: inline-block;
    text-decoration: none;
  }

  .mobile-menu .contact-info a.btn_._contact{
    margin-bottom: 20px;
    background-color: #F3ED3D;
    font-size: 18px;
    font-weight: 700;
    color: #0E3B4E;
    padding-right: 32px;
    padding-left: 32px;
  }

  .mobile-menu .contact-info a.btn_._contact span{
    padding-left: 29.1px;
    position: relative;
  }

  .mobile-menu .contact-info a.btn_._contact span::before{
    content: "";
    position: absolute;
    width: 21.7px;
    height: 15.3px;
    background: url("../images/mobile_menu_mail.svg") no-repeat;
    background-size: cover;
    left: 0;
    top: 50%;
    margin-top: -7.65px;
  }

  .mobile-menu .contact-info a.btn_._request{
    background-color: #fff;
    font-size: 18px;
    font-weight: 700;
    color: #333333;
    box-shadow: 0 0 2px 1px #707070 inset;
    padding-right: 48px;
    padding-left: 43.65px;
  }

  .mobile-menu .contact-info a.btn_._request span{
    padding-left: 20.2px;
    position: relative;
  }

  .mobile-menu .contact-info a.btn_._request span::before{
    content: "";
    position: absolute;
    width: 14.08px;
    height: 16.1px;
    background: url("../images/mobile_menu_docs.svg") no-repeat;
    background-size: cover;
    left: 0;
    top: 50%;
    margin-top: -8.05px;
  }

  .mobile-menu .close-btn{
    position: absolute;
    width: 32px;
    height: 36px;
    right: 7px;
    top: 12px;
    outline: none;
    border: none;
    background-color: none;
    background: url("../images/mobile_menu_close.svg") no-repeat, url("../images/mobile_menu_close_2.svg") no-repeat, url("../images/mobile_menu_text.svg") no-repeat;
    background-size: 24px 24px, 24px 24px, 32px 11px;
    background-position: top center, top center, bottom;
  }
}

