/* Base styles for the Nổ Hũ page */
.page-no-hu {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--Text-Main); /* Default text color for the page */
  background-color: var(--Deep-Navy);
}

.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__dark-section {
  background-color: var(--Card-B-G);
  color: var(--Text-Main);
}

.page-no-hu__section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--Gold);
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-no-hu__section-description {
  font-size: 18px;
  color: var(--Text-Secondary);
  max-width: 800px;
  margin: 0 auto 40px;
}

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

.page-no-hu__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: var(--Text-Main);
  border: 2px solid transparent;
}

.page-no-hu__btn-primary:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-no-hu__btn-secondary {
  background: var(--Card-B-G);
  color: var(--Gold);
  border: 2px solid var(--Gold);
}

.page-no-hu__btn-secondary:hover {
  background: var(--Gold);
  color: var(--Deep-Navy);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.page-no-hu__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 80px;
  color: var(--Text-Main);
  overflow: hidden;
}

.page-no-hu__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.page-no-hu__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
  display: block;
}

.page-no-hu__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding-top: 80px;
  text-align: center;
}

.page-no-hu__main-title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--Gold);
  text-shadow: 0 0 20px rgba(242, 193, 78, 0.7);
}

.page-no-hu__hero-description {
  font-size: clamp(18px, 2vw, 24px);
  margin-bottom: 40px;
  color: var(--Text-Main);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-no-hu__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Content Wrapper for image and text blocks */
.page-no-hu__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
  margin-top: 40px;
}

.page-no-hu__content-wrapper:nth-child(even) {
  flex-direction: row-reverse;
}

.page-no-hu__text-block,
.page-no-hu__image-block {
  flex: 1;
  min-width: 300px;
}

.page-no-hu__image-block img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: block;
}

.page-no-hu__text-block p {
  margin-bottom: 15px;
  color: var(--Text-Secondary);
  font-size: 17px;
}

.page-no-hu__intro-section .page-no-hu__text-block p {
  color: var(--Text-Secondary);
}

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

.page-no-hu__game-type-card {
  background-color: var(--Card-B-G);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--Text-Main);
}

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

.page-no-hu__game-type-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-no-hu__card-title {
  font-size: 22px;
  font-weight: 700;
  margin: 20px 0 10px;
  color: var(--Gold);
}

.page-no-hu__game-type-card p {
  font-size: 16px;
  color: var(--Text-Secondary);
  padding: 0 20px 20px;
}

/* Guide Section */
.page-no-hu__guide-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-no-hu__guide-list li {
  background-color: rgba(255, 255, 255, 0.05);
  border-left: 5px solid var(--Glow);
  margin-bottom: 20px;
  padding: 20px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.page-no-hu__guide-list li:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-no-hu__guide-list h3 {
  font-size: 20px;
  color: var(--Gold);
  margin-top: 0;
  margin-bottom: 10px;
}

.page-no-hu__guide-list h3 a {
  color: var(--Gold);
  text-decoration: none;
}

.page-no-hu__guide-list h3 a:hover {
  text-decoration: underline;
}

.page-no-hu__guide-list p {
  font-size: 16px;
  color: var(--Text-Secondary);
  margin-bottom: 0;
}

/* Strategy Section */
.page-no-hu__strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-no-hu__strategy-card {
  background-color: var(--Card-B-G);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  color: var(--Text-Main);
}

.page-no-hu__strategy-card .page-no-hu__card-title {
  font-size: 22px;
  margin-top: 0;
  color: var(--Gold);
}

.page-no-hu__strategy-card p {
  color: var(--Text-Secondary);
  font-size: 16px;
}

.page-no-hu__strategy-image {
  margin-top: 40px;
  text-align: center;
}

/* Promotions Section */
.page-no-hu__promotions-section .page-no-hu__text-block p a {
  color: var(--Gold);
  text-decoration: none;
}

.page-no-hu__promotions-section .page-no-hu__text-block p a:hover {
  text-decoration: underline;
}

/* Why Choose Section */
.page-no-hu__why-choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-no-hu__why-choose-item {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--Divider);
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, background-color 0.3s ease;
  color: var(--Text-Main);
}

.page-no-hu__why-choose-item:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.1);
}

.page-no-hu__item-title {
  font-size: 20px;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--Glow);
}

.page-no-hu__why-choose-item p {
  font-size: 16px;
  color: var(--Text-Secondary);
  margin-bottom: 0;
}

.page-no-hu__why-choose-image {
  margin-top: 40px;
  text-align: center;
}

/* FAQ Section */
.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: 8px;
  border: 1px solid var(--Divider);
  overflow: hidden;
  background: var(--Card-B-G);
  color: var(--Text-Main);
}

details.page-no-hu__faq-item summary.page-no-hu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

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.1);
}

.page-no-hu__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--Gold);
}

.page-no-hu__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--Glow);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-no-hu__faq-item .page-no-hu__faq-answer {
  padding: 0 25px 20px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 0 0 8px 8px;
  color: var(--Text-Secondary);
  font-size: 16px;
}

.page-no-hu__faq-answer p {
  margin-bottom: 0;
}

.page-no-hu__faq-more-btn {
  margin-top: 40px;
}

/* Conclusion Section */
.page-no-hu__conclusion-section {
  padding-top: 80px;
  padding-bottom: 80px;
  background-color: var(--Deep-Navy);
}

.page-no-hu__conclusion-section .page-no-hu__section-title {
  color: var(--Gold);
}

.page-no-hu__conclusion-section .page-no-hu__section-description {
  color: var(--Text-Secondary);
}

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

/* Global image sizing for content area (min 200x200px) */
.page-no-hu__content-area img,
.page-no-hu__text-block img,
.page-no-hu__image-block img,
.page-no-hu__game-type-card img,
.page-no-hu__strategy-image img,
.page-no-hu__why-choose-image img {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

/* Additional style for link within text block */
.page-no-hu__text-block a {
  color: var(--Glow);
  text-decoration: none;
}

.page-no-hu__text-block a:hover {
  text-decoration: underline;
}

/* Ensure color contrast for main text */
.page-no-hu p,
.page-no-hu li {
  color: var(--Text-Secondary);
}

.page-no-hu h1,
.page-no-hu h2,
.page-no-hu h3,
.page-no-hu h4,
.page-no-hu h5,
.page-no-hu h6 {
  color: var(--Gold);
}

.page-no-hu__dark-section p,
.page-no-hu__dark-section li {
  color: var(--Text-Secondary);
}

/* Ensure contrast for card text */
.page-no-hu__game-type-card p,
.page-no-hu__strategy-card p,
.page-no-hu__why-choose-item p {
  color: var(--Text-Secondary);
}

/* Media Queries for responsiveness */
@media (max-width: 1024px) {
  .page-no-hu__hero-content {
    padding-top: 60px;
  }

  .page-no-hu__main-title {
    font-size: clamp(32px, 4.5vw, 50px);
  }

  .page-no-hu__hero-description {
    font-size: clamp(16px, 1.8vw, 20px);
  }

  .page-no-hu__section {
    padding: 50px 0;
  }

  .page-no-hu__content-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .page-no-hu__content-wrapper:nth-child(even) {
    flex-direction: column;
  }

  .page-no-hu__text-block,
  .page-no-hu__image-block {
    min-width: unset;
    width: 100%;
  }

  .page-no-hu__game-type-card img {
    
  }

  .page-no-hu__strategy-grid,
  .page-no-hu__why-choose-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .page-no-hu__faq-qtext {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-no-hu__hero-section {
    padding-top: 10px; /* Rely on body padding for header offset */
    padding-bottom: 40px;
  }

  .page-no-hu__hero-image img {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important;
    position: relative;
    height: 250px;
    filter: brightness(0.7);
  }

  .page-no-hu__hero-content {
    padding-top: 20px;
  }

  .page-no-hu__main-title {
    font-size: clamp(28px, 8vw, 40px);
    margin-bottom: 15px;
  }

  .page-no-hu__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-no-hu__cta-buttons {
    flex-direction: column !important;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-no-hu__btn-primary,
  .page-no-hu__btn-secondary,
  .page-no-hu a[class*="button"],
  .page-no-hu a[class*="btn"] {
    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-no-hu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-no-hu__container,
  .page-no-hu__section,
  .page-no-hu__intro-section .page-no-hu__content-wrapper,
  .page-no-hu__promotions-section .page-no-hu__content-wrapper,
  .page-no-hu__strategy-section .page-no-hu__strategy-grid,
  .page-no-hu__why-choose-section .page-no-hu__why-choose-grid,
  .page-no-hu__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-no-hu__section-title {
    font-size: clamp(24px, 7vw, 36px);
    margin-bottom: 15px;
  }

  .page-no-hu__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  /* 产品展示图区域 - Game Types Grid */
  .page-no-hu__game-types-grid {
    grid-template-columns: 1fr 1fr; /* 2 columns for mobile */
    gap: 20px;
    overflow-x: hidden;
  }

  .page-no-hu__game-type-card img {
    
  }

  .page-no-hu__card-title {
    font-size: 18px;
  }

  .page-no-hu__game-type-card p {
    font-size: 14px;
    padding: 0 10px 15px;
  }

  /* Hướng Dẫn Chơi section */
  .page-no-hu__guide-list li {
    padding: 15px;
  }

  .page-no-hu__guide-list h3 {
    font-size: 18px;
  }

  .page-no-hu__guide-list p {
    font-size: 15px;
  }
}