/* style/nh.css */

/* General Styles */
.page-nh {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #F5F7FA; /* Body background color */
}

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

/* Section Styles */
.page-nh__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  overflow: hidden;
}

.page-nh__image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-nh__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

.page-nh__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.page-nh__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 5vw, 3.2rem); /* Responsive font size */
}

.page-nh__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

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

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

.page-nh__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-nh__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-nh__btn-secondary {
  background: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
}

.page-nh__btn-secondary:hover {
  background: #f0f0f0;
  color: #FF5A4F;
  transform: translateY(-2px);
}

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

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

.page-nh__content-area {
  padding: 60px 20px;
  background-color: #F5F7FA;
  color: #333333;
}

.page-nh__section {
  padding: 60px 20px;
}

.page-nh__dark-bg {
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
  color: #ffffff;
}

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

.page-nh__section-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: inherit;
  text-align: center;
  margin-bottom: 40px;
}

.page-nh__dark-bg .page-nh__section-title {
  color: #ffffff;
}

.page-nh__sub-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: inherit;
  margin-top: 30px;
  margin-bottom: 20px;
}

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

.page-nh__list {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: inherit;
}

.page-nh__ordered-list {
  list-style: decimal;
  margin-left: 25px;
  margin-bottom: 20px;
  color: inherit;
}

.page-nh__list-item {
  margin-bottom: 10px;
  font-size: 1rem;
}

.page-nh__content-image {
  display: block;
  margin: 30px auto;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Game Grid */
.page-nh__game-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: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  color: #333333;
}

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

.page-nh__game-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #E53935;
  padding: 0 15px;
}

.page-nh__game-description {
  font-size: 0.95rem;
  color: #555555;
  padding: 0 15px 20px;
  flex-grow: 1;
}

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

.page-nh__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  color: #ffffff;
}

.page-nh__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: brightness(1.2);
}

.page-nh__feature-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-nh__feature-description {
  font-size: 0.95rem;
  color: #f0f0f0;
}

/* FAQ Section */
.page-nh__faq-section {
  padding: 60px 20px;
  background-color: #F5F7FA;
  color: #333333;
}

.page-nh__faq-list {
  margin-top: 30px;
}

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

.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; /* Remove default marker */
  color: #E53935;
}

.page-nh__faq-item summary::-webkit-details-marker {
  display: none; /* Remove default marker for Webkit */
}

.page-nh__faq-qtext {
  flex-grow: 1;
}

.page-nh__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #E53935;
}

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

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

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

/* CTA Section */
.page-nh__cta-section {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
}

/* Image and Video Responsive Rules (Desktop) */
.page-nh img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-nh video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

.page-nh__video-container,
.page-nh__video-wrapper {
  width: 100%; /* Ensure desktop width is 100% with max-width */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

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

  .page-nh__section-title {
    font-size: 2rem;
  }

  .page-nh__sub-title {
    font-size: 1.5rem;
  }

  .page-nh__hero-section,
  .page-nh__content-area,
  .page-nh__section,
  .page-nh__faq-section,
  .page-nh__cta-section {
    padding: 30px 15px;
  }

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

  .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 img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-nh video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-nh__hero-section .page-nh__image-wrapper {
    position: relative;
    height: 250px;
  }

  .page-nh__hero-image {
    height: 250px;
  }

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

  .page-nh__game-image {
    height: 180px;
  }

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

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

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

  .page-nh__video-container,
  .page-nh__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-nh__main-title {
    font-size: clamp(1.5rem, 9vw, 2rem);
  }

  .page-nh__description {
    font-size: 1rem;
  }

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

  .page-nh__sub-title {
    font-size: 1.3rem;
  }
}