.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 {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #FFF5E1;
  background: #B71C1C;
}

.page-game-bai__hero-image-wrapper {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.page-game-bai__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7); /* Darken image slightly for text contrast */
}

.page-game-bai__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.page-game-bai__main-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFF5E1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-game-bai__hero-description {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  margin-bottom: 30px;
  color: #FFF5E1;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-game-bai__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

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

.page-game-bai__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E;
  border: 2px solid #F2B544;
  box-shadow: 0 4px 15px rgba(255, 216, 106, 0.4);
}

.page-game-bai__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 216, 106, 0.6);
}

.page-game-bai__btn-secondary {
  background: #7A0E0E;
  color: #FFF5E1;
  border: 2px solid #F2B544;
  box-shadow: 0 4px 15px rgba(122, 14, 14, 0.4);
}

.page-game-bai__btn-secondary:hover {
  background: #C91F17;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(122, 14, 14, 0.6);
}

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

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

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

.page-game-bai__section-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  text-align: center;
  margin-bottom: 40px;
  color: #555555;
}

.page-game-bai__dark-section .page-game-bai__section-subtitle {
  color: #FFCC66;
}

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

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

.page-game-bai__games-section {
  background: #B71C1C;
  color: #FFF5E1;
  padding: 60px 0;
}

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

.page-game-bai__game-card {
  background: #D32F2F;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  color: #FFF5E1;
}

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

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

.page-game-bai__game-description {
  font-size: 0.95rem;
  margin: 0 15px 20px;
  flex-grow: 1;
}

.page-game-bai__btn-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E;
  border: 2px solid #F2B544;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-bai__btn-play:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  transform: translateY(-2px);
}

.page-game-bai__button-group {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-game-bai__center-align {
  justify-content: center;
}

.page-game-bai__why-choose-section {
  background: #f8f8f8;
  padding: 60px 0;
  color: #333333;
}

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

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

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

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

.page-game-bai__feature-description {
  font-size: 0.95rem;
  line-height: 1.6;
}

.page-game-bai__guide-section {
  background: #7A0E0E;
  padding: 60px 0;
  color: #FFF5E1;
}

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

.page-game-bai__guide-step {
  background: #D32F2F;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-game-bai__guide-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  display: block;
}

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

.page-game-bai__guide-step-description {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-game-bai__promotions-section {
  background: #f8f8f8;
  padding: 60px 0;
  color: #333333;
}

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

.page-game-bai__promo-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
}

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

.page-game-bai__promo-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 20px 15px 10px;
  color: #C91F17;
}

.page-game-bai__promo-description {
  font-size: 0.95rem;
  margin: 0 15px 20px;
  flex-grow: 1;
}

/* FAQ Styles */
.page-game-bai__faq-section {
  background: #f8f8f8;
  padding: 60px 0;
  color: #333333;
}

details.page-game-bai__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-game-bai__faq-item summary.page-game-bai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-game-bai__faq-item summary.page-game-bai__faq-question::-webkit-details-marker {
  display: none;
}
details.page-game-bai__faq-item summary.page-game-bai__faq-question:hover {
  background: #f5f5f5;
}
.page-game-bai__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-game-bai__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-game-bai__faq-item .page-game-bai__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}
.page-game-bai__faq-answer p {
  margin: 0;
  padding: 0;
  color: #555555;
}

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

.page-game-bai__container, 
.page-game-bai__hero-image-wrapper,
.page-game-bai__games-grid,
.page-game-bai__features-grid,
.page-game-bai__guide-steps,
.page-game-bai__promo-grid,
.page-game-bai__faq-list {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Mobile responsiveness */
@media (max-width: 1024px) {
  .page-game-bai__hero-content {
    padding: 15px;
  }
  .page-game-bai__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-game-bai__hero-description {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
  }
  .page-game-bai__btn-primary, .page-game-bai__btn-secondary {
    padding: 12px 25px;
    font-size: 1rem;
  }
  .page-game-bai__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }
  .page-game-bai__games-grid,
  .page-game-bai__features-grid,
  .page-game-bai__guide-steps,
  .page-game-bai__promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .page-game-bai__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
    padding-bottom: 40px;
  }
  .page-game-bai__hero-image-wrapper img {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    filter: brightness(0.8) !important;
  }
  .page-game-bai__hero-content {
    padding: 15px;
  }
  .page-game-bai__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 15px;
  }
  .page-game-bai__hero-description {
    font-size: clamp(0.95rem, 3.5vw, 1.1rem);
    margin-bottom: 25px;
  }
  .page-game-bai__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-game-bai__btn-primary,
  .page-game-bai__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px !important;
    font-size: 1rem !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-game-bai__container {
    padding: 30px 15px;
  }
  .page-game-bai__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 15px;
  }
  .page-game-bai__section-subtitle {
    font-size: clamp(0.9rem, 3.5vw, 1rem);
    margin-bottom: 30px;
  }

  /* Products/Games Grid for mobile */
  .page-game-bai__games-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
    gap: 20px;
    overflow-x: hidden !important;
  }
  .page-game-bai__game-card {
    margin: 0 !important; /* Ensure no extra margin */
  }
  .page-game-bai__game-image {
    height: 150px;
  }
  .page-game-bai__btn-play {
    width: calc(100% - 30px) !important;
    margin-left: 15px;
    margin-right: 15px;
  }

  /* Features Grid for mobile */
  .page-game-bai__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-game-bai__feature-item {
    padding: 20px;
  }
  .page-game-bai__feature-icon {
    width: 80px;
    height: 80px;
  }
  .page-game-bai__feature-title {
    font-size: 1.2rem;
  }

  /* Guide Steps for mobile */
  .page-game-bai__guide-steps {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .page-game-bai__guide-image {
    height: 180px;
  }
  .page-game-bai__guide-step-title {
    font-size: 1.3rem;
  }

  /* Promotions Grid for mobile */
  .page-game-bai__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-game-bai__promo-image {
    height: 180px;
  }
  .page-game-bai__promo-title {
    font-size: 1.3rem;
  }

  /* FAQ for mobile */
  details.page-game-bai__faq-item summary.page-game-bai__faq-question { 
    padding: 15px; 
  }
  .page-game-bai__faq-qtext { 
    font-size: 15px; 
  }
  details.page-game-bai__faq-item .page-game-bai__faq-answer { 
    padding: 0 15px 15px; 
  }

  /* General image and container responsiveness */
  .page-game-bai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-game-bai__container,
  .page-game-bai__hero-section,
  .page-game-bai__intro-section,
  .page-game-bai__games-section,
  .page-game-bai__why-choose-section,
  .page-game-bai__guide-section,
  .page-game-bai__promotions-section,
  .page-game-bai__faq-section,
  .page-game-bai__game-card,
  .page-game-bai__feature-item,
  .page-game-bai__guide-step,
  .page-game-bai__promo-card,
  .page-game-bai__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}