/* style/nh.css */

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

/* General Page Styles */
.page-nh {
  font-family: 'Arial', sans-serif;
  color: var(--page-nh-text-main); /* Default text color for page, adjusted for dark background of some sections */
  background-color: #f0f2f5; /* Body background is light, but some sections are dark */
}

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

.page-nh__section {
  padding: 80px 0;
  text-align: center;
}

.page-nh__dark-bg {
  background-color: var(--page-nh-background);
  color: var(--page-nh-text-main);
}

.page-nh__section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--page-nh-gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-nh__text-block {
  font-size: 17px;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--page-nh-text-secondary);
}

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

/* Buttons */
.page-nh__btn-primary,
.page-nh__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

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

.page-nh__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

.page-nh__btn-secondary:hover {
  background: var(--page-nh-gold-color);
  color: var(--page-nh-background); /* Dark text for contrast */
}

/* Hero Section */
.page-nh__hero-section {
  position: relative;
  width: 100%;
  padding: 10px 0 60px; /* Small top padding, body handles header offset */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-nh__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for large screens */
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.page-nh__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim the image for text readability */
}

.page-nh__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 40px 20px;
  margin-top: -150px; /* Pull content up over the image bottom */
  background: linear-gradient(180deg, rgba(8, 22, 15, 0.8) 0%, var(--page-nh-background) 100%);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.page-nh__main-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  color: var(--page-nh-gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.6);
}

.page-nh__description {
  font-size: 19px;
  line-height: 1.7;
  color: var(--page-nh-text-secondary);
  margin-bottom: 30px;
}

.page-nh__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  box-sizing: border-box;
  overflow: hidden;
}

/* Intro Section */
.page-nh__intro-section {
  background-color: #f0f2f5; /* Light background for this section */
  color: #333333; /* Dark text for contrast on light background */
  padding: 80px 0;
}

.page-nh__intro-section .page-nh__section-title {
  color: var(--page-nh-primary-color); /* Primary color for title on light background */
}

.page-nh__intro-section .page-nh__text-block {
  color: #555555;
}

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

.page-nh__feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 25px;
  background-color: #ffffff; /* White card on light section */
  border: 1px solid #e0e0e0;
  color: #333333;
}

.page-nh__feature-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-nh__feature-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--page-nh-primary-color);
  margin-bottom: 15px;
}

.page-nh__feature-description {
  font-size: 16px;
  line-height: 1.6;
  color: #555555;
}

/* How-to-Play Section */
.page-nh__how-to-play-section .page-nh__section-title {
  color: var(--page-nh-gold-color);
}

.page-nh__how-to-play-section .page-nh__text-block {
  color: var(--page-nh-text-secondary);
}

.page-nh__step-list {
  list-style: none;
  padding: 0;
  margin: 50px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-nh__step-item {
  background-color: var(--page-nh-card-bg);
  border: 1px solid var(--page-nh-border-color);
  padding: 30px;
}

.page-nh__step-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--page-nh-gold-color);
  margin-bottom: 15px;
}

.page-nh__step-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--page-nh-text-secondary);
  margin-bottom: 20px;
}

/* Popular Games Section */
.page-nh__popular-games-section {
  background-color: #f0f2f5;
  color: #333333;
}

.page-nh__popular-games-section .page-nh__section-title {
  color: var(--page-nh-primary-color);
}

.page-nh__popular-games-section .page-nh__text-block {
  color: #555555;
}

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

.page-nh__game-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  color: #333333;
  overflow: hidden;
  padding: 0;
  text-align: center;
}

.page-nh__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

.page-nh__game-card h3 {
  padding: 15px 20px 0;
}

.page-nh__game-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-nh__game-link {
  color: var(--page-nh-primary-color);
  text-decoration: none;
}

.page-nh__game-link:hover {
  text-decoration: underline;
}

.page-nh__game-provider,
.page-nh__game-desc {
  font-size: 15px;
  color: #666666;
  padding: 0 20px 15px;
  line-height: 1.5;
}

.page-nh__game-provider {
  font-weight: 600;
}

/* Promotions Section */
.page-nh__promotions-section .page-nh__section-title {
  color: var(--page-nh-gold-color);
}

.page-nh__promotions-section .page-nh__text-block {
  color: var(--page-nh-text-secondary);
}

.page-nh__promo-list {
  list-style: none;
  padding: 0;
  margin: 50px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: left;
}

.page-nh__promo-item {
  background-color: var(--page-nh-deep-green);
  border: 1px solid var(--page-nh-border-color);
  border-radius: 12px;
  padding: 30px;
  color: var(--page-nh-text-main);
}

.page-nh__promo-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--page-nh-gold-color);
  margin-bottom: 10px;
}

.page-nh__promo-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--page-nh-text-secondary);
}

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

/* Tips Section */
.page-nh__tips-section {
  background-color: #f0f2f5;
  color: #333333;
}

.page-nh__tips-section .page-nh__section-title {
  color: var(--page-nh-primary-color);
}

.page-nh__tips-section .page-nh__text-block {
  color: #555555;
}

.page-nh__tips-list {
  list-style: none;
  padding: 0;
  margin: 50px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: left;
}

.page-nh__tip-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  color: #333333;
}

.page-nh__tip-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--page-nh-primary-color);
  margin-bottom: 10px;
}

.page-nh__tip-description {
  font-size: 16px;
  line-height: 1.6;
  color: #555555;
}

/* Why Choose Section */
.page-nh__why-choose-section .page-nh__section-title {
  color: var(--page-nh-gold-color);
}

.page-nh__why-choose-section .page-nh__text-block {
  color: var(--page-nh-text-secondary);
}

.page-nh__advantage-list {
  list-style: none;
  padding: 0;
  margin: 50px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: left;
}

.page-nh__advantage-item {
  background-color: var(--page-nh-deep-green);
  border: 1px solid var(--page-nh-border-color);
  border-radius: 12px;
  padding: 30px;
  color: var(--page-nh-text-main);
}

.page-nh__advantage-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--page-nh-gold-color);
  margin-bottom: 10px;
}

.page-nh__advantage-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--page-nh-text-secondary);
}

/* FAQ Section */
.page-nh__faq-section {
  background-color: #f0f2f5;
  color: #333333;
}

.page-nh__faq-section .page-nh__section-title {
  color: var(--page-nh-primary-color);
}

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

.page-nh__faq-item {
  margin-bottom: 20px;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  color: #333333;
  border-radius: 12px;
  overflow: hidden;
}

.page-nh__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 700;
  color: var(--page-nh-primary-color);
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
}

.page-nh__faq-question:hover {
  background-color: #eef;
}

.page-nh__faq-item[open] .page-nh__faq-question {
  background-color: #eef;
}

.page-nh__faq-qtext {
  flex-grow: 1;
}

.page-nh__faq-toggle {
  font-size: 24px;
  margin-left: 15px;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-nh__faq-item[open] .page-nh__faq-toggle {
  transform: rotate(45deg); /* Plus to X effect */
}

.page-nh__faq-answer {
  padding: 20px 25px;
  font-size: 16px;
  line-height: 1.6;
  color: #555555;
  border-top: none;
}

/* Details element specific styling */
.page-nh__faq-item summary::-webkit-details-marker {
  display: none;
}
.page-nh__faq-item summary {
  list-style: none;
}

/* CTA Bottom Section */
.page-nh__cta-bottom-section {
  padding-bottom: 80px;
}

.page-nh__cta-bottom-section .page-nh__section-title {
  color: var(--page-nh-gold-color);
}

.page-nh__cta-bottom-section .page-nh__text-block {
  color: var(--page-nh-text-secondary);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-nh__hero-content {
    margin-top: -100px;
    padding: 30px 20px;
  }
}

@media (max-width: 768px) {
  .page-nh__section {
    padding: 60px 0;
  }

  .page-nh__container {
    padding: 0 15px;
  }

  .page-nh__main-title {
    font-size: clamp(28px, 8vw, 48px);
  }

  .page-nh__description {
    font-size: 17px;
  }

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

  .page-nh__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
    overflow: hidden !important;
  }

  .page-nh__hero-content {
    margin-top: -80px;
    padding: 25px 15px;
  }

  .page-nh__feature-grid,
  .page-nh__step-list,
  .page-nh__game-cards-grid,
  .page-nh__promo-list,
  .page-nh__tips-list,
  .page-nh__advantage-list {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-nh img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-nh__hero-image-wrapper,
  .page-nh__section,
  .page-nh__card,
  .page-nh__container,
  .page-nh__feature-item,
  .page-nh__game-card,
  .page-nh__promo-item,
  .page-nh__tip-item,
  .page-nh__advantage-item,
  .page-nh__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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

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

@media (max-width: 480px) {
  .page-nh__section-title {
    font-size: clamp(24px, 7vw, 36px);
  }

  .page-nh__main-title {
    font-size: clamp(26px, 9vw, 40px);
  }

  .page-nh__description {
    font-size: 16px;
  }

  .page-nh__hero-content {
    margin-top: -60px;
  }
}