/* Base Styles for Game Bài Page */
.page-game-bai {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light background */
  line-height: 1.6;
}

.page-game-bai__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  background-color: #26A9E0; /* Brand primary color */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-game-bai__hero-image {
  width: 100%;
  max-width: 1200px; /* Max width for hero image container */
  margin-bottom: 20px;
  box-sizing: border-box;
}

.page-game-bai__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-game-bai__hero-content {
  max-width: 900px;
  padding: 0 15px;
  color: #ffffff;
}

.page-game-bai__main-title {
  font-size: 2.8em;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #ffffff;
}

.page-game-bai__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #ffffff;
}

.page-game-bai__btn-primary {
  background: #EA7C07; /* Login/CTA button color */
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  display: inline-block;
  border: none;
  cursor: pointer;
}

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

.page-game-bai__section-title {
  font-size: 2.2em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #26A9E0;
}

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

.page-game-bai__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  padding: 0 15px;
}

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

.page-game-bai__popular-games,
.page-game-bai__how-to-play,
.page-game-bai__promotions-section,
.page-game-bai__faq-section {
  padding: 60px 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

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

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

.page-game-bai__game-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-game-bai__game-card {
  background: #ffffff;
  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;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-bai__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-game-bai__game-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.page-game-bai__card-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #26A9E0;
  padding: 0 15px;
}

.page-game-bai__card-text {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  padding: 0 15px;
  flex-grow: 1;
}

.page-game-bai__btn-secondary {
  background: #ffffff;
  color: #26A9E0;
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  border: 2px solid #26A9E0;
  transition: background-color 0.3s ease, color 0.3s ease;
  display: inline-block;
}

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

.page-game-bai__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-game-bai__benefit-item {
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-game-bai__benefit-item img {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 15px;
  border-radius: 8px;
}

.page-game-bai__benefit-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-game-bai__benefit-text {
  font-size: 0.95em;
  color: #f0f0f0;
}

.page-game-bai__steps-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 40px auto;
  padding: 0 15px;
}

.page-game-bai__step-item {
  flex: 1;
  text-align: center;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-game-bai__step-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
  border-radius: 8px;
}

.page-game-bai__step-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-game-bai__step-text {
  font-size: 0.95em;
  color: #555555;
}

.page-game-bai__tips-section {
  padding: 60px 0;
  background-color: #26A9E0;
  color: #ffffff;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-game-bai__tips-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 40px auto;
  text-align: left;
  font-size: 1.1em;
  line-height: 1.8;
  color: #f0f0f0;
}

.page-game-bai__tip-item {
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
}

.page-game-bai__tip-item::before {
  content: '✅';
  position: absolute;
  left: 0;
  color: #ffffff;
}

.page-game-bai__tips-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 40px auto 0 auto;
  border-radius: 8px;
}

.page-game-bai__promo-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 40px auto;
  padding: 0 15px;
}

.page-game-bai__promo-card {
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
}

.page-game-bai__promo-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.page-game-bai__faq-section {
  padding-bottom: 80px;
}

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

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

.page-game-bai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #26A9E0;
  cursor: pointer;
  background-color: #eaf6fe;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-game-bai__faq-question::-webkit-details-marker, /* Hide default marker */
.page-game-bai__faq-question::marker {
  display: none;
}

.page-game-bai__faq-question:hover {
  background-color: #dbeeff;
}

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

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

.page-game-bai__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 1em;
  color: #555555;
  background-color: #ffffff;
  border-top: 1px solid #e0e0e0;
}

.page-game-bai__cta-section {
  padding: 60px 0;
  text-align: center;
  background-color: #26A9E0;
  color: #ffffff;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-game-bai__cta-button {
  margin-top: 30px;
}

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

.page-game-bai__cta-button,
.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%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-bai__cta-buttons,
.page-game-bai__button-group,
.page-game-bai__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Responsive Styles for Mobile */
@media (max-width: 768px) {
  .page-game-bai {
    font-size: 15px;
    line-height: 1.5;
  }

  .page-game-bai__hero-section {
    padding-top: 10px; /* Small top padding for mobile */
    padding-bottom: 30px;
  }

  .page-game-bai__main-title {
    font-size: 2em;
    padding: 0 10px;
  }

  .page-game-bai__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
    padding: 0 10px;
  }

  .page-game-bai__btn-primary {
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-game-bai__section-title {
    font-size: 1.8em;
    padding: 0 10px;
  }

  .page-game-bai__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  .page-game-bai__popular-games,
  .page-game-bai__how-to-play,
  .page-game-bai__promotions-section,
  .page-game-bai__faq-section,
  .page-game-bai__benefits-section,
  .page-game-bai__tips-section,
  .page-game-bai__cta-section {
    padding: 40px 0;
  }

  .page-game-bai__game-cards-grid {
    grid-template-columns: 1fr; /* Single column for game cards */
    gap: 20px;
    padding: 0 15px;
  }

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

  .page-game-bai__game-card img {
    height: 200px;
  }

  .page-game-bai__card-title {
    font-size: 1.3em;
  }

  .page-game-bai__card-text {
    font-size: 0.9em;
  }

  .page-game-bai__benefits-grid {
    grid-template-columns: 1fr; /* Single column for benefits */
    gap: 20px;
    padding: 0 15px;
  }

  .page-game-bai__steps-container {
    flex-direction: column; /* Vertical stack for steps */
    gap: 20px;
    padding: 0 15px;
  }

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

  .page-game-bai__step-item img {
    
  }

  .page-game-bai__tips-list {
    font-size: 1em;
    margin: 30px auto;
    padding: 0 15px;
  }

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

  .page-game-bai__promo-cards-grid {
    grid-template-columns: 1fr; /* Single column for promotions */
    gap: 20px;
    padding: 0 15px;
  }

  .page-game-bai__promo-card img {
    
  }

  .page-game-bai__faq-list {
    margin: 30px auto;
    padding: 0 15px;
  }

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

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

  /* Mandatory responsive styles for images and buttons */
  .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__hero-section,
  .page-game-bai__popular-games,
  .page-game-bai__benefits-section,
  .page-game-bai__how-to-play,
  .page-game-bai__tips-section,
  .page-game-bai__promotions-section,
  .page-game-bai__faq-section,
  .page-game-bai__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-game-bai__cta-button,
  .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;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }
  
  .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;
    display: flex;
    flex-direction: column; /* Ensure buttons stack vertically */
  }
}