.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__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-index__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 20px;
  background-color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.page-index__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.page-index__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-index__hero-content {
  position: relative;
  z-index: 1;
  color: #FFFFFF; /* Light text for dark hero background */
  max-width: 900px;
}

.page-index__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  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: 40px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

.page-index__btn {
  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;
  border: none;
  cursor: pointer;
}

.page-index__btn--register {
  background-color: #FFFFFF; /* Custom color for Register */
  color: #000000;
}

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

.page-index__btn--login {
  background-color: #FCBC45; /* Custom color for Login */
  color: #000000;
}

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

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

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

.page-index__about-section,
.page-index__games-section,
.page-index__promo-section,
.page-index__app-section,
.page-index__responsible-gaming-section,
.page-index__cta-section {
  padding: 80px 0;
  background-color: #f9f9f9;
  margin-bottom: 20px;
}

.page-index__about-section {
  background-color: #FFFFFF;
}

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

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

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

.page-index__feature-icon {
  width: 250px; /* Minimum 200px */
  height: 187px; /* Maintain aspect ratio for 400x300 */
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

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

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

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

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

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

.page-index__game-image {
  width: 100%;
  height: 200px; /* Adjusted height to be at least 200px */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-index__game-title {
  font-size: 1.8em;
  margin-bottom: 10px;
}

.page-index__game-title a {
  color: #000000;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-index__game-description {
  font-size: 1em;
  color: #666666;
  margin-bottom: 20px;
}

.page-index__btn--play,
.page-index__btn--claim,
.page-index__btn--learn {
  background-color: #000000;
  color: #FFFFFF;
  padding: 12px 25px;
  font-size: 0.95em;
}

.page-index__btn--play:hover,
.page-index__btn--claim:hover,
.page-index__btn--learn:hover {
  background-color: #333333;
}

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

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

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

.page-index__promo-image {
  width: 100%;
  height: 250px; /* Adjusted height to be at least 200px */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-index__promo-title {
  font-size: 1.8em;
  margin-bottom: 10px;
}

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

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

.page-index__promo-description {
  font-size: 1em;
  color: #666666;
  margin-bottom: 20px;
}

.page-index__app-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  text-align: center;
}

.page-index__app-content {
  max-width: 700px;
}

.page-index__app-image-wrapper {
  max-width: 400px;
}

.page-index__app-image {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

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

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

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

.page-index__cta-section .page-index__section-title,
.page-index__cta-section .page-index__section-intro {
  color: #FFFFFF;
}

.page-index__btn--register-cta {
  background-color: #FCBC45;
  color: #000000;
  margin-top: 40px;
  padding: 18px 40px;
  font-size: 1.2em;
}

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

/* Responsive adjustments */
@media (min-width: 769px) {
  .page-index__hero-section {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding: 120px 20px;
  }

  .page-index__hero-content {
    text-align: left;
    flex: 1;
    padding-right: 40px;
  }

  .page-index__hero-buttons {
    justify-content: flex-start;
  }

  .page-index__hero-image-wrapper {
    position: relative;
    flex: 1;
    height: auto;
    min-height: 400px;
  }

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

  .page-index__app-section {
    flex-direction: row;
    text-align: left;
    justify-content: center;
    align-items: center;
  }

  .page-index__app-content {
    text-align: left;
    padding-right: 50px;
  }
}

@media (max-width: 768px) {
  .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: 100%;
    max-width: 250px;
  }

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

  .page-index__section-intro {
    font-size: 1em;
  }

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

  .page-index__feature-icon,
  .page-index__game-image,
  .page-index__promo-image {
    min-height: 200px; /* Ensure minimum height for content images */
  }

  .page-index__app-section {
    flex-direction: column;
  }

  .page-index__app-content {
    padding-right: 0;
  }

  .page-index__app-image-wrapper {
    margin-top: 30px;
  }
}

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

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

  .page-index__hero-section,
  .page-index__about-section,
  .page-index__games-section,
  .page-index__promo-section,
  .page-index__app-section,
  .page-index__responsible-gaming-section,
  .page-index__cta-section {
    padding: 50px 0;
  }

  .page-index__container {
    padding: 0 15px;
  }

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

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

  .page-index__section-intro {
    font-size: 0.9em;
  }
}