:root {
  --primary-color: #007bff;
  --secondary-color: #ffc107;
  --dark-bg-1: #0d0d0d;
  --light-text-color: #ffffff;
  --dark-text-color: #333333;
  --card-bg-color: #ffffff;
  --border-color: #e0e0e0;
  --gradient-gold-1: linear-gradient(135deg, #FFD700, #FFA500);
  --gradient-silver-1: linear-gradient(135deg, #C0C0C0, #A0A0A0);
  --gradient-bronze-1: linear-gradient(135deg, #CD7F32, #B87333);
  --gradient-orange-1: linear-gradient(135deg, #ff6b35, #ff8c42);
}

body {
  background-color: var(--dark-bg-1); /* Từ shared.css */
  color: var(--light-text-color); /* Đảm bảo tương phản trên nền tối */
}

.page-index {
  font-family: 'Arial', sans-serif;
  color: var(--light-text-color);
  line-height: 1.6;
  background-color: var(--dark-bg-1);
}

.page-index__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 180px; /* Desktop: Adjust for fixed header */
  background-color: var(--dark-bg-1);
}

.page-index__hero-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-index__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-index__hero-img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-index__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  color: var(--light-text-color);
}

.page-index__hero-title {
  font-size: 42px;
  font-weight: bold;
  color: var(--light-text-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-index__hero-description {
  font-size: 18px;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--light-text-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-index__cta-button:hover {
  background: var(--secondary-color);
  color: var(--dark-text-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-index__cta-button--primary {
  background: var(--primary-color);
  color: var(--light-text-color);
}

.page-index__cta-button--primary:hover {
  background: var(--secondary-color);
  color: var(--dark-text-color);
}

.page-index__cta-button--secondary {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  box-shadow: none;
}

.page-index__cta-button--secondary:hover {
  background: var(--primary-color);
  color: var(--light-text-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index__cta-button--small {
  padding: 10px 20px;
  font-size: 15px;
  margin-top: 15px;
}

/* Game Leaderboard Section */
.page-index__game-leaderboard-section {
  padding: 60px 20px;
  background-color: #f1f3f5; /* Light background for contrast */
  color: var(--dark-text-color);
}

.page-index__page-title {
  font-size: 32px;
  font-weight: bold;
  color: var(--dark-text-color);
  text-align: center;
  margin-bottom: 40px;
}

.page-index__game-leaderboard {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-index__game-card {
  background: var(--card-bg-color);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 20px;
  display: flex;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-index__game-card-segment {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

.page-index__game-card-segment:not(:first-child)::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 80%;
  background-color: var(--border-color);
}

.page-index__segment-1 {
  min-width: 120px;
  max-width: 150px;
  flex-shrink: 0;
  padding-left: 0;
}

.page-index__rank-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gradient-orange-1);
  color: var(--light-text-color);
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-index__rank-1 {
  background: var(--gradient-gold-1);
}

.page-index__rank-2 {
  background: var(--gradient-silver-1);
}

.page-index__rank-3 {
  background: var(--gradient-bronze-1);
}

.page-index__game-icon {
  max-width: 100px;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: contain;
}

.page-index__segment-2 {
  flex-grow: 1;
  min-width: 200px;
}

.page-index__game-name {
  font-size: 24px;
  font-weight: bold;
  color: var(--dark-text-color);
  margin-bottom: 8px;
  text-align: center;
  text-transform: uppercase;
}

.page-index__game-name-link {
  color: var(--dark-text-color);
  text-decoration: none;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.page-index__game-name-link:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-index__game-description {
  font-size: 14px;
  color: var(--dark-text-color);
  font-weight: bold;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.page-index__game-description a {
  color: var(--primary-color);
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__game-description a:hover {
  color: #004499;
  text-decoration: underline;
}

.page-index__segment-3 {
  min-width: 180px;
  flex-shrink: 0;
}

.page-index__game-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.page-index__stars {
  color: #ffc107;
  font-size: 18px;
  margin-right: 5px;
  font-weight: bold;
}

.page-index__rating-number {
  font-size: 16px;
  font-weight: bold;
  color: var(--dark-text-color);
}

.page-index__promotion-text {
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.page-index__promotion-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-index__promotion-link:hover {
  color: #004499;
  text-decoration: underline;
}

.page-index__hot-badge {
  background: #dc3545;
  color: var(--light-text-color);
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 15px;
  font-weight: bold;
}

.page-index__segment-4 {
  min-width: 200px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 0;
}

.page-index__btn-download,
.page-index__btn-review {
  width: 100%;
  padding: 12px 15px;
  font-size: 15px;
  border-radius: 8px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-download {
  background: var(--primary-color);
  color: var(--light-text-color);
}

.page-index__btn-download:hover {
  background: #0056b3;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-index__btn-review {
  background: #6c757d;
  color: var(--light-text-color);
}

.page-index__btn-review:hover {
  background: #5a6268;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Brand Review Content Section */
.page-index__review-content-section {
  padding: 40px 20px;
  background: var(--dark-bg-1);
  color: var(--light-text-color);
}

.page-index__review-content-container {
  max-width: 1400px;
  margin: 0 auto;
}

.page-index__review-content-card {
  background: var(--card-bg-color);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 40px;
  color: var(--dark-text-color);
}

.page-index__review-content-title {
  font-size: 28px;
  font-weight: bold;
  color: var(--dark-text-color);
  margin-bottom: 24px;
  text-align: center;
}

.page-index__review-subtitle {
  font-size: 20px;
  font-weight: bold;
  color: var(--dark-text-color);
  margin-top: 24px;
  margin-bottom: 12px;
}

.page-index__review-body {
  color: var(--dark-text-color);
  line-height: 1.7;
}

.page-index__review-body p {
  margin-bottom: 16px;
  font-size: 16px;
}

.page-index__review-body .highlight-text {
  color: var(--primary-color);
  font-weight: bold;
}

/* Introduction Section */
.page-index__introduction-section {
  padding: 60px 20px;
  background-color: var(--dark-bg-1);
  color: var(--light-text-color);
}

.page-index__introduction-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-index__introduction-content-card {
  background: var(--card-bg-color);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 40px;
  color: var(--dark-text-color);
}

.page-index__introduction-title {
  font-size: 32px;
  font-weight: bold;
  color: var(--dark-text-color);
  text-align: center;
  margin-bottom: 30px;
}

.page-index__introduction-content-card p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 15px;
}

.page-index__introduction-features {
  list-style: none;
  padding: 0;
  margin-top: 25px;
}

.page-index__introduction-features li {
  font-size: 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  color: var(--dark-text-color);
}

.page-index__introduction-features li i {
  color: var(--primary-color);
  margin-right: 10px;
  font-size: 18px;
  flex-shrink: 0;
}

/* Core Games Section */
.page-index__core-games-section {
  padding: 60px 20px;
  background-color: #f1f3f5; /* Light background for contrast */
  color: var(--dark-text-color);
}

.page-index__core-games-container {
  max-width: 1400px;
  margin: 0 auto;
}

.page-index__core-games-title {
  font-size: 32px;
  font-weight: bold;
  color: var(--dark-text-color);
  text-align: center;
  margin-bottom: 40px;
}

.page-index__game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.page-index__game-category-card {
  background: var(--card-bg-color);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--dark-text-color);
}

.page-index__game-category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-index__game-category-img {
  max-width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index__game-category-name {
  font-size: 22px;
  font-weight: bold;
  color: var(--dark-text-color);
  margin-bottom: 10px;
}

.page-index__game-category-description {
  font-size: 15px;
  color: #555555;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Promotions Section */
.page-index__promotions-section {
  padding: 60px 20px;
  background-color: var(--dark-bg-1);
  color: var(--light-text-color);
}

.page-index__promotions-container {
  max-width: 1400px;
  margin: 0 auto;
}

.page-index__promotions-title {
  font-size: 32px;
  font-weight: bold;
  color: var(--light-text-color);
  text-align: center;
  margin-bottom: 20px;
}

.page-index__promotions-intro {
  font-size: 18px;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.page-index__promotion-card {
  background: var(--card-bg-color);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--dark-text-color);
}

.page-index__promotion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-index__promotion-img {
  max-width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index__promotion-card-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--dark-text-color);
  margin-bottom: 10px;
}

.page-index__promotion-card-description {
  font-size: 15px;
  color: #555555;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index__promotions-cta {
  text-align: center;
  margin-top: 40px;
}

/* Latest Blog Section */
.page-index__latest-blog-section {
  padding: 60px 20px;
  background-color: #f1f3f5; /* Light background for contrast */
  color: var(--dark-text-color);
}

.page-index__latest-blog-container {
  max-width: 1400px;
  margin: 0 auto;
}

.page-index__latest-blog-title {
  font-size: 32px;
  font-weight: bold;
  color: var(--dark-text-color);
  text-align: center;
  margin-bottom: 20px;
}

.page-index__latest-blog-intro {
  font-size: 18px;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__blog-articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.page-index__blog-card {
  background: var(--card-bg-color);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--dark-text-color);
  display: flex;
  flex-direction: column;
}

.page-index__blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-index__blog-img {
  width: 100%;
  height: 220px; /* Fixed height for blog images */
  object-fit: cover;
}

.page-index__blog-card-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--dark-text-color);
  padding: 15px 20px 10px;
  line-height: 1.4;
}

.page-index__blog-link {
  color: var(--dark-text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__blog-link:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-index__blog-summary {
  font-size: 15px;
  color: #555555;
  padding: 0 20px 15px;
  line-height: 1.6;
  flex-grow: 1;
}

.page-index__blog-date {
  font-size: 13px;
  color: #888888;
  padding: 0 20px 20px;
  display: block;
}

.page-index__blog-cta {
  text-align: center;
  margin-top: 40px;
}

.highlight-text {
  color: var(--primary-color);
  font-weight: bold;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__game-card-segment:not(:first-child)::before {
    height: 70%;
  }

  .page-index__game-name {
    font-size: 20px;
  }

  .page-index__game-description {
    font-size: 13px;
  }

  .page-index__btn-download,
  .page-index__btn-review {
    font-size: 14px;
    padding: 10px 12px;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding-top: 140px !important; /* Mobile: Adjust for fixed header */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-index__hero-title {
    font-size: 30px;
  }

  .page-index__hero-description {
    font-size: 16px;
  }

  .page-index__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }

  .page-index__page-title,
  .page-index__review-content-title,
  .page-index__introduction-title,
  .page-index__core-games-title,
  .page-index__promotions-title,
  .page-index__latest-blog-title {
    font-size: 26px;
    margin-bottom: 30px;
  }

  .page-index__game-leaderboard-section,
  .page-index__review-content-section,
  .page-index__introduction-section,
  .page-index__core-games-section,
  .page-index__promotions-section,
  .page-index__latest-blog-section {
    padding: 30px 15px;
  }

  .page-index__game-card {
    flex-direction: column;
    align-items: stretch;
    padding: 15px;
  }

  .page-index__game-card-segment {
    padding: 10px 0;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .page-index__game-card-segment:not(:first-child)::before {
    content: none; /* Remove vertical line on mobile */
  }

  .page-index__segment-1 {
    min-width: auto;
    max-width: 100%;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding-left: 0;
  }

  .page-index__rank-badge {
    margin-bottom: 0;
  }

  .page-index__game-icon {
    max-width: 80px;
    height: auto;
  }

  .page-index__segment-2 {
    min-width: auto;
    padding-left: 0;
    padding-right: 0;
  }

  .page-index__game-name {
    font-size: 20px;
    margin-bottom: 5px;
  }

  .page-index__game-description {
    font-size: 13px;
    line-height: 1.4;
  }

  .page-index__segment-3 {
    min-width: auto;
    padding-left: 0;
    padding-right: 0;
    flex-direction: column;
    gap: 5px;
  }

  .page-index__segment-4 {
    min-width: auto;
    padding-left: 0;
    padding-right: 0;
    flex-direction: column;
    gap: 10px;
    max-width: 100%;
    width: 100%;
  }

  .page-index__btn-download,
  .page-index__btn-review {
    max-width: 100% !important;
    width: 100% !important;
    font-size: 12px !important;
    padding: 8px 12px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    min-width: auto !important;
  }

  .page-index__review-content-card {
    padding: 24px 20px;
  }
  
  .page-index__review-content-title {
    font-size: 24px;
  }
  
  .page-index__review-subtitle {
    font-size: 18px;
  }
  
  .page-index__review-body p {
    font-size: 15px;
  }

  .page-index__introduction-content-card {
    padding: 25px;
  }

  .page-index__introduction-title {
    font-size: 26px;
  }

  .page-index__introduction-content-card p,
  .page-index__introduction-features li {
    font-size: 15px;
  }

  .page-index__game-categories,
  .page-index__promotions-grid,
  .page-index__blog-articles {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-index__game-category-img,
  .page-index__promotion-img,
  .page-index__blog-img {
    height: 180px;
  }

  .page-index__game-category-name,
  .page-index__promotion-card-title,
  .page-index__blog-card-title {
    font-size: 20px;
  }

  .page-index__game-category-description,
  .page-index__promotion-card-description,
  .page-index__blog-summary {
    font-size: 14px;
  }

  /* Ensure all images are responsive on mobile */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-index__hero-container,
  .page-index__game-leaderboard,
  .page-index__review-content-container,
  .page-index__introduction-container,
  .page-index__core-games-container,
  .page-index__promotions-container,
  .page-index__latest-blog-container,
  .page-index__game-card,
  .page-index__review-content-card,
  .page-index__introduction-content-card,
  .page-index__game-category-card,
  .page-index__promotion-card,
  .page-index__blog-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0px;
    padding-right: 0px;
  }

  .page-index__game-leaderboard-section,
  .page-index__review-content-section,
  .page-index__introduction-section,
  .page-index__core-games-section,
  .page-index__promotions-section,
  .page-index__latest-blog-section {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-index__hero-image {
    margin-bottom: 20px;
  }
}