/* style/game-bai.css */

.page-game-bai {
  font-family: 'Arial', sans-serif;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
}

.page-game-bai__hero-section {
  padding-top: 10px; /* Small top padding, assuming body has padding-top from shared */
  padding-bottom: 60px;
  background-color: #0A0A0A;
}

.page-game-bai__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 0 15px;
}

.page-game-bai__hero-content {
  flex: 1 1 500px;
  text-align: left;
}

.page-game-bai__main-title {
  font-size: 2.8em;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFF6D6;
  max-width: 600px;
}

.page-game-bai__description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #FFF6D6;
  max-width: 600px;
}

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

.page-game-bai__btn-primary,
.page-game-bai__btn-secondary {
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05em;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  text-align: center;
}

.page-game-bai__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #1A1A1A; /* Dark text for bright button */
  border: none;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

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

.page-game-bai__btn-secondary {
  background: transparent;
  color: #FFD36B; /* Glow color for text */
  border: 2px solid #3A2A12; /* Border color */
}

.page-game-bai__btn-secondary:hover {
  background-color: rgba(255, 211, 107, 0.1);
  transform: translateY(-2px);
}

.page-game-bai__hero-image {
  flex: 1 1 500px;
  text-align: center;
}

.page-game-bai__hero-side-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.page-game-bai__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 15px;
}

.page-game-bai__section-title {
  font-size: 2.2em;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  color: #FFF6D6;
}

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

.page-game-bai__intro-section {
  background-color: #111111; /* Card BG */
}

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

.page-game-bai__feature-item {
  background-color: #1A1A1A;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #3A2A12; /* Border */
}

.page-game-bai__icon-box-media {
  width: 200px;
  height: 200px;
  aspect-ratio: 1/1;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #F2C14E;
  box-shadow: 0 0 15px rgba(242, 193, 78, 0.6);
}

.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;
  font-weight: 600;
  margin-bottom: 10px;
  color: #FFD36B; /* Glow color */
}

.page-game-bai__feature-text {
  font-size: 1em;
  line-height: 1.6;
  color: #FFF6D6;
}

.page-game-bai__game-tabs-section {
  background-color: #0A0A0A;
}

.page-game-bai__tab-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
  border-bottom: 2px solid #3A2A12;
  padding-bottom: 15px;
}

.page-game-bai__tab-button {
  background-color: #111111; /* Card BG */
  color: #FFF6D6;
  padding: 12px 25px;
  border: 1px solid #3A2A12;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 500;
  transition: all 0.3s ease;
}

.page-game-bai__tab-button:hover,
.page-game-bai__tab-button.is-active {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #1A1A1A;
  border-color: #F2C14E;
  box-shadow: 0 2px 10px rgba(242, 193, 78, 0.4);
}

.page-game-bai__game-panel {
  display: none;
}

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

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

.page-game-bai__game-card {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 20px;
}

.page-game-bai__game-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid #3A2A12;
  margin-bottom: 15px;
}

.page-game-bai__game-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #FFD36B; /* Glow color */
  padding: 0 15px;
}

.page-game-bai__game-desc {
  font-size: 0.95em;
  line-height: 1.5;
  color: #FFF6D6;
  margin-bottom: 20px;
  padding: 0 15px;
}

.page-game-bai__btn-play {
  display: inline-block;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #1A1A1A;
  padding: 10px 25px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95em;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

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

.page-game-bai__promo-section {
  background-color: #111111; /* Card BG */
}

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

.page-game-bai__promo-card {
  background-color: #1A1A1A;
  border: 1px solid #3A2A12;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 20px;
}

.page-game-bai__promo-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid #3A2A12;
  margin-bottom: 15px;
}

.page-game-bai__promo-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #FFD36B;
  padding: 0 15px;
}

.page-game-bai__promo-text {
  font-size: 0.95em;
  line-height: 1.5;
  color: #FFF6D6;
  margin-bottom: 20px;
  padding: 0 15px;
}

.page-game-bai__btn-promo {
  display: inline-block;
  background: #F2C14E;
  color: #1A1A1A;
  padding: 10px 25px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95em;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-game-bai__btn-promo:hover {
  background-color: #FFD36B;
  transform: translateY(-2px);
}

.page-game-bai__guide-section {
  background-color: #0A0A0A;
}

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

.page-game-bai__step-item {
  background-color: #111111; /* Card BG */
  padding: 30px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #3A2A12;
}

.page-game-bai__step-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #F2C14E;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(242, 193, 78, 0.6);
}

.page-game-bai__step-icon img {
  max-width: 80%;
  max-height: 80%;
  height: auto;
  display: block;
}

.page-game-bai__step-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #FFD36B;
}

.page-game-bai__step-text {
  font-size: 0.95em;
  line-height: 1.5;
  color: #FFF6D6;
  margin-bottom: 20px;
}

.page-game-bai__btn-guide {
  display: inline-block;
  background-color: #3A2A12;
  color: #FFD36B;
  padding: 8px 20px;
  border-radius: 15px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9em;
  transition: all 0.3s ease;
  border: 1px solid #FFD36B;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-game-bai__btn-guide:hover {
  background-color: #F2C14E;
  color: #1A1A1A;
  border-color: #F2C14E;
}

.page-game-bai__trust-section {
  background-color: #111111; /* Card BG */
}

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

.page-game-bai__trust-item {
  background-color: #1A1A1A;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #3A2A12;
}

.page-game-bai__trust-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-game-bai__trust-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #FFD36B;
}

.page-game-bai__trust-text {
  font-size: 1em;
  line-height: 1.6;
  color: #FFF6D6;
}

.page-game-bai__faq-section {
  background-color: #0A0A0A;
}

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

.page-game-bai__faq-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-game-bai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: #FFD36B;
  cursor: pointer;
  background-color: #1A1A1A;
  border-bottom: 1px solid transparent; /* default */
  transition: all 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-game-bai__faq-item[open] .page-game-bai__faq-question {
  border-bottom-color: #3A2A12;
  background-color: #222222;
}

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

.page-game-bai__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #F2C14E;
  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;
  line-height: 1.6;
  color: #FFF6D6;
  background-color: #111111;
}

.page-game-bai__cta-bottom-section {
  background-color: #1A1A1A;
  text-align: center;
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-game-bai__cta-bottom-section .page-game-bai__section-title {
  font-size: 2.5em;
  margin-bottom: 25px;
}

.page-game-bai__cta-bottom-section .page-game-bai__section-description {
  font-size: 1.15em;
  margin-bottom: 40px;
  max-width: 900px;
}

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

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

  .page-game-bai__hero-section {
    padding-top: 10px !important; /* Ensure small padding */
    padding-bottom: 40px;
  }

  .page-game-bai__hero-container {
    flex-direction: column;
    gap: 30px;
    padding: 0 15px;
  }

  .page-game-bai__hero-content {
    text-align: center;
  }

  .page-game-bai__main-title {
    font-size: 2em; /* Adjusted for mobile */
    margin-bottom: 15px;
  }

  .page-game-bai__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;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-game-bai__content-area {
    padding: 40px 15px;
  }

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

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

  .page-game-bai__features-grid,
  .page-game-bai__game-grid,
  .page-game-bai__promo-grid,
  .page-game-bai__guide-steps,
  .page-game-bai__trust-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-game-bai__icon-box-media {
    width: 150px;
    height: 150px;
    border-width: 3px;
  }

  .page-game-bai__tab-nav {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 30px;
    padding-bottom: 10px;
  }

  .page-game-bai__tab-button {
    width: 100%;
    font-size: 0.95em;
    padding: 10px 20px;
  }

  .page-game-bai__game-card,
  .page-game-bai__promo-card,
  .page-game-bai__step-item,
  .page-game-bai__trust-item {
    padding: 25px 15px;
  }

  .page-game-bai__game-title,
  .page-game-bai__promo-title,
  .page-game-bai__step-title,
  .page-game-bai__trust-title {
    font-size: 1.2em;
  }

  .page-game-bai__game-desc,
  .page-game-bai__promo-text,
  .page-game-bai__step-text,
  .page-game-bai__trust-text {
    font-size: 0.9em;
  }

  .page-game-bai__btn-play,
  .page-game-bai__btn-promo,
  .page-game-bai__btn-guide {
    padding: 8px 20px;
    font-size: 0.9em;
    max-width: 100% !important;
    width: 100% !important;
  }

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

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

  .page-game-bai__cta-bottom-section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

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

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

  /* Ensure all images and containers are responsive */
  .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__hero-container,
  .page-game-bai__features-grid,
  .page-game-bai__game-grid,
  .page-game-bai__promo-grid,
  .page-game-bai__guide-steps,
  .page-game-bai__trust-grid,
  .page-game-bai__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-game-bai__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important;
    gap: 10px;
  }
  .page-game-bai__icon-box-media {
    width: 150px;
    height: 150px;
    /* No height:auto; for this specific circular image */
  }
}