/* style/nh.css */

/* Base styles for the page content, inherits from body background */
.page-nh {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Default light text for overall dark sections */
  background-color: #08160F; /* Overall background for the main content sections */
}

/* Container for main content to center it and apply max-width */
.page-nh__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-nh__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #F2FFF6; /* Light text for hero section */
  min-height: 500px;
  overflow: hidden;
  padding-top: 10px; /* Small top padding for visual separation */
}

.page-nh__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

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

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

.page-nh__main-title {
  font-size: clamp(2em, 5vw, 3.5em); /* Responsive H1 font size */
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #F2FFF6; /* Main text color */
}

.page-nh__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #A7D9B8; /* Secondary text color */
}

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

.page-nh__cta-buttons-inline {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px;
  margin-bottom: 15px;
}

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

.page-nh__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
}

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

.page-nh__btn-secondary {
  background-color: transparent;
  color: #F2FFF6; /* Main text color for secondary btn */
  border: 2px solid #2E7A4E; /* Border color */
}

.page-nh__btn-secondary:hover {
  background-color: #2E7A4E; /* Border color */
  transform: translateY(-2px);
}

/* General Section Styles */
.page-nh__section {
  padding: 60px 0;
  color: #F2FFF6; /* Default text color for sections on dark background */
}

.page-nh__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #F2C14E; /* Gold color for section titles */
}

.page-nh__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #A7D9B8; /* Secondary text color */
}

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

.page-nh__feature-card {
  background-color: #11271B; /* Card BG color */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: #F2FFF6; /* Main text color for cards */
}

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

.page-nh__feature-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensure no extra space below image */
  min-width: 200px;
  min-height: 200px;
  filter: none; /* Ensure no filter is applied */
}

.page-nh__feature-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #F2C14E; /* Gold color for feature titles */
}

.page-nh__feature-description {
  font-size: 1em;
  color: #A7D9B8; /* Secondary text color */
}

/* Game Type List */
.page-nh__game-type-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-nh__game-type-item {
  background-color: #11271B; /* Card BG color */
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  color: #F2FFF6; /* Main text color for game type items */
}

.page-nh__game-type-heading {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #F2C14E; /* Gold color for headings */
}

.page-nh__game-type-description {
  font-size: 1em;
  color: #A7D9B8; /* Secondary text color */
}

/* How-To-Play Steps */
.page-nh__step-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
  margin-top: 30px;
}

.page-nh__step-item {
  background-color: #11271B; /* Card BG color */
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  position: relative;
  padding-left: 70px;
  color: #F2FFF6; /* Main text color for step items */
}

.page-nh__step-item::before {
  counter-increment: step-counter;
  content: "Bước " counter(step-counter);
  position: absolute;
  left: 20px;
  top: 25px;
  background-color: #13994A; /* Deep Green from button gradient */
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9em;
}

.page-nh__step-heading {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #F2C14E; /* Gold color for headings */
}

.page-nh__step-description {
  font-size: 1em;
  color: #A7D9B8; /* Secondary text color */
}

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

.page-nh__promo-card {
  background-color: #11271B; /* Card BG color */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: #F2FFF6; /* Main text color for promo cards */
  display: flex;
  flex-direction: column;
}

.page-nh__promo-card .page-nh__btn-primary {
  margin-top: auto; /* Push button to bottom */
}

.page-nh__promo-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #F2C14E; /* Gold color for promo titles */
}

.page-nh__promo-description {
  font-size: 1em;
  margin-bottom: 20px;
  color: #A7D9B8; /* Secondary text color */
}

.page-nh__promotions-cta {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1em;
  color: #A7D9B8; /* Secondary text color */
}

.page-nh__promotions-cta a {
  color: #2AD16F; /* Link color */
  text-decoration: none;
  font-weight: bold;
}

.page-nh__promotions-cta a:hover {
  text-decoration: underline;
}

/* Tips & Strategies */
.page-nh__tip-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-nh__tip-item {
  background-color: #11271B; /* Card BG color */
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  color: #F2FFF6; /* Main text color for tip items */
}

.page-nh__tip-heading {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #F2C14E; /* Gold color for headings */
}

.page-nh__tip-description {
  font-size: 1em;
  color: #A7D9B8; /* Secondary text color */
}

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

.page-nh__faq-item {
  background-color: #11271B; /* Card BG color */
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: #F2FFF6; /* Main text color for FAQ items */
}

.page-nh__faq-item summary {
  list-style: none; /* Remove default marker */
}

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

.page-nh__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #1E3A2A; /* Divider color for question background */
  color: #F2C14E; /* Gold color for question text */
  transition: background-color 0.3s ease;
}

.page-nh__faq-question:hover {
  background-color: #2E7A4E; /* Border color on hover */
}

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

.page-nh__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: #A7D9B8; /* Secondary text color */
}

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

/* Conclusion Section */
.page-nh__conclusion {
  background-color: #0A4B2C; /* Deep Green background */
  color: #F2FFF6; /* Main text color */
  text-align: center;
}

.page-nh__conclusion .page-nh__section-title {
  color: #F2C14E; /* Gold color for title */
}

.page-nh__conclusion .page-nh__text-block {
  font-size: 1.1em;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #A7D9B8; /* Secondary text color */
}

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

/* Image specific styles to ensure min size and no filter */
.page-nh img {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
  filter: none; /* Ensure no filter is applied */
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-nh__container,
  .page-nh__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-nh__hero-section {
    min-height: 400px;
    padding-top: 10px !important;
  }

  .page-nh__main-title {
    font-size: 2em;
  }

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

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

  .page-nh__btn-primary,
  .page-nh__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 15px !important;
    font-size: 1em;
  }
  
  .page-nh__cta-buttons-inline {
    flex-direction: column;
    gap: 10px;
  }

  .page-nh__section {
    padding: 40px 0;
  }

  .page-nh__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

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

  .page-nh__feature-image {
    height: 200px; /* Adjust for mobile */
  }

  .page-nh__step-item {
    padding-left: 20px; /* Adjust padding for smaller screens */
  }
  .page-nh__step-item::before {
    position: static;
    display: inline-flex;
    margin-right: 10px;
    vertical-align: middle;
  }
  .page-nh__step-heading {
    display: inline;
    font-size: 1.2em;
    vertical-align: middle;
  }

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

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

  /* Mobile responsive images/videos/buttons - IMPORTANT */
  .page-nh img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: unset !important; /* Allow smaller width if needed by layout, but max-width ensures it doesn't overflow */
    min-height: unset !important;
  }

  .page-nh__section,
  .page-nh__card,
  .page-nh__container,
  .page-nh__promo-card,
  .page-nh__feature-card,
  .page-nh__faq-item,
  .page-nh__step-item,
  .page-nh__game-type-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}