/* Custom CSS variables for color contrast */
:root {
  --page-text-color: #FFF5E1;
  --page-bg-color: #B71C1C;
  --section-title-color: #FFD86A;
  --section-description-color: #FFF5E1;
  --highlight-color: #FFCC66; /* Use Glow for highlight */
  --card-bg-color: #D32F2F;
  --border-color: #F2B544;
  --deep-red-color: #7A0E0E;
  --gold-color: #F4D34D;
}

/* Base styles for the Nổ Hũ page */
.page-no-hu {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-text-color);
  background-color: var(--page-bg-color);
  padding-bottom: 50px; /* Ensure space above footer */
}

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

.page-no-hu__section {
  padding: 60px 0;
  text-align: center;
}

.page-no-hu__section-title {
  font-size: clamp(28px, 4vw, 38px);
  color: var(--section-title-color);
  margin-bottom: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.page-no-hu__section-description {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--section-description-color);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-no-hu__text-block {
  font-size: 17px;
  color: var(--page-text-color);
  margin-bottom: 20px;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-no-hu__highlight {
  color: var(--highlight-color);
  font-weight: bold;
}

/* Hero Section */
.page-no-hu__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden;
  background: var(--page-bg-color);
}

.page-no-hu__hero-image-wrapper {
  position: relative;
  width: 100%;
  max-height: 600px; /* Limit height */
  overflow: hidden;
  margin-bottom: 30px;
}

.page-no-hu__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Desktop: cover to fill space */
  object-position: center;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-no-hu__hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative; /* Ensure content is above any potential background elements */
  z-index: 2;
  padding: 0 20px;
}

.page-no-hu__hero-title {
  font-size: clamp(36px, 5vw, 52px);
  color: var(--section-title-color);
  margin-bottom: 20px;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.page-no-hu__hero-description {
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--section-description-color);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-no-hu__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Buttons */
.page-no-hu__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
}

.page-no-hu__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom button color */
  color: #333333; /* Dark text for contrast on bright gold */
  border: 2px solid var(--border-color); /* Custom border color */
}

.page-no-hu__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-no-hu__btn-secondary {
  background: transparent;
  color: var(--section-title-color); /* Gold text */
  border: 2px solid var(--section-title-color); /* Gold border */
}

.page-no-hu__btn-secondary:hover {
  background: rgba(255, 216, 106, 0.1);
  color: var(--section-description-color);
  border-color: var(--section-description-color);
}

.page-no-hu__cta-center {
  margin-top: 40px;
}

/* Intro Section */
.page-no-hu__intro-section {
  background-color: var(--page-bg-color);
  color: var(--page-text-color);
}

/* Games Showcase */
.page-no-hu__games-showcase {
  background-color: var(--card-bg-color);
  padding-bottom: 60px;
}

.page-no-hu__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.page-no-hu__game-card {
  background: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--page-text-color);
}

.page-no-hu__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-no-hu__game-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-no-hu__game-card-title {
  font-size: 22px;
  font-weight: 700;
  margin: 15px 15px 10px;
  color: var(--section-title-color);
}

.page-no-hu__game-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-no-hu__game-card-title a:hover {
  color: var(--highlight-color);
}

.page-no-hu__game-card-description {
  font-size: 15px;
  margin: 0 15px 20px;
  color: var(--page-text-color);
}

.page-no-hu__btn-play {
  padding: 10px 25px;
  font-size: 16px;
  margin-top: 10px;
}

/* How to Play Section */
.page-no-hu__how-to-play-section {
  background-color: var(--page-bg-color);
  color: var(--page-text-color);
  text-align: left;
}

.page-no-hu__ordered-list {
  list-style: decimal;
  padding-left: 25px;
  margin-top: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-no-hu__ordered-list li {
  margin-bottom: 15px;
  font-size: 17px;
  color: var(--page-text-color);
}

.page-no-hu__ordered-list li strong {
  color: var(--section-title-color);
}

/* Promotions Section (Dark background) */
.page-no-hu__promotions-section {
  background-color: var(--deep-red-color);
  color: var(--page-text-color);
}

.page-no-hu__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.page-no-hu__promo-card {
  background: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 20px;
  color: var(--page-text-color);
}

.page-no-hu__promo-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-no-hu__promo-card-title {
  font-size: 20px;
  font-weight: 700;
  margin: 15px 15px 10px;
  color: var(--section-title-color);
}

.page-no-hu__promo-card-text {
  font-size: 15px;
  margin: 0 15px;
  color: var(--page-text-color);
}

/* Benefits Section */
.page-no-hu__benefits-section {
  background-color: var(--page-bg-color);
  color: var(--page-text-color);
  text-align: left;
}

.page-no-hu__benefits-list {
  list-style: none; /* Remove default bullet */
  padding: 0;
  margin-top: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-no-hu__benefits-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 17px;
  color: var(--page-text-color);
}

.page-no-hu__benefits-list li::before {
  content: '✔'; /* Custom checkmark */
  position: absolute;
  left: 0;
  color: var(--gold-color);
  font-weight: bold;
  font-size: 20px;
  line-height: 1;
}

/* FAQ Section */
.page-no-hu__faq-section {
  background-color: var(--card-bg-color);
  color: var(--page-text-color);
}

.page-no-hu__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
  text-align: left;
}

details.page-no-hu__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg-color);
}
details.page-no-hu__faq-item summary.page-no-hu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--page-text-color);
}
details.page-no-hu__faq-item summary.page-no-hu__faq-question::-webkit-details-marker {
  display: none;
}
details.page-no-hu__faq-item summary.page-no-hu__faq-question:hover {
  background: rgba(255, 255, 255, 0.05);
}
.page-no-hu__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--section-title-color);
}
.page-no-hu__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--gold-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-no-hu__faq-item .page-no-hu__faq-answer {
  padding: 0 20px 20px;
  background: rgba(0, 0, 0, 0.1); /* Slightly darker background for answer */
  border-radius: 0 0 5px 5px;
  color: var(--page-text-color);
}
.page-no-hu__faq-answer p {
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.6;
}

/* Final CTA Section */
.page-no-hu__cta-final-section {
  background-color: var(--deep-red-color);
  color: var(--page-text-color);
  padding-bottom: 80px;
}

.page-no-hu__cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-no-hu__cta-title {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--section-title-color);
  margin-bottom: 20px;
  font-weight: 700;
}

.page-no-hu__cta-description {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--page-text-color);
  margin-bottom: 40px;
}

/* Global image styles */
.page-no-hu img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-no-hu__hero-image-wrapper {
    max-height: 500px;
  }
  .page-no-hu__games-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-no-hu__promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-no-hu__hero-section {
    padding-top: 10px; /* Ensure small padding, body handles header offset */
    padding-bottom: 40px;
  }
  .page-no-hu__hero-image-wrapper {
    max-height: 300px; /* Smaller height for mobile hero image */
    margin-bottom: 20px;
  }
  .page-no-hu__hero-image {
    object-fit: contain !important; /* Mobile: contain to show full image, prevent cropping */
    aspect-ratio: unset !important; /* Remove aspect ratio if set, let height auto */
    border-radius: 0;
  }
  .page-no-hu__hero-title {
    font-size: clamp(30px, 8vw, 40px);
    margin-bottom: 15px;
  }
  .page-no-hu__hero-description {
    font-size: clamp(16px, 4vw, 18px);
    margin-bottom: 30px;
  }
  .page-no-hu__hero-cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px;
    width: 100%;
  }

  /* 通用图片与容器 */
  .page-no-hu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-no-hu__container,
  .page-no-hu__section,
  .page-no-hu__game-card,
  .page-no-hu__promo-card,
  .page-no-hu__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-no-hu__section {
    padding: 40px 0;
  }
  .page-no-hu__section-title {
    font-size: clamp(24px, 6vw, 30px);
    margin-bottom: 15px;
  }
  .page-no-hu__section-description {
    font-size: clamp(15px, 3.5vw, 17px);
    margin-bottom: 30px;
  }
  .page-no-hu__text-block,
  .page-no-hu__ordered-list li,
  .page-no-hu__benefits-list li,
  .page-no-hu__faq-answer p {
    font-size: 16px;
  }

  /* 产品展示图区域 (General game grid for Nổ Hũ) */
  .page-no-hu__games-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for mobile */
    gap: 20px;
    margin-top: 30px;
    overflow-x: hidden;
  }
  .page-no-hu__game-card-image {
    height: 150px; /* Adjust height for mobile cards */
  }
  .page-no-hu__game-card-title {
    font-size: 18px;
  }
  .page-no-hu__game-card-description {
    font-size: 14px;
    margin: 0 10px 15px;
  }
  .page-no-hu__btn-play {
    padding: 8px 15px;
    font-size: 14px;
  }

  /* Promotions Grid */
  .page-no-hu__promo-grid {
    grid-template-columns: 1fr; /* Stack promos vertically */
    gap: 20px;
    margin-top: 30px;
  }
  .page-no-hu__promo-card-image {
    height: 160px;
  }
  .page-no-hu__promo-card-title {
    font-size: 18px;
  }
  .page-no-hu__promo-card-text {
    font-size: 14px;
  }

  /* FAQ */
  details.page-no-hu__faq-item summary.page-no-hu__faq-question {
    padding: 15px;
  }
  .page-no-hu__faq-qtext {
    font-size: 15px;
  }
}