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

.page-index__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px; /* Ensure hero section has a minimum height */
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background-color: #000; /* Fallback for image loading */
}

.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 for text readability */
}

.page-index__hero-container {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 20px;
  color: #ffffff;
}

.page-index__hero-content {
  position: relative; /* Ensure content is above the image */
  z-index: 3;
}

.page-index__hero-title {
  font-size: 3.5em;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffc107; /* Auxiliary color for emphasis */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  line-height: 1.2;
}

.page-index__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  line-height: 1.6;
  color: #f0f0f0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-index__hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-index__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}

.page-index__button--primary {
  background-color: #ffc107; /* Auxiliary color */
  color: #000000;
  border: 2px solid #ffc107;
}

.page-index__button--primary:hover {
  background-color: #e0a800;
  transform: translateY(-2px);
}

.page-index__button--secondary {
  background-color: transparent;
  color: #ffc107; /* Auxiliary color */
  border: 2px solid #ffc107;
}

.page-index__button--secondary:hover {
  background-color: #ffc107;
  color: #000000;
  transform: translateY(-2px);
}

.page-index__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-index__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-index__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #007bff; /* Main color */
  text-align: center;
  margin-bottom: 30px;
}

.page-index__section-description {
  font-size: 1.1em;
  color: #555555;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.page-index__features-section, .page-index__download-section, .page-index__games-section, .page-index__promo-section, .page-index__deep-content-section, .page-index__detail-pages-section, .page-index__cta-section {
  padding: 60px 0;
}

.page-index__features-section {
  background-color: #f8f9fa;
}

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

.page-index__feature-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.page-index__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.page-index__feature-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensure image is block level */
}

.page-index__feature-title {
  font-size: 1.6em;
  font-weight: 600;
  color: #007bff;
  margin-bottom: 15px;
}

.page-index__feature-description {
  font-size: 1em;
  color: #666666;
  line-height: 1.6;
}

.page-index__download-section {
  background-color: #ffffff;
  text-align: center;
}

.page-index__download-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 50px;
}

.page-index__step-card {
  background-color: #f0f8ff; /* Light blue background */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-index__step-number {
  display: inline-block;
  width: 50px;
  height: 50px;
  line-height: 50px;
  border-radius: 50%;
  background-color: #007bff; /* Main color */
  color: #ffffff;
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 20px;
}

.page-index__step-title {
  font-size: 1.4em;
  font-weight: 600;
  color: #007bff;
  margin-bottom: 10px;
}

.page-index__step-description {
  font-size: 0.95em;
  color: #666666;
  line-height: 1.5;
}

.page-index__download-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  margin-bottom: 50px;
}

.page-index__download-image {
  width: 400px;
  height: 533px;
  object-fit: contain;
  margin: 0 auto;
  display: block; /* Ensure image is block level */
}

.page-index__games-section {
  background-color: #f0f0f0;
}

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

.page-index__game-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-index__game-title {
  font-size: 1.5em;
  font-weight: 600;
  color: #007bff;
  padding: 20px 20px 10px;
}

.page-index__game-description {
  font-size: 0.95em;
  color: #666666;
  padding: 0 20px 20px;
  line-height: 1.6;
}

.page-index__game-card .page-index__button {
  margin: 0 20px 20px;
}

.page-index__promo-section {
  background-color: #007bff; /* Main color background */
  color: #ffffff;
  text-align: center;
}

.page-index__promo-section .page-index__section-title {
  color: #ffc107; /* Auxiliary color for title on main background */
}

.page-index__promo-section .page-index__section-description {
  color: #f0f0f0;
}

.page-index__promo-image {
  max-width: 800px;
  width: 100%;
  height: auto;
  object-fit: contain;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  display: block;
}

.page-index__promo-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

.page-index__deep-content-section {
  background-color: #ffffff;
  padding-bottom: 80px;
}

.page-index__deep-content-intro {
  font-size: 1.15em;
  line-height: 1.8;
  color: #444444;
  margin-bottom: 40px;
  text-align: justify;
}

.page-index__sub-title {
  font-size: 2em;
  font-weight: 700;
  color: #007bff; /* Main color */
  margin-top: 50px;
  margin-bottom: 25px;
}

.page-index__deep-content-section p {
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
  margin-bottom: 20px;
  text-align: justify;
}

.page-index__deep-content-section p strong {
  color: #007bff;
}

.page-index__list {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #555555;
}

.page-index__list-item {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 10px;
}

.page-index__list-item strong {
  color: #007bff;
}

.page-index__detail-pages-section {
  background-color: #f8f9fa;
}

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

.page-index__detail-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__detail-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

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

.page-index__detail-title {
  font-size: 1.4em;
  font-weight: 600;
  padding: 20px 20px 10px;
}

.page-index__detail-title a {
  color: #007bff; /* Main color for link */
  text-decoration: none;
}

.page-index__detail-title a:hover {
  text-decoration: underline;
}

.page-index__detail-description {
  font-size: 0.95em;
  color: #666666;
  padding: 0 20px 20px;
  line-height: 1.6;
}

.page-index__detail-card .page-index__button {
  margin: 0 20px 20px;
}

.page-index__cta-section {
  background-color: #ffc107; /* Auxiliary color background */
  color: #333333;
  text-align: center;
  padding: 80px 0;
}

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

.page-index__cta-section .page-index__section-description {
  color: #444444;
  margin-bottom: 40px;
}

.page-index__cta-section .page-index__button--primary {
  background-color: #007bff; /* Main color */
  color: #ffffff;
  border: 2px solid #007bff;
}

.page-index__cta-section .page-index__button--primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

/* Responsive adjustments */
@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.2em;
  }

  .page-index__sub-title {
    font-size: 1.8em;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    min-height: 500px;
    padding-top: var(--header-offset, 100px);
  }

  .page-index__hero-title {
    font-size: 2.5em;
  }

  .page-index__hero-description {
    font-size: 1em;
  }

  .page-index__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-index__button {
    width: 80%;
    margin: 0 auto;
  }

  .page-index__container {
    padding: 20px 15px;
  }

  .page-index__section-title {
    font-size: 2em;
    margin-bottom: 25px;
  }

  .page-index__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-index__features-section, .page-index__download-section, .page-index__games-section, .page-index__promo-section, .page-index__deep-content-section, .page-index__detail-pages-section, .page-index__cta-section {
    padding: 40px 0;
  }

  .page-index__feature-image, .page-index__game-image, .page-index__detail-image {
    height: 200px;
  }

  .page-index__download-image {
    width: 80%;
    height: auto;
  }

  .page-index__promo-image {
    width: 90%;
  }

  /* CRITICAL: Prevent content overflow on mobile */
  .page-index img {
    max-width: 100%;
    height: auto;
  }

  .page-index {
    max-width: 100%;
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 2em;
  }

  .page-index__button {
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-index__section-title {
    font-size: 1.8em;
  }

  .page-index__sub-title {
    font-size: 1.5em;
  }
}