.page-index {
  color: #333333;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background-color: #FFFFFF; /* Explicitly set background as per color scheme */
}

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

.page-index__hero-section {
  background-color: #000000; /* Main color for hero background */
  color: #FFFFFF;
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.page-index__hero-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.4; /* Slightly transparent to allow text to stand out */
}

.page-index__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7); /* Darken image to improve text readability */
}

.page-index__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

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

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

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

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

.page-index__hero-button--register {
  background-color: #FFFFFF; /* Register button color */
  color: #000000; /* Text color for register button */
}

.page-index__hero-button--register:hover {
  background-color: #F0F0F0;
}

.page-index__hero-button--login {
  background-color: #FCBC45; /* Login button color */
  color: #000000; /* Text color for login button */
}

.page-index__hero-button--login:hover {
  background-color: #E0A030;
}

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

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

.page-index__about-section, .page-index__features-section, .page-index__promotions-section, .page-index__games-section, .page-index__how-to-section, .page-index__download-section, .page-index__faq-section, .page-index__cta-section {
  padding: 60px 0;
}

.page-index__about-section {
  background-color: #F8F8F8;
}

.page-index__learn-more-button {
  display: block;
  width: fit-content;
  margin: 40px auto 0 auto;
  padding: 12px 25px;
  background-color: #000000;
  color: #FFFFFF;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-index__learn-more-button:hover {
  background-color: #333333;
}

.page-index__features-grid, .page-index__games-grid, .page-index__promo-cards, .page-index__how-to-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__how-to-card {
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  transition: transform 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__how-to-card:hover {
  transform: translateY(-10px);
}

.page-index__feature-icon, .page-index__promo-image, .page-index__game-image, .page-index__how-to-image {
  width: 100%; /* Ensures image fills card width */
  height: auto;
  max-height: 250px; /* Limit height for consistency */
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

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

.page-index__promo-card-title a, .page-index__game-card-title a, .page-index__how-to-card-title a {
  color: #000000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__promo-card-title a:hover, .page-index__game-card-title a:hover, .page-index__how-to-card-title a:hover {
  color: #FCBC45;
}

.page-index__feature-description, .page-index__promo-card-description, .page-index__game-card-description, .page-index__how-to-card-description {
  color: #555555;
  font-size: 0.95em;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-index__promo-button, .page-index__game-button, .page-index__how-to-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #FCBC45;
  color: #000000;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-index__promo-button:hover, .page-index__game-button:hover, .page-index__how-to-button:hover {
  background-color: #E0A030;
}

.page-index__view-all-promos-button, .page-index__view-all-games-button, .page-index__quick-access-button, .page-index__view-all-faq-button {
  display: block;
  width: fit-content;
  margin: 50px auto 0 auto;
  padding: 15px 30px;
  background-color: #000000;
  color: #FFFFFF;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-index__view-all-promos-button:hover, .page-index__view-all-games-button:hover, .page-index__quick-access-button:hover, .page-index__view-all-faq-button:hover {
  background-color: #333333;
}

.page-index__download-section {
  background-color: #F0F0F0;
  text-align: center;
}

.page-index__download-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-index__download-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid #000000;
  color: #000000;
}

.page-index__download-button--ios {
  background-color: #FFFFFF;
}

.page-index__download-button--ios:hover {
  background-color: #EFEFEF;
}

.page-index__download-button--android {
  background-color: #FCBC45;
  border-color: #FCBC45;
}

.page-index__download-button--android:hover {
  background-color: #E0A030;
  border-color: #E0A030;
}

.page-index__app-showcase-image {
  max-width: 800px;
  width: 100%;
  height: auto;
  margin-top: 30px;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-index__faq-item {
  background-color: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  transition: box-shadow 0.3s ease;
}

.page-index__faq-item:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

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

.page-index__faq-answer {
  color: #555555;
}

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

.page-index__cta-button {
  display: inline-block;
  padding: 18px 40px;
  background-color: #FCBC45;
  color: #000000;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.3em;
  margin-top: 40px;
  transition: background-color 0.3s ease;
}

.page-index__cta-button:hover {
  background-color: #E0A030;
}

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

@media (max-width: 768px) {
  .page-index__hero-section {
    padding: 60px 20px;
  }
  .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__hero-button {
    width: 80%;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__section-text {
    font-size: 0.95em;
  }
  .page-index__features-grid, .page-index__games-grid, .page-index__promo-cards, .page-index__how-to-cards {
    grid-template-columns: 1fr;
  }
  .page-index__download-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__download-button {
    width: 80%;
    margin: 0 auto;
  }
  .page-index__app-showcase-image {
    max-width: 100%;
    height: auto;
  }
  .page-index__cta-button {
    font-size: 1.1em;
    padding: 15px 30px;
  }
  /* Ensure all content area images are responsive and do not overflow */
  .page-index img {
    max-width: 100%;
    height: auto;
    display: block; /* Prevent extra space below images */
  }
  .page-index {
    overflow-x: hidden; /* Prevent horizontal scrolling */
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 2em;
  }
  .page-index__hero-description {
    font-size: 0.9em;
  }
  .page-index__hero-button {
    width: 90%;
  }
  .page-index__section-title {
    font-size: 1.5em;
  }
  .page-index__section-text {
    font-size: 0.9em;
  }
  .page-index__feature-title, .page-index__promo-card-title, .page-index__game-card-title, .page-index__how-to-card-title {
    font-size: 1.3em;
  }
  .page-index__download-button {
    width: 90%;
  }
  .page-index__cta-button {
    font-size: 1em;
    padding: 12px 25px;
  }
}