/* Reset cơ bản */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px; /* cơ sở cho rem */
}

body {
  font-family: 'Arial', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* Nội dung chính */
main {
  flex: 1; /* để đẩy footer xuống đáy */
}


/* Header */
.main-header {
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 10%;
  position: fixed;  /* đổi sticky thành fixed */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 80px;
  margin-left: -30px;
}

.brand h1 {
  font-size: 1.5rem;
  color: #c0392b;
}

.brand p {
  font-size: 0.9rem;
  color: #534444;
  font-style: italic;
}

.navbar a {
  margin-left: 20px;
  text-decoration: none;
  color: #333;
  font-weight: 600;
  position: relative;
  white-space: nowrap;
  display: inline-block;
  padding: 8px 12px;
  font-size: 1rem;
}

.navbar a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: #c0392b;
  transition: width 0.3s;
}

.navbar a:hover {
  color: #c0392b;
}

.navbar a:hover::after {
  width: 100%;
}

body {
  font-family: 'Arial', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  margin: 0;
  padding-top: 80px; /* bằng chiều cao header */
}

/* ===== Navbar cơ bản ===== */
.navbar {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 10px 0;
}

.navbar .nav-link {
  color: #333;
  font-weight: 500;
  padding: 8px 16px;
  transition: color 0.2s;
}

.navbar .nav-link:hover {
  color: #c0392b;
}


/* ===== Dropdown menu ===== */
.navbar .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 100%;      /* ✅ Giúp dropdown khít chiều rộng nút "Sản phẩm" */
  list-style: none;
  margin: 0;
  padding: 0;           /* ✅ Xóa padding để tránh nền bị loang ra */
  border-radius: 0 0 8px 8px;
  border: 1px solid #ddd;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  background-color: #fff;
  overflow: hidden;     /* ✅ Ngăn background bị tràn ra ngoài */
}

/* Ẩn submenu ban đầu */
.navbar .dropdown-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

/* Khi mở submenu */
.navbar .dropdown-menu.show {
  max-height: 300px; /* đủ lớn để chứa tất cả item */
}

/* Dropdown menu cuộn riêng */
.navbar .dropdown-menu {
  max-height: 200px;   /* Giới hạn chiều cao hiển thị */
  overflow-y: auto;    /* Cho phép cuộn dọc */
  overflow-x: hidden;  /* Ẩn cuộn ngang */
  scrollbar-width: thin;  /* Thanh cuộn nhỏ gọn (Firefox) */
}

/* Tùy chỉnh thanh cuộn trên Chrome/Edge */
.navbar .dropdown-menu::-webkit-scrollbar {
  width: 6px;
}
.navbar .dropdown-menu::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}
.navbar .dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* Nút mũi tên nằm sát chữ */
.dropdown-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: -10px; /* khoảng cách nhỏ giữa chữ và mũi tên */
  display: inline-flex;
  align-items: center;
}
.dropdown-toggle-btn .nav-caret:hover{
  border-color: #e60000;
  transform: rotate(225deg);
  border-color: #e60000;
}

/* Mũi tên cơ bản */
.nav-caret {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid #333;
  border-bottom: 2px solid #333;
  transform: rotate(45deg);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

/* Khi mở dropdown → xoay mũi tên */
.dropdown.show .nav-caret {
  transform: rotate(-135deg);
  border-color: #c0392b;
}



.navbar .dropdown-item {
  padding: 10px 16px;
  color: #333;
  transition: background 0.2s;
}

.navbar .dropdown-item:hover {
  background: #f2f2f2;
  color: #c0392b;
}

/* ===== Mũi tên dropdown ===== */
.nav-caret {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid #333;
  border-bottom: 2px solid #333;
  transform: rotate(45deg);
  margin-left: 6px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

/* =====================
   RESPONSIVE — MOBILE
   ===================== */
@media (max-width: 992px) {
  .navbar {
    flex-direction: column;
  }

  .dropdown-menu {
    position: static;  /* để menu xổ xuống bình thường, không bị lệch trên mobile */
    box-shadow: none;
    border: none;
    background: transparent;
    padding-left: 10px;
  }

  .dropdown-menu .dropdown-item {
    padding: 8px 0;
  }
}



/* Banner */
.banner {
  position: relative;
  width: 100%;
  max-width: 100%; /* giới hạn chiều rộng */
  height: 50vh;       /* chiều cao tương đối */
  margin: 0 auto;
  overflow: hidden;
}

.slides {
  display: flex;
  width: 500%;
  height: 100%;
  transition: margin-left 1s;
}

.img-box {
  flex: 1;
  position: relative;
}

.img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* giữ tỉ lệ ảnh */
}

.img-box span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-weight: 700;
}

.banner::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
}

.banner-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  z-index: 2;
}

.banner-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.banner-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.banner-content .btn {
  background: #c0392b;
  color: #fff;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  margin: 5px;
  display: inline-block;
  transition: background 0.3s;
}

 .banner-content .btn:hover {
  background: #e74c3c;
}

.btn-outline {
  background: transparent;
  border: 2px solid #fff;
}

.btn-outline:hover {
  background: #fff;
  color: #c0392b;
}

/* About */
.about {
  background: #f7efee;
  padding-bottom: 50px; /* khoảng cách từ about đến product */
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.about-text h2 {
  color: #c0392b;
  margin-bottom: 20px;
  position: relative;
  font-size: 2.5rem;
  display: inline-block; /* để chiều rộng chỉ theo chữ */
  padding-bottom: 6px;   /* tạo khoảng cách giữa chữ và gạch */
}

.about-text h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0; /* gạch sát chân chữ */
  width: 100%; /* bằng chiều rộng chữ */
  height: 3px;
  background: #c0392b;
}

.about-text p {
  font-size: 1.2rem;
  line-height: 1.6;
}

.about-img img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Products */
/* === Products Section === */
.products {
  background: #f9f9f9;
  padding: 40px 10% 50px;
  text-align: center;
}

.products h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  position: relative;
  color: #c0392b;
  display: inline-block;
  padding-bottom: 6px;
}

.products h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: #c0392b;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* luôn 4 cột */
  gap: 30px;
  margin-top: 30px;
}

.product-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s;
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-price {
  font-size: 1rem;
  color: #e63946;
  font-weight: bold;
  margin-bottom: 10px;
}
.product-card:hover {
  transform: translateY(-8px);
}

/* ✅ Sửa phần ảnh của sản phẩm */
.product-card .img-box {
  width: 100%;
  aspect-ratio: 1 / 1;       /* Tỉ lệ khung vuông (có thể đổi 4/3 nếu muốn ngang) */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;       /* Nền xám nhẹ nếu ảnh nhỏ */
}

.product-card .img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;         /* Cắt ảnh vừa khung, không méo */
  display: block;
}

/* ✅ Giữ layout đều nhau */
.product-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s;
  overflow: hidden;
  min-height: 340px;        /* Giữ chiều cao tối thiểu đồng đều */
}

.product-card h3 {
  margin: 15px 10px 5px;
  font-size: 1.1rem;
  min-height: 45px;         /* Giữ chiều cao tiêu đề đều nhau */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.price {
  color: #c0392b;
  font-weight: 700;
  margin: 5px 0 15px;
  font-size: 1rem;
}

/* ✅ Giữ nút đều nhau */
.product-card .btn-detail {
  margin: 0 auto 15px;
}


.price {
  color: #c0392b;
  font-weight: 700;
  margin-bottom: 15px;
}

.btn-detail {
  background: #2980b9;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
  margin: 10px auto 20px;
  display: inline-block;
}

.btn-detail:hover {
  background: #3498db;
  color: #fff;
}

/* === Responsive === */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr); /* tablet: 2 sản phẩm/dòng */
  }
}

@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: 1fr; /* mobile: 1 sản phẩm/dòng */
  }
}

#thumbnailGallery img {
  opacity: 0.6;
  cursor: pointer;
  transition: opacity 0.3s ease;
  border-radius: 8px;
}

#thumbnailGallery img:hover {
  opacity: 1;
}

/* Ảnh chính */
#main-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}


/* Publications */
.publications {
   background: #f7efee;
   padding-bottom: 50px; /* khoảng cách từ product đến partners */
   padding-top: 40px;
   text-align: center; /* căn giữa toàn bộ h2 */
}
.publications h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  position: relative;
  color: #c0392b;
  display: inline-block;  /* để gạch chỉ dài theo chữ */
  padding-bottom: 6px;    /* khoảng cách chữ với gạch */
}

.publications h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0; /* gạch sát chữ */
  width: 100%; /* bằng chiều rộng chữ */
  height: 3px;
  background: #c0392b;
}

.publication-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 300px)); /* giới hạn max card */
  justify-content: center;
  gap: 30px;
  margin: 0 auto;
}

.publication-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s;
  text-align: center;
  overflow: hidden;
}

.publication-card:hover {
  transform: translateY(-8px);
}

.publication-card .img-box {
  height: 200px;
  position: relative;
}

.publication-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.publication-card h3 {
  margin: 15px 0;
  font-size: 1.1rem;
}

.price {
  color: #c0392b;
  font-weight: 700;
  margin-bottom: 15px;
}

.btn-detail {
  background: #2980b9; /* màu button khác nếu muốn */
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
  transition: background 0.3s;
}

.btn-detail:hover {
  background: #3498db;
  color: #fff;
}

/* Partners */
.partners {
  padding-bottom: 50px; /* khoảng cách từ product đến partners */
  padding-top: 40px;
}

.partners h2 {
  text-align: center;
  color: #c0392b;
  margin-bottom: 20px;
  font-size: 2.5rem;
}

.partners p {
  text-align: center;
  color: #555;
  margin-bottom: 40px;
  font-size: 1.2rem;
}

.partners-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1200px; /* giới hạn chiều rộng */
  margin: 0 auto;
}

.partner-card {
  flex: 0 0 150px; /* cố định chiều rộng */
  height: 100px;
  background: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}

.partner-card:hover {
  transform: translateY(-6px);
}

.partner-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Footer */
.footer {
  background: #2c3e50;
  color: #fff;
  padding: 50px 10% 20px;
  margin-top: auto; /* quan trọng để footer đẩy xuống đáy */
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo img {
  width: 100px;
  margin-bottom: 10px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
}

.footer-links a:hover {
  color: #c0392b;
}

.footer-contact p {
  font-size: 1rem;
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  font-size: 0.875rem;
  color: #ccc;
}


/* Responsive */
@media (max-width: 1024px) {
  .about-container, .product-grid, .partners-logos {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .about-container, .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .banner-content h1 {
    font-size: 2rem;
  }
  .banner-content p {
    font-size: 1rem;
  }
  .products h2, .about-text h2, .partners h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .main-header {
    flex-direction: column;
    padding: 10px 5%;
  }
  .navbar a {
    margin: 5px 0;
    font-size: 0.9rem;
  }
  .banner-content h1 {
    font-size: 1.5rem;
  }
  .banner-content p {
    font-size: 0.9rem;
  }
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* Product Detail */
.product-detail {
  max-width: 1000px;
  margin: 50px auto;
  padding: 20px;
}

#product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.detail-info {
  padding: 10px;
}

.detail-info h2 {
  font-size: 2rem;
  color: #c0392b;
  margin-bottom: 15px;
}

.detail-info p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
}

.detail-images {
  position: relative;
  width: 100%;
}

.detail-images img {
  display: none;
  width: 100%;
  height: 400px; 
  object-fit: cover;  
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.detail-images img.active {
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 20px;
  border-radius: 50%;
  transition: background 0.3s;
}

.carousel-btn:hover {
  background: rgba(0,0,0,0.8);
}

.carousel-btn.left { left: 10px; }
.carousel-btn.right { right: 10px; }

/* Responsive cho product-detail */
@media (max-width: 768px) {
  #product-detail {
    grid-template-columns: 1fr;
    text-align: center;
  }
}


/*đặt hàng*/
/* Modal đặt hàng */
.modal {
  display: none; /* Ẩn mặc định */
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  text-align: center;
}

.modal-content h3 {
  margin-bottom: 15px;
  color: #c0392b;
}

.modal-content input {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.modal-content .btn {
  width: 100%;
  padding: 12px;
  background: #c0392b;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.modal-content .btn:hover {
  background: #a93226;
}

.modal .close {
  position: absolute;
  top: 10px; right: 20px;
  font-size: 24px;
  cursor: pointer;
}

/* căn nút đặt hàng ngay */
/* --- Đảm bảo các cột cùng chiều cao --- */
#product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  /* IMPORTANT: stretch để các grid items có cùng chiều cao (bằng chiều cao hàng) */
  align-items: stretch;
}

/* .detail-info: biến thành column flex, đẩy nút xuống đáy */
.detail-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* đẩy nội dung trên & nút ra 2 cạnh */
  height: 100%;
  padding: 10px;
  box-sizing: border-box;
}

.order-btn-wrapper {
  width: 100%;
  text-align: center;  /* căn giữa nút theo chiều ngang */
  margin-top: 16px;
}

.order-btn-wrapper .btn {
  padding: 10px 26px;
  font-size: 16px;
  background: #c0392b;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.order-btn-wrapper .btn:hover {
  background: #a93226;
}

/* ================= Responsive cho PRODUCT DETAIL ================= */
@media (max-width: 1024px) {
  #product-detail {
    grid-template-columns: 1fr; /* tablet: 1 cột */
    gap: 20px;
  }
  .detail-images img {
    height: 300px;
  }
}

@media (max-width: 600px) {
  .detail-info h2 {
    font-size: 1.5rem;
  }
  .detail-info p {
    font-size: 1rem;
  }
  .order-btn-wrapper .btn {
    width: 100%;
    font-size: 0.95rem;
  }
}

/* ================= Responsive cho PUBLICATION DETAIL ================= */
.publication-detail {
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px;
}

.publication-detail .content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

@media (max-width: 1024px) {
  .publication-detail .content {
    grid-template-columns: 1fr; /* tablet: 1 cột */
  }
}

@media (max-width: 600px) {
  .publication-detail h2 {
    font-size: 1.6rem;
  }
  .publication-detail p {
    font-size: 1rem;
  }
  .publication-detail img {
    max-height: 250px;
    object-fit: cover;
  }
}

/* ====== Nút liên hệ cố định dưới đáy màn hình ====== */
.contact-fixed {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px; /* khoảng cách giữa 2 nút */
  z-index: 9999;
  font-family: Arial, sans-serif;
}

/* Style chung cho cả 2 nút */
.contact-fixed a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;   /* tăng padding để nút to hơn */
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;      /* chữ to hơn */
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  transition: opacity 0.3s, transform 0.2s;
  white-space: nowrap;
}

.contact-fixed a:hover {
  opacity: 0.85;
  transform: translateY(-2px); /* hover nhích lên nhẹ */
}

/* Nút gọi điện */
/* ==== Nút Liên hệ trong menu giống contact-fixed ==== */
.navbar .btn-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: #1b3b6f;        /* xanh đậm */
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border-radius: 10px;
  transition: opacity 0.3s, transform 0.2s;
  white-space: nowrap;
}

.navbar .btn-call:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.navbar .btn-call i {
  margin-right: 8px;
  font-size: 18px;
}


.contact-fixed .btn-call {
  background: #1b3b6f; /* xanh đậm */
}

.contact-fixed .btn-call i {
  margin-right: 8px;
  font-size: 18px;      /* icon to hơn */
}

/* Nút Zalo */
.contact-fixed .btn-zalo {
  background: #f58220; /* cam */
}

.contact-fixed .btn-zalo img {
  width: 22px;
  height: 22px;
  margin-right: 8px;
}

/* Mobile: vẫn to nhưng thu gọn hơn chút để vừa màn hình */
@media (max-width: 768px) {
  .contact-fixed a {
    font-size: 14px;
    padding: 12px 18px;
    border-radius: 8px;
  }

  .contact-fixed .btn-zalo img {
    width: 20px;
    height: 20px;
    margin-right: 6px;
  }
}

/* ====== Desktop (>= 769px) ====== */
#menu-toggle {
  display: none; /* Ẩn ☰ */
}

#navbar {
  display: flex;         /* Menu ngang */
  gap: 20px;
  align-items: center;
}

/* ====== Mobile (<= 768px) ====== */
@media (max-width: 992px) {
  .main-header {
    padding: 12px 5%;
  }
  .logo img {
    width: 60px; /* nhỏ logo trên màn hình hẹp */
    margin-left: 0;
  }
  .brand h1 { font-size: 1.15rem; }

  /* Hiện nút ☰ */
  #menu-toggle {
    display: block;
    font-size: 28px;
    cursor: pointer;
    margin-left: auto;
  }

  #navbar {
    display: none;       /* Ẩn mặc định */
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 70px;           /* chỉnh theo chiều cao header */
    left: 0;
    width: 100%;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
  }

  #navbar.active {
    display: flex;       /* Bấm ☰ thì hiện menu */
  }

  #navbar a {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
  }

  #navbar a:last-child {
    border-bottom: none;
  }
}

/* ====== Cam kết dịch vụ ====== */
.service-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 30px 20px;
  background: #f8f8f8;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  text-align: center;
}

.service-features .feature-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333;
}

.service-features .feature-box i {
  font-size: 36px;
  margin-bottom: 10px;
  color: #444;
}

.service-features .feature-box h4 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 5px;
}

.service-features .feature-box p {
  font-size: 14px;
  color: #666;
  margin: 0;
}

/* Responsive: khi màn hình nhỏ thì xuống 2 cột */
@media (max-width: 768px) {
  .service-features {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

/* Mobile nhỏ hơn nữa thì xuống 1 cột */
@media (max-width: 480px) {
  .service-features {
    grid-template-columns: 1fr;
  }
}


/* Modal chung */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0,0,0,0.4);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
  animation: fadeIn 0.3s ease;
}

.modal-content.success h2 {
  color: #27ae60;
  margin-bottom: 10px;
}

.modal-content .close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 22px;
  cursor: pointer;
  color: #555;
}

.modal-content .btn {
  background: #27ae60;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.modal-content .btn:hover {
  background: #2ecc71;
}

@keyframes fadeIn {
  from {opacity: 0; transform: translateY(-20px);}
  to {opacity: 1; transform: translateY(0);}
}

