/* style/game-bai.css */
.page-game-bai {
  color: #333333;
  background: #ffffff;
}

.page-game-bai__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background: var(--accent-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 450px;
}

.page-game-bai__hero-slider {
  position: relative;
  width: 100%;
  max-width: 1020px; /* Recommended hero width */
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-game-bai__hero-slide {
  display: none;
  width: 100%;
  height: auto;
}

.page-game-bai__hero-slide.is-active {
  display: block;
}

.page-game-bai__hero-slide img {
  width: 100%;
  height: 351px; /* Fixed height for hero image, aspect-ratio 1020/351 */
  object-fit: cover;
  display: block;
}

.page-game-bai__hero-slider-prev,
.page-game-bai__hero-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 10;
  font-size: 24px;
  line-height: 1;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.page-game-bai__hero-slider-prev:hover,
.page-game-bai__hero-slider-next:hover {
  background: rgba(0, 0, 0, 0.7);
}

.page-game-bai__hero-slider-prev {
  left: 10px;
}

.page-game-bai__hero-slider-next {
  right: 10px;
}

.page-game-bai__hero-content {
  max-width: 900px;
  margin: 20px auto 40px auto;
  padding: 0 20px;
  color: #ffffff;
}

.page-game-bai__main-title {
  font-size: 2.8em;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #ffffff;
  max-width: 100%;
}

.page-game-bai__subtitle {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-game-bai__btn-primary {
  display: inline-block;
  background: #EA7C07; /* Login color */
  color: #ffffff;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: background 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-game-bai__btn-primary:hover {
  background: #d46f00;
  transform: translateY(-2px);
}

.page-game-bai__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

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

.page-game-bai__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.6;
  color: #555555;
}

.page-game-bai__light-bg {
  background: #ffffff;
  color: #333333;
}

.page-game-bai__dark-bg {
  background: #26A9E0;
  color: #ffffff;
}

.page-game-bai__introduction-section p {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
}

.page-game-bai__introduction-section p strong {
  color: #26A9E0;
}

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

.page-game-bai__game-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  text-align: center;
  padding-bottom: 20px;
}

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

.page-game-bai__game-card a {
  text-decoration: none;
  color: inherit;
}

.page-game-bai__game-card img {
  width: 100%;
  height: 200px; /* Recommended content image height */
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-game-bai__game-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #26A9E0;
  padding: 0 15px;
}

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

.page-game-bai__btn-secondary {
  display: inline-block;
  background: #ffffff;
  color: #26A9E0;
  padding: 10px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid #26A9E0;
  transition: background 0.3s ease, color 0.3s ease;
}

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

.page-game-bai__strategy-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 30px;
}

.page-game-bai__strategy-block h3 {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 20px;
  text-align: center;
}

.page-game-bai__strategy-block ul {
  list-style: none;
  padding: 0;
}

.page-game-bai__strategy-block li {
  background: #f8f8f8;
  margin-bottom: 15px;
  padding: 15px;
  border-left: 5px solid #26A9E0;
  border-radius: 5px;
  line-height: 1.6;
  font-size: 1.05em;
  color: #333333;
}

.page-game-bai__strategy-block li strong {
  color: #26A9E0;
}

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

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

.page-game-bai__promotion-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 20px;
}

.page-game-bai__promotion-card img {
  width: 100%;
  height: 250px; /* Recommended content image height */
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-game-bai__promotion-title {
  font-size: 1.6em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #26A9E0;
  padding: 0 15px;
}

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

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

.page-game-bai__feature-item {
  background: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.page-game-bai__feature-item h3 {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-game-bai__feature-item p {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
}

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

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

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

.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: #333333;
  cursor: pointer;
  background: #f0f8ff; /* Light blue background for summary */
  border-bottom: 1px solid #e0e0e0;
  user-select: none;
  list-style: none;
}

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

.page-game-bai__faq-item[open] .page-game-bai__faq-question {
  border-bottom: 1px solid #26A9E0;
}

.page-game-bai__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #26A9E0;
  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 25px;
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
  background: #ffffff;
}

.page-game-bai__blog-section .page-game-bai__section-title,
.page-game-bai__blog-section .page-game-bai__section-description {
  color: #333333;
}

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

.page-game-bai__blog-card {
  background: #ffffff;
  border-radius: 10px;
  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-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.page-game-bai__blog-card img {
  width: 100%;
  height: 200px; /* Recommended blog image height */
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-game-bai__blog-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #26A9E0;
  padding: 0 15px;
}

.page-game-bai__blog-date {
  font-size: 0.85em;
  color: #999999;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-game-bai__blog-excerpt {
  font-size: 0.9em;
  line-height: 1.5;
  color: #666666;
  margin-bottom: 20px;
  padding: 0 15px;
}

.page-game-bai__read-more {
  display: inline-block;
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
  padding: 0 15px 15px;
  transition: color 0.3s ease;
}

.page-game-bai__read-more:hover {
  color: #1a7bb7;
}

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

/* General image responsiveness */
.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__game-grid,
  .page-game-bai__promotion-grid,
  .page-game-bai__features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-game-bai__blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-game-bai__strategy-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-game-bai__hero-section {
    padding-top: 10px !important;
    min-height: auto;
  }
  .page-game-bai__hero-slide img {
    height: 250px !important; /* Adjust hero image height for mobile */
  }
  .page-game-bai__hero-slider-prev,
  .page-game-bai__hero-slider-next {
    padding: 8px 12px;
    font-size: 20px;
  }
  .page-game-bai__hero-content {
    margin: 15px auto 25px auto;
    padding: 0 15px;
  }
  .page-game-bai__main-title {
    font-size: 1.8em !important;
    margin-bottom: 10px;
  }
  .page-game-bai__subtitle {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-game-bai__btn-primary {
    padding: 10px 20px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-game-bai__container {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-game-bai__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }
  .page-game-bai__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-game-bai__game-grid,
  .page-game-bai__promotion-grid,
  .page-game-bai__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .page-game-bai__game-card img,
  .page-game-bai__promotion-card img,
  .page-game-bai__blog-card img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-game-bai__strategy-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .page-game-bai__strategy-block h3 {
    font-size: 1.5em;
  }
  .page-game-bai__strategy-block li {
    font-size: 0.95em;
    padding: 12px;
  }

  .page-game-bai__faq-item {
    margin-bottom: 10px;
  }
  .page-game-bai__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-game-bai__faq-answer {
    padding: 12px 20px 15px 20px;
    font-size: 0.95em;
  }

  .page-game-bai__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-game-bai__blog-title {
    font-size: 1.2em;
  }
  .page-game-bai__blog-date,
  .page-game-bai__blog-excerpt {
    font-size: 0.85em;
  }
  
  /* General image and button mobile overrides */
  .page-game-bai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-game-bai__btn-secondary {
    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;
  }
  
  /* Ensure all containers with buttons/images are constrained */
  .page-game-bai__section,
  .page-game-bai__card,
  .page-game-bai__container,
  .page-game-bai__game-card,
  .page-game-bai__promotion-card,
  .page-game-bai__feature-item,
  .page-game-bai__blog-card,
  .page-game-bai__view-all-posts {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Specific button container for multiple buttons */
  .page-game-bai__cta-buttons,
  .page-game-bai__button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}