/* Reset & Fonts */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: clip;
   /*rất quan trọng để tránh bị tràn viền dính khoảng trắng */
}

body, html {
  font-family: 'Roboto', sans-serif;
  color: white;
  height: 100%;
}

/* -------------------------- Hero Section -------------------------- */
.hero-header {
  position: relative;
  height: 100vh;
  background: url('picture/background.jpg') center/cover no-repeat fixed; 
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;     /* căn giữa theo chiều ngang */
  text-align: center;  
}

/*--------------------- subpage header ---------------------*/



/* ------------------------------ Top Navigation ------------------------------ */
.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 60px;
  background: transparent; /* fully transparent */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

.logo img {
  height: 120px;
}

/* Navigation Links */

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  letter-spacing: 2px;
  font-size: 14px;
  position: relative;
  padding: 6px 6px;
  transition: transform 0.3s ease; /* Hiệu ứng zoom nhẹ */
}

.nav-links a:hover {
  color: #FFD700;
  transform: scale(1.1); /* Zoom nhẹ khi hover */
}

.nav-links a:hover::after {
  content: '';
  position: absolute;
  bottom: 0px; /* Điều chỉnh vị trí để ô vuông không chồng lên chữ */
  left: -6px; /* Mở rộng sang trái */
  right: -6px; /* Mở rộng sang phải */
  height: 30px; /* Tăng chiều cao ô vuông */
  background-color: #1C4278; /* Nền xanh */
  z-index: -1;
  border-radius: 10px; /*  bo góc */
}

.nav-links a.active {
  background-color: #1C4278;
  padding: 6px 6px;
  border-radius: 4px;
  color: #FBDC47;
}

/* ------------------------------------------ Hamburger Menu ------------------------------------------ */
.hamburger {
  display: none; /* Ẩn trên desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1000;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin: 5px 0;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ------------------------- Cart Icon ------------------------- */
/* .cart-icon {
  position: relative;
  color: #fff;
}

.cart-icon .cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: #003366;
  color: #fff;
  border-radius: 50%;
  font-size: 10px;
  padding: 2px 6px;
} */

/* Hero Text */
.hero-content {
   max-width: 90%;       /* Giới hạn chiều rộng nội dung */
  margin: 0 auto;       /* Căn giữa ngang */
  text-align: center;   /* Chữ căn giữa */
  padding: 0 10px;      /* Tránh tràn ra ngoài màn hình */
  box-sizing: border-box;
  word-wrap: break-word; /* Chữ dài tự xuống dòng */
  overflow-wrap: break-word; /* Backup cho trình duyệt khác */
  
  /* position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center; */
}


.hero-content h1 {
  font-size: 90px;
  font-family: 'Roboto', sans-serif;
  font-weight: 530;
  color: #FBDC47;
  letter-spacing: 10px;
}

.hero-content p {
  font-size: 30px;
  font-family: 'Roboto', sans-serif;
  
  letter-spacing: 10px;
  color: #FBDC47;
  margin: 20px 0 40px;
}

.explore-btn {
  display: inline-block;
  background-color: #e63946;
  color: white;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 2px;
  padding: 14px 40px;
  border-radius: 40px;
  transition: 0.3s ease;
}

.explore-btn:hover {
  background-color: #c62828;
}

/* Three-column layout */
.three-columns {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  text-align: left;
  padding: 20px 100px;
  background-color: #1C4278; /* màu nền xanh */
  color: #fff; /* chữ trắng để nổi trên nền xanh */
  position: relative;
  z-index: 2;
}


.column {
  width: 100%;
}

.column h2 {
  font-family: 'Roboto Slab', serif;
  font-size: 28px;
  margin-bottom: 15px;
  color: #fff;
}

.column p {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 25px;
}



.image-placeholder {
  width: 100%;
  height: 400px;
  background-color: #ddd;
  border-radius: 10px;
  background-size: cover; /* Giữ tỷ lệ ảnh, không bị méo */
  background-position: center; /* Căn giữa ảnh */
  background-repeat: no-repeat; /* Ngăn lặp ảnh */
  border-radius: 10px; /* Giữ bo góc */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Đổ bóng nhẹ */
  transition: transform 0.3s ease; /* Hiệu ứng hover zoom */
}



.image-placeholder:hover {
  transform: scale(1.05); /* Zoom nhẹ khi hover */
}


/*-------------------------three-experiences------------------------------*/
.three-experiences {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 60px;
  padding: 60px 100px;
  background-color: #1C4278;
  color: #fff;
  position: relative;
  z-index: 2;
  overflow-x: hidden;
}

.experience-card {
  width: 300px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Space giữa tiêu đề, nội dung, và ảnh */
  height: 100%; /* Đảm bảo chiều cao tối đa */
  min-height: 500px; /* Đặt chiều cao tối thiểu để nội dung không bị ép quá nhỏ */
}

.experience-card h2 {
  font-family: 'Roboto Slab', serif;
  font-size: 28px;
  margin-bottom: 15px;
  color: #FBDC47;
  flex-shrink: 0;
}

.experience-card p {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 25px;
  color: #fff;
  flex-grow: 0; /* Không cho phép nội dung mở rộng quá mức */
  overflow: hidden; /* Ngăn nội dung tràn ra ngoài cột */
  padding: 0 10px; /* Thêm padding nhẹ để nội dung không chạm biên */
}

.experience-link {
  display: block;
  text-decoration: none;
  width: 100%;
  flex-shrink: 0; /* Ngăn ảnh co lại */
}

.experience-link .image-placeholder {
  width: 100%;
  height: 300px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.experience-link .image-placeholder:hover {
  transform: scale(1.05);
}




/* -------------------------------- Responsive adjustments for headers --------------------------------  */
@media (max-width: 768px) {
  *{
    overflow-x: hidden;
  }
  

  .hero-header {
    height: 100vh; /* Giảm chiều cao để phù hợp tablet/mobile, giữ không gian trải nghiệm */
    background: url('picture/background.jpg') center/cover no-repeat;
    background-attachment: scroll;
    background-color: #000;
  }
  .subpage-header {
    height: 60px; /* Giảm chiều cao header phụ cho màn hình nhỏ, tăng tính di động */
    padding: 0 30px; /* Giảm padding để tiết kiệm không gian */
  }
  .hero-content h1 {
    font-size: 40px; /* giảm chữ */
    font-weight: 500;

    letter-spacing: 2px; /* giảm khoảng cách */
  }
  .hero-content p {
    font-size: 16px;
    letter-spacing: 1px; /* giảm khoảng cách */
  }
  .explore-btn {
    padding: 12px 30px; /* Thu nhỏ nút cho phù hợp */
  }
  .nav-bar {
    padding: 15px 30px; /* Điều chỉnh padding cho mobile */
  }
  .hamburger {
    display: block; /* Hiển thị hamburger trên mobile */
  }
  .nav-links {
    padding: 60px 100px 20px;
    display: none; /* Ẩn menu mặc định */
     /* Hiệu ứng mượt mà */
  }
  .nav-links.open {
  flex-direction: column;
  position: fixed;
  top: 80px; /* Dịch xuống dưới header */
  right: 88px; /* Hiển thị ở bên phải */
  width: 200px; /* Ô vuông nhỏ dọc, chiều rộng cố định */
  height: auto; /* Chiều cao tự động dựa trên nội dung */
  background: rgba(28, 66, 120, 0.95); /* Nền xanh đậm với độ trong suốt */
  padding: 15px 10px; /* Padding nhỏ gọn */
  z-index: 1000; /* Đảm bảo hiển thị trên các phần khác */
  text-align: center;
  border-radius: 10px; /* Bo góc nhẹ cho sang trọng */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Đổ bóng nhẹ */
  display: flex; /* Hiển thị khi toggle */
  transition: all 0.3s ease;
}

.nav-links.open a, .nav-links.open .cart-icon {
  text-align: center;
  margin: 10px 0; /* Khoảng cách hợp lý giữa các item */
  font-size: 16px; /* Kích thước chữ dễ đọc */
  color: #fff;
  width: 100%; /* Đảm bảo item chiếm toàn width của menu */
}

.nav-links.open a:hover {
  color: #FFD700;
}
.three-columns {
    flex-direction: column; /* Chuyển sang dọc */
    gap: 40px; /* Tăng khoảng cách giữa các cột */
    padding: 20px 20px; /* Padding nhẹ cho mobile */
  }

  .column {
    width: 100%; /* Chiếm full width */
    text-align: center; /* Căn giữa nội dung */
  }

  .image-placeholder {
    height: 500px;
    width: 100%; /* Giảm chiều cao để phù hợp màn hình nhỏ */
    margin-top: 15px; /* Khoảng cách từ text đến ảnh */
  }

  .three-experiences {
    flex-direction: column; /* Chuyển sang dọc */
    gap: 40px; /* Khoảng cách giữa các thẻ experience */
    padding: 20px 20px;
  }

  .experience-card {
    width: 100%; /* Chiếm full width */
    text-align: center;
  }

  .experience-link .image-placeholder {
    height: 500px; /* Giảm chiều cao cho mobile */
    margin-top: 15px;
  }
  
}

@media (max-width: 480px) {
  *{
    overflow-x: clip;
  }

  .nav-links {
    display: none; /* Ẩn menu mặc định trên mobile */
    
  }
  .nav-links.open { /* Class để toggle khi click hamburger */
    display: flex;
    flex-direction: column; /* Chuyển sang dọc khi mở */
    position: absolute; 
    top: 70%; /* Đặt ngay dưới nav-bar */
    left: 50%;
    width: 40%;
    background: #1C4278; /* Nền xanh để nổi bật */
    padding: 20px 0;
    z-index: 9;

  }
  .hero-header {
    height: 100vh; /* Giảm thêm cho mobile nhỏ, tập trung vào nội dung nhanh */
    background: url('picture/background.jpg') center/cover no-repeat;
    background-attachment: scroll;
    background-color: #000;
  }
  .subpage-header {
    height: 50px;
    padding: 0 20px;
  }
  .hero-content h1 {
    font-size: 35px;
    font-weight: 500;

    letter-spacing: 4px;
  }
  .hero-content p {
    font-size: 16px;
    letter-spacing: 4px;
  }
  .explore-btn {
    padding: 10px 25px;
  }

  .three-columns {
    padding: 20px 10px; /* Giảm thêm padding cho màn hình nhỏ hơn */
  }
  .image-placeholder {
    height: 250px; /* Tối ưu chiều cao cho mobile nhỏ, tránh lướt dài */
  }
  .three-columns {
    padding: 10px; /* Giảm padding cho mobile nhỏ */
    gap: 30px;
  }

  .image-placeholder {
    height: 350px; /* Tối ưu thêm cho mobile nhỏ */
  }

  .three-experiences {
    padding: 10px;
    gap: 30px;
  }

  .experience-link .image-placeholder {
    height: 200px; /* Tối ưu thêm cho mobile nhỏ */
  }
}

/*-------------------------FOOTER------------------------------*/





