.page-index {
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  color: #333333; /* Dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-index__section-padding {
  padding: 60px 20px;
}

.page-index__bg-dark {
  background-color: #000000; /* Main color for dark sections */
  color: #ffffff; /* Light text on dark background */
}

.page-index__section-title {
  font-size: 2.8em;
  color: #000000;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-index__section-title--light {
  color: #ffffff;
}

.page-index__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #555555;
}

.page-index__section-intro--light {
  color: #f0f0f0;
}

.page-index__long-text {
  max-width: 900px;
  margin: 20px auto;
  text-align: left;
  font-size: 1em;
  color: #333333;
}

.page-index__hero-section {
  position: relative;
  width: 100%;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.page-index__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-index__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
  z-index: 2;
}

.page-index__hero-content {
  position: relative;
  z-index: 3;
  color: #ffffff;
  max-width: 800px;
  padding: 0 20px;
}

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

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

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

.page-index__button {
  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.3s ease;
}

.page-index__button--register {
  background-color: #FFFFFF; /* Register button color */
  color: #000000;
  border: 2px solid #FFFFFF;
}

.page-index__button--register:hover {
  background-color: #f0f0f0;
  transform: translateY(-3px);
}

.page-index__button--login {
  background-color: #FCBC45; /* Login button color */
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-index__button--login:hover {
  background-color: #e0a030;
  transform: translateY(-3px);
}

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

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

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

.page-index__game-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-index__game-card-title {
  font-size: 1.8em;
  color: #000000;
  margin-bottom: 15px;
  padding: 0 20px;
}

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

.page-index__button--play {
  background-color: #FCBC45;
  color: #000000;
  border: none;
}

.page-index__button--play:hover {
  background-color: #e0a030;
  transform: translateY(-3px);
}

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

.page-index__promo-card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white on dark background */
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  text-align: center;
  padding-bottom: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
}

.page-index__promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.page-index__promo-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-index__promo-card-title {
  font-size: 1.8em;
  color: #FCBC45;
  margin-bottom: 15px;
  padding: 0 20px;
}

.page-index__promo-card-description {
  font-size: 1em;
  color: #f0f0f0;
  padding: 0 20px 20px 20px;
}

.page-index__button--claim {
  background-color: #FCBC45;
  color: #000000;
  border: none;
}

.page-index__button--claim:hover {
  background-color: #e0a030;
  transform: translateY(-3px);
}

.page-index__view-all-promos {
  text-align: center;
}

.page-index__button--view-all {
  background-color: #FFFFFF;
  color: #000000;
  border: 2px solid #FFFFFF;
}

.page-index__button--view-all:hover {
  background-color: #f0f0f0;
  transform: translateY(-3px);
}

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

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

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

.page-index__feature-card-icon {
  width: 100%; /* Ensure images are not too small */
  max-width: 250px; /* Max width for feature icons */
  height: auto;
  object-fit: contain;
  margin: 0 auto 20px auto;
  display: block;
}

.page-index__feature-card-title {
  font-size: 1.6em;
  color: #000000;
  margin-bottom: 10px;
}

.page-index__feature-card-description {
  font-size: 0.95em;
  color: #555555;
}

.page-index__app-download-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.page-index__app-content {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.page-index__app-image {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  height: auto;
  object-fit: contain;
}

.page-index__button--download {
  background-color: #FCBC45;
  color: #000000;
  border: none;
  margin-top: 20px;
}

.page-index__button--download:hover {
  background-color: #e0a030;
  transform: translateY(-3px);
}

.page-index__app-note {
  font-size: 0.9em;
  margin-top: 15px;
  color: #aaaaaa;
}

.page-index__app-note--light {
  color: #cccccc;
}

.page-index__about-buttons {
  text-align: center;
  margin-top: 40px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-index__button--learn-more {
  background-color: transparent;
  color: #000000;
  border: 2px solid #000000;
}

.page-index__button--learn-more:hover {
  background-color: #000000;
  color: #ffffff;
  transform: translateY(-3px);
}

.page-index__button--join-us {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-index__button--join-us:hover {
  background-color: #e0a030;
  transform: translateY(-3px);
}

.page-index__button--contact {
  background-color: #FCBC45;
  color: #000000;
  border: none;
  margin-top: 20px;
}

.page-index__button--contact:hover {
  background-color: #e0a030;
  transform: translateY(-3px);
}

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

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

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

@media (max-width: 768px) {
  .page-index__hero-section {
    height: 500px;
  }

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

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

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

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

  .page-index__section-padding {
    padding: 40px 15px;
  }

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

  .page-index__section-intro,
  .page-index__long-text {
    font-size: 0.95em;
  }

  .page-index__game-categories,
  .page-index__promotions-grid,
  .page-index__features-grid {
    grid-template-columns: 1fr;
  }

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

  .page-index__app-download-section {
    flex-direction: column;
    gap: 30px;
  }

  .page-index__app-content,
  .page-index__app-image {
    text-align: center;
    max-width: 100%;
  }

  .page-index__about-buttons {
    flex-direction: column;
    gap: 15px;
  }

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