/* style/no-hu.css */

/* General styles for the Nổ Hũ page */
.page-no-hu {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF; /* Default body background is white */
  line-height: 1.6;
}

.page-no-hu__container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 16px;
  box-sizing: border-box;
}

.page-no-hu__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-no-hu__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

.page-no-hu__btn-primary,
.page-no-hu__btn-secondary,
.page-no-hu__btn-play,
.page-no-hu__btn-promo,
.page-no-hu a[class*="button"],
.page-no-hu a[class*="btn"] {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
  box-sizing: border-box; /* Include padding and border in element's total width */
  max-width: 100%; /* Ensure buttons adapt to container width */
}

.page-no-hu__btn-primary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

.page-no-hu__btn-primary:hover {
  background-color: #1e87b3;
  border-color: #1e87b3;
}

.page-no-hu__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-no-hu__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1e87b3;
  border-color: #1e87b3;
}

.page-no-hu__btn-play,
.page-no-hu__btn-promo {
  background-color: #EA7C07; /* Login color for play/promo buttons */
  color: #FFFFFF;
  border: 2px solid #EA7C07;
  padding: 10px 20px;
  font-size: 0.95em;
}

.page-no-hu__btn-play:hover,
.page-no-hu__btn-promo:hover {
  background-color: #cc6a00;
  border-color: #cc6a00;
}

/* HERO Section */
.page-no-hu__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: #F8F8F8; /* Light background for hero section */
}

.page-no-hu__hero-container {
  max-width: 1170px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding: 0 16px;
}

.page-no-hu__hero-content {
  flex: 1 1 50%;
  min-width: 300px;
}

.page-no-hu__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
  color: #26A9E0;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-no-hu__hero-description {
  font-size: 1.2em;
  color: #555555;
  margin-bottom: 30px;
}

.page-no-hu__cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-no-hu__hero-image {
  flex: 1 1 40%;
  text-align: center;
  min-width: 250px;
}

.page-no-hu__side-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  display: block;
}

/* Intro Section (Module 1) */
.page-no-hu__intro-section {
  padding: 80px 0;
}

.page-no-hu__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
  text-align: center;
}

.page-no-hu__feature-item {
  background-color: #FFFFFF;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.page-no-hu__feature-item:hover {
  transform: translateY(-10px);
}

.page-no-hu__icon-box-media {
  width: 180px; /* Smaller for desktop display */
  height: 180px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 25px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #26A9E0;
  box-shadow: 0 0 0 8px rgba(38, 169, 224, 0.2);
}

.page-no-hu__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%; /* Ensure image itself is circular within the box */
  display: block;
}

.page-no-hu__feature-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-no-hu__feature-text {
  color: #666666;
  font-size: 1em;
}

/* Game Tabs Section */
.page-no-hu__game-tabs {
  padding: 80px 0;
  background-color: #26A9E0; /* Dark background for this section */
  color: #FFFFFF; /* Light text color */
}

.page-no-hu__game-tabs .page-no-hu__section-title {
  color: #FFFFFF;
}

.page-no-hu__game-tabs .page-no-hu__section-description {
  color: #E0F0F8;
}

.page-no-hu__tab-nav {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 15px;
}

.page-no-hu__tab-button {
  background-color: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 1.1em;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-weight: bold;
}

.page-no-hu__tab-button.is-active {
  background-color: #FFFFFF;
  color: #26A9E0;
}

.page-no-hu__tab-button:hover:not(.is-active) {
  background-color: rgba(255, 255, 255, 0.4);
}

.page-no-hu__game-panel {
  display: none;
}

.page-no-hu__game-panel.is-active {
  display: block;
}

.page-no-hu__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-no-hu__game-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
  color: #333333; /* Ensure dark text on light card background */
}

.page-no-hu__game-card:hover {
  transform: translateY(-10px);
}

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

.page-no-hu__game-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin: 20px 15px 10px;
  font-weight: bold;
}

.page-no-hu__game-description {
  font-size: 0.95em;
  color: #666666;
  padding: 0 15px 20px;
}

.page-no-hu__btn-play {
  display: block;
  margin: 0 15px 20px;
}

/* Guide Section */
.page-no-hu__guide-section {
  padding: 80px 0;
  background-color: #F8F8F8;
}

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

.page-no-hu__guide-step {
  background-color: #FFFFFF;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.page-no-hu__step-number {
  width: 50px;
  height: 50px;
  background-color: #26A9E0;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8em;
  font-weight: bold;
  margin: 0 auto 20px;
}

.page-no-hu__step-title {
  font-size: 1.3em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-no-hu__step-text {
  color: #666666;
  font-size: 1em;
}

.page-no-hu__step-text a {
  color: #EA7C07; /* Link color for login/register */
  text-decoration: none;
  font-weight: bold;
}

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

.page-no-hu__cta-center {
  text-align: center;
  margin-top: 50px;
}

/* Promo Section */
.page-no-hu__promo-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Dark background for this section */
  color: #FFFFFF; /* Light text color */
}

.page-no-hu__promo-section .page-no-hu__section-title {
  color: #FFFFFF;
}

.page-no-hu__promo-section .page-no-hu__section-description {
  color: #E0F0F8;
}

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

.page-no-hu__promo-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
  color: #333333; /* Ensure dark text on light card background */
}

.page-no-hu__promo-card:hover {
  transform: translateY(-10px);
}

.page-no-hu__promo-card img {
  width: 100%;
  height: 220px; /* Fixed height for promo images */
  object-fit: cover;
  display: block;
}

.page-no-hu__promo-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin: 20px 15px 10px;
  font-weight: bold;
}

.page-no-hu__promo-text {
  font-size: 0.95em;
  color: #666666;
  padding: 0 15px 20px;
}

.page-no-hu__btn-promo {
  display: block;
  margin: 0 15px 20px;
}

/* FAQ Section */
.page-no-hu__faq-section {
  padding: 80px 0;
  background-color: #F8F8F8;
}

.page-no-hu__faq-list {
  max-width: 900px;
  margin: 50px auto 0;
}

.page-no-hu__faq-item {
  background-color: #FFFFFF;
  border-radius: 12px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  color: #333333; /* Ensure dark text on light card background */
}

.page-no-hu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1em;
  font-weight: bold;
  color: #26A9E0;
  cursor: pointer;
  background-color: #E0F0F8;
  border-bottom: 1px solid #d0e0e8;
  list-style: none; /* Remove default marker for details summary */
}

.page-no-hu__faq-item[open] .page-no-hu__faq-question {
  background-color: #D0E0E8;
}

.page-no-hu__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker */
}

.page-no-hu__faq-qtext {
  flex-grow: 1;
}

.page-no-hu__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-no-hu__faq-item[open] .page-no-hu__faq-toggle {
  transform: rotate(45deg); /* Rotate '+' to 'x' or just change to '-' */
}

.page-no-hu__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #555555;
}

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

/* Final CTA Section */
.page-no-hu__cta-section {
  padding: 80px 0;
  background-color: #26A9E0;
  color: #FFFFFF;
  text-align: center;
}

.page-no-hu__cta-flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.page-no-hu__cta-title {
  font-size: 2.2em;
  color: #FFFFFF;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-no-hu__cta-description {
  font-size: 1.1em;
  color: #E0F0F8;
  margin-bottom: 0;
  max-width: 700px;
}

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

/* --- Mobile Responsive Styles (max-width: 768px) --- */
@media (max-width: 768px) {
  .page-no-hu__container {
    padding: 20px 15px;
  }

  .page-no-hu__section-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

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

  /* HERO Section */
  .page-no-hu__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
  }

  .page-no-hu__hero-container {
    flex-direction: column;
    gap: 30px;
    padding: 0 15px;
  }

  .page-no-hu__hero-content {
    order: 2; /* Content below image */
    text-align: center;
  }

  .page-no-hu__hero-image {
    order: 1; /* Image above content */
  }

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

  .page-no-hu__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-no-hu__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-no-hu__btn-primary,
  .page-no-hu__btn-secondary,
  .page-no-hu__btn-play,
  .page-no-hu__btn-promo,
  .page-no-hu a[class*="button"],
  .page-no-hu a[class*="btn"] {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  /* Intro Section (Module 1) */
  .page-no-hu__intro-section {
    padding: 40px 0;
  }

  .page-no-hu__feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .page-no-hu__icon-box-media {
    width: 150px; /* Adjust size for mobile, keep square */
    height: 150px;
    margin-bottom: 20px;
    border-width: 3px;
    box-shadow: 0 0 0 6px rgba(38, 169, 224, 0.2);
  }

  /* Game Tabs Section */
  .page-no-hu__game-tabs {
    padding: 40px 0;
  }

  .page-no-hu__tab-nav {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
  }

  .page-no-hu__tab-button {
    width: 100%;
    font-size: 1em;
    padding: 10px 15px;
  }

  .page-no-hu__game-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-no-hu__game-card img {
    
  }

  /* Guide Section */
  .page-no-hu__guide-section {
    padding: 40px 0;
  }

  .page-no-hu__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .page-no-hu__step-number {
    width: 40px;
    height: 40px;
    font-size: 1.5em;
    margin-bottom: 15px;
  }

  /* Promo Section */
  .page-no-hu__promo-section {
    padding: 40px 0;
  }

  .page-no-hu__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .page-no-hu__promo-card img {
    
  }

  /* FAQ Section */
  .page-no-hu__faq-section {
    padding: 40px 0;
  }

  .page-no-hu__faq-list {
    margin-top: 30px;
  }

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

  .page-no-hu__faq-toggle {
    font-size: 1.2em;
  }

  .page-no-hu__faq-answer {
    padding: 15px 20px;
    font-size: 0.95em;
  }
}