:root {
  --primary-color: #2F6BFF;
  --secondary-color: #6FA3FF;
  --background-color: #F4F7FB;
  --card-background: #FFFFFF;
  --text-main-color: #1F2D3D;
  --text-black-color: #000000;
  --border-color: #D6E2FF;
  --glow-color: #A5C4FF;
  --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
}

.page-game-bai {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-main-color);
  line-height: 1.6;
  background-color: var(--background-color);
}

.page-game-bai__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 15px;
}

.page-game-bai__section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-black-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-game-bai__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-game-bai__section-description {
  font-size: 18px;
  color: var(--text-main-color);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-bai__text-block p {
  margin-bottom: 15px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-main-color);
  text-align: justify;
}

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

.page-game-bai__btn-primary,
.page-game-bai__btn-play,
.page-game-bai__btn-promo {
  background: var(--button-gradient);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-game-bai__btn-primary:hover,
.page-game-bai__btn-play:hover,
.page-game-bai__btn-promo:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

.page-game-bai__btn-secondary {
  background: var(--card-background);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-game-bai__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(47, 107, 255, 0.2);
}

/* HERO Section */
.page-game-bai__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Adjusted for shared header offset */
  padding-bottom: 50px;
  background-color: var(--background-color);
}

.page-game-bai__hero-content {
  text-align: center;
  max-width: 900px;
  margin-bottom: 40px;
  padding: 0 15px;
}

.page-game-bai__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--text-black-color);
  line-height: 1.2;
  margin-bottom: 20px;
}

.page-game-bai__hero-description {
  font-size: 20px;
  color: var(--text-main-color);
  margin-bottom: 30px;
  line-height: 1.7;
}

.page-game-bai__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-game-bai__hero-image {
  width: 100%;
  max-width: 1200px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.page-game-bai__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16/9;
}

/* Intro Section */
.page-game-bai__intro-section {
  padding: 60px 0;
  background-color: var(--card-background);
}

/* Benefits Section */
.page-game-bai__benefits-section {
  padding: 80px 0;
  background-color: var(--background-color);
}

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

.page-game-bai__benefit-card {
  background: var(--card-background);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-game-bai__benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.page-game-bai__benefit-card img {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-game-bai__card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-game-bai__benefit-card p {
  font-size: 16px;
  color: var(--text-main-color);
  line-height: 1.6;
}

/* Game Types Section */
.page-game-bai__game-types-section {
  padding: 80px 0;
  background-color: var(--card-background);
}

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

.page-game-bai__game-card {
  background: var(--card-background);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-game-bai__game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.page-game-bai__game-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-game-bai__game-card .page-game-bai__card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-black-color);
  margin: 20px 20px 10px;
  text-align: left;
}

.page-game-bai__game-card .page-game-bai__card-title a {
  color: inherit;
  text-decoration: none;
}

.page-game-bai__game-card .page-game-bai__card-title a:hover {
  color: var(--primary-color);
}

.page-game-bai__game-card p {
  font-size: 15px;
  color: var(--text-main-color);
  margin: 0 20px 20px;
  line-height: 1.6;
}

.page-game-bai__game-card .page-game-bai__btn-play {
  margin: 0 20px 20px;
  width: calc(100% - 40px);
  max-width: none;
}

.page-game-bai__cta-more-games {
  display: flex;
  gap: 20px;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Strategy Section */
.page-game-bai__strategy-section {
  padding: 80px 0;
  background-color: var(--background-color);
}

.page-game-bai__strategy-subtitle {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  margin-top: 40px;
  margin-bottom: 15px;
}

.page-game-bai__strategy-section .page-game-bai__text-block {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Promotion Section */
.page-game-bai__promotion-section {
  padding: 80px 0;
  background-color: var(--card-background);
}

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

.page-game-bai__promo-card {
  background: var(--card-background);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-game-bai__promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

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

.page-game-bai__promo-card .page-game-bai__card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-black-color);
  margin: 20px 20px 10px;
  text-align: left;
}

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

.page-game-bai__promo-card .page-game-bai__card-title a:hover {
  color: var(--primary-color);
}

.page-game-bai__promo-card p {
  font-size: 16px;
  color: var(--text-main-color);
  margin: 0 20px 20px;
  line-height: 1.6;
}

.page-game-bai__promo-card .page-game-bai__btn-promo {
  margin: 0 20px 20px;
  width: calc(100% - 40px);
  max-width: none;
}

/* FAQ Section */
.page-game-bai__faq-section {
  padding: 80px 0;
  background-color: var(--background-color);
}

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

details.page-game-bai__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-background);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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: 17px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-black-color);
}

.page-game-bai__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
  transition: transform 0.3s ease;
}

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

details.page-game-bai__faq-item .page-game-bai__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  font-size: 16px;
  color: var(--text-main-color);
  line-height: 1.6;
}

/* Contact CTA Section */
.page-game-bai__contact-cta-section {
  padding: 60px 0;
  background: var(--primary-color);
  text-align: center;
  color: #ffffff;
}

.page-game-bai__contact-cta-section .page-game-bai__section-title {
  color: #ffffff;
}

.page-game-bai__contact-cta-section .page-game-bai__section-title::after {
  background: #ffffff;
}

.page-game-bai__contact-description {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.page-game-bai__contact-cta-section .page-game-bai__btn-primary {
  background: var(--card-background);
  color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
}

.page-game-bai__contact-cta-section .page-game-bai__btn-primary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

/* Media Queries */
@media (max-width: 1024px) {
  .page-game-bai__hero-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-game-bai__section-title {
    font-size: 32px;
  }
  .page-game-bai__hero-description,
  .page-game-bai__section-description {
    font-size: 18px;
  }
  .page-game-bai__benefit-card img {
    
  }
  .page-game-bai__game-types-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-game-bai__promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 849px) {
  .page-game-bai__hero-image img {
    object-fit: contain !important;
    aspect-ratio: unset !important;
  }
}

@media (max-width: 768px) {
  .page-game-bai__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-game-bai__hero-content {
    margin-bottom: 30px;
    padding: 0 10px;
  }

  .page-game-bai__hero-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .page-game-bai__hero-description {
    font-size: 16px;
  }

  .page-game-bai__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-game-bai__btn-primary,
  .page-game-bai__btn-secondary,
  .page-game-bai__btn-play,
  .page-game-bai__btn-promo {
    font-size: 16px;
    padding: 12px 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Section Titles Mobile */
  .page-game-bai__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-game-bai__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  /* General Images Mobile */
  .page-game-bai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Benefits Section Mobile */
  .page-game-bai__benefits-section {
    padding: 50px 0;
  }
  .page-game-bai__benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-game-bai__benefit-card img {
    
  }

  /* Game Types Section Mobile */
  .page-game-bai__game-types-section {
    padding: 50px 0;
  }
  .page-game-bai__game-types-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    overflow-x: hidden; /* Ensure no horizontal scroll */
  }
  .page-game-bai__game-card img {
    height: 200px;
  }
  .page-game-bai__game-card .page-game-bai__card-title {
    font-size: 18px;
  }
  .page-game-bai__game-card p {
    font-size: 14px;
  }
  .page-game-bai__cta-more-games {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Strategy Section Mobile */
  .page-game-bai__strategy-section {
    padding: 50px 0;
  }
  .page-game-bai__strategy-subtitle {
    font-size: 20px;
    margin-top: 30px;
  }
  .page-game-bai__text-block p {
    font-size: 15px;
  }

  /* Promotion Section Mobile */
  .page-game-bai__promotion-section {
    padding: 50px 0;
  }
  .page-game-bai__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-game-bai__promo-card img {
    height: 220px;
  }
  .page-game-bai__promo-card .page-game-bai__card-title {
    font-size: 20px;
  }
  .page-game-bai__promo-card p {
    font-size: 15px;
  }

  /* FAQ Section Mobile */
  .page-game-bai__faq-section {
    padding: 50px 0;
  }
  details.page-game-bai__faq-item summary.page-game-bai__faq-question {
    padding: 15px;
  }
  .page-game-bai__faq-qtext {
    font-size: 16px;
  }
  .page-game-bai__faq-toggle {
    font-size: 20px;
    width: 24px;
  }
  details.page-game-bai__faq-item .page-game-bai__faq-answer {
    padding: 0 15px 15px;
    font-size: 15px;
  }

  /* Contact CTA Section Mobile */
  .page-game-bai__contact-cta-section {
    padding: 40px 0;
  }
  .page-game-bai__contact-description {
    font-size: 16px;
  }
}