/* style/game-bai.css */

/* Base Styles */
.page-game-bai {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #ffffff; /* Assuming shared body background is light */
}

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

.page-game-bai__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #26A9E0; /* Brand primary color */
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
}

.page-game-bai__text-block {
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: justify;
}

.page-game-bai__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.page-game-bai__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background: linear-gradient(135deg, #e0f2f7, #ffffff);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.page-game-bai__main-title {
  font-size: clamp(30px, 4vw, 48px); /* H1 font size with clamp */
  font-weight: 900;
  color: #26A9E0; /* Brand primary color */
  margin-bottom: 20px;
  line-height: 1.2;
  max-width: 600px;
}

.page-game-bai__hero-description {
  font-size: 19px;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 600px;
}

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

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

/* CTA Buttons General */
.page-game-bai__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
}

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

.page-game-bai__btn-primary {
  background-color: #26A9E0; /* Primary brand color */
  color: #ffffff; /* White text for contrast */
  border: 2px solid #26A9E0;
}

.page-game-bai__btn-primary:hover {
  background-color: #1e87c2;
  border-color: #1e87c2;
}

.page-game-bai__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0; /* Primary brand color */
  border: 2px solid #26A9E0;
}

.page-game-bai__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1e87c2;
  border-color: #1e87c2;
}

/* Dark Section */
.page-game-bai__dark-section {
  background-color: #26A9E0;
  color: #ffffff;
}

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

.page-game-bai__dark-section .page-game-bai__text-block {
  color: #f0f0f0;
}

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

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

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

.page-game-bai__tab-button {
  background-color: transparent;
  border: none;
  padding: 12px 25px;
  font-size: 18px;
  font-weight: bold;
  color: #555555;
  cursor: pointer;
  transition: color 0.3s ease, border-bottom-color 0.3s ease;
  border-bottom: 3px solid transparent;
}

.page-game-bai__tab-button:hover {
  color: #26A9E0;
}

.page-game-bai__tab-button.is-active {
  color: #26A9E0;
  border-bottom-color: #26A9E0;
}

.page-game-bai__game-panel {
  display: none;
  padding-top: 20px;
}

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

.page-game-bai__game-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.page-game-bai__game-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-game-bai__game-title {
  font-size: 24px;
  font-weight: bold;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-game-bai__game-description {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}

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

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

.page-game-bai__advantage-item {
  background-color: rgba(255, 255, 255, 0.15); /* Semi-transparent white on dark background */
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.page-game-bai__advantage-item .page-game-bai__advantage-title {
  font-size: 22px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-game-bai__advantage-item .page-game-bai__advantage-description {
  font-size: 16px;
  line-height: 1.6;
  color: #f0f0f0;
}

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

.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-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: relative;
  padding-top: 60px; /* Space for number */
}

.page-game-bai__guide-number {
  position: absolute;
  top: 0px;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #26A9E0;
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-game-bai__guide-title {
  font-size: 22px;
  font-weight: bold;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-game-bai__guide-description {
  font-size: 16px;
  line-height: 1.6;
}

/* Promo Section */
.page-game-bai__promo-section {
  padding: 60px 0;
  text-align: center;
}

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

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

.page-game-bai__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-game-bai__faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 18px;
  font-weight: bold;
  color: #26A9E0;
  background-color: #f0f8ff; /* Light blue background for summary */
}

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

.page-game-bai__faq-qtext {
  flex-grow: 1;
  pointer-events: none; /* Prevent text from capturing click and preventing toggle */
}

.page-game-bai__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  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: 0 20px 20px;
  font-size: 16px;
  line-height: 1.6;
  color: #555555;
}

/* Bottom CTA Section */
.page-game-bai__cta-bottom-section {
  padding: 60px 0;
  text-align: center;
}

.page-game-bai__cta-bottom-section .page-game-bai__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-game-bai__button-group {
  justify-content: center;
}

/* Responsive Styles */
/* @media (max-width: 1024px) */
@media (max-width: 1024px) {
  .page-game-bai__section-title {
    font-size: 32px;
  }
  .page-game-bai__hero-container {
    flex-direction: column;
    text-align: center;
  }
}