body {
  background: rgb(202, 236, 247);
  margin: 0;
  font-family: "Segoe UI", sans-serif;
}

/* Khối container căn giữa nội dung */
.container {
  max-width: 1400px;
  margin: 0 auto;
}

/* ===== Header ===== */
.top-info {
  white-space: nowrap; /* Không cho xuống dòng */
  background: rgb(21, 1, 134);
  color: white;
  padding: 10px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  width: 100%;
  /* Nền cơ bản */
  background-image: linear-gradient(
      0deg,
      rgba(151, 240, 8, 0.1) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 15px 15px; /* độ dày ô */
}
.top-info p {
  margin: 5px 20px;
  font-size: 18px;
}
.top-info-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ===== Title ===== */
.brand-title {
  font-size: 58px;
  text-align: center;
  padding-top: 15px;
  padding-bottom: 0px;
  margin: 20px 0 5px 0;
  background: linear-gradient(
    135deg,
    rgb(255, 0, 0),
    rgb(255, 154, 86),
    rgb(245, 74, 102),
    #2000ad
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.title-block {
  margin-top: 90px;
}
.header {
  width: 100%;
  background: rgb(12, 167, 228);
  color: white;
}

.header-flex {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
}

/* ===== MENU DESKTOP - DISPLAY TABLE ===== */
.nav-list {
  display: table;
  table-layout: fixed;
  list-style: none;
  padding: 0;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  border-spacing: 0;
}

.nav-list li {
  display: table-cell;
  text-align: center;
  vertical-align: middle;
  padding: 15px 10px;
  transition: all 0.3s ease;
}

/* Wrapper để background full width */
.nav-wrapper {
  background: rgb(180, 0, 0);
  width: 100%;
}

.nav-list a {
  color: white;
  font-size: 20px;
  text-decoration: none;
  display: block;
  padding: 6px 10px;
}

/* Hover effect - chỉ border dưới chữ */
.nav-list li:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-list a:hover {
  border-bottom: 0px solid white;
}

/* Active state - đổ màu cả ô TD */
.nav-list li.active {
  background-color: white;
}

.nav-list li.active a {
  color: rgb(180, 0, 0);
  font-weight: bold;
}

/* nút menu chỉ xuất hiện khi mobile */
.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 24px;
  user-select: none;
}

.menu-toggle.fixed-top {
  position: fixed;
  z-index: 1001;
  background: white;
  border: 2px solid black;
  padding: 3px 8px;
  border-radius: 4px;
  left: 10px;
}
.icon-truck {
  display: inline-block;
  transform: translateY(-10px);
}

.sub-title {
  text-align: center;
  font-style: italic;
  font-size: 20px;
  color: red;
}

/* ===== Menu ===== */
.menu-bar {
  background: red;
}
.nav-items {
  display: flex;
  justify-content: space-around;
  color: white;
  padding: 10px 0;
  font-size: 22px;
}
.nav-item {
  cursor: pointer;
}

/* SVG Home icon */
.home-icon {
  transform: translateY(3px);
}

/* ===== Content ===== */
.content-area {
  background: rgb(238, 236, 247);
  width: 100%;
  padding: 20px 0;
}

.content-box {
  max-width: 1400px;
  margin: 0 auto;
  background: white;
  border-radius: 4px;
  padding: 30px 20px;
  box-sizing: border-box;
}

.section-title {
  font-size: 28px;
  margin: 20px 0 10px;
  color: black;
}

.banner-img {
  width: 100%;
  max-width: 1400px;
  display: block;
  margin: 10px auto;
}

/* ===== Price Table ===== */
.price-table {
  width: 60%;
  border-collapse: collapse;
  font-size: 18px;
  margin-top: 15px;
}
.price-table th,
.price-table td {
  border: 1px solid #777;
  padding: 10px;
  text-align: center;
}
.chat {
  position: fixed;
  right: 0; /* sát mép phải */
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 0px solid #1e90ff; /* viền */
  border-radius: 25px 0 0 25px; /* bo tròn bên trái */
  padding: 3px 7px;
  bottom: 30px;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Messager nằm trên Zalo */
.messager {
  bottom: 85px;
  border-color: rgb(181, 13, 214); /* màu viền khác */
}
.contact {
  bottom: 195px;
  border-color: rgb(0, 200, 83); /* màu viền khác */
}
.phone {
  bottom: 140px;
  border-color: #28a745; /* màu xanh gọi điện */
}
.chat img {
  width: 40px;
  height: 40px;
  border-radius: 50%; /* icon bo tròn */
}

/* Hover effect */
.chat:hover {
  background: #e9f5ff;
}
.pulse {
  position: absolute;
  left: -4px; /* chỉnh sang trái */
  top: 47%;
  transform: translateY(-50%) scale(0.7);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(30, 144, 255, 0.4);
  animation: pulseAnim 1.4s infinite ease-out;
  z-index: -1;
}
.messager .pulse {
  background: rgba(181, 13, 214, 0.4);
}
.contact .pulse {
  background: rgba(214, 20, 6, 0.4);
}
.zalo .pulse {
  background: rgba(34, 126, 247, 0.507);
}
.phone .pulse {
  background: rgba(41, 228, 84, 0.589);
}
.phone img {
  filter: sepia(100%) saturate(500%) hue-rotate(80deg);
}
/* Animation */
@keyframes pulseAnim {
  0% {
    transform: translateY(-50%) scale(0.7);
    opacity: 1;
  }
  100% {
    transform: translateY(-50%) scale(1.4);
    opacity: 0.2;
  }
}
/* ===== Footer ===== */
.footer {
  background: black;
  color: white;
  padding: 20px 0;
}
.footer-content {
  display: table;
  table-layout: fixed;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  font-size: 16px;
  line-height: 1.8;
}
.footer-content > div {
  display: table-cell;
  vertical-align: top;
  padding: 0 15px;
  border-right: 1px solid rgba(255, 255, 255, 0.3);
}
.footer-content > div:last-child {
  border-right: none;
}
.footer-content b {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
}
.footer-content div:nth-child(1) {
  width: 40%;
}
.footer-content div:nth-child(2) {
  width: 35%;
  white-space: nowrap;
}
.footer-content div:nth-child(3) {
  width: 25%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.copyright {
  background: rgb(12, 167, 228);
  text-align: center;
  padding: 10px;
  font-size: 12px;
}

/* ===== Responsive (mobile) ===== */
@media (max-width: 768px) {
  .top-info {
    padding: 8px 0;
  }

  .top-info .container {
    text-align: left; /* Căn trái toàn bộ */
    margin-left: 10px; /* Đảm bảo Hotline và 2 dòng trên cùng điểm bắt đầu */
  }

  .top-info-flex {
    display: block;
    margin: 0; /* Không cần margin-left riêng */
  }

  .top-info p {
    font-size: 14px;
    margin: 4px 0;
    white-space: normal;
  }
  .menu-toggle {
    display: block;
    font-size: 16px;
    color: rgb(189, 183, 183);
  }

  .nav-wrapper {
    position: absolute;
    left: 0px;
    width: 100%;
    background: transparent;
  }

  .nav-wrapper.fixed-top {
    position: fixed;
    top: 90px;
    left: 0px;
    z-index: 1000;
    width: 100%;
    background: transparent;
  }

  /* MOBILE: Chuyển từ table sang flex dropdown */
  .nav-list {
    display: none;
    position: absolute;
    top: 22px;
    left: 0px;
    width: 20%;
    min-width: 150px;
    background: rgb(180, 0, 0);
    flex-direction: column;
    text-align: left;
    padding: 0;
    z-index: 1000;
    border-spacing: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  }

  .nav-list.show {
    display: flex;
  }

  .nav-list li {
    display: block;
    width: 100%;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .nav-list li:last-child {
    border-bottom: none;
  }

  .nav-list a {
    padding: 15px 20px;
    display: block;
    width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
    color: white;
    text-decoration: none;
  }

  /* Active state cho mobile - đổ màu cả li */
  .nav-list li.active {
    background-color: white;
  }

  .nav-list li.active a {
    color: rgb(180, 0, 0);
    font-weight: bold;
  }

  /* Hover cho mobile */
  .nav-list li:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }

  /* FOOTER: Chuyển sang 1 cột dọc trên mobile portrait */
  .footer-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 0 20px;
  }

  .footer-content > div {
    display: block;
    width: 100%;
    padding: 15px 0;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  }

  .footer-content > div:last-child {
    border-bottom: none;
  }

  .footer-content div:nth-child(1),
  .footer-content div:nth-child(2),
  .footer-content div:nth-child(3) {
    width: 100%;
  }

  /* Bảng giá responsive trên mobile */
  .price-table {
    width:100%;
    font-size: 12px;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .price-table thead,
  .price-table tbody,
  .price-table tr {
    display: table;
    width: 100%;
    table-layout: fixed;
  }

  .price-table th,
  .price-table td {
    padding: 8px 4px;
    font-size: 11px;
    word-wrap: break-word;
  }
}



