.page-index {
  color: #333333; /* Dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-index__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-index__hero-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px; /* Minimum height for hero section */
}

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

.page-index__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
  border-radius: 8px;
}

.page-index__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

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

.page-index__button--primary {
  background-color: #007bff;
  color: #ffffff;
  border: 2px solid #007bff;
}

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

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

.page-index__button--secondary:hover {
  background-color: #007bff;
  color: #ffffff;
  transform: translateY(-2px);
}

.page-index__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
  background-color: #28a745;
  color: #ffffff;
  border: 2px solid #28a745;
}

.page-index__button--small:hover {
  background-color: #1e7e34;
  border-color: #1e7e34;
  transform: translateY(-1px);
}

.page-index__section-title {
  font-size: 2.5em;
  color: #007bff;
  text-align: center;
  margin-top: 60px;
  margin-bottom: 20px;
}

.page-index__section-description {
  font-size: 1.1em;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__about-us-brief,
.page-index__security,
.page-index__mobile-app,
.page-index__why-choose-us,
.page-index__testimonials,
.page-index__resources,
.page-index__cta-bottom {
  padding: 60px 0;
}

.page-index__about-us-brief .page-index__text-link {
  display: block;
  text-align: center;
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
  margin-top: 20px;
}

.page-index__about-us-brief .page-index__text-link:hover {
  text-decoration: underline;
}

.page-index__featured-games,
.page-index__promotions {
  background-color: #e9f7f0; /* Light green tint */
  padding: 60px 0;
}

.page-index__game-grid,
.page-index__promo-grid,
.page-index__security-features,
.page-index__resource-grid,
.page-index__testimonial-grid {
  display: grid;
  gap: 30px;
  margin-top: 40px;
  justify-content: center;
}

.page-index__game-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.page-index__promo-grid {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.page-index__security-features {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-index__resource-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-index__testimonial-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-index__game-card,
.page-index__promo-card,
.page-index__feature-item,
.page-index__resource-card,
.page-index__testimonial-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__game-card-image,
.page-index__promo-card-image,
.page-index__feature-icon,
.page-index__testimonial-avatar {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: cover;
}

.page-index__game-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
}

.page-index__promo-card-image {
  width: 100%;
  height: 200px;
}

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

.page-index__testimonial-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #007bff;
}

.page-index__game-card-title,
.page-index__promo-card-title,
.page-index__feature-title,
.page-index__resource-card-title {
  font-size: 1.5em;
  color: #007bff;
  margin-bottom: 10px;
}

.page-index__resource-card-title a {
  color: #007bff;
  text-decoration: none;
}

.page-index__resource-card-title a:hover {
  text-decoration: underline;
}

.page-index__game-card-text,
.page-index__promo-card-text,
.page-index__feature-text,
.page-index__resource-card-text,
.page-index__testimonial-text {
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index__call-to-action {
  text-align: center;
  margin-top: 40px;
}

.page-index__mobile-app-flex {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 40px;
  flex-wrap: wrap-reverse;
}

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

.page-index__mobile-app-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

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

.page-index__advantage-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
}

.page-index__advantage-item {
  background-color: #f8f9fa;
  padding: 15px 20px;
  border-left: 4px solid #28a745;
  border-radius: 5px;
  font-size: 1.1em;
  color: #333333;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-index__advantage-summary,
.page-index__advantage-outro {
  font-size: 1.1em;
  color: #555555;
  text-align: justify;
  margin-top: 30px;
}

.page-index__testimonial-text {
  font-style: italic;
  color: #444444;
  margin-bottom: 15px;
}

.page-index__testimonial-author {
  font-weight: bold;
  color: #007bff;
  font-size: 0.95em;
}

.page-index__cta-bottom {
  background-color: #007bff;
  color: #ffffff;
  text-align: center;
  padding: 80px 20px;
}

.page-index__cta-bottom .page-index__section-title {
  color: #ffffff;
  margin-top: 0;
}

.page-index__cta-bottom .page-index__section-description {
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-index__cta-bottom .page-index__button--primary {
  background-color: #28a745;
  border-color: #28a745;
}

.page-index__cta-bottom .page-index__button--primary:hover {
  background-color: #1e7e34;
  border-color: #1e7e34;
}

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

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

@media (max-width: 768px) {
  .page-index__hero-section {
    padding-top: var(--header-offset, 120px);
  }
  .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: 80%;
    max-width: 300px;
  }

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

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

  .page-index__game-grid,
  .page-index__promo-grid,
  .page-index__security-features,
  .page-index__resource-grid,
  .page-index__testimonial-grid {
    grid-template-columns: 1fr;
  }

  .page-index__mobile-app-flex {
    flex-direction: column;
  }

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

  .page-index__advantage-list {
    grid-template-columns: 1fr;
  }

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

  /* Specific image size overrides for content area, ensuring min 200px where applicable */
  .page-index__game-card-image,
  .page-index__promo-card-image {
    height: auto; /* Allow height to adjust proportionally */
    min-height: 200px; /* Ensure minimum height */
    object-fit: cover;
  }

  .page-index__feature-icon,
  .page-index__testimonial-avatar {
    min-width: 200px; /* Enforce minimum size for these if they are content images */
    min-height: 200px;
    width: 100%; /* Allow to scale up */
    height: auto; /* Maintain aspect ratio */
    object-fit: contain; /* Or cover, depending on desired crop */
  }

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

  .page-index__testimonial-avatar {
    width: 200px;
    height: 200px;
  }

  .page-index__container {
    padding: 15px;
  }

  .page-index__advantage-summary,
  .page-index__advantage-outro {
    text-align: left;
  }
}

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

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

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

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