/* kc88 game bai page styles */
.page-game-bai {
  color: #333333;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Hero Section */
.page-game-bai__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, #e0f4ff 0%, #ffffff 100%);
  padding: 10px 16px 32px;
}

.page-game-bai__hero-image {
  width: 100%;
  max-width: 1200px;
  height: auto;
  aspect-ratio: 17/5;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-game-bai__hero-content {
  text-align: center;
  max-width: 800px;
  margin-top: 16px;
}

.page-game-bai__main-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.3;
  color: #0477db;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.page-game-bai__hero-description {
  font-size: 1.1rem;
  color: #555555;
  margin-bottom: 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-bai__hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.page-game-bai__btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-game-bai__btn--primary:hover {
  background: #1a8cbc;
  transform: scale(1.02);
}

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

.page-game-bai__btn--secondary:hover {
  background: #f0f8fc;
  transform: scale(1.02);
}

/* Featured Games Section */
.page-game-bai__featured-game-section,
.page-game-bai__features-section {
  padding: 48px 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-game-bai__section-header {
  text-align: center;
  margin-bottom: 32px;
}

.page-game-bai__section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #0477db;
  margin-bottom: 8px;
}

.page-game-bai__section-description {
  color: #666666;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

.page-game-bai__featured-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.page-game-bai__featured-game-item {
  background: #f9f9f9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-bai__featured-game-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-game-bai__game-image {
  width: 100%;
  aspect-ratio: 2/1;
  object-fit: cover;
  display: block;
}

.page-game-bai__game-title {
  padding: 16px 16px 4px;
  font-size: 1.2rem;
  color: #333333;
  margin: 0;
}

.page-game-bai__game-description {
  padding: 0 16px 16px;
  color: #666666;
  margin: 0;
}

/* Features Section */
.page-game-bai__features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.page-game-bai__feature-item {
  text-align: center;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
}

.page-game-bai__feature-item:hover {
  border-color: #26A9E0;
  box-shadow: 0 4px 12px rgba(38, 169, 224, 0.15);
}

.page-game-bai__feature-image {
  width: 100%;
  max-width: 200px;
  aspect-ratio: 2/1;
  object-fit: contain;
  margin-bottom: 16px;
}

.page-game-bai__feature-title {
  color: #0477db;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.page-game-bai__feature-description {
  color: #555555;
  font-size: 0.95rem;
}

/* Guide Section */
.page-game-bai__guide-section {
  background: #f0f8fc;
  padding: 32px 0;
}

.page-game-bai__guide-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.page-game-bai__guide-title {
  text-align: center;
  color: #0477db;
  font-size: 2rem;
  margin-bottom: 8px;
}

.page-game-bai__guide-subtitle {
  text-align: center;
  color: #555555;
  max-width: 700px;
  margin: 0 auto 32px;
}

.page-game-bai__guide-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.page-game-bai__guide-step {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.page-game-bai__guide-image {
  width: 100%;
  aspect-ratio: 2/1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 16px;
}

.page-game-bai__guide-step-title {
  color: #333333;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.page-game-bai__guide-step-description {
  color: #666666;
  font-size: 0.95rem;
  margin: 0;
}

/* Tablet */
@media (max-width: 1024px) {
  .page-game-bai__featured-game-grid,
  .page-game-bai__guide-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-game-bai__features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .page-game-bai__hero-section {
    padding: 10px 8px 24px;
  }

  .page-game-bai__hero-image {
    aspect-ratio: 2/1;
  }

  .page-game-bai__hero-description {
    font-size: 1rem;
  }

  .page-game-bai__btn {
    width: 100%;
    max-width: 100%;
    text-align: center;
  }

  .page-game-bai__hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
  }

  .page-game-bai__featured-game-section,
  .page-game-bai__features-section {
    padding: 32px 8px;
  }

  .page-game-bai__featured-game-grid,
  .page-game-bai__features-grid,
  .page-game-bai__guide-steps {
    grid-template-columns: 1fr;
  }

  .page-game-bai__section-title,
  .page-game-bai__guide-title {
    font-size: 1.6rem;
  }

  .page-game-bai img {
    max-width: 100%;
    height: auto;
  }

  .page-game-bai__feature-image {
    width: 100%;
    max-width: 100%;
  }
}