.page-index {
  color: #333333; /* Default text color for light background */
  line-height: 1.6;
  font-family: Arial, sans-serif;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-index__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  background-color: #000000; /* Dark background for hero */
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.page-index__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Overlay for text readability */
  z-index: 1;
}

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

.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: 40px;
  line-height: 1.5;
  color: #F0F0F0;
}

.page-index__hero-buttons {
  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;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
  font-size: 1.1em;
}

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

.page-index__button--register:hover {
  background-color: #F0F0F0;
  color: #000000;
}

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

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

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

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

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

.page-index__button--learn-more {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
  display: block;
  width: fit-content;
  margin: 40px auto 0 auto;
}

.page-index__button--learn-more:hover {
  background-color: #333333;
  color: #FFFFFF;
}

/* Games Showcase Section */
.page-index__games-showcase-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

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

.page-index__game-card {
  background-color: #F8F8F8;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease;
}

.page-index__game-card:hover {
  transform: translateY(-10px);
}

.page-index__game-card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

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

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

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

.page-index__game-card-description {
  font-size: 0.95em;
  color: #666666;
  padding: 0 15px;
  margin-bottom: 20px;
}

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

.page-index__button--play:hover {
  background-color: #E0A83A;
}

.page-index__button--view-all {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
  display: block;
  width: fit-content;
  margin: 60px auto 0 auto;
}

.page-index__button--view-all:hover {
  background-color: #333333;
}

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

.page-index__promo-cards {
  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: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease;
}

.page-index__promo-card:hover {
  transform: translateY(-10px);
}

.page-index__promo-card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

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

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

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

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

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

.page-index__button--claim:hover {
  background-color: #E0A83A;
}

.page-index__button--view-all-promos {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
  display: block;
  width: fit-content;
  margin: 60px auto 0 auto;
}

.page-index__button--view-all-promos:hover {
  background-color: #333333;
}

/* Why Choose Us Section */
.page-index__why-choose-us-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

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

.page-index__feature-item {
  text-align: center;
  padding: 30px;
  background-color: #F8F8F8;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

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

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

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

.page-index__feature-text {
  font-size: 0.95em;
  color: #666666;
}

/* Testimonials Section */
.page-index__testimonials-section {
  padding: 80px 0;
  background-color: #000000;
  color: #FFFFFF;
}

.page-index__testimonials-section .page-index__section-title,
.page-index__testimonials-section .page-index__section-description {
  color: #FFFFFF;
}

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

.page-index__testimonial-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-index__testimonial-text {
  font-style: italic;
  margin-bottom: 15px;
  font-size: 1.05em;
  color: #F0F0F0;
}

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

/* Download App Section */
.page-index__download-app-section {
  padding: 80px 0;
  background-color: #F8F8F8;
  text-align: center;
}

.page-index__app-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  margin-bottom: 40px;
}

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

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

.page-index__app-image {
  max-width: 400px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Call to Action Section */
.page-index__cta-section {
  padding: 80px 0;
  background-color: #FCBC45;
  color: #000000;
  text-align: center;
}

.page-index__cta-section .page-index__section-title,
.page-index__cta-section .page-index__section-description {
  color: #000000;
}

.page-index__button--join-now {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
  margin-top: 40px;
}

.page-index__button--join-now:hover {
  background-color: #333333;
  color: #FFFFFF;
}

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

@media (max-width: 768px) {
  .page-index__hero-section {
    padding: 40px 15px;
  }
  .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 {
    padding: 12px 25px;
    font-size: 1em;
    width: 100%;
    max-width: 300px; /* Constrain button width on mobile */
  }
  .page-index__section-title {
    font-size: 1.8em;
    margin-top: 40px;
  }
  .page-index__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-index__game-categories,
  .page-index__promo-cards,
  .page-index__features-grid,
  .page-index__testimonial-cards {
    grid-template-columns: 1fr;
  }
  /* Ensure images in content area are responsive and don't overflow */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
  .page-index__hero-image { /* Specific rule for hero image in mobile */
    width: 100%;
    height: 100%;
  }
  .page-index__game-card-image,
  .page-index__promo-card-image {
    height: 200px;
  }
  .page-index__feature-icon {
    width: 80px;
    height: 80px;
  }
  .page-index__app-image {
    max-width: 90%;
  }
  .page-index__app-buttons {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 2em;
  }
  .page-index__hero-description {
    font-size: 0.9em;
  }
  .page-index__section-title {
    font-size: 1.5em;
  }
  .page-index__button {
    font-size: 0.9em;
  }
  .page-index__feature-icon {
    width: 60px;
    height: 60px;
  }
  .page-index__game-card-title,
  .page-index__promo-card-title {
    font-size: 1.5em;
  }
}