/* style/game-bai.css */
.page-game-bai {
  font-family: 'Arial', sans-serif;
  color: #FFF5E1; /* Text Main */
  background-color: #B71C1C; /* Background */
}

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

.page-game-bai__hero-section {
  padding-top: 10px; /* Adjusted for shared header offset */
  padding-bottom: 40px;
  background-color: #B71C1C; /* Background */
}

.page-game-bai__hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
}

.page-game-bai__hero-content {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: left;
}

.page-game-bai__main-title {
  font-size: 2.8em;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #FFF5E1; /* Text Main */
}

.page-game-bai__hero-description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #FFF5E1; /* Text Main */
}

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

.page-game-bai__btn-primary,
.page-game-bai__btn-secondary,
.page-game-bai__btn-play,
.page-game-bai__btn-small {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-game-bai__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button custom color */
  color: #7A0E0E; /* Deep Red for contrast */
  border: 2px solid #F2B544; /* Border */
  box-shadow: 0 4px 15px rgba(255, 204, 102, 0.4);
}

.page-game-bai__btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 20px rgba(255, 204, 102, 0.6);
}

.page-game-bai__btn-secondary {
  background-color: #7A0E0E; /* Deep Red */
  color: #FFF5E1; /* Text Main */
  border: 2px solid #F2B544; /* Border */
}

.page-game-bai__btn-secondary:hover {
  background-color: #5a0b0b;
  border-color: #FFCC66; /* Glow */
}

.page-game-bai__btn-play {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button custom color */
  color: #7A0E0E; /* Deep Red */
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 0.95em;
}

.page-game-bai__btn-play:hover {
  filter: brightness(1.1);
}

.page-game-bai__btn-small {
  padding: 8px 15px;
  font-size: 0.9em;
  border-radius: 5px;
}

.page-game-bai__hero-image {
  flex: 1 1 50%;
  text-align: center;
}

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

.page-game-bai__section-title {
  font-size: 2.2em;
  font-weight: 700;
  margin-bottom: 15px;
  text-align: center;
  color: #FFF5E1; /* Text Main */
}

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

.page-game-bai__light-bg {
  background-color: #D32F2F; /* Card BG */
  color: #FFF5E1; /* Text Main */
}

.page-game-bai__dark-section {
  background-color: #7A0E0E; /* Deep Red */
  color: #FFF5E1; /* Text Main */
}

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

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

.page-game-bai__feature-item {
  text-align: center;
  background-color: #B71C1C; /* Background */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid #F2B544; /* Border */
}

.page-game-bai__icon-box-media {
  width: 180px;
  height: 180px;
  aspect-ratio: 1/1;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #F4D34D; /* Gold */
  box-shadow: 0 0 15px rgba(255, 204, 102, 0.6);
}

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

.page-game-bai__feature-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #FFCC66; /* Glow */
}

.page-game-bai__feature-text {
  font-size: 0.95em;
  line-height: 1.5;
  color: #FFF5E1; /* Text Main */
}

.page-game-bai__game-tabs {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-game-bai__tab-button {
  background-color: transparent;
  border: none;
  padding: 12px 20px;
  font-size: 1.1em;
  font-weight: 600;
  color: rgba(255, 245, 225, 0.7); /* Lighter Text Main */
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 8px 8px 0 0;
  position: relative;
  z-index: 1;
}

.page-game-bai__tab-button:hover {
  color: #FFCC66; /* Glow */
}

.page-game-bai__tab-button.is-active {
  color: #FFD86A; /* Button color */
  background-color: #B71C1C; /* Background */
  border-bottom: 3px solid #FFD86A; /* Button color */
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

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

.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-color: #D32F2F; /* Card BG */
  border: 1px solid #F2B544; /* Border */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  margin: 0 auto;
}

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

.page-game-bai__game-title {
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 10px;
  color: #FFD86A; /* Button color */
}

.page-game-bai__game-description {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #FFF5E1; /* Text Main */
}

.page-game-bai__content-area {
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-game-bai__benefit-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-game-bai__benefit-list li {
  background-color: #B71C1C; /* Background */
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  border-left: 5px solid #F4D34D; /* Gold */
  font-size: 1.05em;
  line-height: 1.5;
  color: #FFF5E1; /* Text Main */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-game-bai__benefit-list li strong {
  color: #FFD86A; /* Button color */
}

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

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

.page-game-bai__guide-step {
  background-color: #B71C1C; /* Background */
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #F2B544; /* Border */
}

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

.page-game-bai__step-title {
  font-size: 1.6em;
  font-weight: 700;
  margin-bottom: 10px;
  color: #FFCC66; /* Glow */
}

.page-game-bai__step-text {
  font-size: 0.95em;
  line-height: 1.5;
  color: #FFF5E1; /* Text Main */
}

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

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

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

.page-game-bai__faq-item {
  background-color: #B71C1C; /* Background */
  border: 1px solid #F2B544; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.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: #FFD86A; /* Button color */
  cursor: pointer;
  background-color: #7A0E0E; /* Deep Red */
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease;
  list-style: none;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none;   /* Safari */
  -khtml-user-select: none;    /* Konqueror HTML */
  -moz-user-select: none;      /* Old versions of Firefox */
  -ms-user-select: none;       /* Internet Explorer/Edge */
  user-select: none;           /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

.page-game-bai__faq-item[open] > .page-game-bai__faq-question {
  background-color: #B71C1C; /* Background */
  border-bottom: 1px solid #F2B544; /* Border */
  color: #FFCC66; /* Glow */
}

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

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

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

.page-game-bai__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  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: 20px 25px;
  font-size: 1em;
  line-height: 1.6;
  color: #FFF5E1; /* Text Main */
}

.page-game-bai__faq-answer p {
  margin-bottom: 10px;
  color: #FFF5E1; /* Text Main */
}

.page-game-bai__faq-answer a {
  color: #FFD86A; /* Button color */
  text-decoration: underline;
}

.page-game-bai__faq-answer a:hover {
  color: #FFCC66; /* Glow */
}

.page-game-bai__cta-bottom {
  padding-top: 60px;
  padding-bottom: 60px;
  text-align: center;
}

.page-game-bai__cta-bottom .page-game-bai__cta-buttons {
  justify-content: center;
  margin-top: 30px;
}

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

/* Mobile responsive styles */
@media (max-width: 1024px) {
  .page-game-bai__main-title {
    font-size: 2.5em;
  }
  .page-game-bai__section-title {
    font-size: 2em;
  }
  .page-game-bai__icon-box-media {
    width: 160px;
    height: 160px;
  }
}

@media (max-width: 768px) {
  .page-game-bai__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px !important;
  }
  .page-game-bai__hero-container {
    flex-direction: column;
    padding: 20px 15px;
    gap: 20px;
  }
  .page-game-bai__hero-content {
    flex: 1 1 100%;
    text-align: center;
  }
  .page-game-bai__main-title {
    font-size: 2em !important;
    line-height: 1.3 !important;
  }
  .page-game-bai__hero-description {
    font-size: 1em !important;
  }
  .page-game-bai__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .page-game-bai__btn-primary,
  .page-game-bai__btn-secondary,
  .page-game-bai__btn-play,
  .page-game-bai__btn-small,
  .page-game-bai a[class*="button"],
  .page-game-bai a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-game-bai__hero-image {
    flex: 1 1 100%;
  }
  .page-game-bai__hero-side-image {
    width: 100% !important;
    height: auto !important;
  }

  .page-game-bai__section-title {
    font-size: 1.8em !important;
  }
  .page-game-bai__section-description {
    font-size: 0.95em !important;
  }

  .page-game-bai__intro-section,
  .page-game-bai__game-tabs,
  .page-game-bai__content-area,
  .page-game-bai__guide-section,
  .page-game-bai__faq-section,
  .page-game-bai__cta-bottom {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
  }

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

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

  .page-game-bai__icon-box-media {
    width: 120px !important;
    height: 120px !important;
  }
  .page-game-bai__feature-title {
    font-size: 1.3em !important;
  }
  .page-game-bai__feature-text {
    font-size: 0.9em !important;
  }

  .page-game-bai__tab-nav {
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-bottom: 20px;
  }
  .page-game-bai__tab-button {
    width: 100% !important;
    padding: 10px 15px !important;
    font-size: 1em !important;
    border-radius: 8px !important;
  }
  .page-game-bai__tab-button.is-active {
    border-bottom: none !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  }

  .page-game-bai__game-card {
    padding: 20px !important;
  }
  .page-game-bai__game-title {
    font-size: 1.5em !important;
  }
  .page-game-bai__game-description {
    font-size: 0.9em !important;
  }

  .page-game-bai__benefit-list li {
    font-size: 0.95em !important;
    padding: 12px 15px !important;
  }

  .page-game-bai__step-title {
    font-size: 1.4em !important;
  }
  .page-game-bai__step-text {
    font-size: 0.9em !important;
  }

  .page-game-bai__faq-question {
    padding: 15px 20px !important;
    font-size: 1em !important;
  }
  .page-game-bai__faq-toggle {
    font-size: 1.3em !important;
  }
  .page-game-bai__faq-answer {
    padding: 15px 20px !important;
    font-size: 0.9em !important;
  }

  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-game-bai__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px !important;
  }
}