.page-game-bai__hero-section {
  padding-top: 10px;
  padding-bottom: 60px;
  background-color: #017439;
  color: #ffffff;
}

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

.page-game-bai__hero-content {
  flex: 1 1 45%;
  min-width: 300px;
}

.page-game-bai__hero-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-game-bai__hero-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #ffffff;
}

.page-game-bai__cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.page-game-bai__btn-primary,
.page-game-bai__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-bai__btn-primary {
  background-color: #C30808;
  color: #FFFF00;
  border: 2px solid #C30808;
}

.page-game-bai__btn-primary:hover {
  background-color: #e02a2a;
  border-color: #e02a2a;
}

.page-game-bai__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-game-bai__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
}

.page-game-bai__hero-image {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: center;
}

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

.page-game-bai__intro-section,
.page-game-bai__guide-section,
.page-game-bai__cta-section {
  padding: 60px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-game-bai__game-types-section,
.page-game-bai__faq-section {
  padding: 60px 0;
  background-color: #017439;
  color: #ffffff;
}

.page-game-bai__container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.page-game-bai__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-game-bai__section-description {
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-game-bai__intro-section .page-game-bai__section-title,
.page-game-bai__intro-section .page-game-bai__section-description,
.page-game-bai__guide-section .page-game-bai__section-title,
.page-game-bai__guide-section .page-game-bai__section-description,
.page-game-bai__cta-section .page-game-bai__section-title,
.page-game-bai__cta-section .page-game-bai__section-description {
  color: #333333;
}

.page-game-bai__game-types-section .page-game-bai__section-title,
.page-game-bai__game-types-section .page-game-bai__section-description,
.page-game-bai__faq-section .page-game-bai__section-title,
.page-game-bai__faq-section .page-game-bai__section-description {
  color: #ffffff;
}

.page-game-bai__icon-boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-top: 40px;
}

.page-game-bai__icon-box {
  flex: 1 1 30%;
  max-width: 350px;
  text-align: center;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-game-bai__icon-box:hover {
  transform: translateY(-5px);
}

.page-game-bai__icon-box-media {
  width: 150px;
  height: 150px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #017439;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.page-game-bai__icon-box-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #017439;
}

.page-game-bai__icon-box-text {
  font-size: 1rem;
  line-height: 1.5;
  color: #555555;
}

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

.page-game-bai__game-card {
  background-color: #f9f9f9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #333333;
}

.page-game-bai__game-card:hover {
  transform: translateY(-5px);
}

.page-game-bai__game-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-game-bai__game-card-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 15px 15px 10px;
  color: #017439;
}

.page-game-bai__game-card-title a {
  color: #017439;
  text-decoration: none;
}

.page-game-bai__game-card-title a:hover {
  text-decoration: underline;
}

.page-game-bai__game-card-text {
  font-size: 0.95rem;
  line-height: 1.5;
  padding: 0 15px 15px;
  flex-grow: 1;
  color: #555555;
}

.page-game-bai__btn-small {
  font-size: 0.9rem;
  padding: 8px 18px;
  margin: 0 15px 15px;
}

.page-game-bai__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-game-bai__guide-step {
  text-align: center;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-game-bai__guide-icon {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background-color: #017439;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-game-bai__guide-icon img {
  
  
  object-fit: contain;
  display: block;
  border-radius: 0; /* Not a full circle image */
}

.page-game-bai__guide-icon span {
  position: absolute;
  bottom: -5px;
  right: -5px;
  background-color: #C30808;
  color: #FFFF00;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  border: 2px solid #ffffff;
}

.page-game-bai__guide-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #017439;
}

.page-game-bai__guide-text {
  font-size: 1rem;
  line-height: 1.5;
  color: #555555;
}

.page-game-bai__cta-center {
  text-align: center;
  margin-top: 40px;
}

.page-game-bai__btn-large {
  padding: 15px 35px;
  font-size: 1.1rem;
}

.page-game-bai__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
}

.page-game-bai__faq-item {
  background-color: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-game-bai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #017439;
  cursor: pointer;
  background-color: #ffffff;
  border-bottom: 1px solid #eee;
  list-style: none;
}

.page-game-bai__faq-item[open] .page-game-bai__faq-question {
  border-bottom: none;
}

.page-game-bai__faq-question::-webkit-details-marker {
  display: none;
}

.page-game-bai__faq-qtext {
  flex-grow: 1;
}

.page-game-bai__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  color: #C30808;
  margin-left: 15px;
}

.page-game-bai__faq-item[open] .page-game-bai__faq-toggle {
  content: '−';
}

.page-game-bai__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
}

.page-game-bai__cta-container {
  text-align: center;
  padding: 40px 16px;
  background-color: #f9f9f9;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-game-bai__hero-container {
    flex-direction: column;
    text-align: center;
  }

  .page-game-bai__hero-content,
  .page-game-bai__hero-image {
    flex: 1 1 100%;
    min-width: unset;
  }

  .page-game-bai__cta-buttons {
    justify-content: center;
  }

  .page-game-bai__icon-box {
    flex: 1 1 45%;
  }

  .page-game-bai__game-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  /* HERO Section */
  .page-game-bai__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-game-bai__hero-container {
    padding: 20px 15px;
    gap: 20px;
  }

  .page-game-bai__hero-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-game-bai__hero-description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .page-game-bai__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .page-game-bai__btn-primary,
  .page-game-bai__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 15px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* General Sections & Titles */
  .page-game-bai__intro-section,
  .page-game-bai__game-types-section,
  .page-game-bai__guide-section,
  .page-game-bai__faq-section,
  .page-game-bai__cta-section {
    padding: 40px 0;
  }

  .page-game-bai__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-game-bai__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    margin-bottom: 15px;
  }

  .page-game-bai__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  /* Module 1 - Icon Boxes */
  .page-game-bai__icon-boxes {
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
  }

  .page-game-bai__icon-box {
    max-width: 100%;
    flex: 1 1 100%;
  }

  .page-game-bai__icon-box-media {
    width: 120px;
    height: 120px;
    border: 3px solid #017439;
  }

  .page-game-bai__icon-box-title {
    font-size: 1.2rem;
  }

  .page-game-bai__icon-box-text {
    font-size: 0.9rem;
  }

  /* Game Grid */
  .page-game-bai__game-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
  }

  .page-game-bai__game-card-image {
    height: 180px;
  }

  .page-game-bai__game-card-title {
    font-size: 1.1rem;
  }

  .page-game-bai__game-card-text {
    font-size: 0.85rem;
  }

  .page-game-bai__btn-small {
    width: calc(100% - 30px) !important;
    max-width: calc(100% - 30px) !important;
    margin-left: 15px;
    margin-right: 15px;
  }

  /* Guide Section */
  .page-game-bai__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
  }

  .page-game-bai__guide-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
  }

  .page-game-bai__guide-icon img {
    
    
  }

  .page-game-bai__guide-icon span {
    width: 25px;
    height: 25px;
    font-size: 0.9rem;
  }

  .page-game-bai__guide-title {
    font-size: 1.2rem;
  }

  .page-game-bai__guide-text {
    font-size: 0.9rem;
  }

  .page-game-bai__cta-center .page-game-bai__btn-primary {
    width: calc(100% - 30px) !important;
    max-width: calc(100% - 30px) !important;
    margin-left: 15px;
    margin-right: 15px;
  }

  /* FAQ Section */
  .page-game-bai__faq-list {
    margin-top: 20px;
  }

  .page-game-bai__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }

  .page-game-bai__faq-toggle {
    font-size: 1.3rem;
  }

  .page-game-bai__faq-answer {
    padding: 10px 20px 15px;
    font-size: 0.9rem;
  }

  /* CTA Section */
  .page-game-bai__cta-container {
    padding: 30px 15px;
  }

  .page-game-bai__btn-large {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px !important;
    font-size: 1rem !important;
  }

  /* Universal Image Adaption */
  .page-game-bai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure all content containers are constrained */
  .page-game-bai__section,
  .page-game-bai__card,
  .page-game-bai__container,
  .page-game-bai__icon-box,
  .page-game-bai__game-card,
  .page-game-bai__guide-step {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Ensure all images maintain original color */
.page-game-bai img {
  filter: none !important;
}