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

.page-index__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background-color: #FFFFFF;
  gap: 40px;
}

.page-index__hero-content {
  max-width: 800px;
  margin-bottom: 30px;
}

.page-index__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #000000;
  line-height: 1.2;
}

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

.page-index__hero-actions {
  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;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 1.1em;
}

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

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

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

.page-index__button--login:hover {
  background-color: #e0a53b;
  border-color: #e0a53b;
}

.page-index__hero-image-wrapper {
  max-width: 100%;
}

.page-index__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-index__features-section,
.page-index__games-section,
.page-index__promo-section,
.page-index__app-download-section,
.page-index__responsible-gaming-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 40px 20px;
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

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

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

.page-index__feature-card {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-index__feature-icon {
  width: 200px; /* Min size */
  height: 200px; /* Min size */
  margin-bottom: 20px;
  object-fit: contain;
}

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

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

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

.page-index__game-card {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-index__game-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: cover;
  min-height: 200px; /* Enforce min image size */
}

.page-index__game-title {
  font-size: 1.6em;
  margin-bottom: 10px;
}

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

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

.page-index__game-text {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 20px;
}

.page-index__button--play {
  background-color: #FCBC45;
  color: #000000;
  padding: 10px 20px;
  font-size: 1em;
}

.page-index__button--play:hover {
  background-color: #e0a53b;
}

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

.page-index__promo-text-area {
  text-align: center;
  max-width: 700px;
}

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

.page-index__promo-description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 30px;
}

.page-index__button--claim {
  background-color: #000000;
  color: #FFFFFF;
  padding: 15px 30px;
  font-size: 1.1em;
}

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

.page-index__promo-image-wrapper {
  max-width: 100%;
}

.page-index__promo-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  min-height: 200px; /* Enforce min image size */
}

.page-index__app-download-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-index__app-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  min-height: 200px; /* Enforce min image size */
}

.page-index__app-text {
  text-align: center;
  max-width: 600px;
}

.page-index__app-subtitle {
  font-size: 2em;
  color: #000000;
  margin-bottom: 15px;
}

.page-index__app-description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 30px;
}

.page-index__button--download {
  background-color: #FCBC45;
  color: #000000;
  padding: 15px 30px;
  font-size: 1.1em;
}

.page-index__button--download:hover {
  background-color: #e0a53b;
}

.page-index__responsible-gaming-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-index__link {
  color: #000000;
  text-decoration: none;
  font-weight: bold;
  padding: 10px 20px;
  border: 2px solid #000000;
  border-radius: 8px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-index__link:hover {
  background-color: #000000;
  color: #FFFFFF;
}

/* Responsive adjustments */
@media (min-width: 769px) {
  .page-index__hero-section {
    flex-direction: row;
    text-align: left;
    padding: 80px 40px;
  }

  .page-index__hero-content {
    margin-bottom: 0;
    margin-right: 40px;
  }

  .page-index__hero-actions {
    justify-content: flex-start;
  }

  .page-index__promo-content,
  .page-index__app-download-content {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
  }

  .page-index__promo-text-area,
  .page-index__app-text {
    text-align: left;
    max-width: 50%;
  }

  .page-index__promo-image-wrapper,
  .page-index__app-image {
    max-width: 45%;
  }
}

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

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

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

  .page-index__feature-card, .page-index__game-card {
    padding: 20px;
  }

  .page-index__feature-icon, .page-index__game-image, .page-index__promo-image, .page-index__app-image {
    max-width: 100%;
    height: auto;
    min-height: 200px; /* Ensure images are not too small */
  }

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

  .page-index__hero-actions,
  .page-index__responsible-gaming-links {
    flex-direction: column;
    gap: 15px;
  }

  .page-index__button,
  .page-index__link {
    width: 100%;
  }

  .page-index__promo-content,
  .page-index__app-download-content {
    flex-direction: column;
  }

  .page-index__promo-text-area,
  .page-index__app-text {
    max-width: 100%;
  }

  .page-index__app-image {
    order: -1; /* Move image above text for mobile */
  }

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