/* General styles for the Nổ Hũ page */
.page-no-hu {
  font-family: Arial, sans-serif;
  color: var(--text-main, #FFF6D6); /* Default text color from palette */
  background-color: var(--page-bg, #0A0A0A); /* Background from palette */
  line-height: 1.6;
  padding-bottom: 40px; /* Add some padding at the bottom */
}

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

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

.page-no-hu__section-title {
  font-size: clamp(28px, 3.5vw, 42px); /* Clamp for H2 */
  color: var(--text-main, #FFF6D6);
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.2;
}

.page-no-hu__paragraph {
  font-size: 16px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 20px auto;
  color: var(--text-main, #FFF6D6);
}

/* Hero Section */
.page-no-hu__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles header offset */
  display: flex;
  flex-direction: column; /* Ensure image is above text in DOM order */
  align-items: center;
  justify-content: center;
  color: var(--text-main, #FFF6D6);
  text-align: center;
  overflow: hidden; /* Prevent content overflow */
}

.page-no-hu__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px; /* Space between image and content */
}

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

.page-no-hu__hero-content {
  position: relative;
  z-index: 2;
  padding: 20px;
  max-width: 900px;
}

.page-no-hu__main-title {
  font-size: clamp(36px, 5vw, 60px); /* H1 font size with clamp */
  color: var(--text-main, #FFF6D6);
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-no-hu__hero-description {
  font-size: clamp(18px, 2.5vw, 22px);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-main, #FFF6D6);
}

.page-no-hu__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  justify-content: center;
  gap: 20px;
  width: 100%; /* Ensure container takes full width for max-width on buttons */
  max-width: 600px; /* Limit button group width */
  margin: 0 auto;
  box-sizing: border-box;
  overflow: hidden;
}

.page-no-hu__btn-primary,
.page-no-hu__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-no-hu__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Dark text on bright button */
  border: none;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-no-hu__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-no-hu__btn-secondary {
  background: #111111; /* Card BG */
  color: var(--main-color, #F2C14E); /* Main color for text */
  border: 2px solid var(--border-color, #3A2A12);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-no-hu__btn-secondary:hover {
  background: var(--main-color, #F2C14E);
  color: #111111;
  border-color: var(--main-color, #F2C14E);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.4);
}

/* Card styles */
.page-no-hu__card {
  background: var(--card-bg, #111111);
  border: 1px solid var(--border-color, #3A2A12);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main, #FFF6D6);
  height: 100%; /* Ensure cards in a grid have equal height */
  box-sizing: border-box;
}

.page-no-hu__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(242, 193, 78, 0.2);
}

.page-no-hu__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Minimum image size */
  min-width: 200px; /* Minimum image size */
}

.page-no-hu__card-title {
  font-size: 22px;
  color: var(--main-color, #F2C14E);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-no-hu__card-text {
  font-size: 15px;
  color: var(--text-main, #FFF6D6);
  flex-grow: 1; /* Allow text to grow and push button to bottom */
}

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

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

.page-no-hu__benefit-item {
  background: var(--card-bg, #111111);
  border: 1px solid var(--border-color, #3A2A12);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main, #FFF6D6);
  height: 100%;
  box-sizing: border-box;
}

.page-no-hu__benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(242, 193, 78, 0.2);
}

.page-no-hu__benefit-icon {
  width: 100px; /* Ensure minimum size */
  height: 100px; /* Ensure minimum size */
  object-fit: contain;
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-width: 100px;
  min-height: 100px;
}

.page-no-hu__benefit-title {
  font-size: 20px;
  color: var(--main-color, #F2C14E);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-no-hu__benefit-text {
  font-size: 15px;
  color: var(--text-main, #FFF6D6);
}

/* Guide Section */
.page-no-hu__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-no-hu__step-card {
  background: var(--card-bg, #111111);
  border: 1px solid var(--border-color, #3A2A12);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  color: var(--text-main, #FFF6D6);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Push button to bottom */
}

.page-no-hu__step-title {
  font-size: 20px;
  color: var(--main-color, #F2C14E);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-no-hu__step-text {
  font-size: 15px;
  color: var(--text-main, #FFF6D6);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-no-hu__btn-small {
  padding: 10px 20px;
  font-size: 16px;
  margin-top: auto; /* Push button to bottom */
}

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

.page-no-hu__promo-card .page-no-hu__card-image {
  min-height: 225px; /* Minimum size for promo images */
}

.page-no-hu__cta-full-width {
  text-align: center;
  margin-top: 40px;
}

.page-no-hu__btn-large {
  padding: 18px 40px;
  font-size: 20px;
  min-width: 280px;
}

/* Tips Section */
.page-no-hu__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-no-hu__list-item {
  background: var(--card-bg, #111111);
  border: 1px solid var(--border-color, #3A2A12);
  border-radius: 8px;
  padding: 20px 25px;
  margin-bottom: 15px;
  font-size: 16px;
  color: var(--text-main, #FFF6D6);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-no-hu__list-item strong {
  color: var(--main-color, #F2C14E);
}