/* style/nh.css */

/* Custom properties for colors (from provided palette) */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg-color: #11271B;
  --background-color: #08160F;
  --text-main-color: #F2FFF6;
  --text-secondary-color: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
}

/* Base styles for the page content, ensuring light text on dark background */
.page-nh {
  background-color: var(--background-color);
  color: var(--text-main-color);
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 40px; /* Ensure some space above the footer */
}

/* Container for main content, centered and max-width */
.page-nh__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* All section containers must have width: 100% on desktop */
.page-nh__hero-section,
.page-nh__about-section,
.page-nh__games-section,
.page-nh__benefits-section,
.page-nh__guide-section,
.page-nh__promotions-section,
.page-nh__faq-section,
.page-nh__conclusion-section {
  width: 100%;
}

/* Section titles */
.page-nh__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--text-main-color);
  text-align: center;
  margin-bottom: 40px;
  margin-top: 60px;
  line-height: 1.2;
}

/* General text blocks */
.page-nh__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--text-secondary-color);
}

/* Call to action text block */
.page-nh__cta-block {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-nh__cta-text {
  font-size: 1.2em;
  font-weight: bold;
  color: var(--text-main-color);
  margin-bottom: 20px;
}

/* Buttons */
.page-nh__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-nh__btn-primary,
.page-nh__btn-secondary {
  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;
  min-width: 180px;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-nh__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main-color);
  border: 2px solid transparent;
}

.page-nh__btn-primary:hover {
  background: linear-gradient(180deg, var(--deep-green-color) 0%, var(--secondary-color) 100%);
  box-shadow: 0 0 15px var(--glow-color);
}

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

.page-nh__btn-secondary:hover {
  background-color: var(--border-color);
  color: var(--text-main-color);
}

/* Hero Section */
.page-nh__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  background-color: var(--background-color);
}

.page-nh__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 30px;
}

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

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

.page-nh__main-title {
  color: var(--text-main-color);
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  font-size: clamp(2em, 4vw, 3.5em); /* Using clamp for responsive H1 */
}

.page-nh__description {
  font-size: 1.2em;
  color: var(--text-secondary-color);
  margin-bottom: 30px;
}

/* About Section */
.page-nh__about-section {
  padding: 60px 0;
  background-color: var(--background-color);
}

.page-nh__image-content-wrapper {
  margin: 40px auto;
  max-width: 100%;
  overflow: hidden;
}

.page-nh__content-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

/* Games Section */
.page-nh__games-section {
  padding: 60px 0;
  background-color: var(--card-bg-color);
}

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

.page-nh__card {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main-color);
}

.page-nh__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 20px var(--glow-color);
}

.page-nh__card-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--gold-color);
}

.page-nh__card-text {
  font-size: 1em;
  color: var(--text-secondary-color);
}

/* Benefits Section */
.page-nh__benefits-section {
  padding: 60px 0;
  background-color: var(--background-color);
}

.page-nh__benefits-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.page-nh__benefits-item {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  font-size: 1.1em;
  color: var(--text-secondary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.page-nh__benefits-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-nh__benefits-item strong {
  color: var(--text-main-color);
  display: block;
  margin-bottom: 10px;
  font-size: 1.2em;
}

/* Guide Section */
.page-nh__guide-section {
  padding: 60px 0;
  background-color: var(--card-bg-color);
}

.page-nh__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px; /* Max width for video */
  margin: 40px auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
  cursor: pointer; /* Indicate video is clickable */
}

.page-nh__video {
  display: block;
  width: 100%;
  height: auto;
}

.page-nh__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-nh__guide-item {
  background-color: var(--background-color);
  border: 1px solid var(--divider-color);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.page-nh__guide-text {
  font-size: 1em;
  color: var(--text-secondary-color);
}

/* Promotions Section */
.page-nh__promotions-section {
  padding: 60px 0;
  background-color: var(--background-color);
}

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

/* FAQ Section */
.page-nh__faq-section {
  padding: 60px 0;
  background-color: var(--card-bg-color);
}

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

.page-nh__faq-item {
  background-color: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main-color);
}

.page-nh__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: var(--text-main-color);
  background-color: var(--deep-green-color);
  transition: background-color 0.3s ease;
}

.page-nh__faq-question:hover {
  background-color: var(--border-color);
}

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

.page-nh__faq-item[open] .page-nh__faq-question {
  background-color: var(--border-color);
}

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

/* For details tag, hide default marker */
.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;
  text-align: center;
  background-color: var(--background-color);
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-nh__section-title {
    font-size: 2em;
  }
  .page-nh__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }
  .page-nh__hero-content {
    padding: 0 15px;
  }
}

@media (max-width: 768px) {
  .page-nh__container {
    padding: 0 15px !important; /* Important for mobile overflow prevention */
  }

  /* Force responsive images */
  .page-nh img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Force responsive videos */
  .page-nh video,
  .page-nh__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Video container responsive */
  .page-nh__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important; 
    padding-right: 15px !important; 
    overflow: hidden !important;
  }

  /* Video section top padding */
  .page-nh__hero-section {
    padding-top: 10px !important; /* body handles header offset */
    padding-bottom: 30px;
  }
  .page-nh__guide-section {
    padding-top: 40px !important;
  }

  /* Force responsive buttons */
  .page-nh__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px;
    padding-left: 15px !important; 
    padding-right: 15px !important; 
  }

  .page-nh__btn-primary,
  .page-nh__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }

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

  .page-nh__main-title {
    font-size: clamp(1.6em, 6vw, 2.5em);
  }

  .page-nh__description,
  .page-nh__text-block,
  .page-nh__cta-text,
  .page-nh__benefits-item,
  .page-nh__card-text,
  .page-nh__guide-text,
  .page-nh__faq-text {
    font-size: 1em;
  }

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

  .page-nh__card,
  .page-nh__benefits-item,
  .page-nh__guide-item,
  .page-nh__faq-item {
    padding: 20px;
  }

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

/* Ensure all content area images are at least 200x200 */
.page-nh__content-image {
  min-width: 200px;
  min-height: 200px;
}
.page-nh__hero-image {
  min-width: 200px;
  min-height: 200px;
}
.page-nh img:not(.shared-logo) { /* Exclude shared logos if any, though shared is not generated */
  min-width: 200px;
  min-height: 200px;
}