.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 {
  position: relative;
  overflow: hidden;
  color: #FFFFFF;
  padding: 80px 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px; /* Ensure hero section has a minimum height */
}

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

.page-index__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  background: rgba(0, 0, 0, 0.7); /* Semi-transparent black overlay for text readability */
  padding: 40px;
  border-radius: 10px;
}

.page-index__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #F0F0F0;
}

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

.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.3s ease;
  border: none;
  cursor: pointer;
}

.page-index__btn--register {
  background-color: #FCBC45; /* Login color for Register as per custom palette */
  color: #000000; /* Dark text for light button */
}

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

.page-index__btn--login {
  background-color: #000000; /* Main color */
  color: #FCBC45; /* Login color for text for contrast */
  border: 2px solid #FCBC45;
}

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

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

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

.page-index__features-grid, .page-index__promo-grid, .page-index__game-types-grid, .page-index__details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 80px;
}

.page-index__feature-card, .page-index__promo-card, .page-index__game-type-card, .page-index__detail-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index__feature-card:hover, .page-index__promo-card:hover, .page-index__game-type-card:hover, .page-index__detail-card:hover {
  transform: translateY(-10px);
}

.page-index__feature-icon, .page-index__promo-image, .page-index__game-type-image {
  width: 100%;
  height: 200px; /* Enforce minimum height for content images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index__feature-title, .page-index__promo-title, .page-index__game-type-title, .page-index__detail-title {
  font-size: 1.6em;
  color: #000000;
  margin-bottom: 15px;
}

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

.page-index__feature-title a:hover, .page-index__promo-title a:hover, .page-index__game-type-title a:hover, .page-index__detail-title a:hover {
  color: #FCBC45;
}

.page-index__feature-text, .page-index__promo-text, .page-index__game-type-description, .page-index__detail-description {
  font-size: 1em;
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index__feature-link, .page-index__btn--promo, .page-index__btn--details {
  display: inline-block;
  padding: 10px 20px;
  background-color: #000000;
  color: #FFFFFF;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-index__feature-link:hover, .page-index__btn--promo:hover, .page-index__btn--details:hover {
  background-color: #FCBC45;
  color: #000000;
}

.page-index__app-download-section {
  background-color: #F0F0F0;
  padding: 80px 0;
}

.page-index__app-download-section .page-index__container {
  display: flex;
  align-items: center;
  gap: 50px;
}

.page-index__app-content {
  flex: 1;
  text-align: left;
}

.page-index__app-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce minimum width for app image */
  min-height: 200px; /* Enforce minimum height for app image */
}

.page-index__btn--download {
  background-color: #FCBC45;
  color: #000000;
  padding: 15px 30px;
  font-size: 1.1em;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

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

.page-index__about-section {
  padding: 80px 0;
  text-align: center;
}

.page-index__btn--learn-more {
  background-color: #000000;
  color: #FFFFFF;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-top: 30px;
}

.page-index__btn--learn-more:hover {
  background-color: #FCBC45;
  color: #000000;
}

.page-index__details-section {
  background-color: #F8F8F8;
  padding: 80px 0;
}

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

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

.page-index__cta-section .page-index__section-description {
  color: #F0F0F0;
}

.page-index__btn--cta {
  background-color: #FCBC45;
  color: #000000;
  padding: 18px 40px;
  font-size: 1.2em;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin-top: 40px;
}

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

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

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

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

  .page-index__btn {
    width: 80%;
    margin: 0 auto;
  }

  .page-index__section-title {
    font-size: 2em;
    padding-top: 40px;
  }

  .page-index__section-description {
    margin-bottom: 40px;
  }

  .page-index__features-grid, .page-index__promo-grid, .page-index__game-types-grid, .page-index__details-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
  }

  .page-index__app-download-section .page-index__container {
    flex-direction: column;
    text-align: center;
  }

  .page-index__app-content {
    text-align: center;
  }

  .page-index__app-image {
    max-width: 80%;
    min-width: 200px; /* Ensure mobile app image is not too small */
    min-height: 200px;
  }

  .page-index__btn--download {
    width: 80%;
    margin: 20px auto 0 auto;
  }

  /* Ensure all images in content area are responsive and not overflowing */
  .page-index img {
    max-width: 100%;
    height: auto;
  }

  .page-index__feature-icon, .page-index__promo-image, .page-index__game-type-image {
    height: auto; /* Allow height to adjust naturally */
    min-height: 200px; /* Maintain minimum size */
  }
}