/* style/nh.css */

/* Variables for colors */
:root {
  --page-nh-primary-color: #11A84E;
  --page-nh-secondary-color: #22C768;
  --page-nh-btn-gradient-start: #2AD16F;
  --page-nh-btn-gradient-end: #13994A;
  --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;
}

/* Base styles for the page-nh scope */
.page-nh {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: #fff; /* Assuming body background is white from shared.css */
}

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

.page-nh__light-bg {
  background-color: #ffffff;
  color: #333333;
}

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

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

.page-nh__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: var(--page-nh-primary-color);
}

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

.page-nh__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-nh__text-link {
  color: var(--page-nh-secondary-color);
  text-decoration: none;
  font-weight: bold;
}

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

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

.page-nh__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  filter: brightness(0.5); /* Darken image for text readability */
  min-height: 400px; /* Ensure image covers enough area */
}

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

.page-nh__main-title {
  font-size: clamp(2em, 5vw, 3.5em);
  margin-bottom: 15px;
  color: var(--page-nh-gold-color);
  font-weight: bold;
  line-height: 1.2;
}

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

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

/* Buttons */
.page-nh__btn-primary, .page-nh__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-nh__btn-primary {
  background: linear-gradient(180deg, var(--page-nh-btn-gradient-start) 0%, var(--page-nh-btn-gradient-end) 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

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

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

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

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

.page-nh__btn-large {
  padding: 18px 40px;
  font-size: 1.2em;
}

/* Game Cards Section */
.page-nh__games-section {
  background-color: var(--page-nh-background);
  color: var(--page-nh-text-main);
}

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

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

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

.page-nh__card {
  background-color: var(--page-nh-card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  color: var(--page-nh-text-main);
}

.page-nh__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 15px;
  display: block;
}

.page-nh__card-title {
  font-size: 1.5em;
  margin: 0 20px 10px;
  color: var(--page-nh-gold-color);
}

.page-nh__card-description {
  font-size: 1em;
  color: var(--page-nh-text-secondary);
  margin: 0 20px 20px;
  flex-grow: 1;
}

.page-nh__card .page-nh__btn-primary {
  margin: 0 20px;
  width: calc(100% - 40px);
}

.page-nh__highlight-text {
  font-style: italic;
  color: var(--page-nh-text-secondary);
  margin-top: 30px;
}

/* How To Play Section */
.page-nh__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-nh__step-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333333;
}

.page-nh__step-image {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 5px;
  display: block;
}

.page-nh__step-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: var(--page-nh-primary-color);
}

.page-nh__step-description {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-nh__guide-text {
  margin-top: 30px;
  font-size: 1.1em;
}

/* 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-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-nh__promo-card {
  padding: 0;
  background-color: var(--page-nh-deep-green);
  text-align: left;
}

.page-nh__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
  display: block;
}

.page-nh__promo-title {
  font-size: 1.4em;
  margin: 0 20px 10px;
  color: var(--page-nh-gold-color);
}

.page-nh__promo-description {
  font-size: 0.95em;
  color: var(--page-nh-text-secondary);
  margin: 0 20px 20px;
  flex-grow: 1;
}

.page-nh__promo-card .page-nh__btn-primary {
  margin: 0 20px 20px;
  width: calc(100% - 40px);
}

/* Security Section */
.page-nh__security-section {
  background-color: #ffffff;
  color: #333333;
}

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

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

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

.page-nh__feature-item {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.page-nh__feature-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
  display: inline-block;
}

.page-nh__feature-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: var(--page-nh-primary-color);
}

.page-nh__feature-description {
  font-size: 0.95em;
  color: #555555;
}

/* Mobile Section */
.page-nh__mobile-section {
  padding: 80px 0;
}

.page-nh__mobile-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 50px;
  margin-top: 40px;
  text-align: left;
}

.page-nh__mobile-image {
  flex: 1;
  max-width: 500px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: block;
}

.page-nh__mobile-text {
  flex: 1;
}

.page-nh__mobile-subtitle {
  font-size: 2em;
  margin-bottom: 20px;
  color: var(--page-nh-gold-color);
}

.page-nh__mobile-text .page-nh__text-block {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  color: var(--page-nh-text-secondary);
}

.page-nh__mobile-text .page-nh__btn-primary {
  margin-top: 20px;
}

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

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

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

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

.page-nh__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #f2fff6; /* Light background for question */
  border-bottom: 1px solid #e0e0e0;
}

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

.page-nh__faq-item[open] .page-nh__faq-question {
  background-color: var(--page-nh-primary-color);
  color: #ffffff;
  border-bottom: 1px solid var(--page-nh-primary-color);
}

.page-nh__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 10px;
}

.page-nh__faq-answer {
  padding: 20px;
  font-size: 1em;
  color: #555555;
}

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

.page-nh__faq-item[open] .page-nh__faq-answer {
  border-top: none;
}

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

.page-nh__faq-item summary {
  list-style: none;
}

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

.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 Design */
@media (max-width: 1024px) {
  .page-nh__section-title {
    font-size: 2em;
  }

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

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

  .page-nh__hero-description {
    font-size: 1.1em;
  }

  .page-nh__mobile-content {
    flex-direction: column;
    text-align: center;
  }

  .page-nh__mobile-image {
    margin-bottom: 30px;
  }

  .page-nh__mobile-text .page-nh__text-block {
    text-align: center;
  }
}

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

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

  .page-nh__section-title {
    font-size: 1.8em;
  }

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

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

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

  .page-nh__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em);
  }

  .page-nh__hero-description {
    font-size: 1em;
  }

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

  .page-nh__btn-primary, .page-nh__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-nh__cta-buttons,
  .page-nh__button-group,
  .page-nh__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-nh__card-image {
    height: 200px;
  }

  .page-nh__promo-image {
    height: 150px;
  }

  .page-nh__feature-icon {
    width: 60px;
    height: 60px;
  }

  .page-nh__mobile-section {
    padding: 60px 0;
  }

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

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

  /* Mobile image responsiveness */
  .page-nh img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-nh__section,
  .page-nh__card,
  .page-nh__container,
  .page-nh__hero-content,
  .page-nh__promo-card,
  .page-nh__step-card,
  .page-nh__feature-item,
  .page-nh__mobile-content,
  .page-nh__mobile-text,
  .page-nh__faq-item,
  .page-nh__cta-bottom-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure content doesn't overflow */
  }

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