/* === Tổng quan & Body === */
.page-index {
  color: #9DA0A8; /* Mặc định cho nội dung chính trên nền tối */
  background-color: var(--site-bg, #0d0d0d); /* Kế thừa từ shared, nếu không có thì dùng #0d0d0d */
}

/* === Module 0: Hero Section === */
.page-index__hero-section {
  padding-top: 10px; /* Nhỏ hơn so với header-offset để tránh double padding */
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}
.page-index__hero-image {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}
.page-index__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
  box-sizing: border-box;
}

/* === Module 1: H1 Title + SEO Links === */
.page-index__title-section {
  max-width: 1330px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
  box-sizing: border-box;
}
.page-index__page-title {
  font-weight: normal;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap; /* Cho phép tiêu đề xuống dòng trên mobile */
}
.page-index__title-decoration {
  content: '';
  display: block;
  width: 50px;
  height: 2px;
  background-color: #CAAB71;
  flex-shrink: 0;
}
.page-index__title-main {
  color: #fff;
  font-size: clamp(24px, 3.5vw, 48px); /* Sử dụng clamp để giới hạn kích thước chữ H1 */
  line-height: 1.2;
  text-transform: uppercase;
}
.page-index__seo-links {
  color: #9DA0A8;
  font-size: 15px;
  padding: 10px 0;
  margin-top: 15px;
}
.page-index__seo-link-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  margin-top: 10px;
}
.page-index__seo-link-item a {
  color: #198754;
  text-decoration: underline;
  font-weight: bold;
}

/* === Module 2: Scrollable Long-form Content === */
.page-index__content-section {
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}
.page-index__home-content {
  border: 1px solid #FBB00D;
  border-radius: 10px;
  padding: 0 10px;
  height: 650px;
  overflow-y: auto;
  scrollbar-width: thin;
  max-width: 1330px;
  margin: 20px auto;
  box-sizing: border-box;
}
.page-index__home-content h2 {
  background: linear-gradient(-225deg, #28a745 0%, #44107a 29%, #ff1361 67%, #fff800 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: page-index-gradient 5s linear infinite;
  margin-top: 25px;
  margin-bottom: 15px;
  font-size: clamp(20px, 2.5vw, 36px);
  line-height: 1.3;
}
.page-index__home-content h3 {
  color: #CAAB71;
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: clamp(18px, 2vw, 28px);
}
.page-index__home-content p,
.page-index__home-content li {
  color: #9DA0A8;
  line-height: 1.6;
  margin-bottom: 10px;
}
.page-index__home-content blockquote {
  border-left: 5px solid #CAAB71;
  padding-left: 15px;
  margin: 20px 0;
  font-style: italic;
}
.page-index__home-content blockquote p {
  color: #fff;
  font-weight: bold;
}
.page-index__home-content a {
  color: #198754;
  text-decoration: underline;
  font-weight: bold;
}
.page-index__wp-caption {
  text-align: center;
  margin: 20px 0;
}
.page-index__wp-caption img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-sizing: border-box;
}
.page-index__wp-caption-text {
  color: #9DA0A8;
  font-size: 14px;
  margin-top: 5px;
}
@keyframes page-index-gradient {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* --- 首页模块 3–6 必出 CSS 模板 --- */
/* === 模块 3–6 共享：深色区块 với tiêu đề vàng === */
.page-index__row-games,
.page-index__row-sport,
.page-index__row-coop {
  background-color: #1A202C;
  padding: 40px 20px;
  max-width: 1330px;
  margin: 20px auto;
  box-sizing: border-box;
}
.page-index__games-title,
.page-index__sport-title,
.page-index__coop-title {
  color: #fff;
  text-align: center;
  text-transform: uppercase;
  margin: 0 0 24px;
  position: relative;
  padding-bottom: 10px;
  font-size: clamp(20px, 2.5vw, 32px);
}
.page-index__games-title::after,
.page-index__sport-title::after,
.page-index__coop-title::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background-color: #CAAB71;
  margin: 8px auto 0;
}

/* === Module 3: Game Carousel === */
.page-index__slider-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-bottom: 10px;
}
.page-index__slider-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  width: 100%;
  transition: transform 0.4s ease;
  padding: 5px 0;
}
.page-index__game-slide {
  flex: 0 0 200px;
  max-width: 200px;
  min-width: 0;
}
.page-index__game-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background-color: #2a3447; /* Darker card background */
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease;
}