.page-game-bai {
  font-family: Arial, sans-serif;
  color: #F3F8FF; /* Text Main */
  background-color: #08162B; /* Deep Navy from body */
}

.page-game-bai__section {
  padding: 40px 20px;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-game-bai__dark-section {
  background-color: #08162B; /* Deep Navy */
  color: #F3F8FF; /* Text Main */
}

/* Hero Carousel Section */
.page-game-bai__hero-carousel-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-game-bai__hero-slider {
  position: relative;
  width: 100%;
  max-width: 1200px; /* Constrain slider width */
  margin: 0 auto;
  border-radius: 15px;
  overflow: hidden;
}

.page-game-bai__hero-slide {
  display: none;
  position: relative;
}

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

.page-game-bai__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 15px;
}

.page-game-bai__hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
  color: #F3F8FF;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-game-bai__hero-title {
  font-size: clamp(2em, 4vw, 3em);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 10px;
  color: #F3F8FF;
  max-width: 90%;
}

.page-game-bai__hero-description {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.5;
  max-width: 80%;
  color: #AFC4E8; /* Text Secondary */
}

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

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

.page-game-bai__hero-slider-prev:hover,
.page-game-bai__hero-slider-next:hover {
  background-color: #1D5FD1; /* Auxiliary Color */
}

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

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

/* Guide Box Section */
.page-game-bai__guide-box {
  background-color: #10233F; /* Card BG */
  padding: 30px 20px;
  text-align: center;
  border-radius: 15px;
}

.page-game-bai__guide-title {
  font-size: 2.2em;
  color: #F3F8FF; /* Text Main */
  margin-bottom: 15px;
  font-weight: 700;
}

.page-game-bai__guide-description {
  font-size: 1.1em;
  color: #AFC4E8; /* Text Secondary */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-game-bai__guide-card {
  flex: 0 0 calc(20% - 16px); /* 5 cards per row */
  max-width: calc(20% - 16px);
  text-align: center;
  text-decoration: none;
  color: #F3F8FF;
  transition: transform 0.3s ease;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.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 team images */
  object-fit: cover;
  display: block;
}

/* Specific positioning for 5-guide cards */
.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;
}

/* Home Content Box (main content area) */
.page-game-bai__home-content-box {
  max-width: 91%;
  margin: 0 auto;
  padding: 10px 16px;
  border: 5px solid #244D84; /* Border Color */
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(79, 168, 255, 0.5); /* Glow color with opacity */
  height: 700px; /* Fixed height for desktop */
  background-color: #10233F; /* Card BG */
  overflow: hidden;
}

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

/* Custom scrollbar for webkit browsers */
.page-game-bai__home-content-inner::-webkit-scrollbar {
  width: 8px;
}

.page-game-bai__home-content-inner::-webkit-scrollbar-track {
  background: #08162B; /* Deep Navy */
  border-radius: 10px;
}

.page-game-bai__home-content-inner::-webkit-scrollbar-thumb {
  background: #1D5FD1; /* Auxiliary Color */
  border-radius: 10px;
}

.page-game-bai__home-content-inner::-webkit-scrollbar-thumb:hover {
  background: #2B73F6;
}

.page-game-bai__content-title {
  font-size: 2.5em;
  color: #F3F8FF;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-game-bai__content-subtitle {
  font-size: 1.8em;
  color: #F2C14E; /* Gold */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-game-bai__text-main {
  color: #F3F8FF;
}

.page-game-bai__text-secondary {
  color: #AFC4E8;
}

.page-game-bai p {
  font-size: 1.05em;
  line-height: 1.7;
  margin-bottom: 15px;
  color: #AFC4E8; /* Text Secondary */
}

.page-game-bai strong {
  color: #F3F8FF; /* Text Main */
}

.page-game-bai__content-list,
.page-game-bai__content-ordered-list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 15px;
  color: #AFC4E8;
}

.page-game-bai__content-ordered-list {
  list-style-type: decimal;
}

.page-game-bai__content-list li,
.page-game-bai__content-ordered-list li {
  font-size: 1.05em;
  line-height: 1.6;
  margin-bottom: 8px;
  color: #AFC4E8;
}

.page-game-bai__text-link {
  color: #1D5FD1; /* Auxiliary Color */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-game-bai__text-link:hover {
  color: #4FA8FF; /* Glow */
}

.page-game-bai__content-figure {
  margin: 20px 0;
  text-align: center;
}

.page-game-bai__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-game-bai__content-figcaption {
  font-size: 0.9em;
  color: #AFC4E8;
  margin-top: 10px;
}

/* Blog Section */
.page-game-bai__blog-section {
  text-align: center;
  background-color: #08162B; /* Deep Navy */
  padding-bottom: 60px;
}

.page-game-bai__blog-title {
  font-size: 2.2em;
  color: #F3F8FF;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-game-bai__blog-description {
  font-size: 1.1em;
  color: #AFC4E8;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-bai__blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto 40px auto;
}

.page-game-bai__blog-card {
  background-color: #10233F; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-game-bai__blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(79, 168, 255, 0.4); /* Glow effect on hover */
}

.page-game-bai__blog-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-game-bai__blog-card-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.page-game-bai__blog-card-content {
  padding: 20px;
  text-align: left;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-game-bai__blog-card-title {
  font-size: 1.3em;
  color: #F3F8FF;
  margin-bottom: 10px;
  font-weight: 600;
  line-height: 1.4;
}

.page-game-bai__blog-card-meta {
  font-size: 0.85em;
  color: #AFC4E8;
  margin-bottom: 10px;
}

.page-game-bai__blog-card-excerpt {
  font-size: 0.95em;
  color: #AFC4E8;
  line-height: 1.6;
  flex-grow: 1;
}

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

.page-game-bai__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #F3F8FF;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-game-bai__btn-primary:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  box-shadow: 0 6px 15px rgba(79, 168, 255, 0.4); /* Glow on hover */
}

.page-game-bai__btn-secondary {
  background-color: transparent;
  color: #F3F8FF;
  border: 2px solid #1D5FD1; /* Auxiliary Color */
}

.page-game-bai__btn-secondary:hover {
  background-color: #1D5FD1;
  color: #F3F8FF;
  border-color: #4FA8FF;
}

.page-game-bai__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: flex-start;
  align-items: center;
}

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

/* Responsive styles */
@media (max-width: 1024px) {
  .page-game-bai__hero-title {
    font-size: clamp(1.8em, 5vw, 2.5em);
  }
  .page-game-bai__hero-description {
    font-size: 1em;
    max-width: 90%;
  }
  .page-game-bai__guide-grid {
    gap: 15px;
  }
  .page-game-bai__guide-card {
    flex: 0 0 calc(33.333% - 10px); /* 3 cards per row */
    max-width: calc(33.333% - 10px);
  }
  .page-game-bai__guide-card--pos-1, .page-game-bai__guide-card--pos-5 {
    padding-top: 25px;
  }
  .page-game-bai__guide-card--pos-2, .page-game-bai__guide-card--pos-4 {
    padding-top: 0;
  }
  .page-game-bai__blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .page-game-bai__section {
    padding: 20px 15px;
  }

  /* Hero Carousel Mobile */
  .page-game-bai__hero-carousel-section {
    padding-top: 10px !important;
    padding-bottom: 20px;
  }
  .page-game-bai__hero-slider {
    border-radius: 8px;
  }
  .page-game-bai__hero-image {
    border-radius: 8px;
  }
  .page-game-bai__hero-content {
    padding: 15px;
    text-align: center;
    align-items: center;
    position: relative; /* Make content appear below image on mobile */
    background: none;
    color: #F3F8FF;
  }
  .page-game-bai__hero-title {
    font-size: clamp(1.5em, 6vw, 2em);
    margin-bottom: 5px;
    max-width: 100%;
  }
  .page-game-bai__hero-description {
    font-size: 0.95em;
    margin-bottom: 15px;
    max-width: 100%;
  }
  .page-game-bai__hero-cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .page-game-bai__hero-slider-prev,
  .page-game-bai__hero-slider-next {
    padding: 8px 12px;
    font-size: 1.2em;
    border-radius: 4px;
  }

  /* Guide Box Mobile */
  .page-game-bai__guide-box {
    padding: 20px 15px;
  }
  .page-game-bai__guide-title {
    font-size: 1.8em;
    margin-bottom: 10px;
  }
  .page-game-bai__guide-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-game-bai__guide-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
  }
  .page-game-bai__guide-card {
    padding-top: 0 !important; /* Reset specific padding for mobile grid */
    flex: none;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }
  .page-game-bai__guide-card--pos-1, .page-game-bai__guide-card--pos-2 {
    grid-column: span 3;
  }
  .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;
  }
  .page-game-bai__guide-card img {
    border-radius: 8px;
  }

  /* Home Content Box Mobile */
  .page-game-bai__home-content-box {
    max-width: 100%;
    height: auto !important; /* Auto height on mobile */
    border-width: 3px;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 0 10px rgba(79, 168, 255, 0.3);
  }
  .page-game-bai__home-content-inner {
    height: auto !important; /* Auto height on mobile */
    overflow: visible !important; /* Visible on mobile */
    padding-right: 0; /* Remove scrollbar padding */
  }
  .page-game-bai__content-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-game-bai__content-subtitle {
    font-size: 1.4em;
    margin-top: 20px;
    margin-bottom: 10px;
  }
  .page-game-bai p,
  .page-game-bai__content-list li,
  .page-game-bai__content-ordered-list li {
    font-size: 1em;
    line-height: 1.5;
  }
  .page-game-bai__content-list,
  .page-game-bai__content-ordered-list {
    margin-left: 20px;
  }
  .page-game-bai__content-figure {
    margin: 15px 0;
  }

  /* Blog Section Mobile */
  .page-game-bai__blog-section {
    padding-bottom: 30px;
  }
  .page-game-bai__blog-title {
    font-size: 1.8em;
    margin-bottom: 10px;
  }
  .page-game-bai__blog-description {
    font-size: 1em;
    margin-bottom: 25px;
  }
  .page-game-bai__blog-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 15px;
    max-width: 90%;
  }
  .page-game-bai__blog-card {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  }
  .page-game-bai__blog-card-content {
    padding: 15px;
  }
  .page-game-bai__blog-card-title {
    font-size: 1.1em;
    margin-bottom: 5px;
  }
  .page-game-bai__blog-card-meta {
    font-size: 0.8em;
  }
  .page-game-bai__blog-card-excerpt {
    font-size: 0.9em;
  }

  /* General Image and Button Mobile */
  .page-game-bai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !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;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-game-bai__cta-button,
  .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__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;
  }
  .page-game-bai__cta-buttons {
    flex-direction: column !important;
  }
}