.page-index {
  color: #000000; /* 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 {
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  position: relative;
  text-align: center;
  color: #FFFFFF;
  overflow: hidden;
}

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

.page-index__hero-container {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 500px; /* Adjust height as needed */
  padding: 80px 20px;
  z-index: 1;
}

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

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

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

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

.page-index__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}

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

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

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

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

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

.page-index__button--primary:hover {
  background-color: #333333;
  border-color: #333333;
}

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

.page-index__button--secondary:hover {
  background-color: #FFD700;
  border-color: #FFD700;
}

.page-index__button--tertiary {
  background-color: #6c757d;
  color: #FFFFFF;
  border: 2px solid #6c757d;
}

.page-index__button--tertiary:hover {
  background-color: #5a6268;
  border-color: #5a6268;
}

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

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

.page-index__features-section,
.page-index__games-showcase-section,
.page-index__promo-section,
.page-index__about-section,
.page-index__responsible-gambling-section,
.page-index__cta-final-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

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

.page-index__feature-card {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-index__feature-card:hover {
  transform: translateY(-10px);
}

.page-index__feature-icon {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-index__feature-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #000000;
}

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

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

.page-index__game-card {
  background-color: #f9f9f9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.page-index__game-card:hover {
  transform: translateY(-10px);
}

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

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

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

.page-index__game-link {
  display: block;
  background-color: #FCBC45;
  color: #000000;
  text-align: center;
  padding: 10px 20px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-index__game-link:hover {
  background-color: #FFD700;
}

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

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

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

.page-index__promo-card:hover {
  transform: translateY(-10px);
}

.page-index__promo-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-index__promo-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #000000;
}

.page-index__promo-description {
  font-size: 1em;
  color: #555555;
  flex-grow: 1;
  margin-bottom: 20px;
}

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

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

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

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

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

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

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

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

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

  .page-index__feature-icon,
  .page-index__game-image,
  .page-index__promo-image {
    max-width: 100%;
    height: auto;
  }
}

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

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

  .page-index__button {
    padding: 10px 20px;
    font-size: 0.9em;
  }

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

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