/* style/game-bai.css */
.page-game-bai {
  font-family: 'Arial', sans-serif;
  color: #333333;
  background-color: #FFFFFF;
  line-height: 1.6;
}

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

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

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

/* Hero Section */
.page-game-bai__hero-section {
  padding-top: 10px; /* Small top padding, shared.css handles body padding */
  padding-bottom: 60px;
  background-color: #f8f8f8;
  border-bottom: 1px solid #eee;
}

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

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

.page-game-bai__hero-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #017439;
}

.page-game-bai__hero-description {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #555555;
}

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

.page-game-bai__hero-main-img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-game-bai__hero-cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* Buttons */
.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;
  text-align: center;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-bai__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-game-bai__btn-primary:hover {
  background-color: #a80707;
  border-color: #a80707;
  color: #FFFFFF;
}

.page-game-bai__btn-secondary {
  background-color: transparent;
  color: #017439;
  border: 2px solid #017439;
}

.page-game-bai__btn-secondary:hover {
  background-color: #017439;
  color: #FFFFFF;
}

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

.page-game-bai__intro-section .page-game-bai__section-title {
  color: #FFFFFF;
}

.page-game-bai__intro-section .page-game-bai__section-description {
  color: #f0f0f0;
}

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

.page-game-bai__feature-item {
  text-align: center;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-game-bai__icon-box-media {
  width: 200px;
  height: 200px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #FFFFFF;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.2);
}

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

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

.page-game-bai__feature-text {
  font-size: 16px;
  color: #f0f0f0;
}

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

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

.page-game-bai__tab-button {
  background-color: transparent;
  border: none;
  padding: 12px 25px;
  font-size: 18px;
  font-weight: 600;
  color: #555555;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

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

.page-game-bai__tab-button.is-active {
  color: #017439;
  background-color: #e6f5ed;
  box-shadow: 0 2px 10px rgba(1, 116, 57, 0.1);
}

.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__panel-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  padding: 30px;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-game-bai__panel-image {
  flex: 1 1 45%;
  min-width: 300px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.page-game-bai__panel-title {
  font-size: 28px;
  font-weight: bold;
  color: #017439;
  margin-bottom: 15px;
}

.page-game-bai__panel-text {
  font-size: 17px;
  line-height: 1.7;
  color: #444444;
  margin-bottom: 25px;
  flex: 1 1 50%;
}

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

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

.page-game-bai__guide-item {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border-left: 5px solid #017439;
}

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

.page-game-bai__guide-step-text {
  font-size: 16px;
  color: #555555;
  line-height: 1.6;
}

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

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

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

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

.page-game-bai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 18px;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #e6f5ed;
  border-bottom: 1px solid #e0e0e0;
  list-style: none; /* For details/summary */
}

.page-game-bai__faq-item[open] .page-game-bai__faq-question {
  background-color: #017439;
  color: #FFFFFF;
  border-bottom: 1px solid #017439;
}

.page-game-bai__faq-item[open] .page-game-bai__faq-toggle {
  color: #FFFFFF;
}

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

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

.page-game-bai__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: #017439;
}

.page-game-bai__faq-answer {
  padding: 15px 25px 20px;
  font-size: 16px;
  color: #555555;
  line-height: 1.7;
  background-color: #fefefe;
}

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

.page-game-bai__blog-section .page-game-bai__section-title {
  color: #FFFFFF;
}

.page-game-bai__blog-section .page-game-bai__section-description {
  color: #f0f0f0;
}

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

.page-game-bai__blog-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.page-game-bai__blog-card:hover {
  transform: translateY(-5px);
}

.page-game-bai__blog-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.page-game-bai__blog-thumbnail {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-game-bai__blog-card-title {
  font-size: 20px;
  font-weight: bold;
  color: #FFFFFF;
  padding: 15px 20px 10px;
}

.page-game-bai__blog-excerpt {
  font-size: 15px;
  color: #f0f0f0;
  padding: 0 20px 15px;
  line-height: 1.6;
}

.page-game-bai__read-more {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: #FFFF00; /* Register/Login font color for contrast */
  text-decoration: none;
  padding: 0 20px 20px;
}

.page-game-bai__read-more:hover {
  text-decoration: underline;
}

.page-game-bai__view-all-button {
  text-align: center;
  margin-top: 50px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-game-bai__hero-title {
    font-size: 42px;
  }
  .page-game-bai__hero-description {
    font-size: 18px;
  }
  .page-game-bai__section-title {
    font-size: 32px;
  }
  .page-game-bai__section-description {
    font-size: 17px;
  }
  .page-game-bai__panel-title {
    font-size: 26px;
  }
  .page-game-bai__panel-text {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .page-game-bai {
    font-size: 16px;
    line-height: 1.6;
  }

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

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

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

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

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

  .page-game-bai__hero-content,
  .page-game-bai__hero-image {
    flex: 1 1 100%;
    width: 100%;
    min-width: unset;
  }

  .page-game-bai__hero-title {
    font-size: 36px;
    text-align: center;
  }

  .page-game-bai__hero-description {
    font-size: 17px;
    text-align: center;
  }

  .page-game-bai__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* Buttons - Mobile forced styles */
  .page-game-bai__btn-primary,
  .page-game-bai__btn-secondary,
  .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-cta-buttons,
  .page-game-bai__button-group,
  .page-game-bai__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

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

  .page-game-bai__features-grid {
    grid-template-columns: 1fr;
  }

  .page-game-bai__icon-box-media {
    width: 150px;
    height: 150px;
    border: 3px solid #FFFFFF;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.2);
  }

  .page-game-bai__feature-title {
    font-size: 20px;
  }

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

  .page-game-bai__tab-nav {
    flex-direction: column;
    gap: 10px;
    padding-bottom: 0;
    border-bottom: none;
  }

  .page-game-bai__tab-button {
    width: 100%;
    max-width: 100%;
  }

  .page-game-bai__panel-content {
    flex-direction: column;
    padding: 20px;
  }

  .page-game-bai__panel-image,
  .page-game-bai__panel-title,
  .page-game-bai__panel-text {
    flex: 1 1 100%;
    width: 100%;
    min-width: unset;
    text-align: center;
  }

  .page-game-bai__panel-title {
    font-size: 24px;
  }

  .page-game-bai__panel-text {
    font-size: 16px;
  }

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

  .page-game-bai__guide-list {
    grid-template-columns: 1fr;
    margin-top: 30px;
  }

  .page-game-bai__guide-item {
    padding: 20px;
  }

  .page-game-bai__guide-step-title {
    font-size: 20px;
  }

  .page-game-bai__guide-step-text {
    font-size: 15px;
  }

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

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

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

  .page-game-bai__faq-toggle {
    font-size: 20px;
  }

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

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

  .page-game-bai__blog-grid {
    grid-template-columns: 1fr;
    margin-top: 30px;
  }

  .page-game-bai__blog-thumbnail {
    height: 180px;
  }

  .page-game-bai__blog-card-title {
    font-size: 18px;
    padding: 12px 15px 8px;
  }

  .page-game-bai__blog-excerpt {
    font-size: 14px;
    padding: 0 15px 12px;
  }

  .page-game-bai__read-more {
    padding: 0 15px 15px;
  }

  .page-game-bai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  /* Exception for circular images to maintain aspect ratio */
  .page-game-bai__icon-box-media {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
  }
  .page-game-bai__icon-box-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}