:root {
  --primary-color: #0A2239;
  --secondary-color: #E0B973;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #0a0a0a; /* Body background from shared.css */
  --background-light: #f1f3f5;
  --border-color: #e4e4e4;
}

.page-index {
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--background-dark);
  line-height: 1.6;
  font-family: Arial, sans-serif;
}

/* Ensure content is not hidden by fixed header */
.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 based on actual header height */
  background: var(--primary-color);
  color: var(--text-light);
}

.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-image 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%;
}

.page-index__hero-title {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.page-index__hero-description {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: var(--text-light);
}

.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-index__cta-button:hover {
  background: #cfa864;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

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

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

.page-index__game-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px 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 6px 16px rgba(0, 0, 0, 0.15);
}

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

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

.page-index__segment-1 {
  flex-basis: 150px;
  min-width: 150px;
  flex-shrink: 0;
  justify-content: center;
  flex-direction: column;
  padding-left: 0;
}

.page-index__rank-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #ff6b35, #ff8c42); /* Default for 4+ */
}

.page-index__rank-1 {
  background: linear-gradient(135deg, #FFD700, #FFA500);
}

.page-index__rank-2 {
  background: linear-gradient(135deg, #C0C0C0, #A0A0A0);
}

.page-index__rank-3 {
  background: linear-gradient(135deg, #CD7F32, #B87333);
}

.page-index__game-icon {
  max-width: 100px;
  height: auto;
  display: block;
  border-radius: 4px;
}

.page-index__segment-2 {
  flex: 1;
  flex-direction: column;
  text-align: center;
}

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

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

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

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

.page-index__game-description a {
  color: #0066cc;
  font-weight: bold;
  text-decoration: none;
}

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

.page-index__segment-3 {
  flex-basis: 180px;
  min-width: 180px;
  flex-shrink: 0;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.page-index__game-rating {
  margin-bottom: 10px;
}

.page-index__stars {
  color: #FFD700;
  font-size: 18px;
  font-weight: bold;
}

.page-index__rating-number {
  font-weight: bold;
  color: var(--text-dark);
  margin-left: 5px;
}

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

.page-index__promotion-link {
  color: #0066cc;
  font-size: 14px;
  text-decoration: none;
  font-weight: bold;
}

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

.page-index__hot-badge {
  background: #ff4d4f;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: bold;
}

.page-index__segment-4 {
  flex-basis: 220px;
  min-width: 220px;
  flex-shrink: 0;
  flex-direction: column;
  gap: 10px;
  display: flex;
  align-items: center;
  padding-right: 0;
}

.page-index__btn-download,
.page-index__btn-review {
  display: block;
  width: 100%;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-index__btn-download {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-index__btn-download:hover {
  background: linear-gradient(135deg, #5a6edc, #6c3f91);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-index__btn-review {
  background: #ffffff;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.page-index__btn-review:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

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

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

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

.page-index__review-content-card h3 {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-color);
  margin-top: 24px;
  margin-bottom: 12px;
}

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

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

/* Homepage Intro Section */
.page-index__intro-section {
  padding: 60px 20px;
  background: var(--primary-color);
  color: var(--text-light);
  text-align: center;
}

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

.page-index__intro-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.page-index__intro-description {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

.page-index__feature-card {
  background: var(--background-light);
  color: var(--text-dark);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.page-index__feature-icon {
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-index__feature-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-index__feature-text {
  font-size: 15px;
  line-height: 1.6;
}

/* Core Games/Services Section */
.page-index__core-games-section {
  padding: 60px 20px;
  background: var(--background-light);
  color: var(--text-dark);
  text-align: center;
}

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

.page-index__core-games-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.page-index__core-games-description {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-index__game-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-index__game-card-large {
  background: var(--primary-color);
  color: var(--text-light);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-index__game-card-large .page-index__game-card-title {
  font-size: 22px;
  font-weight: bold;
  margin: 20px 15px 10px 15px;
  color: var(--secondary-color);
}

.page-index__game-card-large .page-index__game-card-text {
  font-size: 15px;
  margin: 0 15px 20px 15px;
  line-height: 1.6;
}

.page-index__game-card-button {
  display: inline-block;
  background: var(--secondary-color);
  color: var(--primary-color);
  padding: 10px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin-bottom: 20px;
  transition: background-color 0.3s ease;
}

.page-index__game-card-button:hover {
  background: #cfa864;
}

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

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

.page-index__promotions-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.page-index__promotions-description {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

.page-index__promo-card {
  background: var(--background-light);
  color: var(--text-dark);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.page-index__promo-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.page-index__promo-card-title {
  font-size: 20px;
  font-weight: bold;
  margin: 20px 15px 10px 15px;
  color: var(--primary-color);
}

.page-index__promo-card-text {
  font-size: 15px;
  margin: 0 15px 20px 15px;
  line-height: 1.6;
}

.page-index__promo-card-button {
  display: inline-block;
  background: var(--primary-color);
  color: #ffffff;
  padding: 10px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin-bottom: 20px;
  transition: background-color 0.3s ease;
}

.page-index__promo-card-button:hover {
  background: #1a3a5a;
}

/* Latest Blog Content Section */
.page-index__blog-section {
  padding: 60px 20px;
  background: var(--background-light);
  color: var(--text-dark);
  text-align: center;
}

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

.page-index__blog-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.page-index__blog-description {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

.page-index__blog-card {
  background: var(--primary-color);
  color: var(--text-light);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__blog-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-index__blog-content {
  padding: 20px;
}

.page-index__blog-card-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.4;
}

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

.page-index__blog-link:hover {
  color: #cfa864;
  text-decoration: underline;
}

.page-index__blog-summary {
  font-size: 15px;
  color: #cccccc;
  margin-bottom: 15px;
  line-height: 1.6;
}

.page-index__blog-date {
  font-size: 13px;
  color: #999999;
}

.page-index__view-all-button-container {
  margin-top: 40px;
  text-align: center;
}

.page-index__view-all-button {
  display: inline-block;
  background: var(--secondary-color);
  color: var(--primary-color);
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
}

.page-index__view-all-button:hover {
  background: #cfa864;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 36px;
  }
  .page-index__page-title,
  .page-index__intro-title,
  .page-index__core-games-title,
  .page-index__promotions-title,
  .page-index__blog-title {
    font-size: 32px;
  }
  .page-index__game-card {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    padding: 15px;
  }
  .page-index__game-card-segment {
    width: 100%;
    padding: 10px 0;
    justify-content: center;
  }
  .page-index__game-card-segment:not(:first-child)::before {
    display: none;
  }
  .page-index__segment-1,
  .page-index__segment-3,
  .page-index__segment-4 {
    flex-basis: auto;
    min-width: auto;
  }
  .page-index__segment-2 {
    order: -1; /* Move game name/desc above */
    margin-bottom: 10px;
  }
  .page-index__game-icon {
    margin-bottom: 10px;
  }
  .page-index__segment-4 {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }
  .page-index__btn-download,
  .page-index__btn-review {
    flex: 1;
    min-width: 140px;
  }
  .page-index__feature-card,
  .page-index__game-card-large,
  .page-index__promo-card,
  .page-index__blog-card {
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding-top: 140px !important; /* Mobile: Adjust based on mobile header height */
    padding-bottom: 40px;
  }
  .page-index__hero-title {
    font-size: 28px;
  }
  .page-index__hero-description {
    font-size: 16px;
  }
  .page-index__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
  .page-index__page-title,
  .page-index__intro-title,
  .page-index__core-games-title,
  .page-index__promotions-title,
  .page-index__blog-title {
    font-size: 28px;
  }
  .page-index__intro-description,
  .page-index__core-games-description,
  .page-index__promotions-description,
  .page-index__blog-description {
    font-size: 16px;
  }
  .page-index__review-content-card {
    padding: 24px 20px;
  }
  .page-index__review-title {
    font-size: 24px;
  }
  .page-index__review-content-card h3 {
    font-size: 18px;
  }
  .page-index__review-body p {
    font-size: 15px;
  }
  .page-index__game-card {
    flex-direction: column;
    align-items: stretch;
    padding: 15px;
  }
  .page-index__game-card-segment {
    width: 100%;
    padding: 10px 0;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
  }
  .page-index__game-card-segment:last-of-type {
    border-bottom: none;
  }
  .page-index__game-card-segment:not(:first-child)::before {
    display: none;
  }
  .page-index__segment-1 {
    order: 1;
    flex-direction: row;
    justify-content: flex-start;
    gap: 15px;
  }
  .page-index__rank-badge {
    margin-bottom: 0;
  }
  .page-index__game-icon {
    max-width: 80px;
    height: auto;
  }
  .page-index__segment-2 {
    order: 2;
    margin-bottom: 0;
  }
  .page-index__game-name {
    font-size: 20px;
  }
  .page-index__game-description {
    font-size: 13px;
  }
  .page-index__segment-3 {
    order: 3;
  }
  .page-index__segment-4 {
    order: 4;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
  }
  .page-index__btn-download,
  .page-index__btn-review {
    width: 100%;
    max-width: 100% !important;
    font-size: 14px;
    padding: 10px 15px;
    white-space: normal;
    word-wrap: break-word;
    min-width: auto;
  }
  .page-index__intro-features,
  .page-index__game-showcase,
  .page-index__promo-grid,
  .page-index__blog-grid {
    grid-template-columns: 1fr;
  }
  .page-index__feature-icon {
    max-width: 150px;
  }
  .page-index__game-image {
    height: 160px;
  }
  .page-index__promo-image {
    height: 150px;
  }
  .page-index__blog-image {
    height: 180px;
  }
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__section,
  .page-index__card,
  .page-index__container,
  .page-index__review-content-container,
  .page-index__intro-container,
  .page-index__core-games-container,
  .page-index__promotions-container,
  .page-index__blog-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}