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

.page-index__hero-section {
  position: relative;
  overflow: hidden;
  color: #FFFFFF; /* White text on dark/rich hero background */
  padding: 0;
}

.page-index__hero-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px; /* Minimum height for hero section */
}

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

.page-index__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent dark overlay for text readability */
  border-radius: 8px;
}

.page-index__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FCBC45; /* Login button color for emphasis */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

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

.page-index__button--register {
  background-color: #FFFFFF;
  color: #000000;
}

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

.page-index__button--login {
  background-color: #FCBC45;
  color: #000000;
}

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

.page-index__button--download {
  background-color: #000000;
  color: #FFFFFF;
  border: 1px solid #FCBC45;
}

.page-index__button--download:hover {
  background-color: #1a1a1a;
  transform: translateY(-2px);
}

.page-index__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 40px;
  padding-top: 60px;
}

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

.page-index__features-section,
.page-index__games-section,
.page-index__promotions-section,
.page-index__about-section,
.page-index__cta-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

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

.page-index__feature-card,
.page-index__game-card,
.page-index__promo-card {
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index__feature-card:hover,
.page-index__game-card:hover,
.page-index__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-index__feature-title,
.page-index__game-title,
.page-index__promo-title {
  font-size: 1.8em;
  color: #000000;
  margin-bottom: 15px;
}

.page-index__feature-text,
.page-index__game-text,
.page-index__promo-text {
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index__game-image,
.page-index__promo-image {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-index__game-image {
  min-height: 200px; /* Ensure game images are not too small */
}

.page-index__promo-image {
  min-height: 200px; /* Ensure promo images are not too small */
}

.page-index__button--learn-more {
  background-color: #000000;
  color: #FFFFFF;
  font-size: 0.9em;
  padding: 10px 20px;
  margin-top: auto;
}

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

.page-index__button--play-now,
.page-index__button--claim-bonus {
  background-color: #FCBC45;
  color: #000000;
  font-size: 1em;
  padding: 12px 25px;
  margin-top: auto;
}

.page-index__button--play-now:hover,
.page-index__button--claim-bonus:hover {
  background-color: #e0a53a;
}

.page-index__about-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

.page-index__about-text {
  font-size: 1.1em;
  color: #333333;
  text-align: justify;
}

.page-index__about-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-height: 200px; /* Ensure about image is not too small */
}

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

.page-index__cta-section {
  background-color: #000000;
  color: #FFFFFF;
  text-align: center;
  padding: 80px 20px;
  border-radius: 10px;
  margin-bottom: 40px;
}

.page-index__cta-section .page-index__section-title {
  color: #FCBC45;
  padding-top: 0;
}

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

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

.page-index__cta-actions .page-index__button--register {
  background-color: #FCBC45;
  color: #000000;
}

.page-index__cta-actions .page-index__button--explore {
  background-color: #FFFFFF;
  color: #000000;
}

.page-index__cta-actions .page-index__button--register:hover,
.page-index__cta-actions .page-index__button--explore:hover {
  transform: translateY(-2px);
}

/* Responsive Design */
@media (min-width: 768px) {
  .page-index__hero-title {
    font-size: 4.5em;
  }

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

  .page-index__features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-index__games-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-index__promotions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-index__about-content {
    flex-direction: row;
    text-align: left;
  }

  .page-index__about-text {
    text-align: left;
  }

  .page-index__about-image {
    flex-shrink: 0;
    width: 400px;
    height: 300px;
  }
}

@media (min-width: 1024px) {
  .page-index__hero-title {
    font-size: 5.5em;
  }

  .page-index__features-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-index__games-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-index__promotions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-index__about-image {
    width: 600px;
    height: 450px;
  }
}

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

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

  .page-index__button {
    width: 100%;
    box-sizing: border-box;
  }

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

  .page-index__section-intro {
    font-size: 0.9em;
  }

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

  .page-index__about-content {
    flex-direction: column;
    text-align: center;
  }

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