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

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

.page-index__section--dark {
  background-color: #0A2463;
  color: #ffffff;
}

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

.page-index__section-title {
  font-size: 2.5em;
  color: inherit;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-index__section-description {
  font-size: 1.1em;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-index__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  margin: 10px;
  font-size: 1.05em;
  min-width: 150px; /* Ensure buttons are not too small */
}

.page-index__button--primary {
  background-color: #E3B505;
  color: #0A2463;
  border: 2px solid #E3B505;
}

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

.page-index__button--secondary {
  background-color: transparent;
  color: #0A2463;
  border: 2px solid #0A2463;
}

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

.page-index__button--link {
  background-color: transparent;
  color: #E3B505;
  border: none;
  padding: 8px 15px;
  text-decoration: underline;
}

.page-index__button--link:hover {
  color: #0A2463;
  text-decoration: none;
}

/* Hero Section */
.page-index__hero-section {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  padding: 0; /* Padding handled by hero-content */
}

.page-index__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  filter: brightness(0.6); /* Slightly darken image for text readability, not changing color */
}

.page-index__hero-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 80px 20px; /* Adjust padding for hero content */
  z-index: 2;
}

.page-index__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  text-align: center;
}

.page-index__hero-title {
  font-size: 3.8em;
  margin-bottom: 25px;
  line-height: 1.2;
  color: #E3B505; /* Gold for prominence */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-index__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  line-height: 1.6;
  color: #f0f0f0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.page-index__hero-actions .page-index__button {
  font-size: 1.2em;
  padding: 15px 35px;
  border-radius: 10px;
  margin: 15px;
}

/* About Section - Feature Grid */
.page-index__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-index__feature-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: left;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 480px; /* Ensure cards have consistent height */
}

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

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

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

.page-index__feature-card-title a {
  color: #0A2463;
  text-decoration: none;
}

.page-index__feature-card-title a:hover {
  color: #E3B505;
}

.page-index__feature-card-text {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Games Section */
.page-index__games-section .page-index__section-title,
.page-index__games-section .page-index__section-description {
  color: #ffffff;
}

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

.page-index__game-card {
  background-color: #1A3A73;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  padding: 30px;
  text-align: left;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 480px; /* Consistent card height */
}

.page-index__game-card:hover {
  transform: translateY(-8px);
}

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

.page-index__game-card-title {
  font-size: 1.8em;
  color: #E3B505;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-index__game-card-text {
  font-size: 1em;
  line-height: 1.6;
  color: #cccccc;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Promo Section */
.page-index__promo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 50px;
}

.page-index__promo-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.page-index__promo-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.page-index__promo-content {
  padding: 30px;
}

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

.page-index__promo-text {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 25px;
}

.page-index__full-promo-link {
  margin-top: 50px;
}

/* App Section */
.page-index__app-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  text-align: center;
}

.page-index__app-content {
  max-width: 600px;
}

.page-index__app-buttons {
  margin-top: 30px;
}

.page-index__app-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Support Section & CTA */
.page-index__support-section .page-index__section-title,
.page-index__support-section .page-index__section-description {
  color: #333333;
}

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

.page-index__cta-section .page-index__button {
  font-size: 1.3em;
  padding: 18px 40px;
  border-radius: 12px;
}

/* Responsive Design */
@media (min-width: 769px) {
  .page-index__promo-card {
    flex-direction: row;
    text-align: left;
  }

  .page-index__promo-card:nth-child(even) {
    flex-direction: row-reverse;
  }

  .page-index__promo-image {
    width: 50%;
    height: auto;
  }

  .page-index__promo-content {
    width: 50%;
    padding: 40px;
  }

  .page-index__app-container {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
  }

  .page-index__app-container:nth-child(even) {
    flex-direction: row-reverse;
  }

  .page-index__app-content {
    padding-right: 40px;
  }

  .page-index__app-image {
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  .page-index__hero-container {
    min-height: 60vh;
    padding: 60px 15px;
  }

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

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

  .page-index__hero-actions .page-index__button {
    font-size: 1em;
    padding: 12px 25px;
    margin: 8px;
  }

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

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

  .page-index__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-index__feature-card,
  .page-index__game-card,
  .page-index__promo-card {
    padding: 20px;
  }

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

  .page-index__promo-image {
    height: 200px;
  }

  .page-index__app-image {
    max-width: 300px;
  }

  /* Ensure all content area images are responsive */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
}

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

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

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

  .page-index__button {
    min-width: unset;
    width: 100%;
    margin: 5px 0;
  }
}