.page-index {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--dark-bg-1);
}

.page-index__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background-color: #26A9E0;
  color: #ffffff;
}

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

.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__page-title {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-index__page-description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #EA7C07; /* Login color for CTA */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
}

.page-index__cta-button:hover {
  background: #ff8c42; /* Slightly darker orange */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Game Leaderboard Section */
.page-index__game-leaderboard-section {
  padding: 60px 20px;
  background-color: #f1f3f5; /* Light background for leaderboard */
  color: #333333; /* Dark text for light background */
}

.page-index__leaderboard-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #333333;
}

.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 {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.page-index__game-card-segment:not(:first-child) {
  border-left: 1px solid #e4e4e4;
}

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

.page-index__rank-badge {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: bold;
  font-size: 14px;
  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: 100px;
  height: auto;
  display: block;
  border-radius: 4px;
  margin-top: 10px; /* Adjust spacing from badge if needed */
}

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

.page-index__game-name {
  font-size: 24px;
  font-weight: bold;
  color: #000000;
  margin-bottom: 10px;
  text-align: center;
}

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

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

.page-index__game-description {
  font-size: 14px;
  color: #000000;
  font-weight: bold;
  text-align: center;
  line-height: 1.4;
  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 {
  min-width: 150px;
  text-align: center;
}

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

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

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

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

.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: #FF0000;
  color: #ffffff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: bold;
}

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

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

.page-index__btn-download {
  background: #26A9E0;
  color: #ffffff;
}

.page-index__btn-download:hover {
  background: #1e87c0;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.page-index__btn-review {
  background: #f0f0f0;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-index__btn-review:hover {
  background: #e0e0e0;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

/* Brand Review Content Section */
.page-index__review-content-section {
  padding: 40px 20px;
  background: #f1f3f5;
}

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

.page-index__review-content-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 40px;
  color: #333333;
}

.page-index__review-content-card h2 {
  font-size: 28px;
  font-weight: bold;
  color: #333333;
  margin-bottom: 24px;
  text-align: center;
}

.page-index__review-content-card h3 {
  font-size: 20px;
  font-weight: bold;
  color: #333333;
  margin-top: 24px;
  margin-bottom: 12px;
}

.page-index__review-body {
  color: #333333;
  line-height: 1.7;
}

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

/* Homepage Introduction Section */
.page-index__intro-section {
  padding: 60px 20px;
  background-color: #26A9E0;
  color: #ffffff;
  text-align: center;
}

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

.page-index__intro-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 30px;
  color: #ffffff;
}

.page-index__intro-content p {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-index__intro-content a {
  color: #ffffff;
  text-decoration: underline;
  font-weight: bold;
}

.page-index__intro-content a:hover {
  color: #e0e0e0;
}

/* Core Games/Services Section */
.page-index__games-section {
  padding: 60px 20px;
  background-color: #f1f3f5;
  color: #333333;
}

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

.page-index__games-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #333333;
}

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

.page-index__game-card-overview {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

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

.page-index__game-overview-image {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 15px;
  object-fit: cover;
}

.page-index__game-overview-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333333;
}

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

.page-index__game-overview-description a {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
}

.page-index__game-overview-description a:hover {
  text-decoration: underline;
}

.page-index__game-overview-button {
  display: inline-block;
  padding: 10px 25px;
  background: #26A9E0;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-index__game-overview-button:hover {
  background: #1e87c0;
}

/* Promotions Section */
.page-index__promotions-section {
  padding: 60px 20px;
  background-color: #26A9E0;
  color: #ffffff;
}

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

.page-index__promotions-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #ffffff;
}

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

.page-index__promotion-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

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

.page-index__promotion-image {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 15px;
  object-fit: cover;
}

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

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

.page-index__promotion-description a {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
}

.page-index__promotion-description a:hover {
  text-decoration: underline;
}

.page-index__promotion-button {
  display: inline-block;
  padding: 10px 25px;
  background: #26A9E0;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-index__promotion-button:hover {
  background: #1e87c0;
}

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

.page-index__view-all-button {
  display: inline-block;
  padding: 12px 30px;
  background: #EA7C07;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index__view-all-button:hover {
  background: #ff8c42;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Blog Section */
.page-index__blog-section {
  padding: 60px 20px;
  background-color: #f1f3f5;
  color: #333333;
}

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

.page-index__blog-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #333333;
}

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

.page-index__blog-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

.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: auto;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  object-fit: cover;
}

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

.page-index__blog-link {
  color: #333333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__blog-link:hover {
  color: #26A9E0;
}

.page-index__blog-summary {
  font-size: 15px;
  line-height: 1.6;
  color: #555555;
  margin: 0 20px 15px;
  display: block;
}

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

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

/* General link styling within sections */
.page-index__light-bg a {
  color: #26A9E0;
  text-decoration: none;
}
.page-index__light-bg a:hover {
  text-decoration: underline;
}
.page-index__dark-bg a {
  color: #ffffff;
  text-decoration: none;
}
.page-index__dark-bg a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__page-title {
    font-size: 36px;
  }
  .page-index__leaderboard-title, .page-index__intro-title, .page-index__games-title, .page-index__promotions-title, .page-index__blog-title {
    font-size: 30px;
  }
  .page-index__game-card-overview {
    padding: 20px;
  }
  .page-index__game-overview-title {
    font-size: 20px;
  }
  .page-index__promotion-card, .page-index__blog-card {
    padding: 20px;
  }
  .page-index__promotion-card-title, .page-index__blog-card-title {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index__hero-image img {
    border-radius: 4px;
  }
  .page-index__page-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-index__page-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-index__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Leaderboard responsive */
  .page-index__game-leaderboard-section {
    padding: 30px 15px;
  }
  .page-index__leaderboard-title {
    font-size: 26px;
    margin-bottom: 30px;
  }
  .page-index__game-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
    gap: 15px;
  }
  .page-index__game-card-segment {
    width: 100%;
    padding: 0;
    border-left: none !important;
    align-items: center;
  }
  .page-index__game-card-segment:not(:first-child) {
    padding-top: 15px;
    border-top: 1px solid #e4e4e4;
  }
  .page-index__segment-1 {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    min-width: unset;
    max-width: 100%;
    width: 100%;
    padding-top: 0;
  }
  .page-index__rank-badge {
    position: static;
    margin-right: 15px;
    width: 24px;
    height: 24px;
    font-size: 12px;
    box-shadow: none;
  }
  .page-index__game-icon {
    max-width: 80px;
    margin-top: 0;
  }
  .page-index__game-name {
    font-size: 20px;
    margin-bottom: 5px;
  }
  .page-index__game-description {
    font-size: 13px;
    line-height: 1.3;
  }
  .page-index__segment-3 {
    min-width: unset;
  }
  .page-index__segment-4 {
    max-width: 100%;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
  .page-index__btn-download, .page-index__btn-review {
    font-size: 12px !important;
    padding: 8px 12px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    min-width: auto !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Review Content responsive */
  .page-index__review-content-section {
    padding: 20px 15px;
  }
  .page-index__review-content-card {
    padding: 24px 20px;
  }
  .page-index__review-content-card h2 {
    font-size: 24px;
  }
  .page-index__review-content-card h3 {
    font-size: 18px;
  }
  .page-index__review-body p {
    font-size: 15px;
  }

  /* Intro, Games, Promotions, Blog responsive */
  .page-index__intro-section, .page-index__games-section, .page-index__promotions-section, .page-index__blog-section {
    padding: 30px 15px;
  }
  .page-index__intro-title, .page-index__games-title, .page-index__promotions-title, .page-index__blog-title {
    font-size: 24px;
    margin-bottom: 25px;
  }
  .page-index__intro-content p {
    font-size: 15px;
  }
  .page-index__games-grid, .page-index__promotions-grid, .page-index__blog-grid {
    gap: 20px;
  }
  .page-index__game-card-overview, .page-index__promotion-card, .page-index__blog-card {
    padding: 15px;
  }
  .page-index__game-overview-title, .page-index__promotion-card-title, .page-index__blog-card-title {
    font-size: 18px;
  }
  .page-index__game-overview-description, .page-index__promotion-description, .page-index__blog-summary {
    font-size: 14px;
  }
  .page-index__game-overview-button, .page-index__promotion-button, .page-index__view-all-button {
    font-size: 14px;
    padding: 10px 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  /* Ensure all images are responsive */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-index__hero-image img, .page-index__game-icon, .page-index__game-overview-image, .page-index__promotion-image, .page-index__blog-image {
    max-width: 100% !important;
    width: auto !important;
  }
  .page-index__game-icon {
    width: 80px !important;
  }
  .page-index__game-card-overview img, .page-index__promotion-card img, .page-index__blog-card img {
    width: 100% !important;
  }
}