/* style/game-bai.css */

/* Base styles */
.page-game-bai {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #F5F7FA; /* Background color from custom scheme */
}

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

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

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

.page-game-bai__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
  box-sizing: border-box;
}

.page-game-bai__btn-primary:hover {
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
}

.page-game-bai__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: #ffffff;
  color: #E53935;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  border: 2px solid #E53935;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
  box-sizing: border-box;
}

.page-game-bai__btn-secondary:hover {
  background: #E53935;
  color: #ffffff;
}

/* Hero Section */
.page-game-bai__hero-section {
  padding-top: 10px; /* Rely on body padding for header offset */
  padding-bottom: 60px;
  background-color: #F5F7FA;
}

.page-game-bai__hero-container {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 60px 16px;
  flex-wrap: wrap;
}

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

.page-game-bai__hero-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive H1 font size */
  font-weight: bold;
  color: #E53935;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-game-bai__hero-description {
  font-size: 1.15em;
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-game-bai__hero-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__hero-main-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 auto;
}

/* Intro Section (Feature Grid) */
.page-game-bai__intro-section {
  padding: 80px 0;
  background-color: #FFFFFF; /* Card BG */
}

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

.page-game-bai__feature-card {
  text-align: center;
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

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

.page-game-bai__icon-box-media {
  width: 180px;
  height: 180px;
  margin: 0 auto 25px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid #E53935;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.page-game-bai__feature-title {
  font-size: 1.5em;
  color: #E53935;
  margin-bottom: 15px;
}

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

/* Game Tabs Section */
.page-game-bai__game-tabs-section {
  padding: 80px 0;
  background-color: #F5F7FA;
}

.page-game-bai__game-tabs {
  margin-top: 50px;
}

.page-game-bai__tab-nav {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 10px;
}

.page-game-bai__tab-button {
  background-color: #E0E0E0;
  color: #333333;
  border: none;
  padding: 12px 25px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  border-radius: 5px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.page-game-bai__tab-button:hover {
  background-color: #FF5A4F;
  color: #ffffff;
}

.page-game-bai__tab-button.is-active {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
}

.page-game-bai__game-panel {
  display: none;
  background-color: #FFFFFF;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

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

.page-game-bai__game-panel-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-game-bai__game-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: block;
}

.page-game-bai__game-panel-content h3 {
  font-size: 2em;
  color: #E53935;
  margin-bottom: 15px;
}

.page-game-bai__game-panel-content p {
  font-size: 1.1em;
  color: #333333;
  margin-bottom: 30px;
  max-width: 800px;
}

.page-game-bai__play-button {
  padding: 15px 35px;
  font-size: 1.1em;
}

/* Guide Section */
.page-game-bai__guide-section {
  padding: 80px 0;
  background-color: #E53935; /* Dark background */
  color: #ffffff;
}

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

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

.page-game-bai__guide-step {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-game-bai__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #FF5A4F;
  margin-bottom: 15px;
  display: block;
}

.page-game-bai__step-title {
  font-size: 1.5em;
  color: #ffffff;
  margin-bottom: 10px;
}

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

.page-game-bai__guide-cta {
  text-align: center;
  margin-top: 60px;
}

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

.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: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease;
}

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

.page-game-bai__promo-image {
  width: 100%;
  height: 200px; /* Fixed height for promo images */
  object-fit: cover;
  display: block;
}

.page-game-bai__promo-content {
  padding: 25px;
}

.page-game-bai__promo-title {
  font-size: 1.4em;
  color: #E53935;
  margin-bottom: 10px;
}

.page-game-bai__promo-text {
  font-size: 1em;
  color: #333333;
  margin-bottom: 20px;
}

.page-game-bai__promo-button {
  font-size: 0.9em;
  padding: 10px 20px;
}

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

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

.page-game-bai__faq-item {
  background-color: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-game-bai__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  list-style: none;
  outline: none;
  transition: background-color 0.3s ease;
}

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

.page-game-bai__faq-item summary:hover {
  background-color: #f9f9f9;
}

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

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

.page-game-bai__faq-item[open] .page-game-bai__faq-toggle {
  content: '−';
}

.page-game-bai__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #333333;
  line-height: 1.7;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-game-bai__hero-container {
    flex-direction: column;
    text-align: center;
  }
  .page-game-bai__hero-content,
  .page-game-bai__hero-image {
    flex: 1 1 100%;
  }
  .page-game-bai__hero-cta-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  /* General content and image responsiveness */
  .page-game-bai__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-game-bai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  .page-game-bai__section-title {
    font-size: 2em;
  }

  .page-game-bai__section-description {
    font-size: 1em;
  }

  /* HERO Section */
  .page-game-bai__hero-section {
    padding-top: 10px !important; /* Fixed header offset */
    padding-bottom: 40px;
  }

  .page-game-bai__hero-container {
    padding: 40px 15px;
    gap: 20px;
  }

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

  .page-game-bai__hero-description {
    font-size: 1em;
    text-align: center;
  }

  .page-game-bai__hero-cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .page-game-bai__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Module 1: Intro Section (Feature Grid) */
  .page-game-bai__intro-section {
    padding: 60px 0;
  }

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

  .page-game-bai__icon-box-media {
    width: 150px; /* Maintain circular shape */
    height: 150px;
    border-width: 3px;
  }

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

  /* Game Tabs Section */
  .page-game-bai__game-tabs-section {
    padding: 60px 0;
  }

  .page-game-bai__tab-nav {
    flex-direction: column;
    gap: 8px;
  }

  .page-game-bai__tab-button {
    font-size: 1em;
    padding: 10px 15px;
  }

  .page-game-bai__game-panel {
    padding: 25px;
  }

  .page-game-bai__game-panel-content h3 {
    font-size: 1.6em;
  }

  .page-game-bai__game-panel-content p {
    font-size: 0.95em;
  }

  .page-game-bai__play-button {
    font-size: 1em;
    padding: 12px 25px;
  }

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

  .page-game-bai__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-game-bai__step-number {
    font-size: 2em;
  }

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

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

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

  .page-game-bai__promo-image {
    height: 180px;
  }

  .page-game-bai__promo-title {
    font-size: 1.2em;
  }

  .page-game-bai__promo-text {
    font-size: 0.95em;
  }

  .page-game-bai__promo-button {
    font-size: 0.85em;
    padding: 8px 15px;
  }

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

  .page-game-bai__faq-item summary {
    font-size: 1em;
    padding: 15px 20px;
  }

  .page-game-bai__faq-qtext {
    font-size: 1em;
  }

  .page-game-bai__faq-toggle {
    font-size: 1.2em;
  }

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