.page-index {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background-color: #FFFFFF; /* Matches body background */
  color: #333333; /* Dark text for light background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-index__section-title {
  font-size: 2.8em;
  color: #000000; /* Main brand color for titles */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

.page-index__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FCBC45; /* Login button color for accent */
  border-radius: 2px;
}

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

.page-index__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-align: center;
  cursor: pointer;
  min-width: 150px; /* Ensure buttons are not too small */
}

.page-index__button--register {
  background-color: #000000; /* Main color */
  color: #FFFFFF; /* Register text color */
  border: 2px solid #000000;
}

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

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

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

.page-index__button--play, .page-index__button--claim, .page-index__button--view-all, .page-index__button--support, .page-index__button--download-app {
  background-color: #FCBC45;
  color: #000000;
  border: none;
  padding: 10px 20px;
  font-size: 0.95em;
}

.page-index__button--play:hover, .page-index__button--claim:hover, .page-index__button--view-all:hover, .page-index__button--support:hover, .page-index__button--download-app:hover {
  background-color: #e0a53b;
  transform: translateY(-1px);
}

.page-index__button--large {
  padding: 15px 35px;
  font-size: 1.2em;
}

/* Hero Section */
.page-index__hero-section {
  position: relative;
  overflow: hidden;
  color: #FFFFFF; /* Light text for hero content */
  padding: 0;
}

.page-index__hero-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px; /* Minimum height for hero */
}

.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: 2;
  text-align: center;
  max-width: 900px;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent dark overlay for readability */
  border-radius: 10px;
}

.page-index__hero-title {
  font-size: 3.8em;
  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: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

/* About Section */
.page-index__about-section {
  padding: 80px 0;
  background-color: #f8f8f8;
}

.page-index__about-content p {
  margin-bottom: 20px;
  font-size: 1.1em;
  color: #444444;
}

/* Games Section */
.page-index__games-section {
  padding: 80px 0;
}

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

.page-index__game-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;
  transition: transform 0.3s ease;
}

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

.page-index__game-card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}

.page-index__game-card-title {
  font-size: 1.8em;
  color: #000000;
  margin-bottom: 15px;
  padding: 0 15px;
}

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

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

.page-index__game-card-description {
  font-size: 0.95em;
  color: #666666;
  padding: 0 20px;
  margin-bottom: 25px;
}

.page-index__view-all-games {
  text-align: center;
  margin-top: 50px;
}

/* Promotions Section */
.page-index__promotions-section {
  padding: 80px 0;
  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-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;
  transition: transform 0.3s ease;
}

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

.page-index__promo-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}

.page-index__promo-card-title {
  font-size: 1.6em;
  color: #000000;
  margin-bottom: 15px;
  padding: 0 15px;
}

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

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

.page-index__promo-card-description {
  font-size: 0.95em;
  color: #666666;
  padding: 0 20px;
  margin-bottom: 25px;
}

.page-index__view-all-promos {
  text-align: center;
  margin-top: 50px;
}

/* Why Choose Section */
.page-index__why-choose-section {
  padding: 80px 0;
}

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

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

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

.page-index__why-choose-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

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

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

/* Testimonials Section */
.page-index__testimonials-section {
  padding: 80px 0;
  background-color: #f8f8f8;
}

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

.page-index__testimonial-card {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.page-index__testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
  color: #555555;
  font-size: 1.05em;
}

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

/* CTA Section */
.page-index__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #000000; /* Dark background for strong contrast */
  color: #FFFFFF;
}

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

.page-index__cta-section .page-index__section-title::after {
  background-color: #FCBC45;
}

.page-index__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

/* FAQ Section */
.page-index__faq-section {
  padding: 80px 0;
}

.page-index__faq-item {
  background-color: #FFFFFF;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

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

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

.page-index__faq-answer a {
  color: #000000;
  text-decoration: underline;
}

.page-index__faq-answer a:hover {
  color: #FCBC45;
}

.page-index__button--download-app {
  margin-top: 20px;
}

/* Contact Section */
.page-index__contact-section {
  padding: 80px 0;
  text-align: center;
  background-color: #f8f8f8;
}

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

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

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

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

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

@media (max-width: 768px) {
  .page-index__hero-container {
    min-height: 500px;
  }

  .page-index__hero-content {
    padding: 30px 15px;
  }

  .page-index__hero-title {
    font-size: 2.5em;
  }

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

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

  .page-index__button {
    width: 100%;
    max-width: 250px;
  }

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

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

  .page-index__game-grid, .page-index__promo-grid, .page-index__why-choose-grid, .page-index__testimonial-grid {
    grid-template-columns: 1fr;
  }

  .page-index__game-card-image, .page-index__promo-card-image {
    height: 200px;
  }

  .page-index__why-choose-icon {
    width: 80px;
    height: 80px;
  }

  .page-index__faq-question {
    font-size: 1.2em;
  }

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

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

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

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