.page-tham-gia-ngay {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: #FFFFFF; /* Ensures consistency with shared body background */
}

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

.page-tham-gia-ngay__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: #017439;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

/* Hero Section */
.page-tham-gia-ngay__hero-section {
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
  padding-bottom: 60px;
  background-color: #FFFFFF;
}

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

.page-tham-gia-ngay__hero-content {
  flex: 1 1 50%;
  min-width: 300px;
  order: 2; /* Content below image on desktop, as per "上图下文" */
  color: #333333;
}

.page-tham-gia-ngay__hero-image {
  flex: 1 1 40%;
  min-width: 300px;
  text-align: center;
  order: 1;
}

.page-tham-gia-ngay__hero-main-img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-tham-gia-ngay__main-title {
  font-size: clamp(2.2em, 4vw, 3.2em); /* Responsive font size for H1 */
  font-weight: 700;
  color: #017439;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-tham-gia-ngay__hero-description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 30px;
}

.page-tham-gia-ngay__cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-tham-gia-ngay__btn-primary,
.page-tham-gia-ngay__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid transparent;
  box-sizing: border-box;
  text-align: center;
}

.page-tham-gia-ngay__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
}

.page-tham-gia-ngay__btn-primary:hover {
  background-color: #a00606;
}

.page-tham-gia-ngay__btn-secondary {
  background-color: #C30808; /* Login button uses same color as Register */
  color: #FFFF00; /* Login font color */
  border-color: #C30808;
}

.page-tham-gia-ngay__btn-secondary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

/* Intro Section */
.page-tham-gia-ngay__intro-section {
  background-color: #f8f8f8;
  padding: 60px 0;
}

.page-tham-gia-ngay__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-tham-gia-ngay__feature-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.page-tham-gia-ngay__feature-item:hover {
  transform: translateY(-10px);
}

.page-tham-gia-ngay__icon-box-media {
  width: 180px; /* Reduced for better fit, still >= 200px on desktop is good */
  height: 180px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #017439;
  box-shadow: 0 0 0 8px rgba(1, 116, 57, 0.2);
}

.page-tham-gia-ngay__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.page-tham-gia-ngay__feature-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 15px;
}

.page-tham-gia-ngay__feature-text {
  color: #666666;
  font-size: 1em;
}

/* Guide Section */
.page-tham-gia-ngay__guide-section {
  background-color: #017439; /* Dark background */
  padding: 60px 0;
}

.page-tham-gia-ngay__text-white {
  color: #ffffff;
}

.page-tham-gia-ngay__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-tham-gia-ngay__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-tham-gia-ngay__step-title {
  font-size: 1.6em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFFF00; /* Highlight step titles */
}

.page-tham-gia-ngay__step-text {
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-tham-gia-ngay__cta-center {
  text-align: center;
  margin-top: 50px;
}

/* Games Section */
.page-tham-gia-ngay__games-section {
  background-color: #ffffff;
  padding: 60px 0;
}

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

.page-tham-gia-ngay__game-card {
  background-color: #f8f8f8;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.page-tham-gia-ngay__game-card:hover {
  transform: translateY(-5px);
}

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

.page-tham-gia-ngay__game-card-content {
  padding: 20px;
}

.page-tham-gia-ngay__game-card-title {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 10px;
}

.page-tham-gia-ngay__game-card-text {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 20px;
}

.page-tham-gia-ngay__btn-game {
  display: inline-block;
  padding: 10px 20px;
  background-color: #017439;
  color: #ffffff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  transition: background-color 0.3s ease;
}

.page-tham-gia-ngay__btn-game:hover {
  background-color: #005a2e;
}

/* FAQ Section */
.page-tham-gia-ngay__faq-section {
  padding: 60px 0;
  background-color: #f8f8f8;
}

.page-tham-gia-ngay__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
}

.page-tham-gia-ngay__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-tham-gia-ngay__faq-item[open] {
  border-color: #017439;
}

.page-tham-gia-ngay__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.page-tham-gia-ngay__faq-question::-webkit-details-marker {
  display: none;
}

.page-tham-gia-ngay__faq-qtext {
  flex-grow: 1;
}

.page-tham-gia-ngay__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-tham-gia-ngay__faq-item[open] .page-tham-gia-ngay__faq-toggle {
  transform: rotate(45deg);
}

.page-tham-gia-ngay__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #555555;
  line-height: 1.6;
}

/* Responsive Styles */
/* Mobile-specific styles (max-width: 768px) */
@media (max-width: 768px) {
  .page-tham-gia-ngay {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-tham-gia-ngay__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-tham-gia-ngay__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-tham-gia-ngay__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  /* HERO Section */
  .page-tham-gia-ngay__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
    padding-bottom: 40px;
  }

  .page-tham-gia-ngay__hero-container {
    flex-direction: column; /* Stack image and content vertically */
    gap: 30px;
    padding: 0 15px;
  }

  .page-tham-gia-ngay__hero-image {
    order: 1; /* Image on top */
    width: 100%;
  }

  .page-tham-gia-ngay__hero-content {
    order: 2; /* Content below image */
    width: 100%;
    text-align: center;
  }

  .page-tham-gia-ngay__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-tham-gia-ngay__hero-description {
    font-size: 0.95em;
  }

  .page-tham-gia-ngay__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    width: 100%;
  }

  .page-tham-gia-ngay__btn-primary,
  .page-tham-gia-ngay__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Module 1: Intro Section (circular images) */
  .page-tham-gia-ngay__intro-section {
    padding: 40px 0;
  }

  .page-tham-gia-ngay__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-tham-gia-ngay__feature-item {
    padding: 25px;
  }

  .page-tham-gia-ngay__icon-box-media {
    width: 150px; /* Still square on mobile */
    height: 150px;
    margin-bottom: 15px;
    border-width: 3px;
    box-shadow: 0 0 0 6px rgba(1, 116, 57, 0.15);
  }

  /* Guide Section */
  .page-tham-gia-ngay__guide-section {
    padding: 40px 0;
  }

  .page-tham-gia-ngay__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-tham-gia-ngay__step-item {
    padding: 25px;
  }

  .page-tham-gia-ngay__step-title {
    font-size: 1.4em;
  }

  .page-tham-gia-ngay__step-text {
    font-size: 0.95em;
  }

  .page-tham-gia-ngay__cta-center {
    margin-top: 40px;
  }

  /* Games Section */
  .page-tham-gia-ngay__games-section {
    padding: 40px 0;
  }

  .page-tham-gia-ngay__games-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-tham-gia-ngay__game-card-img {
    
  }

  .page-tham-gia-ngay__game-card-content {
    padding: 15px;
  }

  .page-tham-gia-ngay__game-card-title {
    font-size: 1.2em;
  }

  .page-tham-gia-ngay__game-card-text {
    font-size: 0.9em;
    margin-bottom: 15px;
  }

  .page-tham-gia-ngay__btn-game {
    padding: 8px 15px;
    font-size: 0.9em;
  }

  /* FAQ Section */
  .page-tham-gia-ngay__faq-section {
    padding: 40px 0;
  }

  .page-tham-gia-ngay__faq-list {
    margin-top: 30px;
  }

  .page-tham-gia-ngay__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-tham-gia-ngay__faq-toggle {
    font-size: 1.2em;
    margin-left: 10px;
  }

  .page-tham-gia-ngay__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95em;
  }

  /* Universal image rules for mobile */
  .page-tham-gia-ngay img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Exception for circular images to maintain aspect ratio */
  .page-tham-gia-ngay__icon-box-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
}