/* style/game-bai.css */
.page-game-bai {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light background */
  background-color: #ffffff; /* Explicitly set for content area */
}

.page-game-bai__hero-section {
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 40px;
  background-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;
  color: #333333;
}

.page-game-bai__hero-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  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;
}

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

.page-game-bai__btn-primary,
.page-game-bai__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

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

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

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

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

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

.page-game-bai__side-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.page-game-bai__intro-section,
.page-game-bai__popular-games-section,
.page-game-bai__guide-section,
.page-game-bai__tips-section,
.page-game-bai__promo-section,
.page-game-bai__faq-section {
  padding: 60px 0;
}

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

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

.page-game-bai__intro-container,
.page-game-bai__popular-games-container,
.page-game-bai__guide-container,
.page-game-bai__tips-container,
.page-game-bai__promo-container,
.page-game-bai__faq-container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 16px;
}

.page-game-bai__intro-title,
.page-game-bai__popular-games-title,
.page-game-bai__guide-title,
.page-game-bai__tips-title,
.page-game-bai__promo-title,
.page-game-bai__faq-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__intro-title,
.page-game-bai__guide-title,
.page-game-bai__promo-title {
  color: #ffffff;
}

.page-game-bai__popular-games-title,
.page-game-bai__tips-title,
.page-game-bai__faq-title {
  color: #017439;
}

.page-game-bai__intro-description,
.page-game-bai__popular-games-description,
.page-game-bai__guide-description,
.page-game-bai__tips-description,
.page-game-bai__promo-description {
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

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

.page-game-bai__feature-item,
.page-game-bai__game-card,
.page-game-bai__tips-item,
.page-game-bai__promo-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333333;
}

.page-game-bai__dark-section .page-game-bai__feature-item,
.page-game-bai__dark-section .page-game-bai__promo-card {
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  color: #ffffff;
}

.page-game-bai__icon-box-media {
  width: 240px;
  height: 240px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid #005f2c;
}

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

.page-game-bai__feature-heading,
.page-game-bai__game-heading,
.page-game-bai__tips-heading,
.page-game-bai__promo-heading {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #017439;
}

.page-game-bai__dark-section .page-game-bai__feature-heading,
.page-game-bai__dark-section .page-game-bai__promo-heading {
  color: #ffffff;
}

.page-game-bai__feature-text,
.page-game-bai__game-text,
.page-game-bai__tips-text,
.page-game-bai__promo-text {
  font-size: 1rem;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-game-bai__game-image,
.page-game-bai__tips-image,
.page-game-bai__promo-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

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

.page-game-bai__guide-steps {
  flex: 1 1 50%;
  min-width: 300px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-game-bai__guide-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-left: 5px solid #ffffff;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-game-bai__guide-item:last-child {
  margin-bottom: 0;
}

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

.page-game-bai__guide-steps p {
  font-size: 1rem;
  line-height: 1.6;
  color: #f0f0f0;
}

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

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

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

.page-game-bai__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  color: #017439;
  background-color: #e8f5e9; /* Light green for summary */
}

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

.page-game-bai__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: #017439;
}

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

.page-game-bai__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  line-height: 1.6;
  border-top: 1px solid #e0e0e0;
  background-color: #ffffff;
}

/* Mobile responsive styles */
@media (max-width: 1024px) {
  .page-game-bai__hero-container {
    padding: 30px 16px;
  }
  .page-game-bai__hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-game-bai__intro-title,
  .page-game-bai__popular-games-title,
  .page-game-bai__guide-title,
  .page-game-bai__tips-title,
  .page-game-bai__promo-title,
  .page-game-bai__faq-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
  }
  .page-game-bai__feature-grid,
  .page-game-bai__game-list,
  .page-game-bai__tips-grid,
  .page-game-bai__promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-game-bai__icon-box-media {
    width: 200px;
    height: 200px;
  }
  .page-game-bai__guide-steps,
  .page-game-bai__guide-image {
    flex: 1 1 100%;
  }
}

@media (max-width: 768px) {
  .page-game-bai__hero-section {
    padding-top: 10px !important; /* Small top padding, relying on body for header offset */
    padding-bottom: 30px;
  }
  .page-game-bai__hero-container {
    flex-direction: column-reverse; /* Text first, then image on mobile */
    padding: 20px 15px;
  }
  .page-game-bai__hero-content {
    flex: 1 1 100%;
    text-align: center;
  }
  .page-game-bai__hero-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
  .page-game-bai__hero-description {
    font-size: 1rem;
  }
  .page-game-bai__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .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;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-game-bai__cta-buttons,
  .page-game-bai__button-group,
  .page-game-bai__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-game-bai__hero-image {
    flex: 1 1 100%;
    margin-bottom: 20px;
  }

  .page-game-bai__intro-section,
  .page-game-bai__popular-games-section,
  .page-game-bai__guide-section,
  .page-game-bai__tips-section,
  .page-game-bai__promo-section,
  .page-game-bai__faq-section {
    padding: 40px 0;
  }

  .page-game-bai__intro-container,
  .page-game-bai__popular-games-container,
  .page-game-bai__guide-container,
  .page-game-bai__tips-container,
  .page-game-bai__promo-container,
  .page-game-bai__faq-container {
    padding: 0 15px;
  }

  .page-game-bai__intro-title,
  .page-game-bai__popular-games-title,
  .page-game-bai__guide-title,
  .page-game-bai__tips-title,
  .page-game-bai__promo-title,
  .page-game-bai__faq-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }

  .page-game-bai__intro-description,
  .page-game-bai__popular-games-description,
  .page-game-bai__guide-description,
  .page-game-bai__tips-description,
  .page-game-bai__promo-description {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

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

  .page-game-bai__icon-box-media {
    width: 180px;
    height: 180px;
    border-width: 3px;
  }

  .page-game-bai__feature-heading,
  .page-game-bai__game-heading,
  .page-game-bai__tips-heading,
  .page-game-bai__promo-heading {
    font-size: 1.3rem;
  }

  .page-game-bai__feature-text,
  .page-game-bai__game-text,
  .page-game-bai__tips-text,
  .page-game-bai__promo-text {
    font-size: 0.9rem;
  }

  .page-game-bai__guide-content {
    flex-direction: column;
    gap: 20px;
  }

  .page-game-bai__guide-item {
    padding: 15px;
    margin-bottom: 15px;
  }

  .page-game-bai__guide-step-heading {
    font-size: 1.1rem;
  }

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

  .page-game-bai__faq-item summary {
    padding: 15px 20px;
    font-size: 1.1rem;
  }

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

  /* General image and container rules for mobile */
  .page-game-bai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-game-bai__hero-image,
  .page-game-bai__guide-image,
  .page-game-bai__game-card,
  .page-game-bai__tips-item,
  .page-game-bai__promo-card,
  .page-game-bai__feature-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
  .page-game-bai__icon-box-media {
    width: 180px !important;
    height: 180px !important;
  }
}