.page-index {
  color: #333333; /* Dark text for default white body background */
  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__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 20px;
  background-color: #f8f8f8;
  gap: 40px;
}

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

.page-index__hero-title {
  font-size: 3.5em;
  color: #8B0000; /* Deep red for prominent titles */
  margin-bottom: 20px;
  line-height: 1.2;
}

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

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

.page-index__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}

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

.page-index__button--primary:hover {
  background-color: #e6c200;
  color: #6a0000;
}

.page-index__button--secondary {
  background-color: transparent;
  color: #8B0000;
  border: 2px solid #8B0000; /* Deep red border for secondary */
}

.page-index__button--secondary:hover {
  background-color: #8B0000;
  color: #FFD700;
}

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

.page-index__button--small:hover {
  background-color: #e6c200;
  color: #6a0000;
}

.page-index__hero-image-wrapper {
  max-width: 1000px;
  width: 100%;
  margin-top: 40px;
}

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

.page-index__section-title {
  font-size: 2.5em;
  color: #8B0000;
  text-align: center;
  margin-bottom: 60px;
  margin-top: 80px;
}

.page-index__features-section,
.page-index__games-showcase,
.page-index__promo-section,
.page-index__app-download-section,
.page-index__guides-section,
.page-index__responsible-gaming-section,
.page-index__cta-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

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

.page-index__feature-card,
.page-index__game-card,
.page-index__guide-card,
.page-index__promo-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.page-index__feature-icon,
.page-index__game-image,
.page-index__guide-image {
  width: 100%;
  height: auto;
  max-width: 400px; /* Ensure images are not too small */
  min-width: 200px;
  min-height: 200px;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-index__feature-title,
.page-index__game-title,
.page-index__guide-title,
.page-index__promo-card-title {
  font-size: 1.5em;
  color: #8B0000;
  margin-bottom: 15px;
}

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

.page-index__feature-title a:hover,
.page-index__game-title a:hover,
.page-index__guide-title a:hover,
.page-index__promo-card-title a:hover {
  color: #FFD700;
}

.page-index__feature-description,
.page-index__game-description,
.page-index__guide-description,
.page-index__promo-description,
.page-index__app-description,
.page-index__responsible-gaming-description,
.page-index__cta-description {
  font-size: 1em;
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index__promo-section {
  background-color: #fdf8e6;
  padding: 60px 20px;
  border-radius: 10px;
  text-align: center;
}

.page-index__promo-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin-bottom: 60px;
}

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

.page-index__promo-text {
  max-width: 700px;
}

.page-index__related-promos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.page-index__promo-card {
  background-color: #fff;
  border: 1px solid #eee;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-index__app-download-section {
  background-color: #e6f7ff;
  padding: 60px 20px;
  border-radius: 10px;
}

.page-index__app-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

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

.page-index__app-text {
  text-align: center;
  max-width: 700px;
}

.page-index__responsible-gaming-section {
  background-color: #fdf8e6;
  padding: 60px 20px;
  border-radius: 10px;
  text-align: center;
}

.page-index__responsible-gaming-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

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

.page-index__cta-section {
  text-align: center;
  padding: 80px 20px;
  background-color: #8B0000; /* Deep red CTA background */
  color: #ffffff;
  border-radius: 10px;
  margin-top: 80px;
}

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

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

.page-index__cta-section .page-index__button--primary {
  background-color: #FFD700;
  color: #8B0000;
  border-color: #FFD700;
}

.page-index__cta-section .page-index__button--primary:hover {
  background-color: #e6c200;
  color: #6a0000;
}

/* Responsive adjustments */
@media (min-width: 769px) {
  .page-index__hero-section {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
  }

  .page-index__hero-content {
    text-align: left;
  }

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

  .page-index__hero-image-wrapper {
    margin-top: 0;
    max-width: 600px;
  }

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

  .page-index__promo-text,
  .page-index__app-text {
    text-align: left;
  }

  .page-index__promo-image {
    order: 2; /* Image on right for promo */
  }

  .page-index__app-image {
    order: 2; /* Image on right for app download */
  }

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

  .page-index__responsible-gaming-image {
    order: 2; /* Image on right for responsible gaming */
  }
}

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

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

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

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

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

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

  .page-index {
    overflow-x: hidden;
  }

  .page-index__feature-icon, .page-index__game-image, .page-index__guide-image, .page-index__promo-image, .page-index__app-image, .page-index__responsible-gaming-image {
    min-width: 200px;
    min-height: 200px;
  }
}