.page-index {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  color: #000000; /* Dark text for a presumed light body background from shared.css */
  background-color: #FFFFFF;
  font-family: Arial, sans-serif;
}

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

.page-index__hero-section {
  position: relative;
  text-align: center;
  padding: 80px 0;
  overflow: hidden;
}

.page-index__hero-image {
  width: 100%;
  height: auto;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  filter: brightness(0.6); /* Slightly dim the background image for text readability */
}

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

.page-index__hero-content {
  color: #FFFFFF;
}

.page-index__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FCBC45; /* Login color for emphasis */
}

.page-index__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  line-height: 1.6;
}

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

.page-index__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, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-index__button--register {
  background-color: #FFFFFF;
  color: #000000;
}

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

.page-index__button--login {
  background-color: #FCBC45;
  color: #000000;
}

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

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

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

.page-index__about-section,
.page-index__games-section,
.page-index__promo-section,
.page-index__download-section,
.page-index__testimonials-section,
.page-index__faq-section,
.page-index__cta-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

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

.page-index__about-content {
  font-size: 1.05em;
  line-height: 1.8;
  margin-bottom: 25px;
  color: #333333;
  text-align: justify;
}

.page-index__about-actions {
  text-align: center;
  margin-top: 40px;
}

.page-index__button--join {
  background-color: #000000;
  color: #FFFFFF;
}

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

.page-index__game-grid,
.page-index__promo-grid,
.page-index__testimonial-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__testimonial-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 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-image,
.page-index__promo-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
}

.page-index__game-title,
.page-index__promo-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  padding: 0 15px;
}

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

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

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

.page-index__game-button,
.page-index__promo-button {
  background-color: #000000;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  transition: background-color 0.3s ease;
  margin-top: auto; /* Push button to bottom */
}

.page-index__game-button:hover,
.page-index__promo-button:hover {
  background-color: #333333;
}

.page-index__games-actions,
.page-index__promo-actions,
.page-index__faq-actions {
  text-align: center;
  margin-top: 50px;
}

.page-index__button--more-games,
.page-index__button--all-promos,
.page-index__button--view-all-faq {
  background-color: #FCBC45;
  color: #000000;
}

.page-index__button--more-games:hover,
.page-index__button--all-promos:hover,
.page-index__button--view-all-faq:hover {
  background-color: #e6a73a;
}

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

.page-index__download-flex {
  display: flex;
  align-items: center;
  gap: 50px;
}

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

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

.page-index__download-section .page-index__section-intro,
.page-index__download-text {
  color: #f0f0f0;
}

.page-index__download-text {
  line-height: 1.7;
  margin-bottom: 30px;
}

.page-index__download-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.page-index__button--download-ios,
.page-index__button--download-android {
  background-color: #FFFFFF;
  color: #000000;
}

.page-index__button--download-ios:hover,
.page-index__button--download-android:hover {
  background-color: #e0e0e0;
}

.page-index__download-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-index__download-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.page-index__testimonial-card {
  padding: 30px;
  background-color: #f9f9f9;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-left: 5px solid #FCBC45;
  text-align: left;
}

.page-index__testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.7;
  color: #333333;
}

.page-index__testimonial-author {
  font-weight: bold;
  color: #000000;
}

.page-index__faq-list {
  margin-top: 40px;
}

.page-index__faq-item {
  background-color: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 15px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-index__faq-question {
  font-size: 1.3em;
  color: #000000;
  margin-bottom: 10px;
}

.page-index__faq-answer {
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
}

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

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

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

.page-index__button--final-cta {
  background-color: #000000;
  color: #FFFFFF;
  padding: 18px 40px;
  font-size: 1.3em;
  border-radius: 10px;
}

.page-index__button--final-cta:hover {
  background-color: #333333;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3em;
  }
  .page-index__hero-description {
    font-size: 1.2em;
  }
  .page-index__section-title {
    font-size: 2em;
  }
  .page-index__section-intro {
    font-size: 1em;
  }
  .page-index__download-flex {
    flex-direction: column;
  }
  .page-index__download-image-wrapper {
    margin-top: 40px;
  }
  .page-index__hero-container {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .page-index { /* Ensure content area does not overflow */
    max-width: 100%;
    overflow-x: hidden;
  }
  .page-index__hero-section {
    padding: 60px 0;
  }
  .page-index__hero-title {
    font-size: 2.5em;
  }
  .page-index__hero-description {
    font-size: 1.1em;
  }
  .page-index__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__button {
    width: 80%;
    margin: 0 auto;
  }
  .page-index__container {
    padding: 0 15px;
  }
  .page-index__about-section,
  .page-index__games-section,
  .page-index__promo-section,
  .page-index__download-section,
  .page-index__testimonials-section,
  .page-index__faq-section,
  .page-index__cta-section {
    padding: 60px 0;
  }
  .page-index__game-grid,
  .page-index__promo-grid,
  .page-index__testimonial-grid {
    grid-template-columns: 1fr;
  }
  .page-index__game-image, .page-index__promo-image, .page-index__download-image, .page-index__about-section img, .page-index__games-section img, .page-index__promo-section img, .page-index__download-section img, .page-index__testimonials-section img, .page-index__faq-section img, .page-index__cta-section img {
    max-width: 100%;
    height: auto;
  }
  .page-index__download-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__download-buttons .page-index__button {
    width: 100%;
  }
  .page-index__hero-container {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 2em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__section-intro {
    font-size: 0.95em;
  }
  .page-index__game-title,
  .page-index__promo-title {
    font-size: 1.3em;
  }
  .page-index__faq-question {
    font-size: 1.1em;
  }
  .page-index__button--final-cta {
    padding: 15px 30px;
    font-size: 1.1em;
  }
}