/* style/nh.css */
/* body đã padding-top: var(--header-offset) từ shared.css */
/* Page background */
.page-nh {
  background-color: #08160F;
  color: #F2FFF6; /* Text Main */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-nh__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
}

.page-nh__text-block {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #A7D9B8; /* Text Secondary */
}

/* Hero Section */
.page-nh__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, body handles header offset */
  background: linear-gradient(180deg, #0A4B2C 0%, #08160F 100%); /* Deep Green to Background */
  overflow: hidden;
}

.page-nh__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for aesthetic */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.page-nh__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-nh__hero-content {
  position: relative; /* Ensure content is above image but not overlapping */
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: 40px 20px;
  margin-top: -150px; /* Pull content up slightly over the bottom of the image for visual flow */
  background: rgba(8, 22, 15, 0.7); /* Background color with opacity */
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-nh__hero-title {
  font-size: clamp(2.5em, 5vw, 3.8em); /* Responsive font size */
  font-weight: 900;
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-nh__hero-description {
  font-size: 1.2em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-nh__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.page-nh__btn-primary,
.page-nh__btn-secondary,
.page-nh__btn-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
}

.page-nh__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6; /* Text Main */
  border: none;
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-nh__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 8px 20px rgba(42, 209, 111, 0.6);
  transform: translateY(-2px);
}

.page-nh__btn-secondary {
  background: transparent;
  color: #57E38D; /* Glow */
  border: 2px solid #57E38D;
}

.page-nh__btn-secondary:hover {
  background: #57E38D;
  color: #08160F; /* Background */
  transform: translateY(-2px);
}

.page-nh__btn-small {
  padding: 10px 20px;
  font-size: 0.95em;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  border: none;
}

.page-nh__btn-small:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-1px);
}

.page-nh__cta-buttons--center {
  text-align: center;
  margin-top: 30px;
}

/* Intro Section */
.page-nh__intro-section {
  padding: 60px 0;
  background-color: #08160F;
}

/* Featured Games Section */
.page-nh__featured-games {
  padding: 60px 0;
  background-color: #11271B; /* Card BG */
}

.page-nh__game-cards-grid,
.page-nh__promo-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-nh__game-card,
.page-nh__promo-card {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #F2FFF6;
}

.page-nh__game-card:hover,
.page-nh__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

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

.page-nh__card-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.page-nh__card-title {
  font-size: 1.5em;
  font-weight: bold;
  color: #F2C14E; /* Gold */
  margin-bottom: 10px;
}

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

/* Game Mechanics Section */
.page-nh__game-mechanics {
  padding: 60px 0;
  background-color: #08160F;
}

.page-nh__mechanics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

.page-nh__mechanic-title {
  font-size: 1.4em;
  font-weight: bold;
  color: #57E38D; /* Glow */
  margin-bottom: 15px;
}

/* Strategy Guide Section */
.page-nh__strategy-guide {
  padding: 60px 0;
  background-color: #11271B; /* Card BG */
}

.page-nh__strategy-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-nh__list-item {
  background-color: #0A4B2C; /* Deep Green */
  margin-bottom: 15px;
  padding: 20px 25px;
  border-radius: 8px;
  font-size: 1.1em;
  color: #F2FFF6; /* Text Main */
  border-left: 5px solid #F2C14E; /* Gold */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-nh__list-item strong {
  color: #F2C14E; /* Gold */
}

/* Promotions Section */
.page-nh__promotions-section {
  padding: 60px 0;
  background-color: #08160F;
}

/* Registration Guide Section */
.page-nh__registration-guide {
  padding: 60px 0;
  background-color: #11271B; /* Card BG */
}

.page-nh__guide-list {
  list-style: decimal;
  padding-left: 25px;
  margin-top: 30px;
  color: #A7D9B8; /* Text Secondary */
}

.page-nh__guide-list .page-nh__list-item {
  background-color: transparent;
  border-left: none;
  box-shadow: none;
  padding: 10px 0;
  margin-bottom: 10px;
  font-size: 1.1em;
}

.page-nh__guide-list .page-nh__list-item strong {
  color: #F2FFF6; /* Text Main */
}

/* FAQ Section */
.page-nh__faq-section {
  padding: 60px 0;
  background-color: #08160F;
}

.page-nh__faq-list {
  margin-top: 40px;
}

.page-nh__faq-item {
  background-color: #11271B; /* Card BG */\  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #F2FFF6;
}

.page-nh__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #F2C14E; /* Gold */
  cursor: pointer;
  user-select: none;
  background-color: #0A4B2C; /* Deep Green */
  transition: background-color 0.3s ease;
}

.page-nh__faq-item[open] .page-nh__faq-question {
  background-color: #13994A; /* Darker green on open */
}

.page-nh__faq-question:hover {
  background-color: #13994A;
}

.page-nh__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #F2FFF6;
  margin-left: 15px;
}

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

.page-nh__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-nh__faq-item summary {
  list-style: none;
}

/* Conclusion Section */
.page-nh__conclusion-section {
  padding: 60px 0 80px 0;
  background-color: #08160F;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-nh__hero-content {
    margin-top: -100px;
  }
  .page-nh__section-title {
    font-size: 2em;
  }
  .page-nh__card-title {
    font-size: 1.3em;
  }
  .page-nh__mechanic-title {
    font-size: 1.2em;
  }
}

@media (max-width: 768px) {
  .page-nh__hero-section {
    padding-bottom: 40px;
  }
  .page-nh__hero-image-wrapper {
    max-height: 400px;
  }
  .page-nh__hero-content {
    margin-top: -80px;
    padding: 30px 15px;
  }
  .page-nh__hero-title {
    font-size: clamp(2em, 8vw, 2.8em);
  }
  .page-nh__hero-description {
    font-size: 1em;
  }
  .page-nh__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-nh__btn-primary,
  .page-nh__btn-secondary,
  .page-nh__btn-small {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-nh__game-cards-grid,
  .page-nh__promo-cards-grid,
  .page-nh__mechanics-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-nh__container,
  .page-nh__game-card,
  .page-nh__promo-card,
  .page-nh__mechanic-item,
  .page-nh__list-item,
  .page-nh__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-nh__section-title {
    font-size: 1.8em;
    padding-top: 20px;
  }
  .page-nh__text-block, .page-nh__list-item, .page-nh__card-description, .page-nh__faq-answer p {
    font-size: 0.95em;
  }
  .page-nh__card-image,
  .page-nh__hero-image {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}

@media (max-width: 480px) {
  .page-nh__hero-content {
    margin-top: -60px;
    padding: 20px 10px;
  }
  .page-nh__hero-title {
    font-size: clamp(1.8em, 10vw, 2.5em);
  }
  .page-nh__section-title {
    font-size: 1.5em;
  }
  .page-nh__faq-question {
    font-size: 1.1em;
    padding: 15px 10px;
  }
  .page-nh__faq-answer {
    padding: 10px 10px 15px 10px;
  }
}

/* Ensure all images are responsive and do not cause overflow */
.page-nh img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ensure video responsiveness */
.page-nh video,
.page-nh__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

.page-nh__video-section,
.page-nh__video-container,
.page-nh__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 768px) {
  .page-nh img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-nh video,
  .page-nh__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-nh__video-section,
  .page-nh__video-container,
  .page-nh__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-nh__video-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
  }
}