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

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

.page-game-bai__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #E53935; /* Main Color */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-game-bai__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-bai__btn-primary,
.page-game-bai__btn-secondary,
.page-game-bai__btn-small {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
}

.page-game-bai__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

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

.page-game-bai__btn-secondary {
  background: #ffffff;
  color: #E53935; /* Main Color */
  border: 2px solid #E53935; /* Main Color */
}

.page-game-bai__btn-secondary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

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

.page-game-bai__btn-small:hover {
  opacity: 0.9;
}

.page-game-bai__text-link {
  color: #E53935;
  text-decoration: underline;
}

.page-game-bai__text-link:hover {
  color: #FF5A4F;
}

/* HERO Section */
.page-game-bai__hero-section {
  padding-top: 10px; /* Small top padding */
  padding-bottom: 60px;
  background-color: #F5F7FA; /* Background */
}

.page-game-bai__hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  justify-content: center;
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 16px;
  box-sizing: border-box;
}

.page-game-bai__hero-content {
  flex: 1 1 50%;
  min-width: 300px;
  color: #333333;
}

.page-game-bai__main-title {
  font-size: 3.2em;
  font-weight: 800;
  color: #E53935; /* Main Color */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-game-bai__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
}

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

.page-game-bai__hero-image {
  flex: 1 1 40%;
  min-width: 300px;
  text-align: center;
}

.page-game-bai__side-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Intro Section (Module 1) */
.page-game-bai__intro-section {
  padding: 60px 0;
  background-color: #F5F7FA; /* Background */
}

.page-game-bai__intro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-game-bai__icon-box {
  background: #ffffff; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-game-bai__icon-box:hover {
  transform: translateY(-10px);
}

.page-game-bai__icon-box-media {
  width: 180px; /* Reduced from 240px for better fit, will be 400x400 source */
  height: 180px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #FF5A4F; /* Auxiliary Color */
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-game-bai__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.page-game-bai__icon-box-title {
  font-size: 1.5em;
  font-weight: 700;
  color: #E53935; /* Main Color */
  margin-bottom: 10px;
}

.page-game-bai__icon-box-text {
  font-size: 1em;
  color: #333333;
}

/* Game Tabs Section */
.page-game-bai__game-tabs {
  background-color: #E53935; /* Main Color */
  padding: 60px 0;
  color: #ffffff;
}

.page-game-bai__tab-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 15px;
}

.page-game-bai__tab-button {
  background: transparent;
  border: 2px solid #ffffff;
  color: #ffffff;
  padding: 10px 25px;
  border-radius: 25px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.page-game-bai__tab-button:hover,
.page-game-bai__tab-button.is-active {
  background: #FF5A4F; /* Auxiliary Color */
  border-color: #FF5A4F;
}

.page-game-bai__game-panel {
  display: none;
  animation: fadeIn 0.5s ease-in-out forwards;
}

.page-game-bai__game-panel.is-active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-game-bai__game-card {
  background: #ffffff; /* Card BG */
  color: #333333;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.page-game-bai__game-card-image {
  width: 100%;
  height: auto;
  display: block;
}

.page-game-bai__game-card-title {
  font-size: 1.8em;
  font-weight: 700;
  color: #E53935;
  margin: 20px 15px 10px;
}

.page-game-bai__game-card-text {
  font-size: 1em;
  padding: 0 20px 20px;
}

/* Content Section (Why Choose, Tips/Strategy) */
.page-game-bai__content-section {
  padding: 60px 0;
  background-color: #F5F7FA; /* Background */
}

.page-game-bai__content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: center;
}

.page-game-bai__content-text-block {
  flex: 1 1 50%;
  min-width: 300px;
  max-width: 700px;
}

.page-game-bai__content-text-block p {
  margin-bottom: 15px;
  font-size: 1.1em;
}

.page-game-bai__list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  font-size: 1.1em;
}

.page-game-bai__list li {
  margin-bottom: 8px;
}

.page-game-bai__content-image {
  flex: 1 1 40%;
  min-width: 300px;
  text-align: center;
}

.page-game-bai__image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.page-game-bai__faq-section {
  background-color: #E53935; /* Main Color */
  padding: 60px 0;
  color: #ffffff;
}

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

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

.page-game-bai__faq-item[open] {
  background: rgba(255, 255, 255, 0.15);
}

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

.page-game-bai__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Webkit */
}

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

.page-game-bai__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  margin-left: 15px;
}

.page-game-bai__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-game-bai__faq-answer p {
  margin-bottom: 10px;
}

.page-game-bai__faq-contact-text {
  text-align: center;
  font-size: 1.1em;
  color: #ffffff;
}

/* CTA Bottom Section */
.page-game-bai__cta-bottom {
  padding: 60px 0;
  background-color: #F5F7FA; /* Background */
  text-align: center;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-game-bai__main-title {
    font-size: 2.8em;
  }
  .page-game-bai__hero-description {
    font-size: 1.1em;
  }
  .page-game-bai__icon-box-media {
    width: 150px;
    height: 150px;
  }
  .page-game-bai__icon-box-title {
    font-size: 1.3em;
  }
  .page-game-bai__game-card-title {
    font-size: 1.5em;
  }
  .page-game-bai__faq-question {
    font-size: 1.1em;
  }
  .page-game-bai__faq-answer {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  /* HERO Section */
  .page-game-bai__hero-section {
    padding-top: 10px !important; /* Small top padding */
    padding-bottom: 40px !important;
  }
  .page-game-bai__hero-container {
    flex-direction: column;
    padding: 20px 15px;
    gap: 30px;
  }
  .page-game-bai__hero-content {
    order: 2; /* Content after image */
    text-align: center;
    flex: 1 1 100%;
  }
  .page-game-bai__hero-image {
    order: 1; /* Image first */
    flex: 1 1 100%;
  }
  .page-game-bai__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-game-bai__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }
  .page-game-bai__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-game-bai__btn-primary,
  .page-game-bai__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px !important; /* Adjust padding for smaller screens */
  }

  /* Intro Section (Module 1) */
  .page-game-bai__intro-section {
    padding: 40px 0;
  }
  .page-game-bai__intro-grid {
    grid-template-columns: 1fr; /* Single column */
    gap: 20px;
  }
  .page-game-bai__icon-box-media {
    width: 120px;
    height: 120px;
    border-width: 3px;
  }
  .page-game-bai__icon-box-title {
    font-size: 1.2em;
  }
  .page-game-bai__icon-box-text {
    font-size: 0.95em;
  }

  /* Game Tabs Section */
  .page-game-bai__game-tabs {
    padding: 40px 0;
  }
  .page-game-bai__tab-nav {
    flex-wrap: wrap;
    justify-content: flex-start; /* Align left for scrolling */
    overflow-x: auto; /* Enable horizontal scrolling for tabs */
    white-space: nowrap;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling for iOS */
  }
  .page-game-bai__tab-button {
    font-size: 0.9em;
    padding: 8px 18px;
    margin-bottom: 5px; /* Add some space between wrapped buttons */
  }
  .page-game-bai__game-card-title {
    font-size: 1.3em;
    margin: 15px 10px 8px;
  }
  .page-game-bai__game-card-text {
    font-size: 0.95em;
    padding: 0 15px 15px;
  }

  /* Content Section */
  .page-game-bai__content-section {
    padding: 40px 0;
  }
  .page-game-bai__content-grid {
    flex-direction: column;
    gap: 30px;
  }
  .page-game-bai__content-text-block,
  .page-game-bai__content-image {
    flex: 1 1 100%;
    min-width: unset;
  }
  .page-game-bai__content-text-block p,
  .page-game-bai__list {
    font-size: 1em;
  }
  .page-game-bai__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* FAQ Section */
  .page-game-bai__faq-section {
    padding: 40px 0;
  }
  .page-game-bai__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-game-bai__faq-answer {
    font-size: 0.95em;
    padding: 0 20px 15px;
  }
  .page-game-bai__faq-contact-text {
    font-size: 1em;
  }

  /* CTA Bottom Section */
  .page-game-bai__cta-bottom {
    padding: 40px 0;
  }
  .page-game-bai__section-title {
    font-size: 2em;
  }
  .page-game-bai__section-description {
    font-size: 1em;
  }

  /* General image responsiveness for content area */
  .page-game-bai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-game-bai__container,
  .page-game-bai__hero-container,
  .page-game-bai__intro-grid,
  .page-game-bai__game-tabs,
  .page-game-bai__content-section,
  .page-game-bai__faq-section,
  .page-game-bai__cta-bottom,
  .page-game-bai__cta-buttons,
  .page-game-bai__game-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}