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

.page-index__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding: 60px 20px;
  text-align: center;
  overflow: hidden;
  background-color: #000000;
}

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

.page-index__hero-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  color: #FFFFFF;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

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

.page-index__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #F0F0F0;
}

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

.page-index__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-width: 150px;
  text-align: center;
  font-size: 1.1em;
}

.page-index__cta-button--register {
  background-color: #FFFFFF;
  color: #000000;
  border: 2px solid #FFFFFF;
}

.page-index__cta-button--register:hover {
  background-color: #F0F0F0;
}

.page-index__cta-button--login {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-index__cta-button--login:hover {
  background-color: #E0A83D;
}

.page-index__cta-button--small {
  padding: 10px 20px;
  font-size: 0.9em;
  background-color: #FCBC45;
  color: #000000;
  border: none;
}

.page-index__cta-button--small:hover {
  background-color: #E0A83D;
}

.page-index__cta-button--view-all {
  background-color: #FCBC45;
  color: #000000;
  margin-top: 30px;
  border: none;
}

.page-index__cta-button--view-all:hover {
  background-color: #E0A83D;
}

.page-index__cta-button--learn-more {
  background-color: #000000;
  color: #FFFFFF;
  margin-top: 30px;
  border: 2px solid #000000;
}

.page-index__cta-button--learn-more:hover {
  background-color: #333333;
}

.page-index__cta-button--download {
  background-color: #FCBC45;
  color: #000000;
  margin-top: 30px;
  border: none;
}

.page-index__cta-button--download:hover {
  background-color: #E0A83D;
}

.page-index__cta-button--contact {
  background-color: #000000;
  color: #FFFFFF;
  margin-top: 30px;
  border: 2px solid #000000;
}

.page-index__cta-button--contact:hover {
  background-color: #333333;
}

.page-index__cta-button--large {
  background-color: #FCBC45;
  color: #000000;
  margin-top: 40px;
  padding: 20px 40px;
  font-size: 1.3em;
  border: none;
}

.page-index__cta-button--large:hover {
  background-color: #E0A83D;
}

.page-index__section {
  padding: 80px 20px;
  text-align: center;
}

.page-index__section--dark {
  background-color: #000000;
  color: #FFFFFF;
}

.page-index__section--dark .page-index__section-title, 
.page-index__section--dark .page-index__section-subtitle, 
.page-index__section--dark .page-index__text-content, 
.page-index__section--dark .page-index__promo-card-title, 
.page-index__section--dark .page-index__promo-card-description {
  color: #FFFFFF;
}

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

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

.page-index__section--dark .page-index__section-title {
  color: #FCBC45;
}

.page-index__section-subtitle {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #555555;
}

.page-index__text-content {
  font-size: 1.1em;
  margin-bottom: 25px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-index__games-section .page-index__section-title, 
.page-index__games-section .page-index__section-subtitle {
  color: #000000;
}

.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: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

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

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

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

.page-index__game-card .page-index__cta-button--small {
  margin: 20px;
  align-self: flex-start;
}

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

.page-index__promo-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  height: 100%;
}

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

.page-index__promo-card-description {
  font-size: 1em;
  color: #F0F0F0;
}

.page-index__app-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  text-align: left;
}

.page-index__app-text {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

.page-index__app-image {
  width: 400px;
  height: 533px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(252, 188, 69, 0.3);
}

.page-index__final-cta-section {
  background-color: #FCBC45;
  color: #000000;
  padding: 100px 20px;
}

.page-index__final-cta-section .page-index__section-title, 
.page-index__final-cta-section .page-index__text-content {
  color: #000000;
}

.page-index__final-cta-content {
  max-width: 900px;
}

@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3em;
  }
  .page-index__section-title {
    font-size: 2.2em;
  }
  .page-index__app-image {
    width: 300px;
    height: 400px;
  }
}

@media (max-width: 768px) {
  .page-index__hero-title {
    font-size: 2.5em;
  }
  .page-index__hero-description {
    font-size: 1.1em;
  }
  .page-index__hero-cta-buttons {
    flex-direction: column;
  }
  .page-index__section {
    padding: 60px 15px;
  }
  .page-index__section-title {
    font-size: 2em;
  }
  .page-index__section-subtitle {
    font-size: 1.1em;
  }
  .page-index__text-content {
    font-size: 1em;
  }
  .page-index__game-grid, .page-index__promo-grid {
    grid-template-columns: 1fr;
  }
  .page-index__game-card-image {
    height: 200px;
  }
  .page-index__app-content {
    flex-direction: column;
    text-align: center;
  }
  .page-index__app-text {
    order: 2;
  }
  .page-index__app-image {
    order: 1;
    width: 250px;
    height: 333px;
  }
  /* Ensure all images in content area are responsive and do not overflow */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
  /* Specific override for game card images to ensure they maintain min-height if needed, but max-width: 100% takes precedence for overflow */
  .page-index__game-card-image {
    max-width: 100%;
    height: auto; /* Allow auto height to maintain aspect ratio */
    min-height: 200px; /* Ensure images are not too small */
  }
  .page-index__app-image {
    max-width: 100%;
    height: auto; /* Allow auto height to maintain aspect ratio */
    min-height: 200px; /* Ensure images are not too small */
  }
  .page-index__cta-button--large {
    font-size: 1.1em;
    padding: 15px 30px;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 2em;
  }
  .page-index__hero-description {
    font-size: 0.95em;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__hero-cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-index__cta-button {
    width: 100%;
  }
  .page-index__game-card-title {
    font-size: 1.5em;
  }
  .page-index__promo-card-title {
    font-size: 1.8em;
  }
}