.page-index {
  color: #333333; /* Default text color for light body background */
}

.page-index__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px 40px;
  min-height: 500px;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure spacing for fixed header on desktop */
}

.page-index__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.6); /* Darken image slightly for text readability, not changing color */
}

.page-index__hero-container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  color: #ffffff;
}

.page-index__hero-title {
  font-size: 3.5em;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-index__hero-description {
  font-size: 1.4em;
  margin-bottom: 30px;
  line-height: 1.5;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.page-index__hero-button {
  display: inline-block;
  background-color: #FFD700;
  color: #003366;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin: 0 10px;
}

.page-index__hero-button:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-index__hero-button--secondary {
  background-color: #003366;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-index__hero-button--secondary:hover {
  background-color: #004d99;
  color: #FFD700;
}

.page-index__section-title {
  font-size: 2.8em;
  color: #003366;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.page-index__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -15px;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  border-radius: 2px;
}

.page-index__featured-games-section,
.page-index__why-choose-section,
.page-index__download-app-section,
.page-index__vip-club-section,
.page-index__blog-section,
.page-index__about-section,
.page-index__cta-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 40px 20px;
}

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

.page-index__game-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.page-index__game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

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

.page-index__game-card-title {
  font-size: 1.8em;
  color: #003366;
  margin: 20px 0 10px;
}

.page-index__game-card-title a {
  color: #003366;
  text-decoration: none;
}

.page-index__game-card-title a:hover {
  color: #FFD700;
}

.page-index__game-card-text {
  font-size: 1em;
  color: #555555;
  padding: 0 20px 20px;
  line-height: 1.6;
}

.page-index__game-card-button {
  display: inline-block;
  background-color: #003366;
  color: #ffffff;
  padding: 10px 20px;
  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-color: #FFD700;
  color: #003366;
}

.page-index__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-index__feature-item {
  background-color: #003366;
  color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-index__feature-item:hover {
  transform: translateY(-5px);
}

.page-index__feature-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: brightness(1.2); /* Not changing color, just enhancing visibility on dark background */
}

.page-index__feature-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-index__feature-description {
  font-size: 0.95em;
  line-height: 1.6;
}

.page-index__download-app-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  background-color: #f5f5f5;
  padding: 60px 20px;
  border-radius: 10px;
  text-align: center;
}

.page-index__download-content {
  max-width: 700px;
}

.page-index__download-description {
  font-size: 1.2em;
  color: #555555;
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-index__download-button {
  display: inline-block;
  background-color: #FFD700;
  color: #003366;
  padding: 18px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.3em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-index__download-button:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

.page-index__download-image {
  max-width: 350px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-index__vip-club-section {
  background: linear-gradient(135deg, #003366, #004d99);
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-index__vip-club-section .page-index__section-title {
  color: #FFD700;
}

.page-index__vip-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.page-index__vip-button {
  display: inline-block;
  background-color: #FFD700;
  color: #003366;
  padding: 15px 35px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-index__vip-button:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

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

.page-index__blog-post-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.page-index__blog-post-card:hover {
  transform: translateY(-5px);
}

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

.page-index__blog-post-title {
  font-size: 1.5em;
  color: #003366;
  margin: 20px 20px 10px;
}

.page-index__blog-post-title a {
  color: #003366;
  text-decoration: none;
}

.page-index__blog-post-title a:hover {
  color: #FFD700;
}

.page-index__blog-post-excerpt {
  font-size: 0.95em;
  color: #555555;
  padding: 0 20px 15px;
  line-height: 1.6;
}

.page-index__blog-post-read-more {
  display: inline-block;
  color: #003366;
  text-decoration: none;
  font-weight: bold;
  margin: 0 20px 20px;
  transition: color 0.3s ease;
}

.page-index__blog-post-read-more:hover {
  color: #FFD700;
}

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

.page-index__blog-view-all-button {
  display: inline-block;
  background-color: #003366;
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-index__blog-view-all-button:hover {
  background-color: #FFD700;
  color: #003366;
}

.page-index__about-section {
  background-color: #f9f9f9;
  padding: 60px 20px;
  border-radius: 10px;
  text-align: center;
}

.page-index__about-text {
  font-size: 1.1em;
  color: #444444;
  max-width: 900px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.page-index__about-button {
  display: inline-block;
  background-color: #FFD700;
  color: #003366;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-index__about-button:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-index__cta-section {
  background: linear-gradient(90deg, #003366, #004d99);
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-index__cta-section .page-index__section-title {
  color: #FFD700;
}

.page-index__cta-description {
  font-size: 1.3em;
  max-width: 900px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.page-index__cta-button {
  display: inline-block;
  background-color: #FFD700;
  color: #003366;
  padding: 20px 45px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.5em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-index__cta-button:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3em;
  }
  .page-index__hero-description {
    font-size: 1.2em;
  }
  .page-index__section-title {
    font-size: 2.4em;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding: 60px 15px 30px;
    min-height: 400px;
  }
  .page-index__hero-title {
    font-size: 2.5em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__hero-button {
    padding: 12px 25px;
    font-size: 1em;
    margin: 0 5px 15px;
  }
  .page-index__section-title {
    font-size: 2em;
    margin-bottom: 40px;
  }
  .page-index__featured-games-section,
  .page-index__why-choose-section,
  .page-index__download-app-section,
  .page-index__vip-club-section,
  .page-index__blog-section,
  .page-index__about-section,
  .page-index__cta-section {
    margin: 40px auto;
    padding: 30px 15px;
  }
  .page-index__game-cards-grid,
  .page-index__features-grid,
  .page-index__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-index__download-app-section {
    flex-direction: column;
  }
  .page-index__download-button {
    padding: 15px 30px;
    font-size: 1.1em;
  }
  .page-index__download-image {
    max-width: 280px;
  }
  .page-index__vip-description,
  .page-index__about-text,
  .page-index__cta-description {
    font-size: 1em;
  }
  .page-index__cta-button {
    padding: 15px 30px;
    font-size: 1.2em;
  }

  /* Mobile content area image constraint */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
}