.page-index {
  color: #333333; /* Dark text for light body background */
}

.page-index__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px; /* Ensures hero section has minimum height */
}

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

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

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

.page-index__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index__btn {
  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, transform 0.2s ease;
  font-size: 1.1em;
  min-width: 150px; /* Ensure buttons are large enough */
  text-align: center;
}

.page-index__btn--register {
  background-color: #FFFFFF;
  color: #000000; /* Dark text for white button */
  border: 2px solid #FFFFFF;
}

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

.page-index__btn--login {
  background-color: #FCBC45;
  color: #000000; /* Dark text for orange button */
  border: 2px solid #FCBC45;
}

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

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

.page-index__section-title {
  font-size: 2.8em;
  text-align: center;
  margin-bottom: 30px;
  color: #000000;
  font-weight: bold;
}

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

.page-index__about-section, .page-index__games-section, .page-index__promo-section, .page-index__app-section, .page-index__responsible-gaming, .page-index__faq-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

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

.page-index__card, .page-index__game-card {
  background-color: #f8f8f8;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 450px; /* Ensure cards are large enough */
}

.page-index__card-image, .page-index__game-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-index__card-title, .page-index__game-title {
  font-size: 1.8em;
  color: #000000;
  margin-bottom: 15px;
  padding: 0 20px;
}

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

.page-index__card-title a:hover, .page-index__game-title a:hover {
  text-decoration: underline;
}

.page-index__card-text, .page-index__game-description {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
  padding: 0 20px;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-index__btn--play, .page-index__btn--claim, .page-index__btn--download, .page-index__btn--learn-more, .page-index__btn--contact-support {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  margin-top: auto; /* Push button to bottom of card */
}

.page-index__btn--play:hover, .page-index__btn--claim:hover, .page-index__btn--download:hover, .page-index__btn--learn-more:hover, .page-index__btn--contact-support:hover {
  background-color: #e6a73c;
  transform: translateY(-2px);
}

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

.page-index__app-qrcode {
  border: 5px solid #000000;
  border-radius: 10px;
  width: 250px;
  height: 250px;
  object-fit: contain;
}

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

.page-index__responsible-gaming {
  background-color: #f0f0f0;
}

.page-index__faq-items {
  margin-top: 40px;
  display: grid;
  gap: 20px;
}

.page-index__faq-item {
  background-color: #f8f8f8;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.page-index__faq-question {
  font-size: 1.4em;
  color: #000000;
  margin-bottom: 10px;
}

.page-index__faq-answer {
  font-size: 1em;
  color: #555555;
  line-height: 1.6;
}

.page-index__btn--learn-more, .page-index__btn--contact-support {
  margin-top: 50px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  padding: 15px 40px;
}

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

@media (max-width: 768px) {
  .page-index__hero-title {
    font-size: 2.5em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__btn {
    width: 100%;
    max-width: 250px;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__section-text {
    font-size: 0.95em;
  }
  .page-index__card, .page-index__game-card {
    min-height: auto;
  }
  .page-index__card-image, .page-index__game-image {
    height: 200px; /* Adjusted for smaller screens, but still >= 200px */
  }
  .page-index__card-title, .page-index__game-title {
    font-size: 1.5em;
  }
  .page-index__app-qrcode {
    width: 200px;
    height: 200px;
  }
  .page-index__app-buttons {
    width: 100%;
    max-width: 250px;
  }
  /* Ensure content images do not overflow */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
  .page-index__container {
    padding: 20px;
  }
  .page-index__about-cards, .page-index__game-categories, .page-index__promo-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 2em;
  }
  .page-index__hero-overlay {
    padding: 25px;
  }
  .page-index__section-title {
    font-size: 1.6em;
  }
  .page-index__card-title, .page-index__game-title {
    font-size: 1.3em;
  }
  .page-index__faq-question {
    font-size: 1.2em;
  }
}