.page-index {
  background-color: #000000; /* Body background from shared.css is #000 */
  color: #ffffff; /* Default text color for dark background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.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: linear-gradient(135deg, #0A2463, #1A3A7A); /* Dark blue gradient */
  overflow: hidden;
}

.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;
  z-index: 1;
}

.page-index__hero-image {
  width: 100%;
  margin-bottom: 30px;
  max-width: 900px; /* Limit image width to prevent it from being too wide */
}

.page-index__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-index__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 800px;
}

.page-index__hero-title {
  font-size: 48px;
  font-weight: bold;
  color: #E3B505; /* Gold for title */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.page-index__hero-description {
  font-size: 18px;
  color: #f0f0f0; /* Light gray for description */
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__cta-button {
  display: inline-block;
  padding: 18px 45px;
  background: linear-gradient(135deg, #E3B505, #FFD700); /* Gold gradient */
  color: #0A2463; /* Dark blue text on gold */
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
}

.page-index__cta-button:hover {
  background: linear-gradient(135deg, #FFD700, #E3B505);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.page-index__page-title {
  font-size: 38px;
  font-weight: bold;
  color: #E3B505; /* Gold for main section titles */
  text-align: center;
  margin-bottom: 30px;
  padding-top: 40px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-index__leaderboard-intro {
  font-size: 18px;
  color: #f0f0f0;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
}

.page-index__game-leaderboard-section {
  padding: 60px 20px;
  background: #0d0d0d; /* Slightly lighter dark background for this section */
  color: #ffffff;
}

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

.page-index__game-card {
  background: #ffffff; /* White background for cards */
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  padding: 25px;
  display: flex;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333; /* Dark text on white card */
}

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

.page-index__game-card-segment {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: 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: #e4e4e4;
}

.page-index__segment-1 {
  flex-basis: 150px;
  flex-shrink: 0;
  padding-left: 0;
  padding-right: 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  position: relative;
}

.page-index__segment-1::before {
  display: none; /* No left border for the first segment */
}

.page-index__rank-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  color: #ffffff;
  position: absolute;
  top: 0px;
  left: 0px;
  z-index: 1;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.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__rank-badge:not(.page-index__rank-1):not(.page-index__rank-2):not(.page-index__rank-3) {
  background: linear-gradient(135deg, #ff6b35, #ff8c42);
}

.page-index__game-icon {
  max-width: 80px;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-left: 40px; /* Adjust margin to accommodate rank badge */
  object-fit: contain;
  flex-shrink: 0;
}

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

.page-index__game-name {
  font-size: 24px;
  font-weight: bold;
  color: #0A2463; /* Dark blue for game name */
  margin-bottom: 8px;
  text-transform: uppercase;
}

.page-index__game-name-link {
  color: #0A2463;
  text-decoration: none;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.page-index__game-name-link:hover {
  color: #E3B505;
  text-decoration: underline;
}

.page-index__game-description {
  font-size: 15px;
  color: #333333; /* Dark gray for description */
  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;
  flex-shrink: 0;
}

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

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

.page-index__rating-number {
  font-size: 18px;
  font-weight: bold;
  color: #333333;
}

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

.page-index__promotion-link {
  color: #0066cc;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

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

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

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

.page-index__btn-download,
.page-index__btn-review {
  display: block;
  width: 100%;
  padding: 12px 15px;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Ensure long words break */
}

.page-index__btn-download {
  background: linear-gradient(135deg, #E3B505, #FFD700);
  color: #0A2463;
}

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

.page-index__btn-review {
  background: #0A2463;
  color: #ffffff;
}

.page-index__btn-review:hover {
  background: #1A3A7A;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-index__review-content-section {
  padding: 60px 20px;
  background: #000000; /* Dark background */
  color: #ffffff;
}

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

.page-index__review-content-card {
  background: #ffffff; /* White card background */
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  padding: 40px;
  color: #333333; /* Dark text on white card */
}

.page-index__review-title {
  font-size: 32px;
  font-weight: bold;
  color: #0A2463;
  margin-bottom: 24px;
  text-align: center;
}

.page-index__review-content-card h3 {
  font-size: 22px;
  font-weight: bold;
  color: #0A2463;
  margin-top: 30px;
  margin-bottom: 15px;
}

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

.page-index__intro-section {
  padding: 60px 20px;
  background: linear-gradient(135deg, #0A2463, #1A3A7A); /* Dark blue gradient */
  color: #ffffff;
}

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

.page-index__intro-title {
  font-size: 38px;
  font-weight: bold;
  color: #E3B505;
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-index__intro-content {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent white background */
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  text-align: left;
}

.page-index__intro-content p {
  font-size: 17px;
  margin-bottom: 15px;
  color: #f0f0f0;
}

.page-index__intro-content h3 {
  font-size: 24px;
  font-weight: bold;
  color: #E3B505;
  margin-top: 30px;
  margin-bottom: 20px;
}

.page-index__intro-content ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-index__intro-content ul li {
  font-size: 17px;
  margin-bottom: 10px;
}

.page-index__intro-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 30px auto;
  display: block;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-index__core-games-section {
  padding: 60px 20px;
  background: #000000; /* Dark background */
  color: #ffffff;
}

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

.page-index__core-games-title {
  font-size: 38px;
  font-weight: bold;
  color: #E3B505;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

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

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

.page-index__game-item {
  background: #ffffff; /* White card background */
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  color: #333333; /* Dark text on white card */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-index__game-item-title {
  font-size: 24px;
  font-weight: bold;
  color: #0A2463;
  margin-bottom: 10px;
}

.page-index__game-item-text {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
}

.page-index__game-item-link {
  display: inline-block;
  background: #E3B505;
  color: #0A2463;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-index__game-item-link:hover {
  background: #FFD700;
  transform: translateY(-2px);
}

.page-index__promotions-section {
  padding: 60px 20px;
  background: linear-gradient(135deg, #0A2463, #1A3A7A); /* Dark blue gradient */
  color: #ffffff;
}

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

.page-index__promotions-title {
  font-size: 38px;
  font-weight: bold;
  color: #E3B505;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

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

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

.page-index__promo-card {
  background: #ffffff; /* White card background */
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  color: #333333; /* Dark text on white card */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__promo-image {
  max-width: 100%;
  height: 180px; /* Fixed height for consistency */
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
  width: 100%;
}

.page-index__promo-card-title {
  font-size: 22px;
  font-weight: bold;
  color: #0A2463;
  margin-bottom: 10px;
}

.page-index__promo-card-text {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
}

.page-index__promo-button {
  display: inline-block;
  background: #E3B505;
  color: #0A2463;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-index__promo-button:hover {
  background: #FFD700;
  transform: translateY(-2px);
}

.page-index__blog-section {
  padding: 60px 20px;
  background: #000000; /* Dark background */
  color: #ffffff;
}

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

.page-index__blog-title {
  font-size: 38px;
  font-weight: bold;
  color: #E3B505;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

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

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

.page-index__article-card {
  background: #ffffff; /* White card background */
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  color: #333333; /* Dark text on white card */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__article-image {
  width: 100%;
  height: 220px; /* Fixed height for blog images */
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  display: block;
}

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

.page-index__article-card-title {
  font-size: 20px;
  font-weight: bold;
  color: #0A2463;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-index__article-card-title a {
  color: #0A2463;
  text-decoration: none;
}

.page-index__article-card-title a:hover {
  color: #E3B505;
  text-decoration: underline;
}

.page-index__article-summary {
  font-size: 16px;
  color: #555555;
  margin-bottom: 15px;
}

.page-index__article-date {
  font-size: 14px;
  color: #888888;
}

.page-index__view-all-articles {
  margin-top: 50px;
}

.page-index__view-all-button {
  display: inline-block;
  background: #E3B505;
  color: #0A2463;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-index__view-all-button:hover {
  background: #FFD700;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 40px;
  }
  .page-index__hero-description {
    font-size: 16px;
  }
  .page-index__cta-button {
    padding: 15px 35px;
    font-size: 18px;
  }
  .page-index__page-title,
  .page-index__review-title,
  .page-index__intro-title,
  .page-index__core-games-title,
  .page-index__promotions-title,
  .page-index__blog-title {
    font-size: 32px;
  }
  .page-index__leaderboard-intro,
  .page-index__promotions-description,
  .page-index__blog-description {
    font-size: 16px;
  }
  .page-index__game-card {
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
  }
  .page-index__game-card-segment {
    padding: 10px;
    flex-basis: auto;
    width: 100%;
    border-left: none !important;
  }
  .page-index__game-card-segment::before {
    display: none !important;
  }
  .page-index__segment-1 {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    padding-left: 0;
    padding-right: 0;
  }
  .page-index__game-icon {
    margin-left: 0;
    margin-top: 10px;
  }
  .page-index__rank-badge {
    position: static;
    margin-bottom: 10px;
  }
  .page-index__segment-2,
  .page-index__segment-3,
  .page-index__segment-4 {
    width: 100%;
    margin-bottom: 15px;
  }
  .page-index__game-name {
    font-size: 22px;
  }
  .page-index__game-description {
    font-size: 14px;
  }
  .page-index__btn-download,
  .page-index__btn-review {
    font-size: 15px;
    padding: 10px 15px;
  }
  .page-index__review-content-card,
  .page-index__intro-content {
    padding: 30px;
  }
  .page-index__review-content-card h3 {
    font-size: 20px;
  }
  .page-index__review-body p,
  .page-index__intro-content p,
  .page-index__intro-content ul li {
    font-size: 16px;
  }
  .page-index__game-item-title,
  .page-index__promo-card-title,
  .page-index__article-card-title {
    font-size: 20px;
  }
  .page-index__game-item-text,
  .page-index__promo-card-text,
  .page-index__article-summary {
    font-size: 15px;
  }
  .page-index__game-item-link,
  .page-index__promo-button,
  .page-index__view-all-button {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding-top: 160px !important; /* Mobile: Adjust for fixed header */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index__hero-title {
    font-size: 32px;
  }
  .page-index__hero-description {
    font-size: 15px;
  }
  .page-index__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
  .page-index__page-title,
  .page-index__review-title,
  .page-index__intro-title,
  .page-index__core-games-title,
  .page-index__promotions-title,
  .page-index__blog-title {
    font-size: 28px;
  }
  .page-index__game-leaderboard-section,
  .page-index__review-content-section,
  .page-index__intro-section,
  .page-index__core-games-section,
  .page-index__promotions-section,
  .page-index__blog-section {
    padding: 40px 15px;
  }
  .page-index__game-card {
    padding: 15px;
  }
  .page-index__game-icon {
    max-width: 60px;
  }
  .page-index__game-name {
    font-size: 20px;
  }
  .page-index__game-description {
    font-size: 13px;
  }
  .page-index__segment-4 {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 10px;
    padding-right: 10px;
  }
  .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,
  .page-index__intro-content {
    padding: 20px;
  }
  .page-index__review-content-card h3 {
    font-size: 18px;
  }
  .page-index__review-body p,
  .page-index__intro-content p,
  .page-index__intro-content ul li {
    font-size: 15px;
  }
  .page-index__game-item-title,
  .page-index__promo-card-title,
  .page-index__article-card-title {
    font-size: 18px;
  }
  .page-index__game-item-text,
  .page-index__promo-card-text,
  .page-index__article-summary {
    font-size: 14px;
  }
  .page-index__game-item-link,
  .page-index__promo-button,
  .page-index__view-all-button {
    font-size: 14px;
    padding: 8px 15px;
  }
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__section,
  .page-index__card,
  .page-index__container,
  .page-index__intro-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index__game-image, .page-index__promo-image, .page-index__article-image {
    height: auto; /* Allow height to adjust on mobile */
  }
}