.page-index {
  color: #333333; /* Default text color for light body background */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-index__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background-color: #0A2463; /* Primary dark background for hero */
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

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

.page-index__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFD700; /* Auxiliary golden color for title */
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  line-height: 1.6;
  color: #f0f0f0;
}

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

.page-index__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-index__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  filter: grayscale(50%); /* Allowed for subtle background effect, not changing original color */
}

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

.page-index__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #0A2463;
}

.page-index__section-title--light {
  color: #FFD700;
}

.page-index__text-block {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__text-block--light {
  color: #f0f0f0;
}

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

.page-index__button--primary {
  background-color: #FFD700;
  color: #0A2463;
  border-color: #FFD700;
}

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

.page-index__button--secondary {
  background-color: transparent;
  color: #FFD700;
  border-color: #FFD700;
}

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

.page-index__button--outline {
  background-color: transparent;
  color: #0A2463;
  border-color: #0A2463;
}

.page-index__button--outline:hover {
  background-color: #0A2463;
  color: #ffffff;
  transform: translateY(-2px);
}

.page-index__button--outline-light {
  background-color: transparent;
  color: #FFD700;
  border-color: #FFD700;
}

.page-index__button--outline-light:hover {
  background-color: #FFD700;
  color: #0A2463;
  transform: translateY(-2px);
}

.page-index__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
  border-radius: 5px;
  background-color: #0A2463;
  color: #FFD700;
  border-color: #0A2463;
}

.page-index__button--small:hover {
  background-color: #FFD700;
  color: #0A2463;
  border-color: #FFD700;
}

.page-index__about-section {
  background-color: #ffffff;
  text-align: center;
}

.page-index__about-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-index__features-section {
  background-color: #0A2463;
  color: #ffffff;
  text-align: center;
}

.page-index__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-index__feature-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

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

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

.page-index__feature-description {
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-index__download-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 40px;
  background-color: #ffffff;
}

.page-index__download-content {
  max-width: 700px;
}

.page-index__download-description {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 30px;
}

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

.page-index__download-image-wrapper {
  max-width: 600px;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 15px;
  overflow: hidden;
}

.page-index__download-image {
  width: 100%;
  height: auto;
  display: block;
}

.page-index__games-section {
  background-color: #f8f8f8;
  text-align: center;
}

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

.page-index__game-card {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-index__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-index__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index__game-title {
  font-size: 1.6em;
  color: #0A2463;
  margin-bottom: 10px;
}

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

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

.page-index__game-description {
  font-size: 0.95em;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index__promotions-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  background-color: #0A2463;
  color: #ffffff;
  text-align: center;
}

.page-index__promotions-content {
  max-width: 800px;
}

.page-index__promotions-description {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-index__promotions-image-wrapper {
  max-width: 800px;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  overflow: hidden;
}

.page-index__promotions-image {
  width: 100%;
  height: auto;
  display: block;
}

.page-index__security-section {
  background-color: #0A2463;
  color: #ffffff;
}

.page-index__security-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-index__security-image-wrapper {
  max-width: 600px;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  overflow: hidden;
}

.page-index__security-image {
  width: 100%;
  height: auto;
  display: block;
}

.page-index__security-text {
  text-align: center;
  max-width: 900px;
}

.page-index__platform-intro-section {
  background-color: #ffffff;
  text-align: center;
}

.page-index__intro-card {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

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

.page-index__intro-card-title a {
  text-decoration: none;
  color: inherit;
}

.page-index__intro-card-title a:hover {
  color: #FFD700;
}

.page-index__intro-card-description {
  font-size: 1.1em;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 20px;
}

.page-index__cta-section {
  background-color: #FFD700; /* Auxiliary light background for CTA */
  color: #0A2463;
  text-align: center;
}

.page-index__cta-description {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Responsive adjustments */
@media (min-width: 769px) {
  .page-index__hero-section {
    flex-direction: row;
    text-align: left;
    padding: 120px 40px;
    min-height: 600px;
  }

  .page-index__hero-content {
    text-align: left;
    max-width: 50%;
    margin-right: auto;
  }

  .page-index__hero-actions {
    justify-content: flex-start;
  }

  .page-index__hero-image-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
  }

  .page-index__download-section {
    flex-direction: row;
    text-align: left;
    justify-content: center;
    align-items: center;
  }

  .page-index__download-content {
    text-align: left;
    max-width: 500px;
    margin-right: 40px;
  }

  .page-index__download-actions {
    justify-content: flex-start;
  }

  .page-index__promotions-section {
    flex-direction: row-reverse;
    text-align: left;
    justify-content: center;
    align-items: center;
  }

  .page-index__promotions-content {
    text-align: left;
    max-width: 500px;
    margin-left: 40px;
  }

  .page-index__security-content {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: left;
  }

  .page-index__security-image-wrapper {
    margin-right: 40px;
  }

  .page-index__security-text {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .page-index {
    padding-top: var(--header-offset, 120px);
  }

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

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

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

  .page-index__text-block {
    font-size: 1em;
  }

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

  .page-index__download-section,
  .page-index__promotions-section,
  .page-index__security-content {
    flex-direction: column;
  }

  .page-index__download-content,
  .page-index__promotions-content,
  .page-index__security-text {
    text-align: center;
  }

  .page-index__download-image-wrapper,
  .page-index__promotions-image-wrapper,
  .page-index__security-image-wrapper {
    max-width: 100%;
  }

  /* Ensure all images within .page-index are responsive and don't overflow */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
}