/* style/nh.css */

:root {
  --page-primary-color: #26A9E0;
  --page-secondary-color: #FFFFFF;
  --page-text-dark: #333333;
  --page-text-light: #ffffff;
  --page-accent-login: #EA7C07;
  --page-background-light: #FFFFFF;
  --page-background-dark: #26A9E0;
}

.page-nh {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-text-dark);
  background-color: var(--page-background-light);
}

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

/* Hero Section */
.page-nh__hero-section {
  position: relative;
  padding-top: 10px; /* Rely on body for header offset */
  padding-bottom: 40px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-nh__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  position: relative;
}

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

.page-nh__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-top: 20px;
  padding: 0 20px;
}

.page-nh__hero-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  color: var(--page-primary-color);
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.page-nh__hero-description {
  font-size: 1.2em;
  color: var(--page-text-dark);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Buttons */
.page-nh__btn-primary,
.page-nh__btn-secondary,
.page-nh__btn-small,
.page-nh__btn-inline {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-nh__btn-primary {
  background-color: var(--page-primary-color);
  color: var(--page-secondary-color);
  border: 2px solid var(--page-primary-color);
}

.page-nh__btn-primary:hover {
  background-color: darken(var(--page-primary-color), 10%);
  border-color: darken(var(--page-primary-color), 10%);
}

.page-nh__btn-secondary {
  background-color: transparent;
  color: var(--page-primary-color);
  border: 2px solid var(--page-primary-color);
}

.page-nh__btn-secondary:hover {
  background-color: var(--page-primary-color);
  color: var(--page-secondary-color);
}

.page-nh__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
  background-color: var(--page-primary-color);
  color: var(--page-secondary-color);
  border: 1px solid var(--page-primary-color);
  border-radius: 5px;
}

.page-nh__btn-small:hover {
  background-color: darken(var(--page-primary-color), 10%);
}

.page-nh__btn-inline {
  padding: 8px 15px;
  font-size: 0.9em;
  background-color: var(--page-primary-color);
  color: var(--page-secondary-color);
  border: none;
  border-radius: 5px;
  margin-top: 10px;
}

.page-nh__btn-inline:hover {
  background-color: darken(var(--page-primary-color), 10%);
}

/* Section Styling */
.page-nh__section-title {
  font-size: 2.5em;
  color: var(--page-primary-color);
  text-align: center;
  margin-bottom: 25px;
  font-weight: 700;
}

.page-nh__section-description {
  font-size: 1.1em;
  color: var(--page-text-dark);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-nh__section-text {
  font-size: 1em;
  margin-bottom: 20px;
  line-height: 1.8;
}

.page-nh__dark-bg {
  background-color: var(--page-background-dark);
  color: var(--page-text-light);
  padding: 60px 0;
}

.page-nh__dark-bg .page-nh__section-title,
.page-nh__dark-bg .page-nh__section-description,
.page-nh__dark-bg .page-nh__section-text,
.page-nh__dark-bg .page-nh__strategy-title,
.page-nh__dark-bg .page-nh__feature-title {
  color: var(--page-text-light);
}

.page-nh__light-bg {
  background-color: var(--page-background-light);
  color: var(--page-text-dark);
  padding: 60px 0;
}

.page-nh__introduction-section {
  padding: 60px 0;
}

/* Games Section */
.page-nh__games-section {
  padding: 60px 0;
  background-color: #f5f5f5;
}

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

.page-nh__game-card {
  background-color: var(--page-secondary-color);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-nh__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-nh__game-title {
  font-size: 1.5em;
  color: var(--page-primary-color);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-nh__game-description {
  font-size: 0.95em;
  color: var(--page-text-dark);
  margin-bottom: 20px;
  padding: 0 15px;
  flex-grow: 1;
}

/* Guide Section */
.page-nh__guide-section {
  padding: 60px 0;
}

.page-nh__guide-list {
  list-style: none;
  padding: 0;
  counter-reset: guide-step;
}

.page-nh__guide-item {
  background-color: var(--page-secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 25px 30px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  position: relative;
  padding-left: 70px;
}

.page-nh__guide-item::before {
  counter-increment: guide-step;
  content: counter(guide-step);
  position: absolute;
  left: 20px;
  top: 25px;
  background-color: var(--page-primary-color);
  color: var(--page-secondary-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2em;
}

.page-nh__guide-step-title {
  font-size: 1.4em;
  color: var(--page-primary-color);
  margin-bottom: 10px;
}

.page-nh__guide-item p {
  margin-bottom: 10px;
}

/* Strategy Section */
.page-nh__strategy-section {
  padding: 60px 0;
}

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

.page-nh__strategy-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-nh__strategy-title {
  font-size: 1.4em;
  color: var(--page-secondary-color);
  margin-bottom: 15px;
}

.page-nh__strategy-item p {
  font-size: 0.95em;
  color: var(--page-text-light);
}

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

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

.page-nh__promo-card {
  background-color: var(--page-secondary-color);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-nh__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-nh__promo-title {
  font-size: 1.5em;
  color: var(--page-primary-color);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-nh__promo-text {
  font-size: 0.95em;
  color: var(--page-text-dark);
  margin-bottom: 20px;
  padding: 0 15px;
  flex-grow: 1;
}

.page-nh__cta-bottom {
  text-align: center;
  margin-top: 20px;
}

/* Features Section */
.page-nh__features-section {
  padding: 60px 0;
}

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

.page-nh__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-nh__feature-title {
  font-size: 1.4em;
  color: var(--page-secondary-color);
  margin-bottom: 15px;
}

.page-nh__feature-item p {
  font-size: 0.95em;
  color: var(--page-text-light);
}

/* FAQ Section */
.page-nh__faq-section {
  padding: 60px 0;
}

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

.page-nh__faq-item {
  background-color: var(--page-secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-nh__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--page-primary-color);
  cursor: pointer;
  list-style: none;
  user-select: none;
  position: relative;
}

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

.page-nh__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--page-primary-color);
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

.page-nh__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: var(--page-text-dark);
  line-height: 1.7;
}

.page-nh__faq-answer p {
  margin-bottom: 10px;
}

/* Conclusion Section */
.page-nh__conclusion-section {
  padding: 60px 0;
  text-align: center;
}

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

/* Universal image styles */
.page-nh img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Media Queries for Responsiveness */

/* Tablet and Mobile */
@media (max-width: 1024px) {
  .page-nh__container {
    padding: 15px;
  }

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

  .page-nh__section-title {
    font-size: 2em;
  }

  .page-nh__section-description {
    font-size: 1em;
  }

  .page-nh__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-nh__btn-primary,
  .page-nh__btn-secondary {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .page-nh__games-grid,
  .page-nh__strategy-grid,
  .page-nh__promo-grid,
  .page-nh__features-list {
    grid-template-columns: 1fr;
  }

  .page-nh__game-image,
  .page-nh__promo-image {
    height: auto;
  }

  .page-nh__guide-item {
    padding-left: 60px;
  }

  .page-nh__guide-item::before {
    width: 35px;
    height: 35px;
    font-size: 1.1em;
    left: 15px;
  }

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

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

  .page-nh__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }

  .page-nh__hero-title {
    font-size: 1.8em !important;
    margin-bottom: 10px;
  }

  .page-nh__hero-description {
    font-size: 1em !important;
    margin-bottom: 20px;
  }

  .page-nh__section-title {
    font-size: 1.8em !important;
    margin-bottom: 20px;
  }

  .page-nh__section-description {
    font-size: 0.9em !important;
    margin-bottom: 30px;
  }

  .page-nh__dark-bg, .page-nh__light-bg, .page-nh__introduction-section, .page-nh__games-section, .page-nh__guide-section, .page-nh__strategy-section, .page-nh__promotions-section, .page-nh__features-section, .page-nh__faq-section, .page-nh__conclusion-section {
    padding: 40px 0 !important;
  }

  /* Universal Image Adaption for Mobile */
  .page-nh img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  /* Content containers for mobile */
  .page-nh__section,
  .page-nh__card,
  .page-nh__container,
  .page-nh__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }

  /* Buttons and Button Containers for Mobile */
  .page-nh__cta-button,
  .page-nh__btn-primary,
  .page-nh__btn-secondary,
  .page-nh__btn-small,
  .page-nh__btn-inline,
  .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 !important;
    padding-right: 15px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .page-nh__hero-buttons,
  .page-nh__cta-bottom,
  .page-nh__cta-final {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important;
  }

  .page-nh__games-grid,
  .page-nh__strategy-grid,
  .page-nh__promo-grid,
  .page-nh__features-list {
    gap: 20px;
  }

  .page-nh__game-card,
  .page-nh__promo-card {
    padding-bottom: 15px;
  }

  .page-nh__game-title,
  .page-nh__promo-title {
    font-size: 1.3em;
  }

  .page-nh__guide-item {
    padding-left: 50px;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .page-nh__guide-item::before {
    left: 10px;
    top: 20px;
    width: 30px;
    height: 30px;
    font-size: 1em;
  }

  .page-nh__guide-step-title {
    font-size: 1.2em;
  }

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

  .page-nh__faq-answer {
    padding: 0 15px 15px 15px;
  }

  .page-nh__hero-image {
    height: 250px;
  }
}