.page-game-bai {
  font-family: 'Arial', sans-serif;
  color: #333333;
  background-color: #FFFFFF;
}

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

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

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

.page-game-bai__btn-primary,
.page-game-bai__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.page-game-bai__btn-primary {
  background: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

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

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

.page-game-bai__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

/* Hero Carousel Section */
.page-game-bai__hero-carousel-section {
  position: relative;
  padding-top: 10px; /* Rely on body for main offset */
  margin-bottom: 40px;
  overflow: hidden;
}

.page-game-bai__hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.page-game-bai__hero-slide {
  display: none;
  position: relative;
  width: 100%;
  height: 600px; /* Fixed height for desktop hero */
  background-size: cover;
  background-position: center;
  color: #ffffff;
  text-align: center;
}

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

.page-game-bai__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block; /* Ensure image is block level */
}

.page-game-bai__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 800px;
  width: 90%;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
  box-sizing: border-box;
}

.page-game-bai__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
  font-weight: 900;
  color: #FFFFFF;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-game-bai__intro-description {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 25px;
  line-height: 1.6;
}

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

.page-game-bai__hero-slider-prev:hover,
.page-game-bai__hero-slider-next:hover {
  opacity: 1;
}

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

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

/* Guide Section */
.page-game-bai__guide-section {
  background-color: #f8f8f8;
  padding: 60px 0;
  margin-bottom: 40px;
}

.page-game-bai__guide-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-game-bai__guide-card {
  flex: 0 0 18%; /* Approximately 5 cards in a row */
  max-width: 18%;
  text-align: center;
  text-decoration: none;
  color: #333333;
  transition: transform 0.3s ease;
  display: block;
}

.page-game-bai__guide-card:hover {
  transform: translateY(-10px);
}

.page-game-bai__guide-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 250 / 350; /* Fixed aspect ratio for vertical images */
  object-fit: contain;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-game-bai__guide-card--pos-1,
.page-game-bai__guide-card--pos-5 {
  padding-top: 50px;
}

.page-game-bai__guide-card--pos-2,
.page-game-bai__guide-card--pos-4 {
  padding-top: 25px;
}

/* About Game Bài Section (home_content style) */
.page-game-bai__about-game-bai-section {
  padding: 40px 0;
  background-color: #ffffff;
}

.page-game-bai__home-content-box {
  max-width: 91%; /* Adjust as needed for overall width */
  margin: 0 auto;
  padding: 20px;
  border: 5px solid #26A9E0;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(38, 169, 224, 0.5);
  height: 700px; /* Fixed height for desktop */
  box-sizing: border-box;
}

.page-game-bai__home-content-inner {
  height: 100%;
  overflow-y: auto; /* Scrollable for desktop */
  padding-right: 15px; /* Space for scrollbar */
  line-height: 1.7;
  color: #333333;
}

.page-game-bai__content-title {
  font-size: 2.5em;
  color: #26A9E0;
  margin-bottom: 25px;
  text-align: center;
}

.page-game-bai__sub-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-game-bai__text-block p {
  margin-bottom: 15px;
}

.page-game-bai__text-block ul,
.page-game-bai__text-block ol {
  margin-bottom: 15px;
  padding-left: 25px;
}

.page-game-bai__text-block li {
  margin-bottom: 8px;
}

.page-game-bai__content-image-wrapper {
  text-align: center;
  margin: 30px 0;
}

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

.page-game-bai__content-image-wrapper figcaption {
  font-style: italic;
  color: #777777;
  margin-top: 10px;
  font-size: 0.9em;
}

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

.page-game-bai__faq-question {
  background-color: #f5f5f5;
  padding: 15px 20px;
  cursor: pointer;
  font-weight: bold;
  color: #26A9E0;
  font-size: 1.1em;
  position: relative;
}

.page-game-bai__faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.page-game-bai__faq-answer p {
  padding: 15px 0;
  margin: 0;
  color: #555555;
}

/* Blog Section */
.page-game-bai__blog-section {
  background-color: #26A9E0;
  padding: 60px 0;
  color: #ffffff;
  margin-bottom: 40px;
}

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

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

.page-game-bai__blog-card {
  background-color: #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;
}

.page-game-bai__blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-game-bai__blog-content {
  padding: 20px;
}

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

.page-game-bai__blog-title a {
  color: #26A9E0;
}

.page-game-bai__blog-title a:hover {
  text-decoration: underline;
}

.page-game-bai__blog-date {
  font-size: 0.9em;
  color: #777777;
  margin-bottom: 15px;
}

.page-game-bai__blog-excerpt {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
}

.page-game-bai__read-more-btn {
  display: inline-block;
  padding: 8px 15px;
  background-color: #26A9E0;
  color: #ffffff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-game-bai__read-more-btn:hover {
  background-color: #1e87b7;
}

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

/* CTA Section */
.page-game-bai__cta-section {
  background-color: #26A9E0;
  padding: 60px 0;
  color: #ffffff;
  text-align: center;
}

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

/* General Image & Button Responsiveness */
.page-game-bai img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .page-game-bai__container {
    padding: 15px;
  }

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

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

  .page-game-bai__btn-primary,
  .page-game-bai__btn-secondary {
    font-size: 1em;
    padding: 12px 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-game-bai__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    margin-top: 20px;
  }

  /* Hero Carousel Section */
  .page-game-bai__hero-carousel-section {
    padding-top: 10px !important;
    margin-bottom: 20px;
  }

  .page-game-bai__hero-slide {
    height: 400px; /* Adjust height for mobile */
  }

  .page-game-bai__hero-content {
    padding: 15px;
    width: 95%;
  }

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

  .page-game-bai__intro-description {
    font-size: 0.9em;
    margin-bottom: 15px;
  }

  .page-game-bai__hero-slider-prev,
  .page-game-bai__hero-slider-next {
    padding: 10px;
    font-size: 1.2em;
    left: 10px;
    right: 10px;
  }

  /* Guide Section */
  .page-game-bai__guide-section {
    padding: 30px 0;
    margin-bottom: 20px;
  }

  .page-game-bai__guide-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 6 columns for finer control */
    gap: 10px;
  }

  .page-game-bai__guide-card {
    padding-top: 0 !important; /* Reset desktop padding */
    flex: auto; /* Allow flex to adjust */
    max-width: 100%; /* Ensure it doesn't overflow */
  }

  .page-game-bai__guide-card--pos-1,
  .page-game-bai__guide-card--pos-2 {
    grid-column: span 3; /* Top two cards span 3 columns each */
  }

  .page-game-bai__guide-card--pos-3,
  .page-game-bai__guide-card--pos-4,
  .page-game-bai__guide-card--pos-5 {
    grid-column: span 2; /* Bottom three cards span 2 columns each */
  }

  /* About Game Bài Section */
  .page-game-bai__about-game-bai-section {
    padding: 20px 0;
  }

  .page-game-bai__home-content-box {
    max-width: 100%;
    margin: 0;
    padding: 15px;
    border-width: 3px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(38, 169, 224, 0.3);
    height: auto; /* Auto height for mobile */
  }

  .page-game-bai__home-content-inner {
    height: auto; /* Auto height for mobile */
    overflow-y: visible; /* No scrollbar on mobile */
    padding-right: 0;
  }

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

  .page-game-bai__sub-title {
    font-size: 1.4em;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-game-bai__text-block p,
  .page-game-bai__text-block li {
    font-size: 0.95em;
  }

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

  .page-game-bai__faq-answer p {
    padding: 10px 0;
  }

  /* Blog Section */
  .page-game-bai__blog-section {
    padding: 30px 0;
    margin-bottom: 20px;
  }

  .page-game-bai__blog-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for mobile */
    gap: 15px;
    margin-top: 20px;
  }

  .page-game-bai__blog-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .page-game-bai__blog-image {
    height: 150px; /* Adjust image height for mobile cards */
  }

  .page-game-bai__blog-title {
    font-size: 1.2em;
  }

  .page-game-bai__blog-date,
  .page-game-bai__blog-excerpt {
    font-size: 0.85em;
  }

  .page-game-bai__read-more-btn {
    padding: 6px 12px;
    font-size: 0.9em;
  }

  .page-game-bai__view-all-button-container {
    margin-top: 25px;
  }

  /* CTA Section */
  .page-game-bai__cta-section {
    padding: 30px 0;
  }

  /* Ensure all images are responsive on mobile */
  .page-game-bai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !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;
  }
  .page-game-bai__hero-content {
    position: static; /* Remove absolute positioning on mobile */
    transform: none; /* Remove transform on mobile */
    background: rgba(0, 0, 0, 0.7); /* Adjust overlay for better contrast */
    margin-top: -100px; /* Pull up content over image if needed, or adjust hero-slide height */
  }
  .page-game-bai__hero-slide {
    display: flex;
    flex-direction: column; /* Stack image and content vertically */
    justify-content: flex-end; /* Push content to bottom */
    height: auto; /* Allow height to adjust */
  }
  .page-game-bai__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
  }
  .page-game-bai__hero-slider-prev, .page-game-bai__hero-slider-next {
    display: none; /* Hide slider arrows on mobile if not needed */
  }
}