.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 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background-color: #000000; /* Main dark background */
  color: #FFFFFF; /* Light text for dark background */
  text-align: center;
  gap: 30px;
}

.page-index__hero-content {
  max-width: 800px;
  margin-bottom: 30px;
}

.page-index__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FCBC45; /* Highlight with login color */
}

.page-index__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
}

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

.page-index__cta-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, color 0.3s ease;
  min-width: 160px;
  text-align: center;
}

.page-index__cta-button--register {
  background-color: #FFFFFF; /* White background */
  color: #000000; /* Dark text */
  border: 2px solid #FFFFFF;
}

.page-index__cta-button--register:hover {
  background-color: #FCBC45;
  border-color: #FCBC45;
  color: #000000;
}

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

.page-index__cta-button--login:hover {
  background-color: #FFFFFF;
  border-color: #FFFFFF;
  color: #000000;
}

.page-index__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.page-index__about-section,
.page-index__games-section,
.page-index__promo-section,
.page-index__download-section,
.page-index__support-section,
.page-index__resources-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
  text-align: center;
}

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

.page-index__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

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

.page-index__about-item {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-index__about-item:hover {
  transform: translateY(-5px);
}

.page-index__about-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-index__about-item-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #000000;
}

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

.page-index__cta-button--learn-more {
  margin-top: 40px;
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
}

.page-index__cta-button--learn-more:hover {
  background-color: #FCBC45;
  border-color: #FCBC45;
  color: #000000;
}

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

.page-index__game-card {
  background-color: #000000;
  color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-index__game-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-index__game-card-title {
  font-size: 1.6em;
  margin: 20px 20px 10px 20px;
  color: #FCBC45;
}

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

.page-index__game-card-title a:hover {
  text-decoration: underline;
}

.page-index__game-card-description {
  font-size: 0.95em;
  padding: 0 20px 20px 20px;
  color: #CCCCCC;
  flex-grow: 1;
}

.page-index__game-card-button {
  display: inline-block;
  background-color: #FCBC45;
  color: #000000;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  margin: 0 20px 20px 20px;
  transition: background-color 0.3s ease;
}

.page-index__game-card-button:hover {
  background-color: #FFFFFF;
  color: #000000;
}

.page-index__promo-section {
  background-color: #F8F8F8;
}

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

.page-index__promo-item {
  background-color: #FFFFFF;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

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

.page-index__promo-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-index__promo-item-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #000000;
}

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

.page-index__promo-item-title a:hover {
  text-decoration: underline;
}

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

.page-index__cta-button--view-all-promos {
  margin-top: 40px;
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-index__cta-button--view-all-promos:hover {
  background-color: #000000;
  color: #FFFFFF;
  border-color: #000000;
}

.page-index__download-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  background-color: #000000;
  color: #FFFFFF;
  padding: 80px 20px;
}

.page-index__download-content {
  max-width: 700px;
  text-align: center;
}

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

.page-index__download-section .page-index__section-description {
  color: #CCCCCC;
}

.page-index__cta-button--download-app {
  background-color: #FFFFFF;
  color: #000000;
  border: 2px solid #FFFFFF;
  margin-top: 30px;
}

.page-index__cta-button--download-app:hover {
  background-color: #FCBC45;
  border-color: #FCBC45;
  color: #000000;
}

.page-index__download-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

.page-index__support-contact {
  margin-top: 40px;
}

.page-index__support-contact p {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #555555;
}

.page-index__cta-button--contact-us {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
}

.page-index__cta-button--contact-us:hover {
  background-color: #FCBC45;
  border-color: #FCBC45;
  color: #000000;
}

.page-index__resources-section {
  background-color: #F8F8F8;
}

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

.page-index__resource-item {
  background-color: #FFFFFF;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: left;
  transition: transform 0.3s ease;
}

.page-index__resource-item:hover {
  transform: translateY(-3px);
}

.page-index__resource-item-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  color: #000000;
}

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

.page-index__resource-item-title a:hover {
  text-decoration: underline;
}

.page-index__resource-item-description {
  font-size: 0.95em;
  color: #666666;
}

.page-index__cta-button--view-all-resources {
  margin-top: 40px;
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
}

.page-index__cta-button--view-all-resources:hover {
  background-color: #FCBC45;
  border-color: #FCBC45;
  color: #000000;
}

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

@media (max-width: 768px) {
  .page-index__hero-section {
    flex-direction: column;
    padding: 40px 15px;
  }
  .page-index__hero-content {
    margin-bottom: 20px;
  }
  .page-index__hero-title {
    font-size: 1.8em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__cta-button {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
  }
  .page-index__about-section,
  .page-index__games-section,
  .page-index__promo-section,
  .page-index__download-section,
  .page-index__support-section,
  .page-index__resources-section {
    padding: 50px 15px;
  }
  .page-index__section-title {
    font-size: 1.6em;
  }
  .page-index__about-grid,
  .page-index__game-cards,
  .page-index__promo-grid,
  .page-index__resource-grid {
    grid-template-columns: 1fr;
  }
  /* Ensure all content images are responsive and do not overflow */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
  .page-index__hero-image,
  .page-index__about-image,
  .page-index__game-card-image,
  .page-index__promo-image,
  .page-index__download-image {
    min-width: 200px; /* Enforce min-size even on mobile */
    min-height: 200px;
  }
  .page-index__download-section {
    flex-direction: column;
  }
}