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

.page-index__hero-section {
  position: relative;
  overflow: hidden;
  color: #FFFFFF;
  text-align: center;
  padding: 0;
}

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

.page-index__hero-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  padding: 20px;
  box-sizing: border-box;
}

.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;
  max-width: 800px;
  margin-bottom: 30px;
  color: #FFFFFF;
}

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

.page-index__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, transform 0.2s ease;
  min-width: 200px;
  text-align: center;
}

.page-index__button--register {
  background-color: #FFFFFF; /* Register button color */
  color: #000000; /* Main color for text */
  border: 2px solid #FFFFFF;
}

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

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

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

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

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

.page-index__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FCBC45;
  border-radius: 2px;
}

.page-index__text-content {
  font-size: 1.1em;
  color: #333333;
  margin-bottom: 20px;
  text-align: justify;
}

.page-index__image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 30px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block; /* Ensure images are block level */
}

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

.page-index__game-card, .page-index__promo-card {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
  display: block;
}

.page-index__card-title {
  font-size: 1.5em;
  color: #000000;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-index__card-link {
  text-decoration: none;
  color: #000000;
}

.page-index__card-link:hover {
  color: #FCBC45;
}

.page-index__card-description {
  font-size: 0.95em;
  color: #555555;
  padding: 0 15px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index__button--play, .page-index__button--claim, .page-index__button--join, .page-index__button--download, .page-index__button--learn-more, .page-index__button--join-now {
  background-color: #FCBC45;
  color: #000000;
  border: none;
  margin: 0 auto; /* Center buttons in cards */
  display: block; /* Ensure it takes full width of its content */
  width: fit-content;
  padding: 12px 25px;
}

.page-index__button--play:hover, .page-index__button--claim:hover, .page-index__button--join:hover, .page-index__button--download:hover, .page-index__button--learn-more:hover, .page-index__button--join-now:hover {
  background-color: #e0a53b;
  transform: translateY(-2px);
}

.page-index__promotions-section {
  background-color: #f9f9f9;
  padding: 60px 0;
}

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

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

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

.page-index__cta-section .page-index__section-title::after {
  background-color: #FCBC45;
}

.page-index__cta-section .page-index__text-content {
  color: #f0f0f0;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.page-index__button--join-now {
  background-color: #FCBC45;
  color: #000000;
  font-size: 1.3em;
  padding: 18px 40px;
  border-radius: 50px;
}

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

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

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

@media (max-width: 992px) {
  .page-index__hero-title {
    font-size: 2.5em;
  }
  .page-index__hero-description {
    font-size: 1.1em;
  }
  .page-index__button {
    padding: 12px 25px;
    font-size: 1em;
    min-width: 160px;
  }
  .page-index__section-title {
    font-size: 2em;
  }
  .page-index__game-categories, .page-index__promo-cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-index__hero-content {
    background: rgba(0, 0, 0, 0.7);
  }
  .page-index__hero-title {
    font-size: 2em;
    line-height: 1.2;
  }
  .page-index__hero-description {
    font-size: 1em;
    padding: 0 10px;
  }
  .page-index__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__button {
    width: 80%;
    max-width: 300px;
    margin: 0 auto;
  }
  .page-index__container {
    padding: 20px 15px;
  }
  .page-index__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-index__text-content {
    font-size: 1em;
  }
  /* Mobile content area image protection */
  .page-index img {
    max-width: 100%;
    height: auto;
    object-fit: contain; /* Use contain to prevent cropping on small screens */
  }
  .page-index__card-image {
    height: 200px; /* Adjust card image height for mobile */
  }
  .page-index__button--join-now {
    font-size: 1.1em;
    padding: 15px 30px;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 1.7em;
  }
  .page-index__hero-description {
    font-size: 0.9em;
  }
  .page-index__button {
    width: 90%;
  }
  .page-index__section-title {
    font-size: 1.5em;
  }
  .page-index__game-categories, .page-index__promo-cards {
    grid-template-columns: 1fr;
  }
}