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

.page-index__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  background-color: #000000; /* Dark background for hero content */
}

.page-index__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6; /* Slightly dim the background image for text readability */
}

.page-index__hero-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  color: #FFFFFF;
  padding: 40px 20px;
}

.page-index__hero-content {
  position: relative;
  z-index: 2;
}

.page-index__hero-title {
  font-size: 3.5em;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-index__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

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

.page-index__button--register {
  background-color: #FFFFFF;
  color: #000000;
  border: 2px solid #FFFFFF;
}

.page-index__button--register:hover {
  background-color: #FCBC45;
  border-color: #FCBC45;
  color: #FFFFFF;
}

.page-index__button--login {
  background-color: #FCBC45;
  color: #FFFFFF;
  border: 2px solid #FCBC45;
}

.page-index__button--login:hover {
  background-color: #FFFFFF;
  border-color: #FFFFFF;
  color: #000000;
}

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

.page-index__section-title {
  font-size: 2.8em;
  text-align: center;
  margin-bottom: 20px;
  color: #000000;
}

.page-index__section-subtitle {
  font-size: 1.2em;
  text-align: center;
  margin-bottom: 40px;
  color: #555555;
}

/* About Section */
.page-index__about-section {
  background-color: #F8F8F8;
  padding: 80px 0;
}

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

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

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

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

.page-index__about-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  min-width: 400px; /* Ensure image is not too small */
  min-height: 300px;
}

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

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

/* Game Categories Section */
.page-index__game-categories-section {
  padding: 80px 0;
}

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

.page-index__category-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

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

.page-index__category-title {
  font-size: 1.8em;
  margin-bottom: 10px;
  color: #000000;
}

.page-index__category-title a {
  color: #000000;
  text-decoration: none;
}

.page-index__category-title a:hover {
  color: #FCBC45;
}

.page-index__category-description {
  font-size: 1em;
  color: #666666;
  padding: 0 20px;
  margin-bottom: 20px;
}

.page-index__button--play, .page-index__button--claim, .page-index__button--support {
  background-color: #FCBC45;
  color: #FFFFFF;
  border: 2px solid #FCBC45;
  padding: 12px 25px;
}

.page-index__button--play:hover, .page-index__button--claim:hover, .page-index__button--support:hover {
  background-color: #000000;
  border-color: #000000;
  color: #FFFFFF;
}

/* Promotions Section */
.page-index__promotions-section {
  background-color: #F0F0F0;
  padding: 80px 0;
}

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

.page-index__promo-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  padding-bottom: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

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

.page-index__promo-title {
  font-size: 2em;
  margin-bottom: 10px;
  padding: 0 20px;
  color: #000000;
}

.page-index__promo-title a {
  color: #000000;
  text-decoration: none;
}

.page-index__promo-title a:hover {
  color: #FCBC45;
}

.page-index__promo-description {
  font-size: 1.05em;
  color: #666666;
  padding: 0 20px;
  margin-bottom: 25px;
}

.page-index__full-promo-link {
  text-align: center;
}

/* Why Choose Section */
.page-index__why-choose-section {
  padding: 80px 0;
  text-align: center;
}

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

.page-index__why-choose-item {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  padding: 30px;
  text-align: left;
  transition: transform 0.3s ease;
}

.page-index__why-choose-item:hover {
  transform: translateY(-5px);
}

.page-index__why-choose-heading {
  font-size: 1.6em;
  color: #000000;
  margin-bottom: 15px;
}

.page-index__why-choose-description {
  font-size: 1em;
  color: #555555;
  line-height: 1.6;
}

.page-index__why-choose-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  min-width: 400px; /* Ensure image is not too small */
  min-height: 300px;
}

/* Testimonials Section */
.page-index__testimonials-section {
  background-color: #F8F8F8;
  padding: 80px 0;
  text-align: center;
}

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

.page-index__testimonial-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  padding: 30px;
  text-align: center;
  min-height: 200px; /* Ensure cards have some height */
}

.page-index__testimonial-quote {
  font-size: 1.1em;
  font-style: italic;
  color: #444444;
  line-height: 1.7;
  margin-bottom: 20px;
}

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

.page-index__testimonials-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  min-width: 400px; /* Ensure image is not too small */
  min-height: 300px;
}

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

.page-index__cta-title {
  font-size: 3em;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-index__cta-description {
  font-size: 1.3em;
  max-width: 900px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

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

.page-index__cta-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  min-width: 600px; /* Ensure image is not too small */
  min-height: 300px;
}

/* Contact Info Section */
.page-index__contact-info-section {
  padding: 60px 0;
  text-align: center;
  background-color: #FCBC45;
  color: #000000;
}

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

.page-index__button--support {
  background-color: #000000;
  color: #FFFFFF;
  border-color: #000000;
}

.page-index__button--support:hover {
  background-color: #FFFFFF;
  color: #000000;
  border-color: #FFFFFF;
}

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

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

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

  .page-index__about-content {
    flex-direction: column;
  }

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

  .page-index__about-image, .page-index__why-choose-image, .page-index__testimonials-image, .page-index__cta-image {
    min-width: 400px; /* Maintain minimum width for larger images */
    width: 100%;
  }

  .page-index__category-grid, .page-index__promo-grid, .page-index__why-choose-grid, .page-index__testimonial-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .page-index__category-image, .page-index__promo-image {
    min-width: 280px;
  }
}

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

  .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, .page-index__cta-title {
    font-size: 1.8em;
  }

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

  .page-index__container {
    padding: 30px 15px;
  }

  .page-index__about-section, .page-index__game-categories-section, .page-index__promotions-section, .page-index__why-choose-section, .page-index__testimonials-section, .page-index__cta-section, .page-index__contact-info-section {
    padding: 50px 0;
  }

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

  .page-index__about-image, .page-index__why-choose-image, .page-index__testimonials-image, .page-index__cta-image {
    min-width: 200px; /* Ensure minimum width for all images */
    min-height: 150px;
  }

  .page-index__category-image, .page-index__promo-image {
    min-width: 200px;
    min-height: 150px;
  }

  .page-index__category-grid, .page-index__promo-grid, .page-index__why-choose-grid, .page-index__testimonial-grid {
    grid-template-columns: 1fr;
  }

  .page-index__hero-section {
    padding-top: var(--header-offset, 120px); /* Keep padding top for mobile */
  }
}