/* style/nh.css */

/* Body background is dark from shared.css, so default text should be light */
.page-nh {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: transparent; /* Rely on body background */
}

.page-nh__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, header offset handled by body */
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
}

.page-nh__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
  order: 1; /* Image appears first */
}

.page-nh__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-nh__hero-content {
  order: 2; /* Content appears after image */
  max-width: 900px;
  width: 100%;
  z-index: 1;
  position: relative;
}

.page-nh__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  /* No fixed font-size, rely on responsive scaling */
}

.page-nh__description {
  font-size: 1.1em;
  color: #e0e0e0;
  margin-bottom: 30px;
}

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

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

.page-nh__btn-primary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

.page-nh__btn-primary:hover {
  background-color: #1f8ac2;
  border-color: #1f8ac2;
  transform: translateY(-2px);
}

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

.page-nh__btn-secondary:hover {
  background-color: #26A9E0;
  color: #FFFFFF;
  transform: translateY(-2px);
}

.page-nh__btn-small {
  display: inline-block;
  padding: 8px 15px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 1px solid #26A9E0;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-nh__btn-small:hover {
  background-color: #1f8ac2;
  border-color: #1f8ac2;
}

.page-nh__section {
  padding: 80px 20px;
  text-align: center;
  box-sizing: border-box;
  width: 100%;
}

.page-nh__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #26A9E0;
}

.page-nh__section-intro {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #e0e0e0; /* Default for dark sections */
}

.page-nh__dark-bg {
  background-color: #1a1a2e; /* Dark background */
  color: #f0f0f0;
}

.page-nh__dark-bg .page-nh__section-title {
  color: #26A9E0;
}

.page-nh__dark-bg .page-nh__section-intro {
  color: #e0e0e0;
}

.page-nh__light-bg {
  background-color: #FFFFFF; /* Light background */
  color: #333333;
}

.page-nh__light-bg .page-nh__section-title {
  color: #26A9E0;
}

.page-nh__light-bg .page-nh__section-intro {
  color: #555555;
}

.page-nh__text-highlight {
  color: #26A9E0;
  font-weight: bold;
}

.page-nh__feature-grid,
.page-nh__game-type-grid,
.page-nh__step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-nh__card {
  background-color: #FFFFFF; /* Default white background for cards */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #333333; /* Dark text for white card background */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-nh__dark-bg .page-nh__card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark bg */
  color: #f0f0f0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-nh__dark-bg .page-nh__card .page-nh__feature-title,
.page-nh__dark-bg .page-nh__card .page-nh__game-type-title,
.page-nh__dark-bg .page-nh__card .page-nh__step-title {
  color: #26A9E0;
}

.page-nh__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-nh__feature-icon,
.page-nh__game-type-image {
  width: 100%; /* Ensure images take full card width */
  height: auto;
  max-height: 200px; /* Limit height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-nh__feature-title,
.page-nh__game-type-title,
.page-nh__step-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-nh__feature-text,
.page-nh__game-type-description,
.page-nh__step-text {
  font-size: 1em;
  color: #555555;
}

.page-nh__dark-bg .page-nh__feature-text,
.page-nh__dark-bg .page-nh__game-type-description,
.page-nh__dark-bg .page-nh__step-text {
  color: #e0e0e0;
}

.page-nh__step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-nh__step-number {
  width: 50px;
  height: 50px;
  background-color: #26A9E0;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-nh__cta-section {
  margin-top: 50px;
}

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

.page-nh__tip-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  font-size: 1.1em;
  line-height: 1.8;
  color: #f0f0f0;
  border-left: 5px solid #26A9E0;
}

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

.page-nh__faq-item {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
  transition: all 0.3s ease;
}

.page-nh__faq-item[open] {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-nh__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15em;
  font-weight: bold;
  cursor: pointer;
  background-color: #f9f9f9;
  color: #333333;
  user-select: none;
  list-style: none; /* For details/summary */
}

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

.page-nh__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  color: #26A9E0;
  margin-left: 15px;
}

.page-nh__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
}

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

.page-nh__floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.page-nh__floating-btn {
  display: block;
  width: 120px;
  padding: 12px 0;
  text-align: center;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-nh__floating-btn--register {
  background-color: #26A9E0;
}

.page-nh__floating-btn--register:hover {
  transform: translateY(-3px);
  background-color: #1f8ac2;
}

.page-nh__floating-btn--login {
  background-color: #EA7C07;
}

.page-nh__floating-btn--login:hover {
  transform: translateY(-3px);
  background-color: #d16b06;
}

/* Responsive adjustments */
@media (min-width: 769px) {
  .page-nh__main-title {
    font-size: 3.2em;
  }
  .page-nh__section-title {
    font-size: 3em;
  }
  .page-nh__hero-image-wrapper {
    margin-bottom: 50px;
  }
}

@media (max-width: 1024px) {
  .page-nh__main-title {
    font-size: 2.8em;
  }
  .page-nh__section-title {
    font-size: 2.2em;
  }
  .page-nh__hero-image-wrapper {
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .page-nh {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-nh__main-title {
    font-size: 2em; /* Smaller font size for mobile */
  }
  .page-nh__section-title {
    font-size: 1.8em;
  }
  .page-nh__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles header offset */
  }
  .page-nh__section {
    padding: 50px 15px;
  }
  .page-nh__description,
  .page-nh__section-intro,
  .page-nh__feature-text,
  .page-nh__game-type-description,
  .page-nh__step-text,
  .page-nh__tip-item,
  .page-nh__faq-answer {
    font-size: 1em;
  }
  .page-nh__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-nh__btn-primary,
  .page-nh__btn-secondary,
  .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;
    padding-right: 15px;
  }
  .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: 0;
    padding-right: 0;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  /* Mobile image responsiveness */
  .page-nh img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-nh__hero-image-wrapper,
  .page-nh__section,
  .page-nh__card,
  .page-nh__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-nh__hero-image-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
  .page-nh__feature-icon,
  .page-nh__game-type-image {
    max-height: none;
  }
  .page-nh__floating-buttons {
    bottom: 15px;
    right: 15px;
    flex-direction: row; /* Horizontal for mobile floating buttons */
    width: calc(100% - 30px);
    justify-content: space-around;
  }
  .page-nh__floating-btn {
    width: 48%; /* Adjust width for two buttons */
    padding: 10px 0;
  }
}

/* Ensure all image containers allow for responsive images */
.page-nh__hero-image-wrapper,
.page-nh__feature-item,
.page-nh__game-type-card {
  overflow: hidden;
}