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

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

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

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

/* Hero Section */
.page-index__hero-section {
  background-color: #000000; /* Dark background for hero */
  color: #FFFFFF;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-index__hero-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

.page-index__hero-title {
  font-size: 3.5em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFFFFF;
  line-height: 1.2;
}

.page-index__hero-description {
  font-size: 1.4em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #F0F0F0;
}

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

.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, color 0.3s ease;
  white-space: nowrap; /* Prevent button text from wrapping */
}

.page-index__button--primary {
  background-color: #FCBC45; /* Login button color */
  color: #000000;
  border: 2px solid #FCBC45;
}

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

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

.page-index__button--secondary:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
}

.page-index__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
  border-radius: 5px;
  background-color: #000000;
  color: #FFFFFF;
  border: 1px solid #FFFFFF;
}

.page-index__button--small:hover {
  background-color: #333333;
  border-color: #333333;
}

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

/* Features Section */
.page-index__features-section {
  padding: 60px 0;
  background-color: #F8F8F8;
}

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

.page-index__feature-card {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-index__feature-icon {
  width: 100%; /* Ensure images are not too small */
  height: auto;
  max-width: 250px; /* Example max-width to keep them reasonable */
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-index__feature-title {
  font-size: 1.8em;
  color: #000000;
  margin-bottom: 15px;
}

.page-index__feature-text {
  font-size: 1em;
  color: #666666;
}

/* Download Guide Section */
.page-index__download-guide-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

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

.page-index__step-card {
  background-color: #F0F0F0;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
  text-align: center;
}

.page-index__step-title {
  font-size: 1.5em;
  color: #000000;
  margin-bottom: 10px;
}

.page-index__step-text {
  font-size: 0.95em;
  color: #555555;
}

.page-index__download-guide-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto 0 auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Games Section */
.page-index__games-section {
  padding: 60px 0;
  background-color: #000000;
  color: #FFFFFF;
}

.page-index__games-section .page-index__section-title,
.page-index__games-section .page-index__section-description {
  color: #FFFFFF;
}

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

.page-index__game-card {
  background-color: #1a1a1a;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-index__game-title {
  font-size: 1.8em;
  color: #FCBC45;
  margin-bottom: 10px;
}

.page-index__game-text {
  font-size: 1em;
  color: #CCCCCC;
  margin-bottom: 20px;
}

/* Promotions Section */
.page-index__promotions-section {
  padding: 60px 0;
  background-color: #F8F8F8;
}

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

.page-index__promo-card {
  background-color: #FFFFFF;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-index__promo-title {
  font-size: 1.8em;
  color: #000000;
  margin-bottom: 10px;
}

.page-index__promo-text {
  font-size: 1em;
  color: #666666;
  margin-bottom: 20px;
}

/* FAQ Section */
.page-index__faq-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

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

.page-index__faq-item {
  background-color: #F0F0F0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
}

.page-index__faq-question {
  font-size: 1.4em;
  color: #000000;
  margin-bottom: 10px;
  cursor: pointer;
  position: relative;
  padding-right: 30px;
}

.page-index__faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.2em;
}

.page-index__faq-question.active::after {
  content: '-';
}

.page-index__faq-answer {
  font-size: 1em;
  color: #555555;
  display: none;
  margin-top: 10px;
}

.page-index__faq-answer.active {
  display: block;
}

/* Final Call to Action Section */
.page-index__cta-final-section {
  background-color: #000000;
  color: #FFFFFF;
  padding: 80px 20px;
  text-align: center;
}

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

.page-index__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

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

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

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

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

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

  .page-index__features-grid,
  .page-index__guide-steps,
  .page-index__games-grid,
  .page-index__promotions-grid {
    grid-template-columns: 1fr;
  }

  /* Mobile content area image constraints */
  .page-index__hero-image,
  .page-index__feature-icon,
  .page-index__download-guide-image,
  .page-index__game-image,
  .page-index__promo-image {
    max-width: 100% !important;
    height: auto !important;
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px;
  }

  /* Ensure all img elements within .page-index are responsive and not too small */
  .page-index img {
    max-width: 100% !important;
    height: auto !important;
    min-width: 200px;
    min-height: 200px;
  }

  .page-index__button {
    width: 100%;
  }

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