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

.page-index__hero-section {
  position: relative;
  overflow: hidden;
  color: #FFFFFF;
  padding-top: var(--header-offset, 120px); /* Ensure content clears fixed header */
}

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

.page-index__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px; /* Ensure hero section has a minimum height */
  text-align: center;
  background-color: rgba(0, 0, 0, 0.5); /* Overlay for readability */
  border-radius: 10px;
}

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

.page-index__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  color: #FFFFFF;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

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

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

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

.page-index__btn--secondary {
  background-color: transparent;
  color: #FFFFFF; /* Register color for secondary action */
  border: 2px solid #FFFFFF;
}

.page-index__btn--secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-index__btn--tertiary {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
}

.page-index__btn--tertiary:hover {
  background-color: #333333;
  border-color: #333333;
}

.page-index__btn--small {
  padding: 10px 20px;
  font-size: 0.9em;
  background-color: #FCBC45;
  color: #000000;
  border: none;
}

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

.page-index__btn--center {
  display: block;
  margin: 40px auto 0 auto;
  width: fit-content;
}

.page-index__section-padding {
  padding: 80px 20px;
}

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

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

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

.page-index__bg--light {
  background-color: #f8f8f8;
}

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

.page-index__game-card, .page-index__promo-card, .page-index__feature-item {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index__game-card-image, .page-index__promo-card-image, .page-index__feature-icon {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
}

.page-index__feature-icon {
  width: 200px; /* Specific width for icons */
  height: 150px;
  object-fit: contain; /* Ensure icons are fully visible */
  margin: 20px auto;
}

.page-index__game-card-title, .page-index__promo-card-title, .page-index__feature-title {
  font-size: 1.5em;
  color: #000000;
  margin-bottom: 10px;
  padding: 0 15px;
}

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

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

.page-index__game-card-description, .page-index__promo-card-description, .page-index__feature-description {
  font-size: 1em;
  line-height: 1.5;
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 15px;
}

.page-index__download-app-container {
  display: flex;
  align-items: center;
  gap: 50px;
  background-color: #000000;
  color: #FFFFFF;
  padding: 60px;
  border-radius: 10px;
}

.page-index__download-app-content {
  flex: 1;
}

.page-index__download-app-content .page-index__section-title, .page-index__download-app-content .page-index__section-text {
  text-align: left;
  color: #FFFFFF;
}

.page-index__download-app-image {
  flex-shrink: 0;
  width: 400px;
  height: 300px;
  object-fit: contain;
  border-radius: 8px;
}

.page-index__cta-section {
  background-color: #FCBC45;
  color: #000000;
}

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

.page-index__cta-section .page-index__section-text {
  color: #333333;
}

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

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

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

  .page-index__download-app-container {
    flex-direction: column;
    text-align: center;
    padding: 40px;
  }

  .page-index__download-app-content .page-index__section-title, .page-index__download-app-content .page-index__section-text {
    text-align: center;
  }

  .page-index__download-app-image {
    width: 80%;
    height: auto;
  }
}

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

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

  .page-index__hero-container {
    min-height: 450px;
    padding: 60px 15px;
  }

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

  .page-index__btn {
    width: 100%;
  }

  .page-index__section-padding {
    padding: 60px 15px;
  }

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

  .page-index__section-text {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-index__game-grid, .page-index__promo-grid, .page-index__features-grid {
    grid-template-columns: 1fr;
  }

  .page-index__game-card-image, .page-index__promo-card-image, .page-index__feature-icon {
    height: 180px;
  }

  .page-index__feature-icon {
    width: 150px;
    height: 120px;
  }

  .page-index__game-card-title, .page-index__promo-card-title, .page-index__feature-title {
    font-size: 1.3em;
  }

  .page-index__download-app-container {
    padding: 30px;
  }

  .page-index__download-app-image {
    max-width: 100%;
    height: auto;
  }

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

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

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

  .page-index__hero-container {
    min-height: 350px;
    padding: 40px 10px;
  }

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

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

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

  .page-index__download-app-container {
    padding: 20px;
  }
}