.page-index {
  color: #333333; /* Dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensures content starts below fixed header */
}

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

.page-index__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 600px; /* Minimum height for hero section */
  background-color: #000000; /* Fallback background */
}

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

.page-index__hero-content {
  position: relative;
  z-index: 2;
  color: #FFFFFF;
  max-width: 800px;
  padding: 40px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent dark overlay for text */
  border-radius: 10px;
}

.page-index__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FCBC45; /* Login color for emphasis */
}

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

.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.3s ease;
  font-size: 1.1em;
  min-width: 200px; /* Ensure buttons are large enough */
  text-align: center;
}

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

.page-index__button--register:hover {
  background-color: transparent;
  color: #FFFFFF;
  transform: translateY(-3px);
}

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

.page-index__button--login:hover {
  background-color: transparent;
  color: #FCBC45;
  transform: translateY(-3px);
}

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

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

.page-index__about-us-section, .page-index__games-section, .page-index__promotions-section, .page-index__download-section, .page-index__testimonials-section, .page-index__cta-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

.page-index__about-us-section {
  background-color: #f8f8f8;
}

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

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

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

.page-index__about-card-image {
  width: 100%;
  height: 267px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.page-index__about-card-description {
  font-size: 1em;
  color: #666666;
}

.page-index__button--learn-more {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
  margin-top: 20px;
}

.page-index__button--learn-more:hover {
  background-color: #FCBC45;
  border-color: #FCBC45;
}

.page-index__games-section {
  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: #000000;
  color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

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

.page-index__game-card-title {
  font-size: 1.6em;
  margin: 20px 0 10px;
  padding: 0 20px;
}

.page-index__game-card-title a {
  color: #FCBC45;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

.page-index__button--view-games {
  background-color: #FCBC45;
  color: #000000;
  border: none;
  padding: 10px 20px;
  margin-bottom: 20px;
  font-size: 1em;
}

.page-index__button--view-games:hover {
  background-color: #FFFFFF;
  color: #000000;
}

.page-index__promotions-section {
  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;
  padding-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease;
  overflow: hidden;
}

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

.page-index__promo-card-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  margin-bottom: 20px;
}

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

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

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

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

.page-index__button--claim-promo {
  background-color: #000000;
  color: #FFFFFF;
  border: none;
  padding: 10px 20px;
  font-size: 1em;
}

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

.page-index__button--view-all-promos {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  margin-top: 40px;
}

.page-index__button--view-all-promos:hover {
  background-color: #000000;
  color: #FCBC45;
  border-color: #000000;
}

.page-index__download-section {
  background-color: #FFFFFF;
  text-align: center;
}

.page-index__download-options {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin-top: 40px;
}

.page-index__qr-code {
  width: 250px;
  height: 250px;
  border: 5px solid #000000;
  border-radius: 10px;
  object-fit: contain; /* Ensure QR code is fully visible */
}

.page-index__app-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

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

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

.page-index__download-note {
  margin-top: 30px;
  font-size: 0.95em;
  color: #666666;
}

.page-index__testimonials-section {
  background-color: #f8f8f8;
}

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

.page-index__testimonial-card {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: left;
}

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

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

.page-index__cta-section {
  background-color: #000000;
  color: #FFFFFF;
  text-align: center;
}

.page-index__cta-section .page-index__section-title, .page-index__cta-section .page-index__section-intro {
  color: #FFFFFF;
}

.page-index__button--large-cta {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  padding: 20px 40px;
  font-size: 1.3em;
  margin-top: 40px;
}

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

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-index__hero-title {
    font-size: 2.8em;
  }
  .page-index__hero-description {
    font-size: 1.1em;
  }
  .page-index__section-title {
    font-size: 2.2em;
  }
  .page-index__about-card-image, .page-index__game-card-image, .page-index__promo-card-image {
    height: 200px; /* Adjust height for smaller screens */
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    min-height: 500px;
  }
  .page-index__hero-content {
    padding: 20px;
  }
  .page-index__hero-title {
    font-size: 2em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__hero-actions {
    flex-direction: column;
    gap: 10px;
  }
  .page-index__button {
    width: 100%;
    max-width: 300px;
  }
  .page-index__section-title {
    font-size: 1.8em;
    padding-top: 40px;
  }
  .page-index__section-intro {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-index__about-features, .page-index__game-categories, .page-index__promo-cards, .page-index__testimonials-grid {
    grid-template-columns: 1fr;
  }
  .page-index__qr-code {
    width: 200px;
    height: 200px;
  }
  .page-index__app-buttons {
    width: 100%;
    max-width: 250px;
  }
  .page-index__button--download {
    width: 100%;
  }
  /* Mobile content area image constraints */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
  .page-index__about-card-image, .page-index__game-card-image, .page-index__promo-card-image {
    height: auto; /* Allow auto height for responsive images */
    min-height: 200px; /* Ensure minimum size */
  }
  .page-index__hero-image {
    height: auto;
    min-height: 500px; /* Maintain a reasonable minimum height for hero */
  }
  .page-index__download-options {
    flex-direction: column; /* Stack elements vertically */
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 1.6em;
  }
  .page-index__hero-description {
    font-size: 0.9em;
  }
  .page-index__section-title {
    font-size: 1.5em;
  }
  .page-index__button--large-cta {
    font-size: 1.1em;
    padding: 15px 30px;
  }
}