.page-game-bai {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light body background */
  background-color: #FFFFFF; /* Default body background */
}

.page-game-bai__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: #f8f8f8;
  color: #333333;
}

.page-game-bai__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 20px 15px;
}

.page-game-bai__hero-image {
  flex: 1 1 500px;
  text-align: center;
  order: 2; /* Image after content on desktop, for mobile it will stack */
}

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

.page-game-bai__hero-content {
  flex: 1 1 500px;
  order: 1;
  text-align: left;
}

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

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

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

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

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

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

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

.page-game-bai__btn-secondary:hover {
  background-color: #005a2d;
  border-color: #005a2d;
}

.page-game-bai__section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
}

.page-game-bai__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 15px;
}

.page-game-bai__intro-section {
  background-color: #ffffff;
  color: #333333;
}

.page-game-bai__feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.page-game-bai__feature-item {
  flex: 1 1 300px;
  text-align: center;
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-game-bai__icon-box-media {
  width: 180px;
  height: 180px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #017439;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

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

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

.page-game-bai__game-types-section {
  background-color: #f2fcf6;
  color: #333333;
}

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

.page-game-bai__game-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

.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-description {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #666666;
  padding: 0 15px;
  flex-grow: 1;
}

.page-game-bai__game-card-button {
  display: inline-block;
  background-color: #C30808;
  color: #FFFF00;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  margin: 20px 15px;
  transition: background-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-game-bai__game-card-button:hover {
  background-color: #a00606;
}

.page-game-bai__view-all-games {
  text-align: center;
}

.page-game-bai__guide-section {
  background-color: #ffffff;
  color: #333333;
}

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

.page-game-bai__guide-item {
  text-align: center;
  padding: 25px;
  border-radius: 12px;
  background-color: #f9f9f9;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-game-bai__guide-icon {
  width: 60px;
  height: 60px;
  line-height: 60px;
  border-radius: 50%;
  background-color: #017439;
  color: #ffffff;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(1, 116, 57, 0.3);
}

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

.page-game-bai__guide-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555555;
}

.page-game-bai__guide-cta {
  text-align: center;
  margin-top: 60px;
}

.page-game-bai__promo-section {
  background-color: #f2fcf6;
  color: #333333;
}

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

.page-game-bai__promo-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-game-bai__promo-card-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 20px 15px 10px;
}

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

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

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

.page-game-bai__promo-card-button {
  display: inline-block;
  background-color: #017439;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  margin: 20px 15px;
  transition: background-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-game-bai__promo-card-button:hover {
  background-color: #005a2d;
}

.page-game-bai__view-all-promos {
  text-align: center;
}

.page-game-bai__faq-section {
  background-color: #ffffff;
  color: #333333;
}

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

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

.page-game-bai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: #017439;
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none; /* For details/summary */
}

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

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

.page-game-bai__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  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 25px;
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
  background-color: #ffffff;
}

.page-game-bai__blog-section {
  background-color: #f2fcf6;
  color: #333333;
}

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

.page-game-bai__blog-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-game-bai__blog-card-content {
  padding: 20px 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-game-bai__blog-card-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
}

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

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

.page-game-bai__blog-card-meta {
  font-size: 0.9rem;
  color: #999999;
  margin-bottom: 15px;
}

.page-game-bai__blog-card-description {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-game-bai__blog-card-link {
  display: inline-block;
  color: #017439;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-game-bai__blog-card-link:hover {
  color: #005a2d;
  text-decoration: underline;
}

.page-game-bai__view-all-posts {
  text-align: center;
}

/* --- Responsive Styles --- */

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

  .page-game-bai__hero-content {
    order: 1;
    text-align: center;
  }

  .page-game-bai__hero-image {
    order: 2;
  }

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

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

  .page-game-bai__section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .page-game-bai {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-game-bai__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

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

  .page-game-bai__hero-content {
    flex: 1 1 100%;
  }

  .page-game-bai__hero-image {
    flex: 1 1 100%;
  }

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

  .page-game-bai__main-title {
    font-size: 2.2rem;
  }

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

  .page-game-bai__cta-group {
    flex-direction: column;
    gap: 10px;
  }

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

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

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

  .page-game-bai__feature-grid,
  .page-game-bai__game-grid,
  .page-game-bai__guide-steps,
  .page-game-bai__promo-grid,
  .page-game-bai__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-game-bai__feature-item,
  .page-game-bai__game-card,
  .page-game-bai__guide-item,
  .page-game-bai__promo-card,
  .page-game-bai__blog-card {
    padding: 20px;
  }

  .page-game-bai__icon-box-media {
    width: 150px;
    height: 150px;
    margin-bottom: 15px;
  }

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

  .page-game-bai__game-card-image,
  .page-game-bai__promo-card-image,
  .page-game-bai__blog-card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-game-bai__game-card-title,
  .page-game-bai__promo-card-title,
  .page-game-bai__blog-card-title {
    font-size: 1.2rem;
  }

  .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 20px;
  }

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

  .page-game-bai__view-all-games .page-game-bai__btn-primary,
  .page-game-bai__view-all-promos .page-game-bai__btn-secondary,
  .page-game-bai__view-all-posts .page-game-bai__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}