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

.page-index__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  color: #FFFFFF;
  text-align: center;
}

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

.page-index__hero-container {
  position: relative;
  width: 100%;
  max-width: 1400px;
  padding: 60px 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

.page-index__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-index__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #F0F0F0;
}

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

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

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

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

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

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

.page-index__about-section, .page-index__games-section, .page-index__promo-section, .page-index__details-section, .page-index__mobile-section, .page-index__responsible-gaming-section, .page-index__cta-section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.page-index__about-title, .page-index__games-title, .page-index__promo-title, .page-index__details-title, .page-index__mobile-title, .page-index__responsible-gaming-title, .page-index__cta-title {
  font-size: 2.8em;
  margin-bottom: 30px;
  color: #000000;
}

.page-index__about-intro, .page-index__games-intro, .page-index__promo-intro, .page-index__details-intro, .page-index__mobile-description, .page-index__responsible-gaming-description, .page-index__cta-description {
  font-size: 1.1em;
  margin-bottom: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

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

.page-index__feature-card, .page-index__category-card, .page-index__promo-card, .page-index__detail-card {
  background-color: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-index__feature-card:hover, .page-index__category-card:hover, .page-index__promo-card:hover, .page-index__detail-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.page-index__feature-icon, .page-index__category-image, .page-index__promo-image, .page-index__detail-image {
  width: 100%; /* Ensure images take full width of card */
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index__feature-heading, .page-index__category-heading, .page-index__promo-heading, .page-index__detail-heading {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #000000;
}

.page-index__category-heading a, .page-index__promo-heading a, .page-index__detail-heading a {
  text-decoration: none;
  color: #000000;
  transition: color 0.3s ease;
}

.page-index__category-heading a:hover, .page-index__promo-heading a:hover, .page-index__detail-heading a:hover {
  color: #FCBC45;
}

.page-index__feature-description, .page-index__category-description, .page-index__promo-description, .page-index__detail-description {
  font-size: 1em;
  color: #666666;
  flex-grow: 1; /* Allow description to take available space */
  margin-bottom: 20px;
}

.page-index__button--play, .page-index__button--bet, .page-index__button--claim, .page-index__button--view-details, .page-index__button--download, .page-index__button--learn-more {
  background-color: #FCBC45;
  color: #000000;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-top: auto; /* Push button to bottom of card */
}

.page-index__button--play:hover, .page-index__button--bet:hover, .page-index__button--claim:hover, .page-index__button--view-details:hover, .page-index__button--download:hover, .page-index__button--learn-more:hover {
  background-color: #e0a53b;
}

.page-index__promo-all {
  margin-top: 50px;
}

.page-index__button--view-all {
  background-color: #000000;
  color: #FFFFFF;
  padding: 15px 30px;
}

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

.page-index__mobile-section {
  background-color: #000000;
  color: #FFFFFF;
  padding: 80px 20px;
}

.page-index__mobile-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-index__mobile-content {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.page-index__mobile-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FFFFFF;
}

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

.page-index__mobile-image {
  flex: 1;
  max-width: 450px;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
}

.page-index__mobile-actions {
  display: flex;
  justify-content: center;
}

.page-index__button--download {
  background-color: #FFFFFF;
  color: #000000;
  padding: 15px 30px;
}

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

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

.page-index__responsible-gaming-title {
  color: #000000;
}

.page-index__responsible-gaming-description {
  color: #555555;
}

.page-index__button--learn-more {
  background-color: #000000;
  color: #FFFFFF;
  padding: 15px 30px;
}

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

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

.page-index__cta-title {
  font-size: 3em;
  margin-bottom: 25px;
  color: #FFFFFF;
}

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

.page-index__button--register-final {
  background-color: #FCBC45;
  color: #000000;
  padding: 18px 40px;
  font-size: 1.2em;
}

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

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3em;
  }
  .page-index__about-title, .page-index__games-title, .page-index__promo-title, .page-index__details-title, .page-index__mobile-title, .page-index__responsible-gaming-title, .page-index__cta-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    min-height: 500px;
    padding: 40px 15px;
  }
  .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__button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  .page-index__about-section, .page-index__games-section, .page-index__promo-section, .page-index__details-section, .page-index__mobile-section, .page-index__responsible-gaming-section, .page-index__cta-section {
    padding: 60px 15px;
  }
  .page-index__about-title, .page-index__games-title, .page-index__promo-title, .page-index__details-title, .page-index__mobile-title, .page-index__responsible-gaming-title, .page-index__cta-title {
    font-size: 1.8em;
  }
  .page-index__about-intro, .page-index__games-intro, .page-index__promo-intro, .page-index__details-intro, .page-index__mobile-description, .page-index__responsible-gaming-description, .page-index__cta-description {
    font-size: 0.95em;
  }
  .page-index__about-features, .page-index__game-categories, .page-index__promo-cards, .page-index__detail-cards {
    grid-template-columns: 1fr;
  }
  .page-index__feature-icon, .page-index__category-image, .page-index__promo-image, .page-index__detail-image {
    height: 180px;
  }
  .page-index__mobile-container {
    flex-direction: column-reverse;
    text-align: center;
  }
  .page-index__mobile-content {
    text-align: center;
  }
  .page-index__mobile-image {
    max-width: 80%;
  }
  .page-index__mobile-actions {
    display: flex;
    justify-content: center;
  }
  /* Mobile content area images must not overflow */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 2em;
  }
  .page-index__about-title, .page-index__games-title, .page-index__promo-title, .page-index__details-title, .page-index__mobile-title, .page-index__responsible-gaming-title, .page-index__cta-title {
    font-size: 1.5em;
  }
  .page-index__button {
    padding: 12px 20px;
    font-size: 0.9em;
  }
  .page-index__feature-heading, .page-index__category-heading, .page-index__promo-heading, .page-index__detail-heading {
    font-size: 1.5em;
  }
  .page-index__feature-description, .page-index__category-description, .page-index__promo-description, .page-index__detail-description {
    font-size: 0.9em;
  }
}