/* Base styles for page-game-bai */
.page-game-bai {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
}

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

.page-game-bai__section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  color: #2F6BFF; /* Primary */
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.2;
}

.page-game-bai__text-block {
  margin-bottom: 20px;
  font-size: 16px;
  color: #1F2D3D; /* Text Main */
}

.page-game-bai__link {
  color: #2F6BFF; /* Primary */
  text-decoration: none;
  font-weight: 600;
}

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

/* Hero Section */
.page-game-bai__hero-section {
  padding-top: 10px; /* Small top padding for fixed header */
  position: relative;
  background: linear-gradient(180deg, #2F6BFF 0%, #6FA3FF 100%); /* Primary to Secondary */
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}

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

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

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

.page-game-bai__main-title {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
  color: #ffffff;
}

.page-game-bai__hero-description {
  font-size: clamp(16px, 2vw, 20px);
  margin-bottom: 30px;
  line-height: 1.5;
  color: #f0f8ff;
}

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

.page-game-bai__btn-primary,
.page-game-bai__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-game-bai__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button */
  color: #ffffff;
  border: 2px solid transparent;
}

.page-game-bai__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

.page-game-bai__btn-secondary {
  background: #ffffff; /* Card BG */
  color: #2F6BFF; /* Primary */
  border: 2px solid #2F6BFF;
}

.page-game-bai__btn-secondary:hover {
  background: #f0f8ff;
  color: #1F2D3D; /* Text Main */
  border-color: #1F2D3D;
}

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

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

/* Games List Section */
.page-game-bai__games-list-section {
  background-color: #2F6BFF; /* Primary */
  color: #ffffff;
  padding: 60px 0;
}

.page-game-bai__games-list-section .page-game-bai__section-title {
  color: #ffffff;
}

.page-game-bai__games-list-section .page-game-bai__text-block {
  color: #f0f8ff;
}

.page-game-bai__games-list-section .page-game-bai__link {
  color: #f0f8ff;
}

.page-game-bai__games-list-section .page-game-bai__link:hover {
  text-decoration: underline;
}

.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-color: #ffffff; /* Card BG */
  color: #1F2D3D; /* Text Main */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-game-bai__game-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-game-bai__game-card-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #000000; /* Custom Color_1776249996415 */
}

.page-game-bai__game-card-description {
  font-size: 15px;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-game-bai__feature-card {
  background-color: #ffffff; /* Card BG */
  color: #1F2D3D; /* Text Main */
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

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

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

.page-game-bai__feature-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #000000; /* Custom Color_1776249996415 */
}

.page-game-bai__feature-description {
  font-size: 15px;
}

/* Guide Section */
.page-game-bai__guide-section {
  background-color: #2F6BFF; /* Primary */
  color: #ffffff;
  padding: 60px 0;
}

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

.page-game-bai__guide-section .page-game-bai__text-block {
  color: #f0f8ff;
}

.page-game-bai__guide-section .page-game-bai__link {
  color: #f0f8ff;
}

.page-game-bai__guide-section .page-game-bai__link:hover {
  text-decoration: underline;
}

.page-game-bai__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-game-bai__guide-list li {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  transition: background-color 0.3s ease;
}

.page-game-bai__guide-list li:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

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

.page-game-bai__guide-step-description {
  font-size: 16px;
  color: #f0f8ff;
}

/* Tips Section */
.page-game-bai__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-game-bai__tips-list li {
  background-color: #ffffff; /* Card BG */
  border-left: 5px solid #2F6BFF; /* Primary */
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-game-bai__tip-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #000000; /* Custom Color_1776249996415 */
}

.page-game-bai__tip-description {
  font-size: 16px;
  color: #1F2D3D; /* Text Main */
}

/* FAQ Section */
.page-game-bai__faq-section {
  background-color: #2F6BFF; /* Primary */
  color: #ffffff;
  padding: 60px 0;
}

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

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

.page-game-bai__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.page-game-bai__faq-item:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-game-bai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  list-style: none; /* Hide default marker */
}

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

.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: 24px;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-game-bai__faq-answer {
  padding: 0 25px 20px;
  font-size: 16px;
  color: #f0f8ff;
}

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

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

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

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

  .page-game-bai__hero-section {
    padding-top: 10px; /* Consistent small top padding */
  }

  .page-game-bai__main-title {
    font-size: clamp(28px, 8vw, 42px);
  }

  .page-game-bai__hero-description {
    font-size: clamp(15px, 4vw, 18px);
  }

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

  .page-game-bai__btn-primary,
  .page-game-bai__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-game-bai__section-title {
    font-size: clamp(24px, 7vw, 36px);
    margin-bottom: 30px;
  }

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

  .page-game-bai__games-grid,
  .page-game-bai__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-game-bai__game-card,
  .page-game-bai__feature-card {
    padding: 20px;
  }

  .page-game-bai__game-card-image {
    height: auto; /* Allow auto height for mobile images */
    max-width: 100% !important;
    width: 100% !important;
  }

  .page-game-bai__game-card-title {
    font-size: 20px;
  }

  .page-game-bai__feature-title {
    font-size: 18px;
  }

  .page-game-bai__guide-list li,
  .page-game-bai__tips-list li,
  .page-game-bai__faq-item {
    padding: 18px 20px;
  }

  .page-game-bai__guide-step-title,
  .page-game-bai__tip-title {
    font-size: 18px;
  }

  .page-game-bai__guide-step-description,
  .page-game-bai__tip-description {
    font-size: 15px;
  }

  .page-game-bai__faq-question {
    font-size: 16px;
    padding: 18px 20px;
  }

  .page-game-bai__faq-answer {
    padding: 0 20px 18px;
    font-size: 15px;
  }

  /* General image responsiveness for content area */
  .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__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;
  }

  /* Ensure flex containers wrap for multiple buttons */
  .page-game-bai__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}