/* Khối bài viết hướng dẫn SEO dùng chung dưới khung game — Góc Học Tập */
.game-seo-guide {
  width: min(880px, calc(100% - 24px));
  max-width: 880px;
  margin: 24px auto 40px;
  padding: 24px 26px;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.05);
  color: #334155;
  font-family: 'Be Vietnam Pro', 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15.5px;
  line-height: 1.72;
  text-align: left;
  user-select: text;
  -webkit-user-select: text;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.game-seo-guide *,
.game-seo-guide *::before,
.game-seo-guide *::after {
  box-sizing: border-box;
}

.game-seo-guide__badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.game-seo-guide h2 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
}

.game-seo-guide h3 {
  margin: 20px 0 8px;
  color: #1e293b;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.4;
}

.game-seo-guide p {
  margin: 0 0 12px;
}

.game-seo-guide ul,
.game-seo-guide ol {
  margin: 0 0 14px;
  padding-left: 20px;
}

.game-seo-guide li {
  margin-bottom: 6px;
}

.game-seo-guide strong {
  color: #0f172a;
}

.game-seo-guide__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.game-seo-guide__card {
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.game-seo-guide__card h4 {
  margin: 0 0 6px;
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
}

.game-seo-guide__card p {
  margin: 0;
  font-size: 14px;
  color: #475569;
}

.game-seo-guide__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed #cbd5e1;
}

.game-seo-guide__links a {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #0369a1;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.game-seo-guide__links a:hover {
  background: #e0f2fe;
  color: #0c4a6e;
}

/* Giữ an toàn trên các trang game dùng layout flex/min-height:100vh:
   chỉ cuộn xuống dưới khung game, không ép hay đẩy khung game bị nhỏ */
html,
body {
  scroll-behavior: smooth;
}

@media (max-width: 640px) {
  .game-seo-guide {
    width: calc(100% - 16px);
    margin: 16px auto 28px;
    padding: 18px 16px;
    border-radius: 14px;
    font-size: 14.5px;
    line-height: 1.65;
  }

  .game-seo-guide h2 {
    font-size: 18px;
  }

  .game-seo-guide h3 {
    font-size: 15.5px;
  }
}
