/* style/nh.css */

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

/* General Page Styles - applied to .page-nh only */
.page-nh {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--color-text-main); /* Default text color for dark background */
  background-color: var(--color-background); /* Default background color */
}

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

.page-nh__section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--color-gold);
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-nh__text-block {
  font-size: 1.1rem;
  margin-bottom: 20px;
  line-height: 1.8;
}

.page-nh__text-main {
  color: var(--color-text-main);
}

.page-nh__text-secondary {
  color: var(--color-text-secondary);
}

/* Hero Section */
.page-nh__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 0 60px 0; /* Small top padding, body handles header offset */
  background-color: var(--color-deep-green);
  overflow: hidden;
}

.page-nh__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height to prevent overly tall image on desktop */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}

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

.page-nh__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 20px;
}

.page-nh__main-title {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--color-gold);
  text-shadow: 0 0 15px var(--color-glow);
}

.page-nh__tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--color-text-secondary);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-nh__cta-buttons--center {
  margin-top: 40px;
}

.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.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-nh__btn-primary {
  background: var(--color-button-gradient-start);
  background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
  color: var(--color-text-main);
  border: 2px solid var(--color-glow);
  box-shadow: 0 0 15px rgba(87, 227, 141, 0.7);
}

.page-nh__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(87, 227, 141, 0.9);
}

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

.page-nh__btn-secondary:hover {
  background-color: var(--color-glow);
  color: var(--color-background);
  transform: translateY(-3px);
}

/* Introduction Section */
.page-nh__introduction-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background for contrast */
  color: #333333; /* Dark text for light background */
}

.page-nh__introduction-section .page-nh__section-title {
  color: var(--color-deep-green);
  text-shadow: none;
}

.page-nh__introduction-section .page-nh__text-block {
  color: #333333;
}

/* Game Features Section */
.page-nh__game-features {
  padding: 80px 0;
  background-color: var(--color-card-bg);
}

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

.page-nh__feature-item {
  background-color: var(--color-background);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--color-divider);
}

.page-nh__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-nh__feature-icon {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-nh__feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 15px;
}

.page-nh__feature-description {
  font-size: 1rem;
  color: var(--color-text-secondary);
}

/* How to Play Section */
.page-nh__how-to-play {
  padding: 80px 0;
  background-color: #f8f8f8; /* Light background for contrast */
  color: #333333; /* Dark text for light background */
}

.page-nh__how-to-play .page-nh__section-title {
  color: var(--color-deep-green);
  text-shadow: none;
}

.page-nh__how-to-play .page-nh__text-block {
  color: #333333;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-nh__step-item {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
  color: #333333;
}

.page-nh__step-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-primary);
  margin-bottom: 15px;
}

.page-nh__step-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-deep-green);
  margin-bottom: 10px;
}

.page-nh__step-description {
  font-size: 1rem;
  color: #555555;
}

.page-nh__cta-bottom {
  margin-top: 60px;
  text-align: center;
}

/* Tips Section */
.page-nh__tips-section {
  padding: 80px 0;
  background-color: var(--color-background);
}

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

.page-nh__tips-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: var(--color-text-secondary);
}

.page-nh__tips-item strong {
  color: var(--color-text-main);
}

.page-nh__tips-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-glow);
  font-weight: bold;
}

.page-nh__content-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  margin-top: 40px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  display: block;
}

/* Promotions Section */
.page-nh__promotions-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background for contrast */
  color: #333333; /* Dark text for light background */
}

.page-nh__promotions-section .page-nh__section-title {
  color: var(--color-deep-green);
  text-shadow: none;
}

.page-nh__promotions-section .page-nh__text-block {
  color: #333333;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-nh__promo-card {
  background-color: #f0f0f0;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
  color: #333333;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-nh__promo-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-deep-green);
  margin-bottom: 15px;
}

.page-nh__promo-description {
  font-size: 1rem;
  color: #555555;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-nh__promo-card .page-nh__btn-primary {
  margin-top: auto; /* Push button to bottom */
}

/* Security Section */
.page-nh__security-section {
  padding: 80px 0;
  background-color: var(--color-deep-green);
}

/* FAQ Section */
.page-nh__faq-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background for contrast */
  color: #333333; /* Dark text for light background */
}

.page-nh__faq-section .page-nh__section-title {
  color: var(--color-deep-green);
  text-shadow: none;
}

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

.page-nh__faq-item {
  background-color: #f0f0f0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.page-nh__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-deep-green);
  cursor: pointer;
  background-color: #e8e8e8;
  border-bottom: 1px solid #e0e0e0;
}

.page-nh__faq-item[open] .page-nh__faq-question {
  border-bottom: 1px solid #d0d0d0;
}

.page-nh__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-nh__faq-item[open] .page-nh__faq-toggle {
  transform: rotate(45deg);
}

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

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

/* Conclusion Section */
.page-nh__conclusion-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--color-deep-green);
}

.page-nh__conclusion-section .page-nh__text-block {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-nh__hero-content {
    padding: 0 30px;
  }
  .page-nh__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-nh__tagline {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
  }
}

@media (max-width: 768px) {
  .page-nh {
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-nh__hero-section {
    padding-bottom: 40px;
  }

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

  .page-nh__hero-content {
    padding: 0 15px;
  }

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

  .page-nh__tagline {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
  }

  .page-nh__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-nh__btn-primary,
  .page-nh__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

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

  .page-nh__text-block {
    font-size: 1rem;
  }

  .page-nh__features-grid,
  .page-nh__steps-grid,
  .page-nh__promotions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-nh__feature-item,
  .page-nh__step-item,
  .page-nh__promo-card {
    padding: 25px;
  }

  .page-nh__feature-title,
  .page-nh__promo-title {
    font-size: 1.3rem;
  }

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

  /* Force responsive images and containers */
  .page-nh img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-nh__hero-image-wrapper,
  .page-nh__introduction-section,
  .page-nh__game-features,
  .page-nh__how-to-play,
  .page-nh__tips-section,
  .page-nh__promotions-section,
  .page-nh__security-section,
  .page-nh__faq-section,
  .page-nh__conclusion-section,
  .page-nh__feature-item,
  .page-nh__step-item,
  .page-nh__promo-card,
  .page-nh__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }

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

@media (max-width: 480px) {
  .page-nh__main-title {
    font-size: clamp(1.5rem, 8vw, 2.2rem);
  }
  .page-nh__tagline {
    font-size: clamp(0.8rem, 3.5vw, 1rem);
  }
  .page-nh__section-title {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
  }
  .page-nh__faq-question {
    font-size: 1rem;
  }
}