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

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

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

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

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

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

.page-game-bai__hero-cta-buttons {
  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;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  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: #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__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.15);
}

.page-game-bai__intro-section,
.page-game-bai__game-types-section,
.page-game-bai__guide-section,
.page-game-bai__promo-section,
.page-game-bai__faq-section,
.page-game-bai__final-cta-section {
  padding: 60px 0;
}

.page-game-bai__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-game-bai__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-game-bai__section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-game-bai__dark-bg .page-game-bai__section-title {
  color: #ffffff;
}

.page-game-bai__light-bg .page-game-bai__section-title {
  color: #017439;
}

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

.page-game-bai__dark-bg .page-game-bai__section-description {
  color: #f0f0f0;
}

.page-game-bai__light-bg .page-game-bai__section-description {
  color: #555555;
}

.page-game-bai__intro-container,
.page-game-bai__game-types-container,
.page-game-bai__guide-container,
.page-game-bai__promo-container,
.page-game-bai__faq-container,
.page-game-bai__final-cta-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.page-game-bai__feature-item {
  background-color: #f0fbf4;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-game-bai__feature-item:hover {
  transform: translateY(-5px);
}

.page-game-bai__icon-box-media {
  width: 180px;
  height: 180px;
  margin: 0 auto 25px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #017439;
  box-shadow: 0 0 0 8px rgba(1, 116, 57, 0.2);
}

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

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

.page-game-bai__feature-text {
  font-size: 1rem;
  color: #555555;
}

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

.page-game-bai__game-card {
  background-color: rgba(255, 255, 255, 0.1);
  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;
}

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

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

.page-game-bai__game-title {
  font-size: 1.5rem;
  color: #FFFF00;
  margin: 20px 20px 10px;
  font-weight: 600;
}

.page-game-bai__game-text {
  font-size: 1rem;
  color: #f0f0f0;
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-game-bai__btn-link {
  display: inline-block;
  background-color: #C30808;
  color: #FFFF00;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  margin: 0 20px 20px;
  align-self: flex-start;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

.page-game-bai__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  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__step-title {
  font-size: 1.6rem;
  color: #017439;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-game-bai__step-text {
  font-size: 1rem;
  color: #555555;
  margin-bottom: 20px;
}

.page-game-bai__guide-cta {
  text-align: center;
}

.page-game-bai__promo-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
}

.page-game-bai__promo-image {
  flex: 1 1 500px;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-game-bai__promo-text {
  flex: 1 1 400px;
  color: #ffffff;
}

.page-game-bai__promo-sub-title {
  font-size: 2rem;
  color: #FFFF00;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-game-bai__promo-text ul {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-game-bai__promo-text ul li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23FFFF00" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: #f0f0f0;
}

.page-game-bai__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

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

.page-game-bai__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #017439;
  cursor: pointer;
  position: relative;
}

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

.page-game-bai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-game-bai__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  color: #017439;
  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: 0 20px 20px;
  font-size: 1rem;
  color: #555555;
  line-height: 1.7;
  animation: fadein 0.3s ease-in-out;
}

@keyframes fadein {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-game-bai__final-cta-section {
  text-align: center;
  padding-bottom: 80px;
}

.page-game-bai__final-cta-section .page-game-bai__btn-primary {
  margin-top: 30px;
}

/* General image responsive styles */
.page-game-bai img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-game-bai__hero-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-game-bai__section-title {
    font-size: 2.2rem;
  }
  .page-game-bai__intro-container,
  .page-game-bai__game-types-container,
  .page-game-bai__guide-container,
  .page-game-bai__promo-container,
  .page-game-bai__faq-container,
  .page-game-bai__final-cta-container {
    padding: 0 15px;
  }
  .page-game-bai__icon-box-media {
    width: 160px;
    height: 160px;
  }
  .page-game-bai__promo-content {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .page-game-bai__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }
  .page-game-bai__hero-container {
    flex-direction: column;
    padding: 30px 15px;
    gap: 20px;
  }
  .page-game-bai__hero-content {
    order: 2; /* Content below image on mobile */
    text-align: center;
  }
  .page-game-bai__hero-image {
    order: 1;
  }
  .page-game-bai__hero-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
  .page-game-bai__hero-description {
    font-size: 1rem;
  }
  .page-game-bai__hero-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;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  .page-game-bai__intro-section,
  .page-game-bai__game-types-section,
  .page-game-bai__guide-section,
  .page-game-bai__promo-section,
  .page-game-bai__faq-section,
  .page-game-bai__final-cta-section {
    padding: 40px 0;
  }
  .page-game-bai__section-title {
    font-size: 2rem;
    margin-bottom: 15px;
  }
  .page-game-bai__section-description {
    font-size: 1rem;
    margin-bottom: 30px;
    padding: 0 15px;
  }
  .page-game-bai__features-grid {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }
  .page-game-bai__icon-box-media {
    width: 150px;
    height: 150px;
    border-width: 3px;
    box-shadow: 0 0 0 6px rgba(1, 116, 57, 0.2);
  }
  .page-game-bai__feature-title {
    font-size: 1.4rem;
  }
  .page-game-bai__game-grid {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }
  .page-game-bai__game-image {
    height: 180px;
  }
  .page-game-bai__game-title {
    font-size: 1.3rem;
  }
  .page-game-bai__btn-link {
    width: calc(100% - 40px);
    margin-left: 20px;
    margin-right: 20px;
  }
  .page-game-bai__guide-steps {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }
  .page-game-bai__step-number {
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
  }
  .page-game-bai__step-title {
    font-size: 1.4rem;
  }
  .page-game-bai__promo-content {
    padding: 0 15px;
  }
  .page-game-bai__promo-image {
    height: auto;
  }
  .page-game-bai__promo-sub-title {
    font-size: 1.8rem;
  }
  .page-game-bai__promo-text ul li {
    font-size: 1rem;
  }
  .page-game-bai__faq-list {
    padding: 0 15px;
  }
  .page-game-bai__faq-item summary {
    font-size: 1.1rem;
    padding: 15px;
  }
  .page-game-bai__faq-toggle {
    font-size: 1.5rem;
  }
  .page-game-bai__faq-answer {
    padding: 0 15px 15px;
  }
  .page-game-bai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-game-bai__intro-container,
  .page-game-bai__game-types-container,
  .page-game-bai__guide-container,
  .page-game-bai__promo-container,
  .page-game-bai__faq-container,
  .page-game-bai__final-cta-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-game-bai__hero-cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    flex-direction: column !important;
    gap: 10px !important;
  }
}