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

.page-index__hero-section {
  background-color: #000000; /* Main background color for hero */
  color: #ffffff; /* Light text for dark background */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  padding-bottom: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.page-index__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-index__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

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

.page-index__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  line-height: 1.6;
}

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

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

.page-index__button--register {
  background-color: #FCBC45; /* Login button color */
  color: #000000;
}

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

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

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

.page-index__section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}

.page-index__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #000000;
}

.page-index__section-description {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index__feature-card {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.page-index__feature-image {
  width: 100%; /* Ensures image fits card width */
  height: auto;
  max-width: 400px; /* Recommended minimum 200px, so 400px is safe */
  margin-bottom: 20px;
  border-radius: 8px;
}

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

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

.page-index__games-section {
  background-color: #f0f0f0;
}

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

.page-index__game-card {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index__game-card-image {
  width: 100%;
  height: auto;
  max-width: 600px; /* Recommended minimum 200px, so 600px is safe */
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-index__game-card-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #000000;
}

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

.page-index__game-card-title a:hover {
  color: #FCBC45;
}

.page-index__game-card-description {
  font-size: 0.95em;
  line-height: 1.6;
  color: #666666;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-index__button--play-now, .page-index__button--bet-now, .page-index__button--spin-now, .page-index__button--join-table {
  background-color: #FCBC45;
  color: #000000;
  width: 100%;
}

.page-index__button--play-now:hover, .page-index__button--bet-now:hover, .page-index__button--spin-now:hover, .page-index__button--join-table:hover {
  background-color: #e0a53b;
}

.page-index__promotions-section {
  background-color: #ffffff;
}

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

.page-index__promo-card {
  background-color: #f8f8f8;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index__promo-image {
  width: 100%;
  height: auto;
  max-width: 600px; /* Recommended minimum 200px, so 600px is safe */
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-index__promo-title {
  font-size: 1.6em;
  margin-bottom: 10px;
  color: #000000;
}

.page-index__promo-title a {
  color: #000000;
  text-decoration: none;
}

.page-index__promo-title a:hover {
  color: #FCBC45;
}

.page-index__promo-description {
  font-size: 0.95em;
  line-height: 1.6;
  color: #666666;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-index__button--claim {
  background-color: #FCBC45;
  color: #000000;
  width: 100%;
}

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

.page-index__full-promos-cta {
  margin-top: 40px;
}

.page-index__button--view-all {
  background-color: #000000;
  color: #ffffff;
}

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

.page-index__mobile-app-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  background-color: #000000;
  color: #ffffff;
  text-align: left;
  padding: 60px 20px;
}

.page-index__mobile-app-content {
  max-width: 600px;
}

.page-index__mobile-app-section .page-index__section-title {
  color: #FCBC45;
  text-align: center;
}

.page-index__mobile-app-section .page-index__section-description {
  color: #f0f0f0;
  text-align: center;
}

.page-index__button--download {
  background-color: #FCBC45;
  color: #000000;
  margin-top: 20px;
}

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

.page-index__mobile-app-image-wrapper {
  max-width: 400px;
  width: 100%;
}

.page-index__mobile-app-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

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

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

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

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

.page-index__blog-section {
  background-color: #f8f8f8;
}

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

.page-index__blog-post-card {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index__blog-image {
  width: 100%;
  height: auto;
  max-width: 600px; /* Recommended minimum 200px, so 600px is safe */
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-index__blog-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #000000;
  line-height: 1.4;
}

.page-index__blog-title a {
  color: #000000;
  text-decoration: none;
}

.page-index__blog-title a:hover {
  color: #FCBC45;
}

.page-index__blog-excerpt {
  font-size: 0.9em;
  line-height: 1.6;
  color: #666666;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-index__button--read-more {
  background-color: #000000;
  color: #ffffff;
  width: 100%;
}

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

.page-index__full-blog-cta {
  margin-top: 40px;
}

/* Media Queries for Responsiveness */
@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 {
    max-width: 100%;
    overflow-x: hidden;
  }

  .page-index__hero-section {
    padding-top: var(--header-offset, 120px);
    padding-bottom: 60px;
  }

  .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__section {
    padding: 40px 15px;
  }

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

  .page-index__about-features, .page-index__game-categories, .page-index__promo-grid, .page-index__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-index__mobile-app-section {
    flex-direction: column;
    padding: 40px 15px;
  }

  .page-index__mobile-app-content {
    text-align: center;
  }

  .page-index__mobile-app-section .page-index__section-description {
    text-align: center;
  }

  .page-index__cta-section {
    padding: 60px 15px;
  }

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

  .page-index__cta-description {
    font-size: 1em;
  }

  /* Enforce image responsiveness for mobile to prevent overflow */
  .page-index img {
    max-width: 100%;
    height: auto;
  }

  .page-index__feature-image, .page-index__game-card-image, .page-index__promo-image, .page-index__blog-image {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 2em;
  }

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

  .page-index__cta-title {
    font-size: 1.8em;
  }

  .page-index__button {
    padding: 12px 20px;
    font-size: 1em;
  }
}