.page-index {
  color: #333333; /* Default dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

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

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

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

.page-index__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 1.1em;
  text-align: center;
  cursor: pointer;
  border: none;
}

.page-index__cta-button--primary {
  background-color: #FFD700; /* Gold */
  color: #1A1A1A; /* Dark text for gold background */
}

.page-index__cta-button--primary:hover {
  background-color: #e6c200;
}

.page-index__cta-button--secondary {
  background-color: #1A1A1A; /* Dark */
  color: #FFD700; /* Gold text for dark background */
  border: 2px solid #FFD700;
}

.page-index__cta-button--secondary:hover {
  background-color: #333333;
  color: #FFD700;
}

.page-index__cta-button--dark {
  background-color: #1A1A1A;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-index__cta-button--dark:hover {
  background-color: #333333;
  color: #FFD700;
}

.page-index__text-gold {
  color: #FFD700 !important; /* Ensure gold color for titles on dark background */
}

.page-index__text-light {
  color: #f0f0f0 !important; /* Light text for dark background */
}

.page-index__bg-dark {
  background-color: #1A1A1A;
  color: #f0f0f0; /* Default light text for dark sections */
}

.page-index__bg-gold {
  background-color: #FFD700;
  color: #1A1A1A; /* Default dark text for gold sections */
}

.page-index__link-gold {
  color: #FFD700;
  text-decoration: underline;
}

.page-index__link-gold:hover {
  color: #e6c200;
}

/* Hero Section */
.page-index__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  padding-bottom: 60px;
  text-align: center;
  background-color: #f8f8f8;
  position: relative;
  overflow: hidden;
}

.page-index__hero-container {
  max-width: 900px;
  margin-bottom: 40px;
  z-index: 1;
}

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

.page-index__hero-description {
  font-size: 1.3em;
  color: #555555;
  margin-bottom: 30px;
}

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

.page-index__hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px; /* Limit image width to prevent overflow */
  margin-top: 40px;
  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.1);
}

/* Why Choose Us Section */
.page-index__why-choose-us-section {
  background-color: #ffffff;
}

.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: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
}

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

.page-index__feature-description {
  color: #666666;
  font-size: 0.95em;
}

/* Download Guide Section */
.page-index__download-guide-section {
  background-color: #1A1A1A;
  color: #f0f0f0;
}

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

.page-index__guide-step {
  background-color: #2a2a2a;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index__step-icon-wrapper {
  margin-bottom: 20px;
  width: 100%; /* Ensure wrapper takes full width for image */
}

.page-index__step-image {
  width: 100%;
  height: auto;
  max-width: 400px; /* Max width for images within steps */
  border-radius: 8px;
  margin: 0 auto;
  display: block;
  object-fit: cover;
  min-height: 200px;
}

.page-index__step-title {
  font-size: 1.4em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-index__step-description {
  color: #cccccc;
  font-size: 0.95em;
  margin-bottom: 20px;
}

.page-index__troubleshooting-note {
  margin-top: 40px;
  font-size: 1em;
  text-align: center;
}

/* Game Showcase Section */
.page-index__game-showcase-section {
  background-color: #f0f0f0;
}

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

.page-index__game-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__game-image {
  width: 100%;
  height: auto;
  max-width: 600px; /* Ensure images are not too small */
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px;
}

.page-index__game-card-title {
  font-size: 1.4em;
  color: #1A1A1A;
  margin-bottom: 10px;
}

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

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

/* Promotions Section */
.page-index__promotions-section {
  background-color: #1A1A1A;
  color: #f0f0f0;
}

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

.page-index__promo-card {
  background-color: #2a2a2a;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index__promo-image {
  width: 100%;
  height: auto;
  max-width: 500px;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px;
}

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

.page-index__promo-description {
  color: #cccccc;
  font-size: 0.95em;
  margin-bottom: 20px;
}

/* Security Section */
.page-index__security-section {
  background-color: #ffffff;
}

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

.page-index__security-item {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.page-index__security-icon {
  width: 100%;
  height: auto;
  max-width: 300px; /* Ensure images are not too small */
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px;
}

.page-index__security-item-title {
  font-size: 1.5em;
  color: #1A1A1A;
  margin-bottom: 10px;
}

.page-index__security-item-description {
  color: #666666;
  font-size: 0.95em;
  margin-bottom: 20px;
}

/* FAQ Section */
.page-index__faq-section {
  background-color: #1A1A1A;
  color: #f0f0f0;
}

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

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

.page-index__faq-question {
  font-size: 1.2em;
  color: #FFD700;
  margin-bottom: 10px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-index__faq-answer {
  color: #cccccc;
  font-size: 0.95em;
  margin-top: 10px;
  display: none; /* Hidden by default, toggled by JS */
}

.page-index__faq-question::after {
  content: '+';
  font-size: 1.5em;
  transition: transform 0.3s ease;
}

.page-index__faq-question.active::after {
  content: '-';
  transform: rotate(180deg);
}

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

/* Final CTA Section */
.page-index__final-cta-section {
  padding: 80px 20px;
  text-align: center;
}

.page-index__cta-card {
  padding: 50px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  margin: 0 auto;
}

.page-index__cta-card-title {
  font-size: 2.5em;
  color: #1A1A1A;
  margin-bottom: 20px;
}

.page-index__cta-card-description {
  font-size: 1.2em;
  color: #333333;
  margin-bottom: 40px;
}

/* Footer Links Section */
.page-index__footer-links-section {
  background-color: #f0f0f0;
  padding-top: 40px;
  padding-bottom: 40px;
}

.page-index__text-center {
  text-align: center;
}

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

.page-index__links-column {
  padding: 20px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-index__links-title {
  font-size: 1.3em;
  color: #1A1A1A;
  margin-bottom: 15px;
  border-bottom: 2px solid #FFD700;
  padding-bottom: 10px;
}

.page-index__links-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-index__links-column ul li {
  margin-bottom: 10px;
}

.page-index__links-column ul li a {
  color: #555555;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.95em;
}

.page-index__links-column ul li a:hover {
  color: #FFD700;
}

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

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

@media (max-width: 768px) {
  .page-index__hero-section {
    flex-direction: column;
    padding-top: var(--header-offset, 120px);
    padding-bottom: 40px;
  }

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

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

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

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

  .page-index__section-intro {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-index__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    width: 100%;
  }

  .page-index__features-grid,
  .page-index__guide-grid,
  .page-index__game-categories,
  .page-index__promo-grid,
  .page-index__security-features-grid,
  .page-index__links-grid {
    grid-template-columns: 1fr;
  }

  .page-index__hero-image-wrapper {
    margin-top: 30px;
  }

  /* Mobile content area images must not overflow */
  .page-index img {
    max-width: 100%;
    height: auto; /* Ensure aspect ratio is maintained */
  }

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

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

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

  .page-index__faq-answer {
    font-size: 0.9em;
  }
}

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

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

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

/* Ensure all content images are at least 200px wide/high */
.page-index__hero-image,
.page-index__step-image,
.page-index__game-image,
.page-index__promo-image,
.page-index__security-icon {
  min-width: 200px;
  min-height: 200px;
}