/* style/nh.css */
/* body đã padding-top: var(--header-offset)；trang này cấm viết lại biến đó */

/* Phong cách chung cho phạm vi trang-nh */
.page-nh {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
}

.page-nh__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-nh__section {
  padding: 60px 0;
  text-align: center;
}

.page-nh__section-title {
  font-size: 2.5em;
  color: #F2C14E; /* Gold */
  margin-bottom: 30px;
  font-weight: bold;
}

.page-nh__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #F2FFF6; /* Text Main */
}

.page-nh__image-content {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Enforce minimum size for content images */
  min-height: 200px; /* Enforce minimum size for content images */
}

/* Hero Section */
.page-nh__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh; /* Điều chỉnh khi cần */
  overflow: hidden;
  padding-top: 10px; /* Padding trên nhỏ, body xử lý --header-offset */
  padding-bottom: 60px;
  background-color: #08160F; /* Đảm bảo nền khớp */
}

.page-nh__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.page-nh__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Làm mờ hình ảnh nền một chút để dễ đọc văn bản */
}

.page-nh__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.5); /* Lớp phủ bán trong suốt để dễ đọc văn bản */
  border-radius: 10px;
}

.page-nh__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Kích thước font H1 đáp ứng */
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 1px;
}

.page-nh__intro-text {
  font-size: 1.2em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 30px;
}

.page-nh__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: none; /* Đảm bảo không có viền nút mặc định */
}

.page-nh__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-nh__cta-button--bottom {
  margin-top: 40px;
}

.page-nh__cta-button--final {
  margin-top: 50px;
  font-size: 1.2em;
  padding: 18px 35px;
}

/* Feature List Section */
.page-nh__feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-nh__feature-item {
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border */
}

.page-nh__feature-heading {
  font-size: 1.5em;
  color: #57E38D; /* Glow */
  margin-bottom: 15px;
}

/* Game Cards Section */
.page-nh__game-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-nh__game-card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  border: 1px solid #2E7A4E; /* Border */
}

.page-nh__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-nh__card-title {
  font-size: 1.3em;
  margin: 20px 15px 10px;
  color: #F2C14E; /* Gold */
}

.page-nh__card-title a {
  color: #F2C14E; /* Gold */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-nh__card-title a:hover {
  color: #57E38D; /* Glow */
}

.page-nh__card-description {
  font-size: 0.95em;
  color: #A7D9B8; /* Text Secondary */
  padding: 0 15px;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-nh__card-button {
  display: block;
  margin: 0 15px 20px;
  padding: 10px 20px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1em;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
}

.page-nh__card-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

/* How to Play Section */
.page-nh__step-by-step {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-nh__step-item {
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border */
}

.page-nh__step-heading {
  font-size: 1.4em;
  color: #57E38D; /* Glow */
  margin-bottom: 15px;
}

/* Winning Tips Section */
.page-nh__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  text-align: left;
}

.page-nh__tips-item {
  background-color: #11271B; /* Card BG */
  padding: 25px 30px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border */
}

.page-nh__tips-heading {
  font-size: 1.3em;
  color: #F2C14E; /* Gold */
  margin-bottom: 10px;
}

/* FAQ Section */
.page-nh__faq-list {
  margin-top: 40px;
  text-align: left;
}

.page-nh__faq-item {
  background-color: #11271B; /* Card BG */
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #2E7A4E; /* Border */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.page-nh__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  background-color: #0A4B2C; /* Deep Green */
  transition: background-color 0.3s ease;
  list-style: none; /* Cho details/summary */
}

.page-nh__faq-question::-webkit-details-marker {
  display: none; /* Ẩn dấu mặc định cho Chrome/Safari */
}

.page-nh__faq-question:hover {
  background-color: #13994A; /* Màu xanh lá cây hơi nhạt hơn khi di chuột */
}

.page-nh__faq-qtext {
  flex-grow: 1;
}

.page-nh__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #57E38D; /* Glow */
}

.page-nh__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  background-color: #11271B; /* Card BG */
  border-top: 1px solid #1E3A2A; /* Divider */
}

/* Conclusion Section */
.page-nh__conclusion {
  padding-bottom: 80px;
}

/* Điều chỉnh đáp ứng */
@media (max-width: 1024px) {
  .page-nh__section-title {
    font-size: 2em;
  }
  .page-nh__main-title {
    font-size: clamp(2em, 4.5vw, 3em);
  }
}

@media (max-width: 768px) {
  .page-nh__section {
    padding: 40px 0;
  }
  .page-nh__section-title {
    font-size: 1.8em;
  }
  .page-nh__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }
  .page-nh__intro-text {
    font-size: 1em;
  }
  .page-nh__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-nh__hero-content {
    padding: 15px;
  }
  
  /* Đáp ứng hình ảnh di động */
  .page-nh img {
    max-width: 100% !important;
    width: 100% !important; /* Thêm vào cho ràng buộc di động */
    height: auto !important;
    display: block !important;
  }
  
  /* Tất cả các container có hình ảnh/video cũng phải được ràng buộc */
  .page-nh__section,
  .page-nh__container,
  .page-nh__game-card,
  .page-nh__feature-item,
  .page-nh__step-item,
  .page-nh__tips-item,
  .page-nh__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ngăn cuộn ngang từ nội dung */
  }

  /* Padding cụ thể cho phần hero trên di động */
  .page-nh__hero-section {
    padding-top: 10px !important; /* body đã xử lý --header-offset */
    padding-left: 0;
    padding-right: 0;
  }

  /* Đáp ứng nút di động */
  .page-nh__cta-button,
  .page-nh__card-button,
  .page-nh a[class*="button"],
  .page-nh a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px; /* Thêm padding để ngăn văn bản chạm cạnh */
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Nếu nhiều nút trong một container flex, đảm bảo chúng xuống dòng */
  .page-nh__cta-buttons,
  .page-nh__button-group,
  .page-nh__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important; /* Cho phép các nút xuống dòng */
    gap: 10px; /* Khoảng cách giữa các nút đã xuống dòng */
    justify-content: center; /* Căn giữa các nút nếu xuống dòng */
  }

  .page-nh__game-card,
  .page-nh__feature-item,
  .page-nh__step-item {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 480px) {
  .page-nh__section-title {
    font-size: 1.5em;
  }
  .page-nh__main-title {
    font-size: clamp(1.5em, 7vw, 2em);
  }
  .page-nh__feature-heading,
  .page-nh__step-heading,
  .page-nh__tips-heading {
    font-size: 1.2em;
  }
  .page-nh__card-title {
    font-size: 1.1em;
  }
  .page-nh__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-nh__faq-answer {
    padding: 10px 20px 15px;
  }
}

/* Đảm bảo hình ảnh nội dung không quá nhỏ trong khu vực nội dung */
/* Quy tắc này áp dụng cho bất kỳ phần tử img nào trong phạm vi .page-nh */
.page-nh img:not(.page-nh__hero-image) {
  min-width: 200px; /* Thực thi kích thước tối thiểu cho hình ảnh nội dung */
  min-height: 200px; /* Thực thi kích thước tối thiểu cho hình ảnh nội dung */
}

/* CSS cho độ tương phản màu dựa trên nền body */
/* Nền body là #08160F (tối), vì vậy sử dụng văn bản sáng */
.page-nh {
  color: #F2FFF6; /* Text Main */
}

.page-nh__card,
.page-nh__feature-item,
.page-nh__game-card,
.page-nh__step-item,
.page-nh__tips-item,
.page-nh__faq-item {
  background-color: #11271B; /* Card BG */
  color: #F2FFF6; /* Text Main */
}

/* Các phần tử văn bản cụ thể có thể sử dụng màu phụ */
.page-nh__card-description,
.page-nh__faq-answer p {
  color: #A7D9B8; /* Text Secondary */
}

/* Các nút đã có màu cụ thể */
/* Các liên kết trong thẻ đã có màu cụ thể */