.page-n-h {
  font-family: 'Arial', sans-serif;
  color: #E0E0E0; /* Màu chữ sáng trên nền tối */
  background-color: #0A192F; /* Nền chính */
  line-height: 1.6;
}

.page-n-h-heading-primary,
.page-n-h-heading-secondary,
.page-n-h-heading-tertiary {
  color: #E0B400; /* Màu tiêu đề vàng */
  text-align: center;
  margin-bottom: 20px;
}

.page-n-h-heading-primary {
  font-size: 3.5em;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 25px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-n-h-heading-secondary {
  font-size: 2.5em;
  margin-top: 40px;
  margin-bottom: 30px;
}

.page-n-h-heading-tertiary {
  font-size: 1.8em;
  margin-top: 25px;
  margin-bottom: 15px;
  color: #E0E0E0; /* Đảm bảo đủ độ tương phản trên nền tối */
}

.page-n-h-text {
  font-size: 1.1em;
  margin-bottom: 15px;
  text-align: justify;
}

.page-n-h-text-center {
  text-align: center;
}

.page-n-h-link-inline {
  color: #E0B400;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-n-h-link-inline:hover {
  color: #F0D060;
  text-decoration: underline;
}

.page-n-h .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Hero Section */
.page-n-h .hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #0A192F, #1A3A5F);
  overflow: hidden;
}

.page-n-h .hero-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-n-h .hero-image {
  width: 100%;
  margin-bottom: 30px;
  z-index: 1;
}

.page-n-h .hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-n-h .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 800px;
  background: rgba(0, 0, 0, 0.4);
  padding: 30px 20px;
  border-radius: 12px;
  margin-top: -80px; /* Overlay slightly on the image */
}

.page-n-h-cta-button {
  display: inline-block;
  padding: 18px 45px;
  background: #E0B400;
  color: #0A192F;
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
}

.page-n-h-cta-button:hover {
  background: #F0D060;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* General Section Styling */
.page-n-h .section-intro,
.page-n-h .section-games,
.page-n-h .section-promotions,
.page-n-h .section-guide,
.page-n-h .section-tips,
.page-n-h .section-safety,
.page-n-h .section-faq {
  padding: 60px 0;
  border-bottom: 1px solid rgba(224, 180, 0, 0.1);
}

.page-n-h .section-intro {
  background-color: #122842;
}

.page-n-h .section-games {
  background-color: #0A192F;
}

.page-n-h .section-promotions {
  background-color: #122842;
}

.page-n-h .section-guide {
  background-color: #0A192F;
}

.page-n-h .section-tips {
  background-color: #122842;
}

.page-n-h .section-safety {
  background-color: #0A192F;
}

.page-n-h .section-faq {
  background-color: #122842;
  border-bottom: none;
}

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

.page-n-h .game-card {
  background-color: #1A3A5F;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-n-h .game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

.page-n-h-game-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-bottom: 4px solid #E0B400;
}

.page-n-h-game-title {
  color: #E0B400;
  font-size: 1.5em;
  margin: 20px 15px 10px;
}

.page-n-h .game-card .page-n-h-text {
  padding: 0 15px;
  text-align: center;
}

.page-n-h-button-small {
  display: inline-block;
  padding: 12px 25px;
  background: #E0B400;
  color: #0A192F;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-n-h-button-small:hover {
  background: #F0D060;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Promotions List */
.page-n-h-list-promotions {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-n-h-list-item-promotion {
  display: flex;
  align-items: flex-start;
  background-color: #1A3A5F;
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.page-n-h-list-item-promotion:hover {
  transform: translateX(10px);
}

.page-n-h-promotion-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-right: 25px;
  flex-shrink: 0;
}

.page-n-h-promotion-content .page-n-h-heading-tertiary {
  text-align: left;
  margin-top: 0;
  margin-bottom: 10px;
  color: #E0B400;
}

.page-n-h-promotion-content .page-n-h-text {
  font-size: 1em;
  text-align: left;
}

/* Ordered List (Guide) */
.page-n-h-list-ordered {
  list-style: none;
  counter-reset: guide-step;
  padding: 0;
}

.page-n-h-list-ordered .page-n-h-list-item {
  background-color: #1A3A5F;
  margin-bottom: 20px;
  padding: 25px 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  padding-left: 70px;
}

.page-n-h-list-ordered .page-n-h-list-item::before {
  counter-increment: guide-step;
  content: counter(guide-step);
  position: absolute;
  left: 25px;
  top: 25px;
  background-color: #E0B400;
  color: #0A192F;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
}

.page-n-h-list-ordered .page-n-h-heading-tertiary {
  text-align: left;
  margin-top: 0;
  margin-bottom: 10px;
  color: #E0B400;
}

.page-n-h-list-ordered .page-n-h-text {
  text-align: left;
}

.page-n-h-full-width-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 40px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Bullet List (Tips) */
.page-n-h-list-bullet {
  list-style: none;
  padding: 0;
}

.page-n-h-list-bullet .page-n-h-list-item {
  background-color: #1A3A5F;
  margin-bottom: 15px;
  padding: 20px 25px;
  border-left: 5px solid #E0B400;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  font-size: 1.1em;
}

.page-n-h-list-bullet .page-n-h-list-item strong {
  color: #E0B400;
}

/* Safety Features */
.page-n-h .safety-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-n-h .feature-item {
  background-color: #1A3A5F;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-n-h .feature-item:hover {
  transform: translateY(-5px);
  background-color: #2A4A6F;
}

.page-n-h-feature-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-n-h .feature-item .page-n-h-heading-tertiary {
  color: #E0B400;
  margin-top: 0;
}

.page-n-h .feature-item .page-n-h-text {
  font-size: 1em;
}

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

.faq-item {
  margin-bottom: 15px;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #1A3A5F;
  border: 1px solid rgba(224, 180, 0, 0.2);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.faq-question:hover {
  background: #2A4A6F;
  border-color: #E0B400;
}

.faq-question .page-n-h-heading-tertiary {
  margin: 0;
  text-align: left;
  flex-grow: 1;
  color: #E0E0E0;
}

.faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #E0B400;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 20px;
  background: #0A192F;
  border-radius: 0 0 8px 8px;
  border-left: 1px solid rgba(224, 180, 0, 0.2);
  border-right: 1px solid rgba(224, 180, 0, 0.2);
  border-bottom: 1px solid rgba(224, 180, 0, 0.2);
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height to contain content */
  padding: 20px;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: #F0D060;
}

.faq-answer .page-n-h-text {
  padding-top: 10px;
  text-align: left;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-n-h-heading-primary {
    font-size: 3em;
  }
  .page-n-h-heading-secondary {
    font-size: 2em;
  }
  .page-n-h .hero-content {
    margin-top: -60px;
    padding: 25px 15px;
  }
}

@media (max-width: 768px) {
  .page-n-h .container {
    padding: 20px 15px;
  }
  .page-n-h-heading-primary {
    font-size: 2.5em;
    margin-bottom: 20px;
  }
  .page-n-h-heading-secondary {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 20px;
  }
  .page-n-h-heading-tertiary {
    font-size: 1.4em;
    margin-top: 20px;
    margin-bottom: 10px;
  }
  .page-n-h-text {
    font-size: 1em;
  }
  .page-n-h-cta-button {
    padding: 15px 35px;
    font-size: 18px;
    margin-top: 25px;
  }
  .page-n-h .hero-content {
    margin-top: -40px;
  }
  .page-n-h .game-grid {
    grid-template-columns: 1fr;
  }
  .page-n-h-list-item-promotion {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .page-n-h-promotion-icon {
    margin-right: 0;
    margin-bottom: 15px;
  }
  .page-n-h-promotion-content .page-n-h-heading-tertiary,
  .page-n-h-promotion-content .page-n-h-text {
    text-align: center;
  }
  .page-n-h-list-ordered .page-n-h-list-item {
    padding-left: 25px;
    padding-top: 60px;
  }
  .page-n-h-list-ordered .page-n-h-list-item::before {
    left: 50%;
    transform: translateX(-50%);
    top: 15px;
  }
  .page-n-h .safety-features {
    grid-template-columns: 1fr;
  }
  .faq-question {
    padding: 15px;
  }
  .faq-question .page-n-h-heading-tertiary {
    font-size: 1.2em;
  }
  .faq-toggle {
    font-size: 24px;
  }
  .faq-answer {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .page-n-h-heading-primary {
    font-size: 2em;
  }
  .page-n-h-heading-secondary {
    font-size: 1.5em;
  }
  .page-n-h-cta-button {
    padding: 12px 25px;
    font-size: 16px;
  }
  .page-n-h .hero-content {
    margin-top: -30px;
    padding: 20px 10px;
  }
  .page-n-h-feature-icon {
    width: 80px;
    height: 80px;
  }
}