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

.page-index__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 700px; /* Ensure hero section has a decent height */
  padding-top: var(--header-offset, 120px); /* Apply header offset */
}

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

.page-index__hero-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

.page-index__hero-content {
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent dark overlay for text readability */
  padding: 30px;
  border-radius: 10px;
}

.page-index__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700; /* Primary color for emphasis */
  line-height: 1.2;
}

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

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

.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, transform 0.2s ease;
  cursor: pointer;
  border: none;
}

.page-index__button--primary {
  background-color: #FFD700; /* Gold primary button */
  color: #8B0000; /* Deep red text for contrast */
}

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

.page-index__button--secondary {
  background-color: #8B0000; /* Deep red secondary button */
  color: #FFD700; /* Gold text for contrast */
  border: 2px solid #FFD700;
}

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

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

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

.page-index__section-title {
  font-size: 2.8em;
  color: #8B0000; /* Deep red for main titles */
  text-align: center;
  margin-bottom: 20px;
}

.page-index__section-title--light {
  color: #FFD700; /* Gold for titles on dark backgrounds */
}

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

.page-index__section-description--light {
  color: #ffffff;
}

/* About Section */
.page-index__about-section {
  background-color: #f8f8f8;
}

.page-index__about-grid {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-index__about-text {
  flex: 1;
  font-size: 1.1em;
  line-height: 1.7;
}

.page-index__about-text p {
  margin-bottom: 20px;
}

.page-index__text-link {
  color: #8B0000;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-index__text-link:hover {
  color: #FFD700;
}

.page-index__about-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-index__about-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Games Section */
.page-index__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-index__game-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-index__game-card-title {
  font-size: 1.5em;
  color: #8B0000;
  margin-bottom: 15px;
  padding: 0 15px;
}

.page-index__game-card-title a {
  color: #8B0000;
  text-decoration: none;
}

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

.page-index__game-card-text {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 15px;
}

.page-index__view-all-games {
  text-align: center;
}

/* Promotions Section */
.page-index__promotions-bg {
  background-color: #8B0000; /* Deep red background */
  color: #ffffff;
  padding: 80px 20px;
}

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

.page-index__promo-card {
  background-color: rgba(255, 255, 255, 0.15); /* Semi-transparent white */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-index__promo-card-text {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 25px;
}

.page-index__view-all-promos {
  text-align: center;
}

/* Security Section */
.page-index__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-index__feature-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-index__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-index__feature-title {
  font-size: 1.6em;
  color: #8B0000;
  margin-bottom: 15px;
}

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

.page-index__learn-more-security {
  text-align: center;
  margin-top: 40px;
}

/* Download App Section */
.page-index__download-app-bg {
  background-color: #FFD700; /* Gold background */
  color: #8B0000;
  padding: 80px 20px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-index__download-app-content {
  flex: 1;
  text-align: left;
}

.page-index__app-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.page-index__app-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-index__app-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-index__faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-index__faq-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

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

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

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

/* CTA Section */
.page-index__cta-section {
  background-color: #f0f0f0;
  text-align: center;
  padding: 80px 20px;
}

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

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

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

  .page-index__about-grid,
  .page-index__download-app-bg {
    flex-direction: column;
  }

  .page-index__download-app-content {
    text-align: center;
  }

  .page-index__app-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    min-height: 500px;
    padding-top: var(--header-offset, 80px);
  }

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

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

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

  .page-index__button {
    width: 100%;
    max-width: 300px;
  }

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

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

  .page-index__content-area {
    padding: 40px 15px;
  }

  .page-index__game-card-image {
    height: 180px;
  }

  .page-index__feature-icon {
    width: 80px;
    height: 80px;
  }

  .page-index__app-image {
    width: 100%;
    height: auto;
  }

  /* Enforce image sizing for content area on mobile */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
  .page-index__feature-icon {
    max-width: 100px; /* Ensure icons don't get too large, but still > 200px if it's a content image */
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-index__hero-section {
    min-height: 400px;
  }
  .page-index__hero-title {
    font-size: 1.8em;
  }
  .page-index__hero-description {
    font-size: 0.9em;
  }
  .page-index__section-title {
    font-size: 1.6em;
  }
  .page-index__app-buttons {
    flex-direction: column;
  }
}