.page-index {
  color: #000000; /* Dark text for light background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure padding for header offset on main content */
}

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

.page-index__hero-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.page-index__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7); /* Darken image for text readability */
}

.page-index__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  color: #FFFFFF; /* Light text on darkened hero image */
}

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

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

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

.page-index__button {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  min-width: 200px; /* Ensure button minimum width */
  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.5em;
  text-align: center;
  margin-bottom: 50px;
  color: #000000;
}

.page-index__about-section,
.page-index__games-section,
.page-index__promo-section,
.page-index__mobile-app-section,
.page-index__faq-section,
.page-index__cta-section,
.page-index__blog-section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
  background-color: #FFFFFF;
}

.page-index__about-grid,
.page-index__games-grid,
.page-index__blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-index__about-item,
.page-index__game-card,
.page-index__blog-card {
  background-color: #f8f8f8;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-index__about-item:hover,
.page-index__game-card:hover,
.page-index__blog-card:hover {
  transform: translateY(-5px);
}

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

.page-index__item-title,
.page-index__card-title,
.page-index__blog-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #000000;
}

.page-index__card-title a,
.page-index__blog-title a {
  text-decoration: none;
  color: #000000;
  transition: color 0.3s ease;
}

.page-index__card-title a:hover,
.page-index__blog-title a:hover {
  color: #FCBC45;
}

.page-index__item-description,
.page-index__card-description,
.page-index__blog-excerpt {
  font-size: 1em;
  color: #333333;
  margin-bottom: 20px;
}

.page-index__card-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #FCBC45;
  color: #000000;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-index__card-button:hover {
  background-color: #e0a538;
}

.page-index__promo-content,
.page-index__app-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  text-align: center;
}

.page-index__promo-content img,
.page-index__app-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Ensure images are not too small */
  min-height: 200px;
}

.page-index__promo-text,
.page-index__app-text {
  max-width: 600px;
}

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

.page-index__promo-description,
.page-index__app-description {
  font-size: 1.1em;
  color: #333333;
  margin-bottom: 30px;
}

.page-index__button--promo,
.page-index__button--register-now,
.page-index__button--download {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  margin: 10px;
}

.page-index__button--promo:hover,
.page-index__button--register-now:hover,
.page-index__button--download:hover {
  background-color: transparent;
  color: #FCBC45;
}

.page-index__faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-index__faq-item {
  background-color: #f8f8f8;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-index__faq-question {
  font-size: 1.2em;
  margin-bottom: 10px;
  color: #000000;
}

.page-index__faq-answer {
  font-size: 1em;
  color: #333333;
}

.page-index__faq-button-container {
  text-align: center;
  margin-top: 30px;
}

.page-index__button--more-faq,
.page-index__button--contact-support {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
  margin: 10px;
}

.page-index__button--more-faq:hover,
.page-index__button--contact-support:hover {
  background-color: transparent;
  color: #000000;
}

.page-index__cta-section {
  background-color: #000000;
  color: #FFFFFF;
  text-align: center;
  padding: 100px 20px;
  border-radius: 10px;
}

.page-index__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FCBC45;
}

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

.page-index__button--cta-register {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  padding: 15px 40px;
  font-size: 1.1em;
}

.page-index__button--cta-register:hover {
  background-color: transparent;
  color: #FCBC45;
}

.page-index__blog-button-container {
  text-align: center;
  margin-top: 40px;
}

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

.page-index__button--view-all-blogs:hover {
  background-color: transparent;
  color: #000000;
}

/* Responsive adjustments */
@media (min-width: 769px) {
  .page-index__promo-content,
  .page-index__app-content {
    flex-direction: row;
    text-align: left;
  }

  .page-index__promo-content img,
  .page-index__app-content img {
    max-width: 50%;
    flex-shrink: 0;
  }

  .page-index__promo-text,
  .page-index__app-text {
    text-align: left;
  }
}

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

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

  .page-index__hero-buttons {
    flex-direction: column;
  }

  .page-index__button {
    width: 100%;
    margin-bottom: 10px;
  }

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

  .page-index__about-grid,
  .page-index__games-grid,
  .page-index__blog-grid {
    grid-template-columns: 1fr;
  }

  .page-index__promo-content,
  .page-index__app-content {
    flex-direction: column;
  }

  .page-index__promo-content img,
  .page-index__app-content img,
  .page-index__blog-card-image,
  .page-index__about-item-image,
  .page-index__game-card-image {
    max-width: 100%;
    height: auto; /* Ensure images scale correctly */
    min-width: 200px;
    min-height: 200px;
  }

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

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

/* Ensure content area does not overflow horizontally on mobile */
@media (max-width: 768px) {
  .page-index {
    overflow-x: hidden;
  }

  .page-index__hero-section,
  .page-index__about-section,
  .page-index__games-section,
  .page-index__promo-section,
  .page-index__mobile-app-section,
  .page-index__faq-section,
  .page-index__cta-section,
  .page-index__blog-section {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-index__hero-image-container img {
    max-width: 100%;
    height: auto;
  }

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