/* style/nh.css */

/* Base styles for the page-nh scope */
.page-nh {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

/* Color Contrast Fixes based on body background #0a0a0a (dark) */
.page-nh__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

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

/* Headings */
.page-nh h1, .page-nh h2, .page-nh h3 {
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: inherit; /* Inherit from section background */
}

.page-nh__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
  color: #ffffff;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-nh__section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: 30px;
  color: inherit;
}

.page-nh__sub-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-top: 30px;
  margin-bottom: 15px;
  color: inherit;
}

/* Paragraphs and Lists */
.page-nh__description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #f0f0f0;
}

.page-nh__text-block {
  margin-bottom: 15px;
  font-size: 1rem;
  color: inherit;
}

.page-nh__list,
.page-nh__numbered-list,
.page-nh__features-list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: inherit;
}

.page-nh__numbered-list {
  list-style-type: decimal;
}

.page-nh__list-item {
  margin-bottom: 10px;
  color: inherit;
}

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

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

.page-nh__btn-primary,
.page-nh__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-nh__btn-primary {
  background-color: #EA7C07; /* Custom color for Login */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-nh__btn-primary:hover {
  background-color: #d16b06;
  border-color: #d16b06;
}

.page-nh__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-nh__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-nh__btn-small {
  padding: 8px 18px;
  font-size: 0.9rem;
}

.page-nh__btn-large {
  padding: 15px 30px;
  font-size: 1.1rem;
}

.page-nh__text-link {
  color: #EA7C07; /* Custom color for links */
  text-decoration: underline;
}

.page-nh__text-link:hover {
  color: #d16b06;
}

/* Sections */
.page-nh__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding as body handles --header-offset */
  text-align: center;
  overflow: hidden;
}

.page-nh__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
}

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

.page-nh__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-top: 20px; /* Space between image and text */
}

.page-nh__intro-section,
.page-nh__guide-section,
.page-nh__features-section {
  padding: 60px 0;
}

.page-nh__games-section,
.page-nh__promotions-section,
.page-nh__faq-section,
.page-nh__conclusion-section {
  padding: 60px 0;
}

/* Game Grid */
.page-nh__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-nh__game-card,
.page-nh__promo-card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark bg */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
  height: 100%; /* Ensure cards are same height */
  box-sizing: border-box;
}

.page-nh__game-image,
.page-nh__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-nh__card-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-nh__card-text {
  font-size: 0.95rem;
  color: #f0f0f0;
  flex-grow: 1;
  margin-bottom: 20px;
}

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

.page-nh__view-all-promos {
  text-align: center;
  margin-top: 40px;
}

/* Features List */
.page-nh__features-list {
  list-style-type: none;
  margin-left: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-nh__features-list .page-nh__list-item {
  background-color: #f8f8f8;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
  text-align: left;
}

.page-nh__feature-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-nh__feature-text {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #555555;
}

/* FAQ Section */
.page-nh__faq-list {
  margin-top: 30px;
}

.page-nh__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-nh__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  list-style: none;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
}

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

.page-nh__faq-qtext {
  flex-grow: 1;
  pointer-events: none; /* Prevent summary click from being blocked by span */
}

.page-nh__faq-toggle {
  font-size: 1.5rem;
  margin-left: 15px;
  pointer-events: none; /* Prevent summary click from being blocked by span */
}

.page-nh__faq-item[open] .page-nh__faq-toggle {
  content: '−';
}

.page-nh__faq-answer {
  padding: 15px 25px 25px 25px;
  font-size: 0.95rem;
  color: #f0f0f0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-nh__game-grid,
  .page-nh__promo-grid,
  .page-nh__features-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-nh__container {
    padding: 0 15px !important;
  }

  .page-nh h1,
  .page-nh h2,
  .page-nh h3 {
    margin-bottom: 15px;
  }

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

  .page-nh__section-title {
    font-size: clamp(1.8rem, 6vw, 2.2rem);
  }

  .page-nh__sub-title {
    font-size: clamp(1.3rem, 5vw, 1.7rem);
  }

  .page-nh__description,
  .page-nh__text-block,
  .page-nh__list-item,
  .page-nh__card-text,
  .page-nh__feature-text,
  .page-nh__faq-answer p {
    font-size: 1rem;
  }

  .page-nh__hero-section,
  .page-nh__intro-section,
  .page-nh__games-section,
  .page-nh__guide-section,
  .page-nh__promotions-section,
  .page-nh__features-section,
  .page-nh__faq-section,
  .page-nh__conclusion-section {
    padding: 40px 0;
  }

  .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 15px !important;
  }

  /* 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-image-wrapper,
  .page-nh__game-grid, .page-nh__promo-grid, .page-nh__features-list, .page-nh__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-nh__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
  }

  .page-nh__game-card, .page-nh__promo-card {
    padding: 20px;
  }

  .page-nh__faq-item summary {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-nh__faq-answer {
    padding: 10px 20px 20px 20px;
  }
}

@media (max-width: 480px) {
  .page-nh__game-grid,
  .page-nh__promo-grid,
  .page-nh__features-list {
    grid-template-columns: 1fr;
  }
}