/* style/nh.css */

/* Base styles for the page */
.page-nh {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--background-color, #08160F);
}

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

.page-nh__section-title {
  font-size: 2.5rem;
  color: var(--gold);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.2;
}

.page-nh__text-block {
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-align: justify;
  color: var(--text-secondary);
}

.page-nh__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #FFFFFF;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  border: none;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-nh__btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

/* 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-bottom: 50px;
  padding-top: 10px; /* Small top padding, body handles header offset */
}

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

.page-nh__hero-content {
  position: relative;
  z-index: 1;
  padding: 20px;
  max-width: 900px;
  margin-top: -150px; /* Adjust to layer content over image */
  background: rgba(8, 22, 15, 0.85); /* Semi-transparent background for readability */
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.page-nh__main-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--glow);
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.1;
}

.page-nh__hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Intro Section */
.page-nh__intro-section,
.page-nh__benefits-section,
.page-nh__game-types-section,
.page-nh__guide-section,
.page-nh__strategy-section,
.page-nh__faq-section,
.page-nh__cta-section {
  padding: 60px 0;
  background-color: var(--background-color);
}

.page-nh__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Benefits Section */
.page-nh__benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

.page-nh__benefits-item:hover {
  transform: translateY(-5px);
}

.page-nh__benefits-heading {
  font-size: 1.6rem;
  color: var(--glow);
  margin-bottom: 15px;
}

.page-nh__benefits-description {
  color: var(--text-secondary);
  font-size: 1rem;
}

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

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

.page-nh__game-type-card:hover {
  transform: translateY(-5px);
}

.page-nh__game-type-heading {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 15px;
}

.page-nh__game-type-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.page-nh__game-type-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 15px;
  object-fit: cover;
}

/* Guide Section */
.page-nh__guide-list {
  list-style: none;
  padding: 0;
  counter-reset: guide-step;
  margin-top: 40px;
}

.page-nh__guide-item {
  background-color: var(--card-b-g);
  padding: 30px;
  margin-bottom: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  padding-left: 80px;
  border: 1px solid var(--border-color);
}

.page-nh__guide-item::before {
  counter-increment: guide-step;
  content: "Bước " counter(guide-step);
  position: absolute;
  left: 20px;
  top: 30px;
  background: var(--deep-green);
  color: var(--glow);
  font-weight: bold;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  border: 2px solid var(--glow);
}

.page-nh__guide-heading {
  font-size: 1.4rem;
  color: var(--glow);
  margin-bottom: 10px;
}

.page-nh__guide-description {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Strategy Section */
.page-nh__strategy-list {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: 40px;
}

.page-nh__strategy-item {
  background-color: var(--card-b-g);
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

.page-nh__strategy-heading {
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 10px;
}

.page-nh__strategy-description {
  color: var(--text-secondary);
  font-size: 1rem;
}

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

.page-nh__faq-item {
  background-color: var(--card-b-g);
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-nh__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--text-main);
  background-color: var(--deep-green);
  transition: background-color 0.3s ease;
}

.page-nh__faq-item summary:hover {
  background-color: #0A5A3C;
}

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

.page-nh__faq-qtext {
  flex-grow: 1;
  color: var(--text-main);
}

.page-nh__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--glow);
}

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

.page-nh__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: var(--text-secondary);
  background-color: var(--card-b-g);
  border-top: 1px solid var(--divider);
}

.page-nh__faq-answer p {
  margin: 0;
}

/* CTA Section */
.page-nh__cta-section {
  text-align: center;
  padding: 80px 0;
  background: var(--deep-green);
  border-radius: 15px;
  margin: 40px auto;
  max-width: 1000px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-nh__cta-section .page-nh__section-title {
  color: var(--glow);
  font-size: 2.2rem;
  margin-bottom: 25px;
}

.page-nh__cta-section .page-nh__text-block {
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: var(--text-main);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-nh__hero-content {
    margin-top: -100px;
  }
  .page-nh__section-title {
    font-size: 2rem;
  }
  .page-nh__text-block {
    font-size: 1rem;
  }
  .page-nh__benefits-item, .page-nh__game-type-card {
    padding: 25px;
  }
  .page-nh__guide-item {
    padding-left: 60px;
  }
  .page-nh__guide-item::before {
    left: 15px;
    width: 40px;
    height: 40px;
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  .page-nh__hero-content {
    margin-top: -80px;
    padding: 15px;
  }
  .page-nh__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }
  .page-nh__hero-description {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
  }
  .page-nh__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  .page-nh__text-block {
    font-size: 0.95rem;
  }
  .page-nh__benefits-list, .page-nh__game-type-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-nh__benefits-item, .page-nh__game-type-card, .page-nh__guide-item, .page-nh__strategy-item, .page-nh__faq-item {
    padding: 20px;
  }
  .page-nh__guide-item {
    padding-left: 20px; /* Adjust for smaller screens */
    text-align: center;
  }
  .page-nh__guide-item::before {
    position: static;
    margin-bottom: 10px;
    display: block;
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    border: none;
    font-size: 1rem;
    color: var(--glow);
  }
  .page-nh__faq-item summary {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-nh__faq-answer {
    padding: 15px 20px;
    font-size: 0.9rem;
  }
  .page-nh__cta-section {
    padding: 50px 20px;
  }
  .page-nh__cta-section .page-nh__section-title {
    font-size: 1.8rem;
  }

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

  .page-nh__hero-section,
  .page-nh__intro-section,
  .page-nh__benefits-section,
  .page-nh__game-types-section,
  .page-nh__guide-section,
  .page-nh__strategy-section,
  .page-nh__faq-section,
  .page-nh__cta-section,
  .page-nh__container,
  .page-nh__game-type-card,
  .page-nh__benefits-item,
  .page-nh__guide-item,
  .page-nh__strategy-item,
  .page-nh__faq-item {
    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;
  }

  /* Mobile button responsiveness */
  .page-nh__btn-primary {
    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-section .page-nh__btn-primary {
    max-width: 300px !important; /* Example for a single CTA button */
    margin-left: auto;
    margin-right: auto;
  }

  /* If multiple buttons in a row */
  .page-nh__button-group {
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-nh__section-title {
    font-size: 1.5rem;
  }
  .page-nh__main-title {
    font-size: clamp(1.5rem, 10vw, 2rem);
  }
  .page-nh__btn-primary {
    padding: 12px 20px;
    font-size: 1rem;
  }
}