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

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

.page-index__section-title {
  font-size: 2.8em;
  color: #FFD700; /* Gold primary color */
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
  font-weight: bold;
}

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

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

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

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

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

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

.page-index__button--tertiary {
  background: none;
  color: #FFD700;
  border: 2px solid #FFD700;
  padding: 10px 25px;
  font-size: 1em;
}

.page-index__button--tertiary:hover {
  background-color: #FFD700;
  color: #1A1A1A;
  transform: translateY(-2px);
}

.page-index__button--link {
  color: #FFD700;
  text-decoration: underline;
  font-weight: bold;
  display: inline-block;
  margin-top: 10px;
}

.page-index__button--link:hover {
  color: #e6c200;
}

/* Hero Section */
.page-index__hero-section {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
}

.page-index__hero-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-index__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.7;
}

.page-index__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 40px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-index__hero-title {
  font-size: 3.8em;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
}

.page-index__hero-description {
  font-size: 1.5em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-index__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

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

.page-index__image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  min-width: 200px; /* Enforce min-size */
  min-height: 200px; /* Enforce min-size */
}

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

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

.page-index__game-card {
  background-color: #1A1A1A;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.page-index__game-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 15px;
  min-width: 200px; /* Enforce min-size */
  min-height: 200px; /* Enforce min-size */
}

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

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

.page-index__game-title a:hover {
  text-decoration: underline;
}

.page-index__game-text {
  font-size: 1em;
  color: #cccccc;
  padding: 0 15px;
}

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

/* Download Section */
.page-index__download-section {
  background-color: #1A1A1A;
  padding: 80px 0;
  text-align: center;
}

.page-index__download-options {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 50px;
}

.page-index__download-card {
  background-color: #2a2a2a;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  width: 350px;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-index__download-card:hover {
  transform: translateY(-10px);
}

.page-index__download-icon {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min-size, will be scaled down by CSS */
  min-height: 200px; /* Enforce min-size, will be scaled down by CSS */
}

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

.page-index__download-text {
  font-size: 1.1em;
  color: #cccccc;
  margin-bottom: 30px;
}

/* Promo Section */
.page-index__promo-section {
  padding: 80px 0;
}

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

.page-index__promo-card {
  background-color: #1A1A1A;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__promo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.page-index__promo-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min-size */
  min-height: 200px; /* Enforce min-size */
}

.page-index__promo-title {
  font-size: 2em;
  color: #FFD700;
  margin-bottom: 15px;
  padding: 0 20px;
}

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

.page-index__promo-title a:hover {
  text-decoration: underline;
}

.page-index__promo-text {
  font-size: 1.1em;
  color: #cccccc;
  margin-bottom: 30px;
  padding: 0 20px;
}

/* Why Choose Section */
.page-index__why-choose-section {
  background-color: #1A1A1A;
  padding: 80px 0;
}

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

.page-index__feature-card {
  background-color: #2a2a2a;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

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

.page-index__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min-size, will be scaled down by CSS */
  min-height: 200px; /* Enforce min-size, will be scaled down by CSS */
}

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

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

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

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

.page-index__testimonial-card {
  background-color: #1A1A1A;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

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

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

.page-index__testimonial-author {
  font-weight: bold;
  color: #FFD700;
  font-size: 1em;
}

/* FAQ Section */
.page-index__faq-section {
  background-color: #1A1A1A;
  padding: 80px 0;
}

.page-index__faq-list {
  max-width: 900px;
  margin: 50px auto 0 auto;
}

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

.page-index__faq-question {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 10px;
  cursor: pointer;
}

.page-index__faq-answer {
  font-size: 1em;
  color: #cccccc;
  line-height: 1.8;
  display: none; /* Hidden by default, toggled by JS */
}

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

/* Final CTA Section */
.page-index__cta-final-section {
  padding: 80px 0;
  text-align: center;
}

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

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

  .page-index__content-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .page-index__image {
    order: -1; /* Image above text on smaller screens */
    margin-bottom: 40px;
  }

  .page-index__games-grid,
  .page-index__promo-grid,
  .page-index__features-grid,
  .page-index__testimonials-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-index__section-title {
    font-size: 2.2em;
  }

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

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

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

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

  .page-index__button {
    width: 100%;
    padding: 12px 20px;
    font-size: 1em;
  }

  /* Mobile content area images must not overflow */
  .page-index__hero-image,
  .page-index__image,
  .page-index__game-image,
  .page-index__download-icon,
  .page-index__promo-image,
  .page-index__feature-icon {
    max-width: 100%;
    height: auto;
    /* Ensure minimum display size is not overridden to be too small */
    min-width: 200px; 
    min-height: 200px; 
  }

  .page-index__download-card {
    width: 100%;
    max-width: 350px;
  }

  .page-index__download-icon {
    width: 150px; /* Reduced for mobile, but still ensuring min-size is met via object-fit */
    height: 150px;
  }

  .page-index__feature-icon {
    width: 80px; /* Reduced for mobile, but still ensuring min-size is met via object-fit */
    height: 80px;
  }

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

@media (max-width: 480px) {
  .page-index__hero-content {
    padding: 20px;
  }
  .page-index__hero-title {
    font-size: 2em;
  }
  .page-index__hero-description {
    font-size: 0.95em;
  }
  .page-index__game-card, .page-index__promo-card, .page-index__feature-card, .page-index__testimonial-card {
    padding: 20px;
  }
  .page-index__download-card {
    padding: 20px;
  }
}