.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 clears fixed header */
}

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

.page-index__hero-image {
  width: 100%;
  height: auto;
  max-width: 1200px; /* Limit image width to prevent excessive size on very large screens */
  display: block;
  margin-top: 40px;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  object-fit: cover; /* Ensure image covers the area without distortion */
}

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

.page-index__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FCBC45; /* Login button color for emphasis */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

.page-index__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: 2px solid transparent;
}

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

.page-index__btn--register:hover {
  background-color: transparent;
  color: #FFFFFF;
  transform: translateY(-3px);
}

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

.page-index__btn--login:hover {
  background-color: transparent;
  color: #FCBC45;
  transform: translateY(-3px);
}

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

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

.page-index__why-choose-us, .page-index__gaming-world, .page-index__seamless-login, .page-index__promotions, .page-index__secure-gaming, .page-index__support, .page-index__join-us {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-index__feature-item, .page-index__step-item {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__feature-item:hover, .page-index__step-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-index__feature-icon, .page-index__step-image {
  width: 100%;
  height: auto;
  max-width: 300px;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

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

.page-index__feature-description, .page-index__step-description, .page-index__category-description, .page-index__promo-description {
  font-size: 1em;
  color: #666666;
}

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

.page-index__category-card {
  background-color: #000000;
  color: #FFFFFF;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-index__category-image {
  width: 100%;
  height: auto;
  max-width: 300px;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-index__category-title {
  color: #FCBC45;
}

.page-index__category-description {
  color: #EEEEEE;
  margin-bottom: 20px;
}

.page-index__btn--play, .page-index__btn--bet, .page-index__btn--live, .page-index__btn--spin, .page-index__btn--register-small, .page-index__btn--download, .page-index__btn--deposit, .page-index__btn--view-promo, .page-index__btn--support, .page-index__btn--final-cta {
  background-color: #FCBC45;
  color: #000000;
  border-color: #FCBC45;
  padding: 10px 20px;
  font-size: 0.95em;
}

.page-index__btn--play:hover, .page-index__btn--bet:hover, .page-index__btn--live:hover, .page-index__btn--spin:hover, .page-index__btn--register-small:hover, .page-index__btn--download:hover, .page-index__btn--deposit:hover, .page-index__btn--view-promo:hover, .page-index__btn--support:hover, .page-index__btn--final-cta:hover {
  background-color: transparent;
  color: #FCBC45;
}

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

.page-index__promotions .page-index__section-title {
  color: #FCBC45;
}

.page-index__promotions .page-index__section-intro {
  color: #DDDDDD;
}

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

.page-index__promo-image {
  width: 100%;
  height: auto;
  max-width: 600px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

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

.page-index__promo-title {
  font-size: 2em;
  color: #FFFFFF;
}

.page-index__promo-description {
  color: #DDDDDD;
  margin-bottom: 30px;
}

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

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

.page-index__support {
  text-align: center;
  background-color: #F8F8F8;
}

.page-index__support .page-index__section-title {
  color: #000000;
}

.page-index__support .page-index__section-intro {
  color: #555555;
}

.page-index__join-us {
  text-align: center;
  background-color: #000000;
  color: #FFFFFF;
}

.page-index__join-us .page-index__section-title {
  color: #FCBC45;
}

.page-index__join-us .page-index__section-intro {
  color: #DDDDDD;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-index__hero-section {
    padding: 40px 15px;
  }

  .page-index__hero-title {
    font-size: 2.5em;
  }

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

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

  .page-index__btn {
    width: 80%;
    max-width: 300px;
    padding: 12px 25px;
  }

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

  .page-index__section-intro {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-index__why-choose-us, .page-index__gaming-world, .page-index__seamless-login, .page-index__promotions, .page-index__secure-gaming, .page-index__support, .page-index__join-us {
    padding: 50px 15px;
  }

  .page-index__features-grid, .page-index__login-steps, .page-index__game-categories, .page-index__responsible-features {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-index__feature-icon, .page-index__step-image, .page-index__category-image, .page-index__promo-image {
    max-width: 100%;
    height: auto;
    object-fit: cover;
  }

  .page-index__feature-title, .page-index__step-title, .page-index__category-title, .page-index__promo-title {
    font-size: 1.5em;
  }

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

  .page-index__hero-image {
    max-width: 100%; /* Ensure mobile images don't overflow */
    height: auto;
  }

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