.page-game-bai {
  font-family: Arial, sans-serif;
  color: #333333;
  background-color: #ffffff;
}

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

.page-game-bai__hero-section {
  padding-top: 10px;
  position: relative;
  background-color: #017439;
  color: #ffffff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px; /* Adjust as needed */
}

.page-game-bai__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  position: relative;
}

.page-game-bai__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7);
}

.page-game-bai__hero-content {
  position: relative;
  z-index: 10;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: 20px; /* Space between image and content */
}

.page-game-bai__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFFFFF;
}

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

.page-game-bai__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-game-bai__btn-primary,
.page-game-bai__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-bai__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

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

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

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

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

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

.page-game-bai__dark-section {
  background-color: #017439;
  color: #ffffff;
  padding: 60px 0;
}

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

.page-game-bai__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 60px 0;
}

.page-game-bai__intro-text {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
}

.page-game-bai__intro-text:last-child {
  margin-bottom: 0;
}

.page-game-bai__games-section {
  padding: 60px 0;
}

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

.page-game-bai__game-card {
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-game-bai__game-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #017439;
  padding: 0 15px;
}

.page-game-bai__game-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 15px;
}

.page-game-bai__btn-small {
  padding: 10px 20px;
  font-size: 0.9rem;
  margin-top: auto;
}

.page-game-bai__features-section {
  padding: 60px 0;
}

.page-game-bai__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-game-bai__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-game-bai__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-game-bai__feature-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-game-bai__guide-section {
  padding: 60px 0;
}

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

.page-game-bai__step-item {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.page-game-bai__step-number {
  width: 60px;
  height: 60px;
  background-color: #017439;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.page-game-bai__step-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #017439;
}

.page-game-bai__step-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-game-bai__faq-section {
  padding: 60px 0;
}

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

.page-game-bai__faq-item {
  background-color: #f9f9f9;
  border-radius: 12px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-game-bai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #017439;
  cursor: pointer;
  background-color: #e8f5e9;
  border-bottom: 1px solid #dcdcdc;
}

.page-game-bai__faq-item[open] .page-game-bai__faq-question {
  border-bottom: 1px solid #c8e6c9;
}

.page-game-bai__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-game-bai__faq-item[open] .page-game-bai__faq-toggle {
  transform: rotate(45deg);
}

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

.page-game-bai__faq-answer p {
  margin-bottom: 10px;
}

.page-game-bai__faq-answer p:last-child {
  margin-bottom: 0;
}

/* Details element native marker removal */
.page-game-bai__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-game-bai__faq-item summary::marker {
  display: none;
}

.page-game-bai__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-game-bai__cta-description {
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

.page-game-bai__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-game-bai__container {
    padding: 20px 30px;
  }

  .page-game-bai__hero-content {
    padding: 30px 20px;
  }

  .page-game-bai__main-title {
    font-size: clamp(2.2rem, 4.5vw, 3rem);
  }

  .page-game-bai__hero-description {
    font-size: 1.1rem;
  }

  .page-game-bai__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  }

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

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

@media (max-width: 768px) {
  .page-game-bai__container {
    padding: 15px !important;
  }

  .page-game-bai__hero-section {
    padding-top: 10px !important; /* Fixed header spacing */
    min-height: 400px;
  }

  .page-game-bai__hero-image-wrapper {
    max-height: 300px;
  }

  .page-game-bai__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-game-bai__hero-content {
    padding: 20px 15px;
    margin-top: 15px;
  }

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

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

  .page-game-bai__hero-buttons,
  .page-game-bai__cta-buttons {
    flex-direction: column;
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-game-bai__btn-primary,
  .page-game-bai__btn-secondary,
  .page-game-bai a[class*="button"],
  .page-game-bai a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  /* Intro section */
  .page-game-bai__intro-section,
  .page-game-bai__games-section,
  .page-game-bai__features-section,
  .page-game-bai__guide-section,
  .page-game-bai__faq-section,
  .page-game-bai__cta-section {
    padding: 40px 0;
  }

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

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

  .page-game-bai__intro-text {
    font-size: 1rem;
  }

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

  .page-game-bai__game-card {
    padding-bottom: 15px;
  }

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

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

  .page-game-bai__game-description {
    font-size: 0.9rem;
  }

  /* Features Grid */
  .page-game-bai__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-game-bai__feature-item {
    padding: 25px;
  }

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

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

  .page-game-bai__feature-description {
    font-size: 0.9rem;
  }

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

  .page-game-bai__step-item {
    padding: 25px;
  }

  .page-game-bai__step-number {
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
    margin-bottom: 15px;
  }

  .page-game-bai__step-title {
    font-size: 1.3rem;
  }

  .page-game-bai__step-description {
    font-size: 0.9rem;
  }

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

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

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

  /* CTA Section */
  .page-game-bai__cta-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  /* General image and container rules for mobile */
  .page-game-bai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-game-bai__section,
  .page-game-bai__card,
  .page-game-bai__container,
  .page-game-bai__game-card,
  .page-game-bai__feature-item,
  .page-game-bai__step-item,
  .page-game-bai__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 549px) {
  .page-game-bai__features-grid,
  .page-game-bai__guide-steps {
    grid-template-columns: 1fr;
  }
}