* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background-color: #f5f7fb;
  font-family: "Be Vietnam Pro", sans-serif;
  color: #3b4046;
}
/*Bắt đầu header*/
header {
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0; /*dùng để ghim vị trí*/
  width: 100%;
  display: flex;
  z-index: 1000; /* Giúp menu luôn nổi lên trên các thành phần khác 
  khi cuộn trang */
}
.thanh_nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 40px;
  width: 100%;
}

/*logo*/
.logo a {
  text-decoration: none;
  color: #1e293b;
  font-size: 26px;
  font-weight: 900;
}
.logo a .highlight {
  font-size: 24px;
  color: #e74c3c;
  position: relative;
}
.logo a .highlight::after {
  background-color: #f1c40f;
  content: "";
  position: absolute;
  bottom: -5px;
  right: 2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

/*menu*/
.menu ul {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  gap: 20px;
}
.menu ul li a {
  text-decoration: none;
  color: #1e293b;
  font-size: 17px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.menu ul li a:hover {
  color: #e74c3c;
}
/*nút đăng nhập*/
.nutdn {
  background-color: #ee6759;
  border-radius: 20px;
  padding: 10px 20px;
  color: #f5f7fb;
}
@media (max-width: 768px) {
  .thanh_nav {
    flex-direction: row;
    gap: 15px;
    padding: 15px 20px;
  }
  .menu ul {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .menu ul li a {
    padding: 8px 12px;
    font-size: 15px;
    white-space: nowrap;
  }
}
/* --- TRẠNG THÁI TRÊN MÁY TÍNH (MÀN HÌNH LỚN) --- */
.nut_mome {
  display: none; /* Mặc định trên máy tính thì ẨN nút 3 gạch đi */
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.nut_mome span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #1e293b; /* Màu đen xám giống logo của bạn */
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* --- TRẠNG THÁI TRÊN ĐIỆN THOẠI (DƯỚI 768PX) --- */
@media (max-width: 790px) {
  .nut_mome {
    display: flex; /* 🟢 HIỆN nút 3 gạch trên điện thoại */
  }

  /* Biến khối .menu thành một hộp ẩn chứa menu dọc */
  .menu {
    position: absolute;
    top: 70px; /* Nằm ngay dưới thanh header */
    right: -100%; /* Mặc định đẩy tràn ra ngoài màn hình bên phải (để ẩn đi) */
    width: 250px; /* Chiều rộng của bảng menu dọc */
    height: calc(100vh - 70px); /* Cao hết phần màn hình còn lại */
    background-color: #ffffff;
    box-shadow: -4px 10px 15px rgba(0, 0, 0, 0.05);
    padding: 30px 20px;
    transition: all 0.4s ease; /* Tạo hiệu ứng trượt mượt mà */
    z-index: 999;
  }

  /* Khi menu được kích hoạt thêm class .active, nó sẽ trượt vào màn hình */
  .menu.active {
    right: 0; /* Trượt về vị trí hiển thị */
  }

  /* Ép các mục menu xếp thành hàng dọc */
  .menu ul {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }

  .menu ul li a {
    width: 100%;
    display: block;
    padding: 10px 15px;
  }

  /* Ẩn nút đăng nhập chính ở ngoài và bạn có thể tự xử lý tùy chọn */
  .thanh_nav > .nutdn {
    display: none; /* Ẩn nút đăng nhập ở thanh ngoài để tránh chật chội */
  }
}
/*Kết thúc header*/

/*Bắt đầu main*/
/*Tiêu đề*/
.main_td {
  text-align: center;
  padding: 60px 20px;
  max-width: 800px;
  margin: 0 auto;
}
.main_td h1 {
  color: #1e293b;
  font-size: 34px;
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.3;
}
.main_td p {
  font-size: 18px;
  color: #7f8c8d;
  font-weight: 400;
}
/*Nội dung*/
.main_box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 50px;
  flex-wrap: wrap;
  padding: 0 20px;
}
.main_boxcm {
  flex: 1.2;
  min-width: 320px;
}
.main_box h2 {
  font-size: 32px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 15px;
}
.main_box p {
  font-size: 16px;
  line-height: 1.6;
  color: #475569;
  margin-bottom: 25px;
}
.main_boximage {
  flex: 1;
  min-width: 320px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.main_boximage svg {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.08));
  animation: floatAnimation 6s ease-in-out infinite; /* Tạo hiệu ứng trôi lơ lửng */
}
@keyframes floatAnimation {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
/* Nút dẫn tới trang Luyện dịch cực to nổi bật */
.btn_start {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background-color: #e74c3c;
  color: #ffffff;
  font-weight: 700;
  padding: 15px 32px;
  border-radius: 30px;
  box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3);
}
.btn_start:hover {
  background-color: #c0392b;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(231, 76, 60, 0.45);
}
/*Thống kê*/
.thong-ke-container {
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  gap: 30px;
  padding: 20px 40px;
  flex-wrap: wrap;
}
.the-thong-ke {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px 40px;
  flex: 1;
  text-align: center;
}
.the-thong-ke h3 {
  font-size: 40px;
}
/*Kết thúc main*/
