.page-index {
  color: #333333; /* Dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-index__hero-section {
  position: relative;
  width: 100%;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  overflow: hidden;
  color: #FFFFFF;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
}

.page-index__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-index__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 40px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent black background for text */
  border-radius: 10px;
}

.page-index__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FCBC45; /* Login button color for emphasis */
  line-height: 1.2;
}

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

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

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

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

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

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

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

.page-index__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.page-index__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FCBC45;
  border-radius: 2px;
}

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

.page-index__legitimacy-section, .page-index__games-section, .page-index__promotions-section, .page-index__why-choose-section, .page-index__resources-section, .page-index__cta-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

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

.page-index__feature-card, .page-index__game-card, .page-index__promo-card, .page-index__why-card, .page-index__resource-card {
  background-color: #f8f8f8;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  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, .page-index__why-card:hover, .page-index__resource-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-index__feature-icon, .page-index__why-icon, .page-index__game-image, .page-index__promo-image, .page-index__resource-image {
  width: 100%;
  height: 200px; /* Fixed height for consistent card image display */
  object-fit: cover;
  margin: 0 auto 20px auto;
  border-radius: 8px;
  display: block;
}

.page-index__feature-title, .page-index__game-title, .page-index__promo-title, .page-index__why-title, .page-index__resource-title {
  font-size: 1.4em;
  color: #000000;
  margin-bottom: 15px;
  min-height: 40px;
}

.page-index__feature-title a, .page-index__game-title a, .page-index__promo-title a, .page-index__why-title a, .page-index__resource-title a {
  color: #000000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__feature-title a:hover, .page-index__game-title a:hover, .page-index__promo-title a:hover, .page-index__why-title a:hover, .page-index__resource-title a:hover {
  color: #FCBC45;
}

.page-index__feature-text, .page-index__game-text, .page-index__promo-text, .page-index__why-text, .page-index__resource-text {
  font-size: 1em;
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index__button--primary {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  margin-top: 30px;
}

.page-index__button--primary:hover {
  background-color: transparent;
  color: #FCBC45;
  transform: translateY(-3px);
}

.page-index__button--secondary {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
  margin-top: 30px;
}

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

.page-index__button--play, .page-index__button--bet, .page-index__button--explore, .page-index__button--claim, .page-index__button--download, .page-index__button--learn-more, .page-index__button--read-more {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
  padding: 10px 20px;
  font-size: 0.9em;
  border-radius: 5px;
  margin-top: auto; /* Push button to bottom of flex container */
}

.page-index__button--play:hover, .page-index__button--bet:hover, .page-index__button--explore:hover, .page-index__button--claim:hover, .page-index__button--download:hover, .page-index__button--learn-more:hover, .page-index__button--read-more:hover {
  background-color: #FCBC45;
  color: #000000;
  border-color: #FCBC45;
}

.page-index__cta-section {
  background-color: #000000;
  color: #FFFFFF;
  text-align: center;
  padding: 100px 20px;
}

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

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

.page-index__button--cta {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  padding: 18px 40px;
  font-size: 1.3em;
  border-radius: 10px;
}

.page-index__button--cta:hover {
  background-color: transparent;
  color: #FCBC45;
  transform: translateY(-5px);
}

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

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

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

  .page-index__hero-content {
    padding: 30px;
  }

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

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

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

  .page-index__button {
    width: 100%;
    max-width: 300px;
  }

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

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

  .page-index__legitimacy-features, .page-index__game-categories, .page-index__promo-cards, .page-index__why-features, .page-index__resource-cards {
    grid-template-columns: 1fr;
  }

  .page-index__feature-icon, .page-index__why-icon, .page-index__game-image, .page-index__promo-image, .page-index__resource-image {
    height: 250px;
  }

  .page-index__cta-section {
    padding: 60px 20px;
  }

  .page-index__button--cta {
    font-size: 1.1em;
    padding: 15px 30px;
  }

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

  /* Ensure all images within .page-index are responsive and don't overflow */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
}