/* Base styles for the Game Bài page */
.page-game-bai {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Text Main */
  background: #F5F7FA; /* Background */
}

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

.page-game-bai__section-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 25px;
  color: #E53935; /* Main color for titles */
}

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

.page-game-bai__text-block {
  text-align: center;
  margin-bottom: 30px;
  font-size: 17px;
  line-height: 1.7;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-bai__text-block--white {
  color: #f0f0f0;
}

.page-game-bai__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-game-bai__cta-buttons--center {
  justify-content: center;
}

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

.page-game-bai__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
}

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

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

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

.page-game-bai__btn-play {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  font-size: 15px;
  border-radius: 5px;
}

.page-game-bai__btn-play:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.page-game-bai__btn-more {
  background: #E53935;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  font-size: 15px;
  border-radius: 5px;
}

.page-game-bai__btn-more:hover {
  background: #FF5A4F;
  transform: translateY(-1px);
}

/* Hero Section */
.page-game-bai__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  margin-bottom: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 500px;
  overflow: hidden;
}

.page-game-bai__hero-image {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.page-game-bai__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Ensures image covers the area */
}

.page-game-bai__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
}

.page-game-bai__main-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #E53935;
}

.page-game-bai__hero-description {
  font-size: clamp(18px, 2.5vw, 22px);
  line-height: 1.5;
  margin-bottom: 30px;
  color: #333333;
}

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

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

.page-game-bai__feature-item {
  background: #ffffff; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease;
}

.page-game-bai__feature-item:hover {
  transform: translateY(-5px);
}

.page-game-bai__feature-item img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px;
  border-radius: 8px;
  min-width: 200px;
  min-height: 200px;
}

.page-game-bai__feature-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #E53935;
}

/* Games Section */
.page-game-bai__games-section {
  padding: 60px 0;
  background: #E53935; /* Dark background for contrast */
  color: #ffffff;
}

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

.page-game-bai__game-card {
  background: rgba(255, 255, 255, 0.1); /* Slightly transparent white for dark bg */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-game-bai__game-card:hover {
  transform: translateY(-5px);
}

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

.page-game-bai__game-title {
  font-size: 24px;
  font-weight: 700;
  margin: 20px 15px 10px;
  color: #ffffff;
}

.page-game-bai__game-title a {
  color: #ffffff;
  text-decoration: none;
}

.page-game-bai__game-title a:hover {
  color: #FF5A4F;
}

.page-game-bai__game-card p {
  font-size: 16px;
  color: #f0f0f0;
  padding: 0 15px 20px;
  flex-grow: 1;
}

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

/* Why Us Section */
.page-game-bai__why-us-section {
  padding: 60px 0;
}

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

.page-game-bai__advantages-list li {
  background: #ffffff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  font-size: 17px;
  line-height: 1.6;
  color: #333333;
  border-left: 4px solid #E53935;
}

.page-game-bai__advantages-list li strong {
  color: #E53935;
  font-size: 18px;
}

/* Guide Section */
.page-game-bai__guide-section {
  padding: 60px 0;
  background: #FF5A4F; /* Auxiliary color for background */
  color: #ffffff;
}

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

.page-game-bai__step-item {
  background: rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-game-bai__step-item img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px;
  border-radius: 50%;
  
  
  object-fit: cover;
  border: 4px solid #ffffff;
  min-width: 200px;
  min-height: 200px;
}

.page-game-bai__step-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-game-bai__step-item p {
  color: #f0f0f0;
}

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

.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 5px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-game-bai__promo-card:hover {
  transform: translateY(-5px);
}

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

.page-game-bai__promo-title {
  font-size: 22px;
  font-weight: 700;
  margin: 20px 15px 10px;
  color: #E53935;
}

.page-game-bai__promo-card p {
  font-size: 16px;
  color: #333333;
  padding: 0 15px 20px;
  flex-grow: 1;
}

.page-game-bai__promo-card .page-game-bai__btn-more {
  margin: 0 15px 20px;
  width: calc(100% - 30px);
}

/* Tips Section */
.page-game-bai__tips-section {
  padding: 60px 0;
  background: #E53935;
  color: #ffffff;
}

.page-game-bai__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-bai__tips-list li {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  font-size: 17px;
  line-height: 1.6;
  color: #f0f0f0;
  border-left: 4px solid #FF5A4F;
}

/* FAQ Section */
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;
  color: #333333;
}

/* Final CTA Section */
.page-game-bai__final-cta-section {
  padding: 80px 0;
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
  color: #ffffff;
  text-align: center;
}

.page-game-bai__cta-content {
  max-width: 800px;
}

/* --- Responsive Styles --- */

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .page-game-bai__container {
    padding: 15px;
  }

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

  .page-game-bai__text-block {
    font-size: 15px;
    margin-bottom: 20px;
  }

  /* HERO Section */
  .page-game-bai__hero-section {
    padding-top: 10px; /* Consistent small top padding */
    min-height: unset;
    margin-bottom: 30px;
  }

  .page-game-bai__hero-image {
    max-height: 300px;
    margin-bottom: 20px;
  }

  .page-game-bai__hero-image img {
    object-fit: contain !important; /* Ensure image is fully visible */
    aspect-ratio: unset !important; /* Allow natural aspect ratio */
    width: 100% !important;
    height: auto !important;
  }

  .page-game-bai__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

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

  .page-game-bai__cta-buttons {
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
    padding: 0 15px;
  }

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

  /* General Image & Container Adaptations */
  .page-game-bai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-game-bai__intro-section,
  .page-game-bai__games-section,
  .page-game-bai__why-us-section,
  .page-game-bai__guide-section,
  .page-game-bai__promotions-section,
  .page-game-bai__tips-section,
  .page-game-bai__faq-section,
  .page-game-bai__final-cta-section {
    padding: 40px 0;
  }

  .page-game-bai__feature-grid,
  .page-game-bai__games-grid,
  .page-game-bai__steps-grid,
  .page-game-bai__promo-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-game-bai__feature-item img,
  .page-game-bai__step-item img,
  .page-game-bai__promo-card img {
    min-width: 200px !important; /* Ensure minimum size */
    min-height: 200px !important;
    height: auto !important;
  }

  .page-game-bai__games-section {
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

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

  .page-game-bai__advantages-list li,
  .page-game-bai__tips-list li {
    font-size: 15px;
    padding: 15px;
  }

  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;
  }

  .page-game-bai__cta-content {
    padding: 0 15px;
  }

  .page-game-bai__article-body,
  .page-game-bai__section, 
  .page-game-bai__card, 
  .page-game-bai__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-game-bai__article-body h2, .page-game-bai__article-body h3, .page-game-bai__article-body p {
    text-align: left; /* Align text to left on mobile */
  }

  .page-game-bai__article-figure {
    display: block;
    margin: 20px auto;
    max-width: 100%;
  }

  .page-game-bai__article-figure img {
    max-width: 100% !important;
    height: auto !important;
  }
}

/* Tablet (max-width: 1024px) - Adjustments for larger tablets */
@media (max-width: 1024px) and (min-width: 769px) {
  .page-game-bai__container {
    padding: 25px;
  }

  .page-game-bai__section-title {
    font-size: 32px;
  }

  .page-game-bai__hero-section {
    min-height: 400px;
  }

  .page-game-bai__hero-image {
    max-height: 450px;
  }

  .page-game-bai__main-title {
    font-size: 48px;
  }

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

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

  .page-game-bai__feature-grid,
  .page-game-bai__games-grid,
  .page-game-bai__steps-grid,
  .page-game-bai__promo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .page-game-bai__advantages-list {
    grid-template-columns: repeat(2, 1fr);
  }

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