.page-nh {
  font-family: Arial, sans-serif;
  color: #FFFFFF;
  background-color: #FFFFFF; /* Main background as per custom color */
  padding-top: 10px; /* Small top padding for first section */
}

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

.page-nh__hero-section {
  display: flex;
  flex-direction: column; /* Default to column for mobile first */
  align-items: center;
  text-align: center;
  padding-bottom: 40px;
  background-color: #017439; /* Use main brand color for hero background */
  overflow: hidden; /* Prevent image overflow */
}

.page-nh__hero-visual {
  width: 100%;
  max-width: 1200px; /* Constrain image width on larger screens */
  margin-bottom: 20px;
}

.page-nh__hero-visual img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
}

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

.page-nh__main-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #FFFFFF;
}

.page-nh__hero-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #FFFFFF;
}

.page-nh__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background-color: #C30808; /* Register/Login color for CTA */
  color: #FFFF00; /* Register/Login font color */
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
  min-height: 44px; /* Ensure touch target size */
}

.page-nh__cta-button:hover {
  background-color: #a30606;
}

.page-nh__section-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #017439; /* Use main brand color for section titles */
  background: linear-gradient(to right, #017439, #005f2f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.page-nh__paragraph {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: center;
  color: #333333; /* Dark text on light background */
}

.page-nh__introduction-section,
.page-nh__benefits-section,
.page-nh__guide-section,
.page-nh__faq-section,
.page-nh__join-us-section {
  padding: 60px 0;
  background-color: #f8f8f8; /* Light background for content sections */
  color: #333333;
}

.page-nh__introduction-section .page-nh__paragraph,
.page-nh__guide-section .page-nh__paragraph,
.page-nh__faq-section .page-nh__paragraph,
.page-nh__join-us-section .page-nh__paragraph {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-nh__secondary-button {
  display: inline-block;
  padding: 12px 25px;
  background-color: #017439; /* Main brand color for secondary buttons */
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1rem;
  transition: background-color 0.3s ease;
  margin-top: 20px;
  min-height: 44px;
}

.page-nh__secondary-button:hover {
  background-color: #005f2f;
}

.page-nh__games-showcase {
  padding: 60px 0;
  background-color: #FFFFFF; /* White background for game showcase */
}

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

.page-nh__game-card {
  background-color: #f0f0f0;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: #333333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-nh__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-nh__game-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #e0e0e0;
}

.page-nh__game-title {
  font-size: 1.25rem;
  font-weight: bold;
  padding: 15px 10px;
  color: #017439;
}

.page-nh__view-all-button {
  display: block;
  width: fit-content;
  margin: 40px auto 0;
  padding: 15px 30px;
  background-color: #017439;
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
  min-height: 44px;
}

.page-nh__view-all-button:hover {
  background-color: #005f2f;
}

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

.page-nh__benefit-item {
  background-color: #FFFFFF;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-nh__benefit-item:hover {
  transform: translateY(-5px);
}

.page-nh__benefit-item img {
  width: 200px;
  
  object-fit: contain; /* Use contain for icons/logos */
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-nh__benefit-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #017439;
}

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

.page-nh__guide-step-item {
  background-color: #FFFFFF;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  position: relative;
}

.page-nh__step-number {
  width: 50px;
  height: 50px;
  background-color: #017439;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: bold;
  margin: -55px auto 20px;
  border: 4px solid #f8f8f8;
}

.page-nh__guide-step-item:first-child .page-nh__step-number {
  margin-top: -55px;
}

.page-nh__step-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #017439;
}

.page-nh__step-cta {
  display: inline-block;
  padding: 10px 20px;
  background-color: #C30808;
  color: #FFFF00;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 0.95rem;
  margin-top: 20px;
  transition: background-color 0.3s ease;
  min-height: 44px;
}

.page-nh__step-cta:hover {
  background-color: #a30606;
}

.page-nh__faq-list {
  margin-top: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-nh__faq-item {
  background-color: #FFFFFF;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-nh__faq-question {
  font-size: 1.2rem;
  font-weight: bold;
  color: #017439;
  margin-bottom: 10px;
}

.page-nh__faq-answer {
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
  text-align: left;
}

.page-nh__join-us-section {
  text-align: center;
  background-color: #017439; /* Main brand color for join section */
  color: #FFFFFF;
  padding: 80px 0;
}

.page-nh__join-us-section .page-nh__section-title {
  color: #FFFFFF;
  background: none; /* No gradient for white text on colored background */
  -webkit-text-fill-color: #FFFFFF;
  text-fill-color: #FFFFFF;
}

.page-nh__join-us-section .page-nh__paragraph {
  color: #FFFFFF;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

.page-nh__cta-button--large {
  padding: 18px 40px;
  font-size: 1.2rem;
}

/* Responsive adjustments */
@media (max-width: 849px) {
  .page-nh__hero-section {
    padding-bottom: 30px;
  }

  .page-nh__hero-visual {
    aspect-ratio: 16/10; /* Or 4/3 as per rules for mobile hero visual */
    max-width: 100%;
    margin-bottom: 20px;
  }

  .page-nh__hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .page-nh__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .page-nh__section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .page-nh__game-grid,
  .page-nh__benefits-grid,
  .page-nh__guide-steps {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .page-nh__game-card img {
    
  }

  .page-nh__cta-button,
  .page-nh__secondary-button,
  .page-nh__view-all-button,
  .page-nh__step-cta {
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .page-nh__guide-step-item .page-nh__step-number {
    margin-top: -40px;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
}

@media (max-width: 549px) {
  .page-nh__hero-section {
    padding-bottom: 20px;
  }

  .page-nh__hero-visual {
    aspect-ratio: 4/3; /* Adjust aspect ratio for smaller mobile screens */
  }

  .page-nh__main-title {
    font-size: clamp(1.5rem, 8vw, 2.2rem);
  }

  .page-nh__section-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
  }

  .page-nh__paragraph {
    font-size: 0.95rem;
  }

  .page-nh__game-grid,
  .page-nh__benefits-grid,
  .page-nh__guide-steps {
    grid-template-columns: 1fr;
  }

  .page-nh__game-card img {
    
  }

  .page-nh__guide-step-item .page-nh__step-number {
    margin-top: -35px;
    width: 35px;
    height: 35px;
    font-size: 1.3rem;
  }

  .page-nh__faq-item {
    padding: 20px;
  }

  .page-nh__faq-question {
    font-size: 1.1rem;
  }

  .page-nh__faq-answer {
    font-size: 0.9rem;
  }

  .page-nh__cta-button--large {
    font-size: 1.1rem;
    padding: 15px 30px;
  }

  .page-nh__container img {
    max-width: 100%;
    height: auto;
  }
}

/* Ensure all content area images are responsive and do not cause overflow */
@media (max-width: 768px) {
  .page-nh img {
    max-width: 100% !important;
    height: auto !important;
  }
  .page-nh {
    overflow-x: hidden;
  }
}

/* CSS for color contrast and minimum image size */
.page-nh img:not(.page-nh__hero-visual img) {
  min-width: 200px;
  min-height: 200px;
}

.page-nh__game-card img,
.page-nh__benefit-item img {
  width: 100%; /* Ensure images fill their container */
  max-width: 100%;
  height: auto;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px;
}

/* Ensure text contrast on various backgrounds */
.page-nh__hero-section .page-nh__main-title,
.page-nh__hero-section .page-nh__hero-description,
.page-nh__join-us-section .page-nh__section-title,
.page-nh__join-us-section .page-nh__paragraph {
  color: #FFFFFF; /* White text on #017439 background */
}

.page-nh__introduction-section .page-nh__paragraph,
.page-nh__games-showcase .page-nh__paragraph,
.page-nh__benefits-section .page-nh__paragraph,
.page-nh__guide-section .page-nh__paragraph,
.page-nh__faq-section .page-nh__paragraph {
  color: #333333; /* Dark text on light background */
}

.page-nh__cta-button,
.page-nh__step-cta {
  background-color: #C30808; /* Red */
  color: #FFFF00; /* Yellow */
}

.page-nh__cta-button:hover,
.page-nh__step-cta:hover {
  background-color: #a30606;
}

.page-nh__secondary-button,
.page-nh__view-all-button {
  background-color: #017439; /* Green */
  color: #FFFFFF; /* White */
}

.page-nh__secondary-button:hover,
.page-nh__view-all-button:hover {
  background-color: #005f2f;
}

.page-nh__game-title,
.page-nh__benefit-title,
.page-nh__step-title,
.page-nh__faq-question {
  color: #017439; /* Green */
}

.page-nh__faq-answer {
  color: #555555; /* Dark grey for answers */
}