/* Base styles for the Game Bài page */
.page-game-bai {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
}

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

.page-game-bai__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.page-game-bai__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #2AD16F, #13994A);
  border-radius: 2px;
}

.page-game-bai__section-title--dark {
  color: #333333;
}

.page-game-bai__text-block {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #A7D9B8; /* Text Secondary */
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-bai__text-block--dark {
  color: #333333;
}

.page-game-bai__btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-bai__btn--primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-game-bai__btn--primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

.page-game-bai__btn--secondary {
  background: #11271B; /* Card BG */
  color: #2AD16F; /* A lighter shade of primary for contrast */
  border: 2px solid #2E7A4E; /* Border */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-game-bai__btn--secondary:hover {
  background: #0A4B2C; /* Deep Green */
  color: #F2FFF6; /* Text Main */
  border-color: #57E38D; /* Glow */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-game-bai__btn--small {
  padding: 10px 20px;
  font-size: 1em;
  border-radius: 6px;
}

.page-game-bai__figure {
  margin: 40px auto;
  text-align: center;
  max-width: 1000px;
}

.page-game-bai__figure-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  margin: 0 auto;
}

.page-game-bai__figure-caption {
  margin-top: 15px;
  font-size: 0.95em;
  color: #A7D9B8; /* Text Secondary */
}

/* Hero Section */
.page-game-bai__hero-section {
  position: relative;
  overflow: hidden;
  padding-bottom: 60px; /* Space for content below image */
  background-color: #08160F;
}

.page-game-bai__hero-image-wrap {
  width: 100%;
  height: 600px; /* Adjust as needed */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

.page-game-bai__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em);
  font-weight: 800;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}

.page-game-bai__subtitle {
  font-size: 1.25em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-bai__hero-cta {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Intro Section */
.page-game-bai__intro-section {
  padding: 80px 0;
}

.page-game-bai__dark-section {
  background-color: #11271B; /* Card BG */
  color: #F2FFF6; /* Text Main */
}

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

.page-game-bai__info-card {
  background-color: #08160F; /* Background */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  text-align: center;
  border: 1px solid #2E7A4E; /* Border */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-bai__info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.page-game-bai__card-title {
  font-size: 1.6em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
}

.page-game-bai__card-text {
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
}

/* Games Section */
.page-game-bai__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-game-bai__games-section {
  padding: 80px 0;
}

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

.page-game-bai__game-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

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

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

.page-game-bai__game-title {
  font-size: 1.5em;
  color: #11A84E; /* Primary */
  margin: 20px 15px 10px;
}

.page-game-bai__game-description {
  font-size: 0.95em;
  color: #555555;
  padding: 0 15px 20px;
}

.page-game-bai__game-card .page-game-bai__btn {
  margin-bottom: 20px;
}

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

/* Advantages Section */
.page-game-bai__advantages-section {
  padding: 80px 0;
}

.page-game-bai__advantages-list {
  list-style: none;
  padding: 0;
  margin: 50px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-game-bai__advantage-item {
  background-color: #0A4B2C; /* Deep Green */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E; /* Border */
}

.page-game-bai__advantage-title {
  font-size: 1.5em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
}

.page-game-bai__advantage-description {
  font-size: 0.95em;
  color: #A7D9B8; /* Text Secondary */
}

/* Guide Section */
.page-game-bai__guide-section {
  padding: 80px 0;
}

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

.page-game-bai__step-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
  position: relative;
  padding-top: 60px;
}

.page-game-bai__step-number {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8em;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-game-bai__step-title {
  font-size: 1.4em;
  color: #11A84E; /* Primary */
  margin-bottom: 10px;
}

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

/* Promotions Section */
.page-game-bai__promotions-section {
  padding: 80px 0;
}

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

.page-game-bai__promo-card {
  background-color: #0A4B2C; /* Deep Green */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  border: 1px solid #2E7A4E; /* Border */
  text-align: center;
}

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

.page-game-bai__promo-title {
  font-size: 1.5em;
  color: #F2FFF6; /* Text Main */
  margin: 20px 15px 10px;
}

.page-game-bai__promo-description {
  font-size: 0.95em;
  color: #A7D9B8; /* Text Secondary */
  padding: 0 15px 20px;
}

.page-game-bai__promo-card .page-game-bai__btn {
  margin-bottom: 20px;
}

/* Tips Section */
.page-game-bai__tips-section {
  padding: 80px 0;
}

.page-game-bai__tips-list {
  list-style: none;
  padding: 0;
  margin: 50px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-game-bai__tip-item {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
}

.page-game-bai__tip-title {
  font-size: 1.5em;
  color: #11A84E; /* Primary */
  margin-bottom: 10px;
}

.page-game-bai__tip-description {
  font-size: 0.95em;
  color: #555555;
}

/* FAQ Section */
.page-game-bai__faq-section {
  padding: 80px 0;
}

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

.page-game-bai__faq-item {
  background-color: #0A4B2C; /* Deep Green */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-game-bai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  background-color: #11271B; /* Card BG */
  transition: background-color 0.3s ease;
  list-style: none;
  user-select: none; /* Prevent text selection on click */
}

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

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

.page-game-bai__faq-qtext {
  flex-grow: 1;
}

.page-game-bai__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  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: 15px 25px 20px;
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  border-top: 1px solid #2E7A4E;
}

.page-game-bai__faq-answer p {
  margin: 0;
}

.page-game-bai__faq-answer a {
  color: #2AD16F;
  text-decoration: underline;
}

.page-game-bai__faq-answer a:hover {
  color: #57E38D;
}

/* Conclusion Section */
.page-game-bai__conclusion-section {
  padding: 80px 0;
  text-align: center;
}

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

.page-game-bai a {
  color: #2AD16F;
  text-decoration: none;
}

.page-game-bai a:hover {
  text-decoration: underline;
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
  .page-game-bai__section-title {
    font-size: 2em;
  }

  .page-game-bai__subtitle {
    font-size: 1.1em;
  }

  .page-game-bai__hero-image-wrap {
    height: 500px;
  }

  .page-game-bai__card-grid,
  .page-game-bai__game-list,
  .page-game-bai__steps-grid,
  .page-game-bai__promo-grid,
  .page-game-bai__advantages-list,
  .page-game-bai__tips-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  /* 1. Top section title + Dual CTA */
  .page-game-bai {
    padding-top: 10px !important;
  }

  .page-game-bai__container {
    padding: 15px;
  }

  .page-game-bai__hero-section {
    padding-bottom: 40px;
  }

  .page-game-bai__hero-image-wrap {
    height: 300px;
  }

  .page-game-bai__hero-content {
    margin-top: 20px;
    padding: 0 15px;
  }

  .page-game-bai__main-title {
    font-size: clamp(2em, 8vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-game-bai__subtitle {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-game-bai__hero-cta {
    flex-direction: column;
    gap: 15px;
  }

  .page-game-bai__btn {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* 2. Single-column long text containers */
  .page-game-bai__intro-section,
  .page-game-bai__games-section,
  .page-game-bai__advantages-section,
  .page-game-bai__guide-section,
  .page-game-bai__promotions-section,
  .page-game-bai__tips-section,
  .page-game-bai__faq-section,
  .page-game-bai__conclusion-section {
    padding: 40px 0;
  }

  .page-game-bai__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-game-bai__text-block {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-game-bai__info-card,
  .page-game-bai__game-card,
  .page-game-bai__step-card,
  .page-game-bai__promo-card,
  .page-game-bai__advantage-item,
  .page-game-bai__tip-item {
    padding: 20px;
  }

  /* 3. General images and figure */
  .page-game-bai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-game-bai__figure {
    margin: 30px auto;
  }

  .page-game-bai__figure-caption {
    font-size: 0.9em;
  }

  /* 4. Buttons and button containers */
  .page-game-bai__hero-cta,
  .page-game-bai__cta-bottom,
  .page-game-bai__button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  /* Specific button styles for mobile */
  .page-game-bai__btn--small {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 15px;
    font-size: 0.95em;
  }

  /* 5. Registration tutorial and FAQ blocks */
  .page-game-bai__step-card {
    padding-top: 50px;
  }

  .page-game-bai__step-number {
    width: 40px;
    height: 40px;
    font-size: 1.5em;
    top: -20px;
  }

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

  .page-game-bai__faq-list {
    margin-top: 30px;
  }

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

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