header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  font-size: 14px;
  margin: 0;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}
.menu-hotline {
  width: 30%;
  font-size: 18px;
  color: #008543; /* Xanh lá FPT */
  text-decoration: none;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  animation: pulseHotline 1.5s infinite;
  transition: color 0.3s;
}
.menu-hotline:hover {
  color: #f37021; /* Cam FPT khi hover */
} /* Hiệu ứng nhấp nháy */
@keyframes pulseHotline {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
} /* Rung nhẹ cho icon điện thoại */
.menu-hotline i {
  animation: ringPhone 1.5s infinite;
}
@keyframes ringPhone {
  0% {
    transform: rotate(0deg);
  }
  20% {
    transform: rotate(-15deg);
  }
  40% {
    transform: rotate(15deg);
  }
  60% {
    transform: rotate(-10deg);
  }
  80% {
    transform: rotate(10deg);
  }
  100% {
    transform: rotate(0deg);
  }
}
.logo {
  width: 10%;
  text-align: center;
}
.logo img {
  height: auto;
}
.menu {
  display: flex;
  gap: 15px;
  width: 70%;
  padding-right: -100px;
}
.menu li {
  list-style: none;
  position: relative;
}
.menu li a {
  text-decoration: none;
  color: #008543; /* Xanh lá FPT */
  font-size: 16px;
  font-weight: 500;
  padding: 8px 5px;
  display: block;
  font-size: 16px;
}
.menu li:hover > a {
  color: #f37021;
} /* Submenu */
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 180px;
  border: 1px solid #ddd;
  z-index: 999;
}
.submenu li a {
  padding: 10px;
  color: #333;
}
.menu li:hover .submenu {
  display: block;
} /* Mobile button */
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}
.icon-bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: #333;
  transition: all 0.3s;
} /* Mobile menu */
@media (max-width: 768px) {
  header {
    margin: 0px;
    padding: 0px;
  }
  .menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #fff;
    position: absolute;
    top: 60px;
    left: 0;
    border-top: 2px solid #f37021;
  }
  .menu.active {
    display: flex;
  }
  .menu li {
    border-bottom: 1px solid #eee;
  }
  .submenu {
    position: static;
    border: none;
  }
  .submenu li a {
    padding-left: 25px;
  }
  .navbar-toggle {
    display: block;
  }
} /* -------------------------- Kiểu cho màn hình điện thoại (Mobile First) -------------------------- */
.menu-container {
  position: fixed; /* Ghim thanh menu */
  bottom: -10px;
  left: 0;
  width: auto;
  display: flex; /* Sắp xếp các mục theo chiều ngang */
  justify-content: space-around;
  background-color: #fff;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  padding: 0;
  z-index: 1000;
}
.menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: #555;
  font-size: 14px;
  flex-grow: 1; /* Cho phép các mục mở rộng đều */
} /* Submenu ẩn mặc định */
.submenu {
  display: none;
  position: absolute;
  top: 100%; /* nằm ngay dưới menu cha */
  left: 0;
  background: #fff;
  list-style: none;
  padding: 10px;
  margin: 0;
  min-width: 180px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 99;
}
.submenu li {
  margin: 5px 0;
}
.submenu li a {
  color: #333;
  font-size: 14px;
  text-decoration: none;
} /* Hover hiện submenu */
.menu-item.has-submenu:hover .submenu {
  display: block;
} /* Menu container chia đều */
.menu-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
}
.menu-container .menu-item {
  flex: 1; /* mỗi mục chiếm đều */
  text-align: center;
}
.menu-container .menu-item a {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
  color: #333;
}
.menu-container .menu-item img {
  width: 25px;
  height: 25px;
  margin-bottom: 5px;
} /* Hiệu ứng nhấp nháy cho Đăng ký */
.menu-container .menu-item.dang-ky a img {
  animation: blink 1s infinite;
  color: #ff6600; /* màu cam FPT */
  font-weight: bold;
}
@keyframes blink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
  100% {
    opacity: 1;
  }
} /* Style chung cho submenu */
.submenu {
  position: absolute;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  list-style: none;
  margin: 0;
  padding: 8px 0;
  display: none;
  z-index: 1000;
  min-width: 200px;
} /* Khi hover hoặc active thì hiển thị */
.menu-item.has-submenu:hover .submenu,
.menu-item.has-submenu.active .submenu {
  display: block;
} /* PC: xổ sang bên trái */
@media (min-width: 769px) {
  .submenu {
    left: 0; /* bám vào cạnh trái */
    top: 100%; /* xổ xuống dưới nút */
    transform: translateX(-100%); /* dịch sang bên trái */
  }
} /* Mobile: xổ lên trên bên trái */
@media (max-width: 768px) {
  .submenu {
    left: 0; /* bám trái */
    top: 100%; /* xổ xuống*/
    top: auto;
    transform: translateX(-10px); /* dịch nhẹ sang trái */
  }
  .submenu-mobile {
    display: none; /* ẩn mặc định */
    position: absolute;
    left: 0;
    bottom: 100%; /* xổ lên trên */
    top: auto;
    transform: translateX(-10px);
    background: #fff;
    min-width: 200px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 999;
    padding: 8px 0;
    list-style: none;
  } /* Khi có class active thì hiện submenu */
  .submenu-mobile.active {
    display: block;
  }
} /* PC: ẩn Menu icon + chiếm 30% chiều cao */
@media (min-width: 769px) {
  .menu-container {
    height: 30vh; /* chiếm 30% màn hình */
  }
  .menu-item.has-submenu {
    display: none; /* ẩn nút Menu */
  }
} /* Khi menu-item có class active thì submenu-mobile hiển thị */
.menu-item.has-submenu.active .submenu-mobile {
  display: block;
} /* Style cho item */
.menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #333;
  flex: 1;
}
.menu-item img {
  width: 30px;
  height: 30px;
  margin-bottom: 0px;
} /* ============ LIÊN HỆ GÓC PHẢI PC ============ */
.lien-he-pc {
  position: fixed;
  right: 20px;
  bottom: 20px;
  list-style: none;
  z-index: 9999;
}
.lien-he-pc a {
  display: block;
  margin-bottom: 40px;
}
.lien-he-pc img {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  animation: pulse 1.8s infinite;
  transition: transform 0.3s ease;
}
.lien-he-pc img:hover {
  transform: scale(1.15);
}
ul li a {
  padding: 0;
  font-size: 12px;
} /* Hiệu ứng tỏa sáng */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(243, 112, 33, 0.6);
  }
  70% {
    box-shadow: 0 0 0 25px rgba(243, 112, 33, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(243, 112, 33, 0);
  }
} /* Ẩn Menu dưới trên PC */
@media (min-width: 769px) {
  .menu-container {
    display: none;
  }
} /* Chỉ hiển thị trên Mobile */
@media (max-width: 768px) {
  .menu-hotline{
    width: 10%;
  }
  .logo {
    width: 40%;
    padding-left: 50px;
    height: auto;
  }
  
  
  .lien-he-pc {
    display: none;
  }
} /* Mobile: nằm ngang ở dưới */
@media (max-width: 768px) {
  .menu-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    flex-direction: row;
    justify-content: space-between;
  }
  .navbar {
    margin-left: 0px;
    padding-top: 7px;
  }
  .menu-item {
    flex: 1;
    padding-bottom: 0px;
  }
  .lien-he-pc {
    display: none;
  }
}
