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

.page-index__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  padding-bottom: 60px;
  text-align: center;
  background-color: #000000; /* Main brand color for hero background */
  overflow: hidden;
}

.page-index__hero-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  color: #FFFFFF;
}

.page-index__hero-title {
  font-size: 3.5em;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FCBC45; /* Login button color for emphasis */
}

.page-index__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.5;
  color: #FFFFFF;
}

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

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

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

.page-index__button--register:hover {
  background-color: #FCBC45;
  color: #000000;
  transform: translateY(-2px);
}

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

.page-index__button--login:hover {
  background-color: #FFFFFF;
  color: #000000;
  transform: translateY(-2px);
}

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

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

.page-index__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
  color: #555555;
}

.page-index__features-section,
.page-index__games-section,
.page-index__promo-section,
.page-index__about-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

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

.page-index__feature-card,
.page-index__game-card,
.page-index__promo-card,
.page-index__about-card {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-index__feature-card:hover,
.page-index__game-card:hover,
.page-index__promo-card:hover,
.page-index__about-card:hover {
  transform: translateY(-5px);
}

.page-index__feature-icon,
.page-index__game-image,
.page-index__promo-image {
  width: 100%;
  height: auto;
  max-width: 400px; /* Example max-width for content images */
  min-width: 200px; /* Enforce min-width */
  min-height: 200px; /* Enforce min-height */
  object-fit: cover;
  margin: 0 auto 20px;
  border-radius: 8px;
}

.page-index__feature-title,
.page-index__game-title,
.page-index__promo-title,
.page-index__about-card-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #000000;
}

.page-index__feature-title a,
.page-index__game-title a,
.page-index__promo-title a,
.page-index__about-card-title a {
  color: #000000;
  text-decoration: none;
}

.page-index__feature-title a:hover,
.page-index__game-title a:hover,
.page-index__promo-title a:hover,
.page-index__about-card-title a:hover {
  color: #FCBC45;
  text-decoration: underline;
}

.page-index__feature-description,
.page-index__game-description,
.page-index__promo-description,
.page-index__about-card-description {
  font-size: 1em;
  line-height: 1.6;
  color: #666666;
  margin-bottom: 20px;
}

.page-index__button--view-details,
.page-index__button--claim-bonus,
.page-index__button--read-more {
  background-color: #FCBC45;
  color: #000000;
  padding: 10px 20px;
  font-size: 0.9em;
  border-radius: 5px;
  border: none;
}

.page-index__button--view-details:hover,
.page-index__button--claim-bonus:hover,
.page-index__button--read-more:hover {
  background-color: #e0a53b;
}

.page-index__promo-all {
  text-align: center;
  margin-top: 40px;
}

.page-index__button--view-all {
  background-color: #000000;
  color: #FFFFFF;
  padding: 12px 25px;
  font-size: 1em;
  border-radius: 8px;
  border: 2px solid #000000;
}

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

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

.page-index__cta-section {
  position: relative;
  margin: 60px auto;
  padding: 60px 20px;
  text-align: center;
  background-color: #000000; /* Main brand color */
  overflow: hidden;
}

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

.page-index__cta-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  color: #FFFFFF;
}

.page-index__cta-title {
  font-size: 3em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FCBC45;
  line-height: 1.2;
}

.page-index__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  line-height: 1.5;
  color: #FFFFFF;
}

.page-index__button--register-large {
  background-color: #FCBC45;
  color: #000000;
  padding: 18px 40px;
  font-size: 1.3em;
  border-radius: 10px;
  border: 2px solid #FCBC45;
}

.page-index__button--register-large:hover {
  background-color: #FFFFFF;
  color: #000000;
  border-color: #FFFFFF;
  transform: translateY(-3px);
}

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

@media (max-width: 768px) {
  .page-index__hero-section {
    padding-top: var(--header-offset, 120px); /* Mobile also needs header offset */
    padding-bottom: 40px;
  }
  .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: 80%;
    max-width: 300px;
    margin: 0 auto;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__section-intro {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-index__features-section,
  .page-index__games-section,
  .page-index__promo-section,
  .page-index__about-section {
    margin: 40px auto;
    padding: 0 15px;
  }
  .page-index__feature-card,
  .page-index__game-card,
  .page-index__promo-card,
  .page-index__about-card {
    padding: 20px;
  }
  .page-index__feature-icon,
  .page-index__game-image,
  .page-index__promo-image {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure min-width for mobile */
    min-height: 200px; /* Ensure min-height for mobile */
  }
  .page-index__feature-title,
  .page-index__game-title,
  .page-index__promo-title,
  .page-index__about-card-title {
    font-size: 1.5em;
  }
  .page-index__cta-section {
    padding: 40px 15px;
    margin: 40px auto;
  }
  .page-index__cta-title {
    font-size: 2em;
  }
  .page-index__cta-description {
    font-size: 1em;
  }
  .page-index__button--register-large {
    font-size: 1.1em;
    padding: 15px 30px;
  }

  /* IMPORTANT: Mobile content area images must be responsive */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 2em;
  }
  .page-index__section-title {
    font-size: 1.5em;
  }
  .page-index__cta-title {
    font-size: 1.8em;
  }
  .page-index__button--register-large {
    font-size: 1em;
    padding: 12px 25px;
  }
}