/* style/nh.css */

/* Variables for colors */
:root {
  --color-primary: #11A84E;
  --color-secondary: #22C768;
  --color-card-bg: #11271B;
  --color-bg: #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;
  --color-light-bg-text: #333333; /* For light body background */
}

/* Base styles for the page */
.page-nh {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--color-light-bg-text); /* Default text color for light body bg */
  background-color: #f4f4f4; /* From shared.css body background */
}

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

/* Section styling */
.page-nh__hero-section,
.page-nh__introduction-section,
.page-nh__benefits-section,
.page-nh__how-to-play-section,
.page-nh__tips-section,
.page-nh__hot-games-section,
.page-nh__faq-section,
.page-nh__cta-section {
  padding: 60px 0;
}

.page-nh__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: var(--color-text-main); /* Light text for dark hero */
  background-color: var(--color-bg);
  padding-top: 10px; /* Small top padding, body handles --header-offset */
}

.page-nh__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-nh__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Subtle overlay for text readability */
}

.page-nh__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background for text */
  border-radius: 10px;
}

.page-nh__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.05em;
  color: var(--color-gold);
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.7);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}

.page-nh__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--color-text-main);
}

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

.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;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-nh__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-nh__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

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

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

.page-nh__btn-small {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.page-nh__btn-large {
  padding: 18px 35px;
  font-size: 1.1rem;
}

.page-nh__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

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

.page-nh__light-bg {
  background-color: #f4f4f4;
  color: var(--color-light-bg-text);
}

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

.page-nh__image-content {
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  max-width: 100%;
  height: auto;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  min-width: 200px;
  min-height: 200px;
}

/* Benefits Section */
.page-nh__benefits-section .page-nh__section-title {
  color: var(--color-text-main);
}

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

.page-nh__benefit-card,
.page-nh__tip-card {
  background-color: var(--color-card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  text-align: center;
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-nh__benefit-card:hover,
.page-nh__tip-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

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

.page-nh__card-text {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* How-to-Play Section */
.page-nh__step-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
}

.page-nh__step-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 30px;
  position: relative;
  padding-left: 60px;
}

.page-nh__step-item::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  box-shadow: 0 2px 10px rgba(17, 168, 78, 0.4);
}

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

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

.page-nh__game-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

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

.page-nh__game-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-nh__game-card-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--color-deep-green);
  margin: 15px 15px 10px;
}

.page-nh__game-card-link {
  text-decoration: none;
  color: inherit;
}

.page-nh__game-card-link:hover {
  color: var(--color-primary);
}

.page-nh__game-card-description {
  font-size: 0.95rem;
  color: #666;
  padding: 0 15px;
  margin-bottom: 20px;
}

.page-nh__game-card .page-nh__btn-primary {
  margin: 0 15px 15px;
  width: calc(100% - 30px);
}

/* FAQ Section */
.page-nh__faq-section .page-nh__section-title {
  color: var(--color-text-main);
}

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

.page-nh__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15rem;
  font-weight: bold;
  cursor: pointer;
  color: var(--color-gold);
  transition: background-color 0.3s ease;
}

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

.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: 0 20px 20px;
  font-size: 1rem;
  color: var(--color-text-secondary);
}

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

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

/* Responsive Styles */
@media (max-width: 768px) {
  .page-nh__hero-section {
    padding: 40px 0;
  }

  .page-nh__hero-content {
    padding: 20px;
  }

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

  .page-nh__description {
    font-size: 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.5rem, 6vw, 2.2rem);
    margin-bottom: 30px;
  }

  .page-nh__introduction-section,
  .page-nh__benefits-section,
  .page-nh__how-to-play-section,
  .page-nh__tips-section,
  .page-nh__hot-games-section,
  .page-nh__faq-section,
  .page-nh__cta-section {
    padding: 40px 0;
  }

  .page-nh__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Images responsive */
  .page-nh img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px;
    min-height: 200px;
  }

  .page-nh__image-content,
  .page-nh__game-card-image {
    margin-left: auto;
    margin-right: auto;
  }

  /* Content sections for mobile */
  .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;
  }

  .page-nh__step-item {
    padding-left: 0;
    text-align: center;
    align-items: center;
  }

  .page-nh__step-item::before {
    position: static;
    margin-bottom: 15px;
  }

  .page-nh__game-card-image {
    height: auto;
  }

  .page-nh__game-card .page-nh__btn-primary {
    width: calc(100% - 30px) !important;
  }

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

  .page-nh__faq-answer {
    font-size: 0.9rem;
    padding: 0 15px 15px;
  }
}