.page-index {
  color: #333333; /* Dark text for default light body background */
  padding-top: var(--header-offset, 120px);
}

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

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

.page-index__bg-primary {
  background-color: #FFD700; /* Gold */
  color: #333333; /* Dark text on gold */
}

.page-index__bg-accent {
  background-color: #1E90FF; /* Dodger Blue */
  color: #ffffff; /* Light text on blue */
}

.page-index__section-title {
  font-size: 2.8em;
  font-weight: 700;
  color: #1E90FF; /* Dodger Blue for titles */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-index__section-title--dark {
  color: #333333;
}

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

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

.page-index__button {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.1em;
  text-align: center;
  cursor: pointer;
}

.page-index__button--primary {
  background-color: #FFD700; /* Gold */
  color: #333333; /* Dark text on gold */
  border: 2px solid #FFD700;
}

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

.page-index__button--secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
}

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

.page-index__button--tertiary {
  background-color: #1E90FF; /* Dodger Blue */
  color: #ffffff;
  border: 2px solid #1E90FF;
}

.page-index__button--tertiary:hover {
  background-color: #1a7ae0;
  border-color: #1a7ae0;
}

.page-index__button--text {
  background-color: transparent;
  color: #1E90FF;
  border: none;
  padding: 8px 0;
  font-size: 1em;
  font-weight: 500;
}

.page-index__button--text:hover {
  text-decoration: underline;
  color: #1a7ae0;
}

.page-index__button--download {
  background-color: #FFD700; /* Gold */
  color: #333333; /* Dark text */
  border: 2px solid #FFD700;
  padding: 15px 30px;
  font-size: 1.2em;
  margin-top: 20px;
}

.page-index__button--download:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

.page-index__button--large {
  padding: 18px 35px;
  font-size: 1.3em;
  margin-top: 30px;
}

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

.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: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: inherit; /* Ensure content aligns with min-height of section */
  background: rgba(0, 0, 0, 0.5); /* Overlay for readability */
  border-radius: 12px;
}

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

.page-index__hero-title {
  font-size: 3.5em;
  font-weight: 800;
  margin-bottom: 20px;
  color: #FFD700; /* Gold for hero title */
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

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

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

.page-index__feature-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__feature-image {
  width: 100%;
  max-width: 400px; /* Ensure images are not too wide */
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  object-fit: cover;
}

.page-index__feature-title {
  font-size: 1.8em;
  color: #1E90FF;
  margin-bottom: 15px;
  font-weight: 700;
}

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

/* Games Section */
.page-index__games-section {
  background-color: #1E90FF;
}

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

.page-index__category-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__category-image {
  width: 100%;
  height: 250px; /* Fixed height for category images */
  object-fit: cover;
  margin-bottom: 20px;
}

.page-index__category-title {
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 10px;
  padding: 0 20px;
}

.page-index__category-link {
  color: #1E90FF;
  text-decoration: none;
}

.page-index__category-link:hover {
  text-decoration: underline;
}

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

.page-index__category-card .page-index__button {
  margin: 0 20px 20px 20px;
}

/* Promotions Section */
.page-index__promo-section {
  background-color: #f0f0f0;
}

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

.page-index__promo-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__promo-image {
  width: 100%;
  height: 280px; /* Fixed height for promo images */
  object-fit: cover;
  margin-bottom: 20px;
}

.page-index__promo-title {
  font-size: 1.8em;
  color: #1E90FF;
  margin-bottom: 15px;
  font-weight: 700;
  padding: 0 20px;
}

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

.page-index__promo-card .page-index__button {
  margin: 0 20px 20px 20px;
}

.page-index__view-all-button-wrapper {
  text-align: center;
  margin-top: 50px;
}

/* Mobile Section */
.page-index__mobile-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.page-index__mobile-text-content {
  flex: 1;
  min-width: 300px;
}

.page-index__mobile-features-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.page-index__mobile-feature-item {
  font-size: 1.1em;
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
  color: #333333;
}

.page-index__mobile-feature-item::before {
  content: '✔️'; /* Checkmark icon */
  position: absolute;
  left: 0;
  color: #1E90FF; /* Dodger Blue checkmark */
  font-size: 1.2em;
}

.page-index__mobile-image-wrapper {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-index__mobile-image {
  width: 100%;
  max-width: 600px; /* Max width for mobile app image */
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  object-fit: cover;
}

/* Trust Section */
.page-index__trust-section {
  background-color: #f8f8f8;
}

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

.page-index__trust-point-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__trust-point-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-index__trust-icon {
  width: 100px; /* Small icons are forbidden, but these are content images, not decorative tiny icons */
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-index__trust-title {
  font-size: 1.6em;
  color: #FFD700;
  margin-bottom: 10px;
  font-weight: 700;
}

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

/* CTA Section */
.page-index__cta-section {
  text-align: center;
}

.page-index__cta-content {
  padding: 60px 20px;
}

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

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

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

@media (max-width: 768px) {
  .page-index__hero-section {
    min-height: 500px;
  }

  .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: 80%;
    max-width: 300px;
  }

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

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

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

  .page-index__features-grid,
  .page-index__game-categories-grid,
  .page-index__promo-cards-grid,
  .page-index__trust-points-grid {
    grid-template-columns: 1fr;
  }

  .page-index__mobile-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-index__mobile-text-content,
  .page-index__mobile-image-wrapper {
    min-width: unset;
    width: 100%;
  }

  /* IMPORTANT: Mobile content images must be 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.95em;
  }

  .page-index__hero-buttons {
    gap: 10px;
  }

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

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

  .page-index__feature-title,
  .page-index__category-title,
  .page-index__promo-title,
  .page-index__trust-title {
    font-size: 1.5em;
  }

  .page-index__feature-text,
  .page-index__category-text,
  .page-index__promo-text,
  .page-index__trust-text,
  .page-index__mobile-feature-item {
    font-size: 0.9em;
  }
}