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

.page-index__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--header-offset, 120px) 20px 60px; /* Add header offset for desktop */
  background: linear-gradient(135deg, #FFD700, #FFC107);
  color: #333333;
  overflow: hidden;
  position: relative;
}

.page-index__hero-content {
  max-width: 900px;
  z-index: 1;
}

.page-index__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #8B0000; /* Auxiliary color for emphasis */
  font-weight: 700;
  line-height: 1.2;
}

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

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

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

.page-index__cta-button--primary {
  background-color: #8B0000; /* Auxiliary color */
  color: #FFFFFF;
  border: 2px solid #8B0000;
}

.page-index__cta-button--primary:hover {
  background-color: #A52A2A;
  transform: translateY(-2px);
}

.page-index__cta-button--secondary {
  background-color: transparent;
  color: #8B0000;
  border: 2px solid #8B0000;
}

.page-index__cta-button--secondary:hover {
  background-color: rgba(139, 0, 0, 0.1);
  transform: translateY(-2px);
}

.page-index__cta-button--small {
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-index__cta-button--large {
  padding: 18px 40px;
  font-size: 1.2em;
}

.page-index__hero-image-container {
  margin-top: 40px;
  max-width: 1000px;
  width: 100%;
  position: relative;
  z-index: 0;
}

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

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

.page-index__section-title {
  font-size: 2.8em;
  color: #8B0000;
  text-align: center;
  margin-bottom: 25px;
  font-weight: 700;
}

.page-index__section-description {
  font-size: 1.2em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  line-height: 1.6;
}

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

.page-index__feature-card,
.page-index__game-card,
.page-index__promo-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index__feature-card:hover,
.page-index__game-card:hover,
.page-index__promo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.page-index__feature-icon,
.page-index__game-image,
.page-index__promo-image {
  width: 100%;
  height: auto;
  max-width: 400px; /* Ensure images are not too small */
  border-radius: 8px;
  margin-bottom: 25px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-index__feature-title,
.page-index__game-title,
.page-index__promo-title {
  font-size: 1.8em;
  color: #8B0000;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-index__feature-text,
.page-index__game-text,
.page-index__promo-text {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
  flex-grow: 1;
}

.page-index__games-section .page-index__game-card .page-index__cta-button,
.page-index__promo-section .page-index__promo-card .page-index__cta-button {
  margin-top: 20px;
}

.page-index__bg-dark {
  background-color: #8B0000;
}

.page-index__text-light {
  color: #FFD700;
}

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

.page-index__step-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__step-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.page-index__step-number {
  background-color: #FFD700;
  color: #8B0000;
  font-size: 2.5em;
  font-weight: 700;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-index__step-title {
  font-size: 1.8em;
  color: #8B0000;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-index__step-text {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
  flex-grow: 1;
}

.page-index__step-image {
  width: 100%;
  height: auto;
  max-width: 400px; /* Ensure images are not too small */
  border-radius: 8px;
  margin-top: 25px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-index__download-cta {
  text-align: center;
  margin-top: 60px;
}

.page-index__promo-cta {
  text-align: center;
  margin-top: 60px;
}

.page-index__faq-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-index__faq-item {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  padding: 25px 30px;
  transition: box-shadow 0.3s ease;
}

.page-index__faq-item:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-index__faq-question {
  font-size: 1.4em;
  color: #8B0000;
  margin-bottom: 10px;
  font-weight: 600;
}

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

.page-index__faq-cta {
  text-align: center;
  margin-top: 60px;
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-index__cta-final-section {
  text-align: center;
  padding: 100px 20px;
}

.page-index__cta-final-actions {
  margin-top: 40px;
}

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

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

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

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

@media (max-width: 768px) {
  .page-index__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensure mobile also has offset */
    padding-bottom: 40px;
  }

  .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__cta-button {
    width: 80%;
    max-width: 300px;
  }

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

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

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

  .page-index__features-grid,
  .page-index__games-grid,
  .page-index__promo-grid,
  .page-index__download-steps {
    grid-template-columns: 1fr;
    gap: 25px;
  }

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

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

  .page-index__faq-cta {
    flex-direction: column;
    gap: 15px;
  }

  .page-index__faq-cta .page-index__cta-button {
    width: 80%;
    max-width: 300px;
  }

  /* Mobile image sizing to prevent overflow */
  .page-index img {
    max-width: 100%;
    height: auto;
  }

  .page-index__hero-image,
  .page-index__feature-icon,
  .page-index__game-image,
  .page-index__promo-image,
  .page-index__step-image {
    min-width: 200px;
    min-height: 200px;
  }
}

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

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

  .page-index__hero-actions,
  .page-index__faq-cta {
    width: 100%;
  }

  .page-index__cta-button {
    width: 90%;
    max-width: unset;
  }
}