/* style/nh.css */

/* Custom Colors */
:root {
  --page-nh-background: #08160F;
  --page-nh-card-bg: #11271B;
  --page-nh-text-main: #F2FFF6;
  --page-nh-text-secondary: #A7D9B8;
  --page-nh-border: #2E7A4E;
  --page-nh-glow: #57E38D;
  --page-nh-gold: #F2C14E;
  --page-nh-divider: #1E3A2A;
  --page-nh-deep-green: #0A4B2C;
  --page-nh-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

/* Base styles for the page content, considering body background #f0f2f5 (light) */
.page-nh {
  background-color: var(--page-nh-background); /* Default background for the whole main content */
  color: var(--page-nh-text-main); /* Default text color for dark sections */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* General container for content sections */
.page-nh__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* Section backgrounds and text colors */
.page-nh__dark-bg {
  background-color: var(--page-nh-background);
  color: var(--page-nh-text-main);
}

.page-nh__light-bg {
  background-color: #f0f2f5; /* Using the provided body background color for contrast */
  color: #333333; /* Dark text for light background */
}

.page-nh__section-title {
  font-size: clamp(2em, 3.5vw, 3em);
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: inherit; /* Inherit from section, will be var(--page-nh-text-main) or #333333 */
}

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

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

.page-nh__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for hero image */
  overflow: hidden;
  margin-bottom: 30px; /* Space between image and content */
}

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

.page-nh__hero-content {
  max-width: 900px;
  margin: 0 auto;
  z-index: 1;
}

.page-nh__main-title {
  font-size: clamp(2.8em, 5vw, 4.5em); /* Using clamp for responsive H1 */
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--page-nh-gold); /* Using gold for main title */
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

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

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

.page-nh__btn-primary,
.page-nh__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  min-width: 200px; /* Ensure buttons are not too small */
}

.page-nh__btn-primary {
  background: var(--page-nh-button-gradient);
  color: #ffffff; /* White text on green gradient */
  border: none;
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-nh__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(42, 209, 111, 0.6);
}

.page-nh__btn-secondary {
  background-color: transparent;
  color: var(--page-nh-text-main); /* Light text for secondary on dark background */
  border: 2px solid var(--page-nh-deep-green);
}

.page-nh__btn-secondary:hover {
  background-color: var(--page-nh-deep-green);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Image content styles */
.page-nh__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.page-nh__feature-card {
  background-color: var(--page-nh-card-bg);
  color: var(--page-nh-text-main);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--page-nh-border);
}

.page-nh__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

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

/* Game List & Promo List */
.page-nh__game-list,
.page-nh__promo-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 800px;
}

.page-nh__game-item,
.page-nh__promo-item {
  background-color: #ffffff; /* Light background for list items in light section */
  color: #333333; /* Dark text */
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-left: 5px solid var(--page-nh-deep-green);
  font-size: 1.1em;
}

/* Guide Steps */
.page-nh__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-nh__step-card {
  background-color: var(--page-nh-card-bg);
  color: var(--page-nh-text-main);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--page-nh-border);
}

.page-nh__step-card .page-nh__card-title {
  color: var(--page-nh-gold);
}

/* FAQ Section */
.page-nh__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-nh__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--page-nh-text-main);
  background-color: var(--page-nh-deep-green); /* Darker green for FAQ questions */
  transition: background-color 0.3s ease;
}

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

.page-nh__faq-item summary:hover {
  background-color: var(--page-nh-border);
}

.page-nh__faq-answer {
  padding: 20px 25px;
  font-size: 1.05em;
  color: var(--page-nh-text-secondary);
  border-top: 1px solid var(--page-nh-divider);
}

.page-nh__faq-answer p {
  margin: 0;
  color: inherit;
  text-align: left;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-nh__hero-content {
    padding: 0 15px;
  }
}

@media (max-width: 768px) {
  .page-nh__container,
  .page-nh__hero-section,
  .page-nh__introduction-section,
  .page-nh__why-choose-section,
  .page-nh__popular-games-section,
  .page-nh__guide-section,
  .page-nh__promotions-section,
  .page-nh__download-section,
  .page-nh__support-section,
  .page-nh__faq-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-nh__description {
    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;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-nh__section-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 30px;
  }

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

  .page-nh__image-content,
  .page-nh__card-image,
  .page-nh img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-nh__card-title {
    font-size: 1.3em;
  }

  .page-nh__card-text {
    font-size: 0.9em;
  }

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

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

  .page-nh__hero-image-wrapper {
    max-height: 400px;
  }
}

@media (max-width: 480px) {
  .page-nh__hero-section {
    padding: 10px 10px 40px;
  }

  .page-nh__container {
    padding: 30px 10px;
  }

  .page-nh__btn-primary,
  .page-nh__btn-secondary {
    min-width: unset;
  }
}