.page-index {
  color: #333333; /* Dark text for light body background #f4f4f4 */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-index__hero-section {
  position: relative;
  overflow: hidden;
  background-color: #1A202C;
  color: #ffffff;
  padding: 80px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-index__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4; /* Slightly dim image to make text stand out */
  z-index: 1;
}

.page-index__hero-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding: 20px;
}

.page-index__hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-index__hero-title {
  font-size: 3.5em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFD700;
  line-height: 1.2;
}

.page-index__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  line-height: 1.5;
}

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

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

.page-index__btn--primary {
  background-color: #FFD700;
  color: #1A202C;
  border: 2px solid #FFD700;
}

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

.page-index__btn--secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-index__btn--secondary:hover {
  background-color: #FFD700;
  color: #1A202C;
  transform: translateY(-2px);
}

.page-index__btn--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.8em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #1A202C;
}

.page-index__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #555555;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__about-section {
  background-color: #f9f9f9;
  padding: 60px 0;
}

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

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

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

.page-index__about-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
}

.page-index__about-item-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #1A202C;
}

.page-index__about-item-description {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
}

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

.page-index__games-showcase {
  padding: 60px 0;
}

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

.page-index__game-card {
  background-color: #1A202C;
  color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-index__game-title {
  font-size: 1.6em;
  font-weight: bold;
  padding: 15px 20px 0;
  color: #FFD700;
}

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

.page-index__promotions-section {
  background-color: #1A202C;
  color: #ffffff;
  padding: 60px 0;
}

.page-index__promotions-section .page-index__section-title,
.page-index__promotions-section .page-index__section-description {
  color: #ffffff;
}

.page-index__promo-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  justify-content: center;
}

.page-index__promo-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-index__promo-text {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

.page-index__promo-subtitle {
  font-size: 2.2em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFD700;
}

.page-index__promo-description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #e0e0e0;
}

.page-index__how-to-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

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

.page-index__step-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.page-index__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: #FFD700;
  color: #1A202C;
  border-radius: 50%;
  font-size: 2.2em;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-index__step-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #1A202C;
}

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

.page-index__resources-section {
  padding: 60px 0;
}

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

.page-index__resource-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__resource-title {
  font-size: 1.6em;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-index__resource-title a {
  color: #1A202C;
  text-decoration: none;
}

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

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

.page-index__download-section {
  background-color: #1A202C;
  color: #ffffff;
  padding: 60px 0;
  text-align: center;
}

.page-index__download-section .page-index__section-title,
.page-index__download-section .page-index__section-description {
  color: #ffffff;
}

.page-index__app-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: contain;
  margin: 40px auto;
  display: block;
}

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

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

  .page-index__promo-content {
    flex-direction: column;
  }

  .page-index__promo-image {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding: 60px 15px;
  }

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

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

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

  .page-index__btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 1em;
  }

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

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

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

  .page-index__about-grid,
  .page-index__game-grid,
  .page-index__steps-grid,
  .page-index__resource-grid {
    grid-template-columns: 1fr;
  }

  .page-index__promo-subtitle {
    font-size: 1.8em;
  }

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

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

  /* Ensure content images do not overflow on mobile */
  .page-index img {
    max-width: 100%;
    height: auto;
  }

  .page-index__app-image {
    max-width: 80%;
  }
}

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

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

  .page-index__promo-subtitle {
    font-size: 1.6em;
  }

  .page-index__step-number {
    width: 50px;
    height: 50px;
    font-size: 1.8em;
  }

  .page-index__step-title,
  .page-index__resource-title {
    font-size: 1.4em;
  }
}