/* Base styles for the nổ hũ page */
.page-nh {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  padding-bottom: 50px;
}

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

.page-nh__section-title {
  font-size: 2.8em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #F2C14E; /* Gold */
  letter-spacing: 1px;
  line-height: 1.2;
}

.page-nh__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-nh__text-secondary {
  color: #A7D9B8; /* Text Secondary */
}

.page-nh__inline-link {
  color: #2AD16F; /* Lighter green for links */
  text-decoration: underline;
}

/* Hero Section */
.page-nh__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-nh__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Max height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}

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

.page-nh__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-nh__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive H1 font size */
  font-weight: 800;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 15px rgba(242, 193, 78, 0.4);
}

.page-nh__description {
  font-size: 1.2em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-nh__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-nh__btn-primary,
.page-nh__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-nh__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(17, 168, 78, 0.6);
}

.page-nh__btn-secondary {
  background: transparent;
  color: #2AD16F;
  border: 2px solid #2AD16F;
}

.page-nh__btn-secondary:hover {
  background: #2AD16F;
  color: #08160F;
  transform: translateY(-3px);
}

.page-nh__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
  border-radius: 30px;
}

/* Introduction Section */
.page-nh__introduction-section {
  padding: 60px 0;
  background-color: #0A4B2C; /* Deep Green */
  border-top: 1px solid #1E3A2A; /* Divider */
  border-bottom: 1px solid #1E3A2A; /* Divider */
}

/* Games Showcase Section */
.page-nh__games-showcase {
  padding: 60px 0;
  background-color: #11271B; /* Card BG */
}

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

.page-nh__game-card {
  background-color: #08160F; /* Background */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-nh__game-title {
  font-size: 1.5em;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
  padding: 0 15px;
}

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

.page-nh__view-all-games {
  text-align: center;
  margin-top: 50px;
}

/* How To Play Section */
.page-nh__how-to-play-section {
  padding: 60px 0;
  background-color: #0A4B2C; /* Deep Green */
  border-top: 1px solid #1E3A2A; /* Divider */
  border-bottom: 1px solid #1E3A2A; /* Divider */
}

.page-nh__steps-list {
  list-style: none;
  padding: 0;
  margin: 40px auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 800px;
}

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

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

.page-nh__step-description {
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
}

/* Tips & Strategies Section */
.page-nh__tips-strategies-section {
  padding: 60px 0;
  background-color: #11271B; /* Card BG */
}

.page-nh__tips-list {
  list-style: none;
  padding: 0;
  margin: 40px auto 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1000px;
}

.page-nh__tip-item {
  background-color: #08160F; /* Background */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-nh__tip-title {
  font-size: 1.3em;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
}

.page-nh__tip-description {
  font-size: 0.95em;
  color: #A7D9B8; /* Text Secondary */
}

/* Promotions Section */
.page-nh__promotions-section {
  padding: 60px 0;
  background-color: #0A4B2C; /* Deep Green */
  border-top: 1px solid #1E3A2A; /* Divider */
  border-bottom: 1px solid #1E3A2A; /* Divider */
  text-align: center;
}

.page-nh__promo-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  margin: 30px auto;
  display: block;
}

.page-nh__promo-list {
  list-style: none;
  padding: 0;
  margin: 30px auto;
  max-width: 700px;
  text-align: left;
}

.page-nh__promo-item {
  background-color: #11271B; /* Card BG */
  border-left: 5px solid #2AD16F;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  color: #F2FFF6; /* Text Main */
  font-size: 1.05em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Why Choose Section */
.page-nh__why-choose-section {
  padding: 60px 0;
  background-color: #11271B; /* Card BG */
}

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

.page-nh__feature-card {
  background-color: #08160F; /* Background */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-nh__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

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

.page-nh__feature-description {
  font-size: 0.95em;
  color: #A7D9B8; /* Text Secondary */
}

/* FAQ Section */
.page-nh__faq-section {
  padding: 60px 0;
  background-color: #0A4B2C; /* Deep Green */
  border-top: 1px solid #1E3A2A; /* Divider */
}

.page-nh__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

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

.page-nh__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  position: relative;
  list-style: none; /* For details/summary */
}

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

.page-nh__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #F2C14E; /* Gold */
}

details[open] .page-nh__faq-toggle {
  transform: rotate(45deg);
}

.page-nh__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.6;
}

/* Final CTA Section */
.page-nh__final-cta-section {
  padding: 60px 0;
  background-color: #11271B; /* Card BG */
  text-align: center;
  border-top: 1px solid #1E3A2A; /* Divider */
}

/* Dark/Light BG Classes for contrast */
.page-nh__dark-section {
  background-color: #0A4B2C;
  color: #F2FFF6;
}

.page-nh__light-bg {
  background-color: #11271B;
  color: #F2FFF6;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-nh__section-title {
    font-size: 2.2em;
  }

  .page-nh__main-title {
    font-size: clamp(2em, 4.5vw, 3em);
  }

  .page-nh__description {
    font-size: 1.1em;
  }

  .page-nh__games-grid,
  .page-nh__tips-list,
  .page-nh__features-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }

  .page-nh__game-image {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .page-nh {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-nh__container {
    padding: 0 15px !important;
  }

  /* HERO Section */
  .page-nh__hero-section {
    padding-top: 10px !important; /* Keep small padding top */
    padding-bottom: 40px !important;
  }

  .page-nh__hero-image-wrapper {
    margin-bottom: 30px !important;
  }

  .page-nh__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-nh__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em) !important;
    margin-bottom: 15px !important;
  }

  .page-nh__description {
    font-size: 1em !important;
    margin-bottom: 30px !important;
  }

  .page-nh__cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 15px !important;
  }

  .page-nh__btn-primary,
  .page-nh__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Section Titles */
  .page-nh__section-title {
    font-size: 1.8em !important;
    margin-bottom: 30px !important;
  }

  .page-nh__text-block {
    font-size: 0.95em !important;
  }

  /* Game Showcase */
  .page-nh__games-showcase,
  .page-nh__introduction-section,
  .page-nh__how-to-play-section,
  .page-nh__tips-strategies-section,
  .page-nh__promotions-section,
  .page-nh__why-choose-section,
  .page-nh__faq-section,
  .page-nh__final-cta-section {
    padding: 40px 0 !important;
  }

  .page-nh__games-grid {
    grid-template-columns: 1fr !important; /* Single column for games */
    gap: 20px !important;
  }

  .page-nh__game-card {
    padding-bottom: 15px !important;
  }

  .page-nh__game-image {
    max-width: 100% !important;
    width: 100% !important;
    height: 150px !important; /* Adjust height for mobile */
  }

  .page-nh__game-title {
    font-size: 1.3em !important;
  }

  .page-nh__game-description {
    font-size: 0.9em !important;
  }

  .page-nh__view-all-games {
    margin-top: 30px !important;
  }

  /* How To Play */
  .page-nh__steps-list {
    gap: 20px !important;
    margin-top: 30px !important;
  }

  .page-nh__step-item {
    padding: 20px !important;
  }

  .page-nh__step-title {
    font-size: 1.2em !important;
  }

  /* Tips & Strategies */
  .page-nh__tips-list {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    margin-top: 30px !important;
  }

  .page-nh__tip-item {
    padding: 20px !important;
  }

  .page-nh__tip-title {
    font-size: 1.1em !important;
  }

  /* Promotions */
  .page-nh__promo-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin: 20px auto !important;
  }

  .page-nh__promo-list {
    margin: 20px auto !important;
    padding: 0 15px !important;
  }

  .page-nh__promo-item {
    padding: 12px 15px !important;
    font-size: 0.95em !important;
  }

  /* Why Choose */
  .page-nh__features-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .page-nh__feature-card {
    padding: 20px !important;
  }

  .page-nh__feature-icon {
    width: 80px !important;
    height: 80px !important;
  }

  .page-nh__feature-title {
    font-size: 1.2em !important;
  }

  /* FAQ Section */
  .page-nh__faq-list {
    margin-top: 30px !important;
  }

  .page-nh__faq-question {
    padding: 15px 20px !important;
    font-size: 1em !important;
  }

  .page-nh__faq-answer {
    padding: 0 20px 15px !important;
    font-size: 0.95em !important;
  }

  /* Ensure all images are responsive */
  .page-nh img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-nh__hero-section,
  .page-nh__introduction-section,
  .page-nh__games-showcase,
  .page-nh__how-to-play-section,
  .page-nh__tips-strategies-section,
  .page-nh__promotions-section,
  .page-nh__why-choose-section,
  .page-nh__faq-section,
  .page-nh__final-cta-section,
  .page-nh__container,
  .page-nh__game-card,
  .page-nh__step-item,
  .page-nh__tip-item,
  .page-nh__feature-card,
  .page-nh__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll for sections/containers */
  }
}

@media (max-width: 480px) {
  .page-nh__section-title {
    font-size: 1.6em !important;
  }

  .page-nh__main-title {
    font-size: clamp(1.6em, 9vw, 2.2em) !important;
  }
}