.page-index {
  padding-top: var(--header-offset, 120px);
  color: #333333;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-index__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  background-color: #1A1A1A;
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-index__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.2;
}

.page-index__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.page-index__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

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

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

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

.page-index__hero-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, transform 0.3s ease;
  border: 2px solid transparent;
}

.page-index__hero-button--primary {
  background-color: #FFD700;
  color: #1A1A1A;
}

.page-index__hero-button--primary:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

.page-index__hero-button--secondary {
  background-color: transparent;
  color: #FFD700;
  border-color: #FFD700;
}

.page-index__hero-button--secondary:hover {
  background-color: #FFD700;
  color: #1A1A1A;
  transform: translateY(-3px);
}

.page-index__features-section,
.page-index__game-categories-section,
.page-index__about-section,
.page-index__call-to-action-section,
.page-index__testimonials-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 40px 20px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.page-index__features-title,
.page-index__game-categories-title,
.page-index__about-title,
.page-index__call-to-action-title,
.page-index__testimonials-title {
  font-size: 2.5em;
  color: #1A1A1A;
  text-align: center;
  margin-bottom: 50px;
}

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

.page-index__feature-card,
.page-index__category-card,
.page-index__testimonial-card {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__feature-card:hover,
.page-index__category-card:hover,
.page-index__testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.page-index__feature-icon,
.page-index__category-image {
  width: 100%;
  height: auto;
  max-width: 400px;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-index__feature-card-title,
.page-index__category-card-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-index__feature-card-description,
.page-index__category-card-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
}

.page-index__feature-card-link,
.page-index__category-card-link {
  display: inline-block;
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid #FFD700;
  padding-bottom: 5px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-index__feature-card-link:hover,
.page-index__category-card-link:hover {
  color: #e6c200;
  border-color: #e6c200;
}

.page-index__about-section {
  display: flex;
  align-items: center;
  gap: 40px;
  background-color: #1A1A1A;
  color: #ffffff;
  padding: 60px 40px;
}

.page-index__about-content {
  flex: 1;
}

.page-index__about-title {
  font-size: 2.5em;
  color: #FFD700;
  margin-bottom: 30px;
}

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

.page-index__about-button {
  display: inline-block;
  background-color: #FFD700;
  color: #1A1A1A;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-index__about-button:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

.page-index__about-image-wrapper {
  flex: 1;
  min-width: 400px;
}

.page-index__about-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.page-index__call-to-action-section {
  background-color: #FFD700;
  color: #1A1A1A;
  text-align: center;
  padding: 60px 20px;
}

.page-index__call-to-action-title {
  font-size: 2.8em;
  margin-bottom: 25px;
}

.page-index__call-to-action-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-index__call-to-action-button {
  display: inline-block;
  padding: 18px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin: 0 10px;
  border: 2px solid transparent;
}

.page-index__call-to-action-button {
  background-color: #1A1A1A;
  color: #FFD700;
}

.page-index__call-to-action-button:hover {
  background-color: #333333;
  transform: translateY(-3px);
}

.page-index__call-to-action-button--alt {
  background-color: transparent;
  border-color: #1A1A1A;
  color: #1A1A1A;
}

.page-index__call-to-action-button--alt:hover {
  background-color: #1A1A1A;
  color: #FFD700;
}

.page-index__testimonials-title {
  color: #1A1A1A;
}

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

.page-index__testimonial-author {
  font-weight: bold;
  color: #1A1A1A;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3em;
  }
  .page-index__about-section {
    flex-direction: column;
  }
  .page-index__about-image-wrapper {
    min-width: unset;
  }
}

@media (max-width: 768px) {
  .page-index {
    padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
  }
  .page-index__hero-section {
    padding: 60px 15px;
  }
  .page-index__hero-title {
    font-size: 2.2em;
  }
  .page-index__hero-description {
    font-size: 1.1em;
  }
  .page-index__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__hero-button {
    width: 100%;
    max-width: 300px;
  }
  .page-index__features-title,
  .page-index__game-categories-title,
  .page-index__about-title,
  .page-index__call-to-action-title,
  .page-index__testimonials-title {
    font-size: 2em;
  }
  .page-index__features-section,
  .page-index__game-categories-section,
  .page-index__about-section,
  .page-index__call-to-action-section,
  .page-index__testimonials-section {
    margin: 40px auto;
    padding: 30px 15px;
  }
  .page-index__features-grid,
  .page-index__game-categories-grid,
  .page-index__testimonials-grid {
    grid-template-columns: 1fr;
  }
  .page-index__call-to-action-button {
    margin: 10px 0;
    width: 100%;
    max-width: 300px;
  }
  .page-index__about-section {
    padding: 40px 20px;
  }

  /* Critical: Prevent content overflow on mobile */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
  .page-index {
    overflow-x: hidden;
  }
}