/* ===== game-bai.css - Trang Game Bài Luck88 ===== */
.page-game-bai {
  color: #333333;
}

/* Hero Section */
.page-game-bai__hero-section {
  display: flex;
  flex-direction: column;
  padding-top: 10px;
  background: #F5F7FA;
}

.page-game-bai__hero-image-wrap {
  width: 100%;
}

.page-game-bai__hero-image {
  width: 100%;
  height: auto;
  aspect-ratio: 17 / 5;
  object-fit: cover;
  display: block;
}

.page-game-bai__hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px;
  text-align: center;
}

.page-game-bai__hero-title {
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #E53935;
  margin: 0 0 12px 0;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-bai__hero-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: #333333;
  max-width: 640px;
  margin: 0 auto 24px auto;
}

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

/* Buttons */
.page-game-bai__btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: opacity 0.2s ease;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-bai__btn--primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
}

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

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

.page-game-bai__btn:hover {
  opacity: 0.85;
}

/* Section intro */
.page-game-bai__section-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px auto;
}

.page-game-bai__section-title {
  font-size: 2rem;
  font-weight: 800;
  color: #333333;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.page-game-bai__section-desc {
  font-size: 1rem;
  color: #555555;
  line-height: 1.6;
  margin: 0;
}

/* Features Section */
.page-game-bai__features-section {
  padding: 48px 16px;
  background: #ffffff;
}

.page-game-bai__features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-game-bai__feature-item {
  background: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.page-game-bai__feature-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 16px;
}

.page-game-bai__feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #333333;
  margin: 0 0 8px 0;
}

.page-game-bai__feature-text {
  font-size: 0.95rem;
  color: #555555;
  line-height: 1.6;
  margin: 0;
}

/* Games Section */
.page-game-bai__games-section {
  padding: 48px 16px;
  background: #F5F7FA;
}

.page-game-bai__games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-game-bai__game-card {
  background: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 12px;
  overflow: hidden;
}

.page-game-bai__game-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.page-game-bai__game-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #333333;
  padding: 16px 16px 8px 16px;
  margin: 0;
}

.page-game-bai__game-text {
  font-size: 0.95rem;
  color: #555555;
  line-height: 1.6;
  padding: 0 16px 20px 16px;
  margin: 0;
}

/* Guide Section */
.page-game-bai__guide-section {
  padding: 48px 16px;
  background: #ffffff;
}

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

.page-game-bai__guide-step {
  text-align: center;
  background: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 12px;
  padding: 16px;
}

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

.page-game-bai__guide-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #333333;
  margin: 0 0 8px 0;
}

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

/* Blog Section */
.page-game-bai__blog-section {
  padding: 48px 16px;
  background: #F5F7FA;
}

.page-game-bai__blog-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto 32px auto;
}

.page-game-bai__blog-card {
  background: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 12px;
  overflow: hidden;
}

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

.page-game-bai__blog-img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.page-game-bai__blog-title {
  font-size: 1rem;
  font-weight: 600;
  color: #333333;
  padding: 16px;
  margin: 0;
  line-height: 1.5;
}

.page-game-bai__blog-link:hover .page-game-bai__blog-title {
  color: #E53935;
}

.page-game-bai__blog-actions {
  text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .page-game-bai__features-grid,
  .page-game-bai__games-grid,
  .page-game-bai__guide-steps,
  .page-game-bai__blog-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-game-bai__hero-image {
    aspect-ratio: 2 / 1;
  }

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

  .page-game-bai__hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .page-game-bai__hero-actions .page-game-bai__btn {
    width: 100%;
  }

  .page-game-bai__section-title {
    font-size: 1.5rem;
  }

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

  .page-game-bai__btn {
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
  }

  .page-game-bai__btn--primary,
  .page-game-bai__btn--secondary,
  .page-game-bai__btn--outline {
    display: block;
  }

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

  .page-game-bai {
    max-width: 100%;
    overflow-x: hidden;
  }

  .page-game-bai__guide-figure img {
    width: 100%;
  }

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

  .page-game-bai__logo-item:nth-child(5),
  .page-game-bai__logo-item:nth-child(6) {
    grid-column: auto;
  }
}