/* style/nh.css */

/* Custom Fonts (Example - ensure these are available or use system fonts) */
/* @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Oswald:wght@700&display=swap'); */

: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;
}

.page-nh {
  font-family: 'Roboto', sans-serif;
  color: var(--color-text-main); /* Default text color for dark background */
  background-color: var(--color-background); /* Overall page background */
  line-height: 1.6;
}

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

.page-nh__section-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  color: var(--color-gold);
  text-align: center;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-nh__text-block {
  font-size: 17px;
  line-height: 1.7;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px auto;
  color: var(--color-text-secondary);
}

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

.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: #ffffff;
  box-shadow: 0 5px 15px rgba(17, 168, 78, 0.4);
}

.page-nh__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(17, 168, 78, 0.6);
}

.page-nh__btn-secondary {
  background-color: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  box-shadow: 0 0 10px rgba(17, 168, 78, 0.2);
}

.page-nh__btn-secondary:hover {
  background-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(17, 168, 78, 0.4);
}

.page-nh__btn-secondary--small {
  padding: 10px 20px;
  font-size: 15px;
}

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

.page-nh__cta-buttons--center {
  justify-content: center;
}

/* 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: 60px;
  background-color: var(--color-background);
  overflow: hidden;
}

.page-nh__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-nh__hero-content {
  position: relative;
  text-align: center;
  max-width: 900px;
  margin-top: 40px;
  z-index: 1;
  padding: 0 20px;
}

.page-nh__main-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  color: var(--color-gold);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 0 15px rgba(87, 227, 141, 0.7);
  letter-spacing: 1px;
}

.page-nh__description {
  font-size: 19px;
  color: var(--color-text-secondary);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Intro Section */
.page-nh__intro-section {
  padding: 80px 0;
  background-color: var(--color-card-bg);
  color: var(--color-text-main);
}

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

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

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

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

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

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

.page-nh__feature-text {
  font-size: 16px;
  color: var(--color-text-secondary);
}

/* How to Play Section */
.page-nh__how-to-play-section {
  padding: 80px 0;
  background-color: var(--color-card-bg);
  color: var(--color-text-main);
}

.page-nh__step-list {
  list-style: none;
  padding: 0;
  margin-top: 50px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.page-nh__step-item {
  background-color: var(--color-background);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
  border-left: 5px solid var(--color-primary);
}

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

.page-nh__step-text {
  font-size: 16px;
  color: var(--color-text-secondary);
}

/* Popular Games Section */
.page-nh__popular-games-section {
  padding: 80px 0;
  background-color: var(--color-background);
}

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

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

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

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

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

.page-nh__game-title a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-nh__game-title a:hover {
  color: var(--color-gold);
}

.page-nh__game-provider {
  font-size: 15px;
  color: var(--color-text-secondary);
  margin-bottom: 15px;
}

.page-nh__game-description {
  font-size: 16px;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
  min-height: 80px; /* Ensure consistent card height */
}

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

.page-nh__tip-list {
  list-style: none;
  padding: 0;
  margin-top: 50px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-nh__tip-item {
  background-color: var(--color-background);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-left: 4px solid var(--color-secondary);
  font-size: 16px;
  color: var(--color-text-secondary);
}

.page-nh__tip-item strong {
  color: var(--color-primary);
  font-weight: 700;
}

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

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

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

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

.page-nh__promo-image {
  width: 100%;
  height: 180px; /* Consistent height for promo images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.page-nh__promo-title a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-nh__promo-title a:hover {
  color: var(--color-gold);
}

.page-nh__promo-text {
  font-size: 16px;
  color: var(--color-text-secondary);
  min-height: 60px;
}

/* CTA Section */
.page-nh__cta-section {
  padding: 80px 0;
  background-color: var(--color-card-bg);
  color: var(--color-text-main);
}

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

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

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

.page-nh__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-main);
  cursor: pointer;
  background-color: var(--color-deep-green);
  border-bottom: 1px solid var(--color-divider);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-nh__faq-question:hover {
  background-color: rgba(17, 168, 78, 0.2);
}

.page-nh__faq-toggle {
  font-size: 24px;
  line-height: 1;
  color: var(--color-gold);
}

.page-nh__faq-item[open] .page-nh__faq-toggle {
  transform: rotate(45deg); /* Visually indicate open state */
}

.page-nh__faq-answer {
  padding: 20px 25px;
  font-size: 16px;
  color: var(--color-text-secondary);
  background-color: var(--color-card-bg);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-nh__hero-content {
    margin-top: 20px;
  }
  .page-nh__main-title {
    font-size: clamp(32px, 4.5vw, 56px);
  }
  .page-nh__description {
    font-size: 18px;
  }
  .page-nh__feature-grid, .page-nh__game-card-grid, .page-nh__promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-nh__section-title {
    font-size: clamp(24px, 3.5vw, 40px);
  }
}

@media (max-width: 768px) {
  .page-nh {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-nh__container {
    padding: 0 15px;
  }
  .page-nh__hero-section,
  .page-nh__intro-section,
  .page-nh__features-section,
  .page-nh__how-to-play-section,
  .page-nh__popular-games-section,
  .page-nh__tips-section,
  .page-nh__promo-section,
  .page-nh__cta-section,
  .page-nh__faq-section {
    padding: 50px 0;
  }
  .page-nh__main-title {
    font-size: clamp(28px, 6vw, 48px);
  }
  .page-nh__description {
    font-size: 16px;
  }
  .page-nh__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-nh__btn-primary,
  .page-nh__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
  }
  .page-nh__hero-image,
  .page-nh__feature-icon,
  .page-nh__game-image,
  .page-nh__promo-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-nh__feature-card,
  .page-nh__game-card,
  .page-nh__promo-card,
  .page-nh__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-nh__game-description {
    min-height: unset;
  }
  .page-nh__game-image {
    height: 180px; /* Adjust for smaller screens */
  }
  .page-nh__promo-image {
    height: 150px; /* Adjust for smaller screens */
  }
}

@media (max-width: 480px) {
  .page-nh__main-title {
    font-size: clamp(24px, 7vw, 40px);
  }
  .page-nh__description {
    font-size: 15px;
  }
  .page-nh__section-title {
    font-size: clamp(22px, 5vw, 36px);
  }
  .page-nh__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }
  .page-nh__faq-answer {
    padding: 15px 20px;
    font-size: 15px;
  }
  .page-nh__hero-image-wrapper {
    max-height: 400px;
  }
}