.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 is not hidden by fixed header */
}

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

.page-index__hero-section {
  background-color: #000000; /* Dark background for hero */
  color: #FFFFFF; /* Light text for dark background */
  text-align: center;
  padding: 80px 20px 40px;
  position: relative;
  overflow: hidden;
}

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

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

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

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

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

.page-index__button--register {
  background-color: #FFFFFF; /* White for Register */
  color: #000000; /* Black text for Register button */
  border: 2px solid #FFFFFF;
}

.page-index__button--register:hover {
  background-color: #FCBC45;
  border-color: #FCBC45;
  transform: translateY(-3px);
  color: #000000;
}

.page-index__button--login {
  background-color: #FCBC45; /* Gold for Login */
  color: #000000; /* Black text for Login button */
  border: 2px solid #FCBC45;
}

.page-index__button--login:hover {
  background-color: #FFFFFF;
  border-color: #FFFFFF;
  transform: translateY(-3px);
  color: #000000;
}

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

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

.page-index__promo-section, .page-index__games-section, .page-index__security-section, .page-index__payment-section, .page-index__app-section, .page-index__about-section, .page-index__blog-section, .page-index__cta-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

.page-index__promo-section {
  background-color: #F8F8F8;
}

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

.page-index__promo-card, .page-index__game-card, .page-index__feature-item, .page-index__blog-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index__promo-card:hover, .page-index__game-card:hover, .page-index__feature-item:hover, .page-index__blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.page-index__promo-image, .page-index__game-image, .page-index__feature-icon, .page-index__blog-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index__card-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #000000;
}

.page-index__card-title a {
  text-decoration: none;
  color: inherit;
}

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

.page-index__card-description {
  font-size: 1em;
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
  min-width: unset;
  background-color: #FCBC45;
  color: #000000;
  border: none;
}

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

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

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

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

.page-index__payment-methods {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-index__payment-logo {
  width: 120px;
  height: 80px;
  object-fit: contain;
  filter: grayscale(100%); /* Maintain original color, but make icons subtle */
  opacity: 0.7;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.page-index__payment-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.page-index__button--center {
  display: block;
  margin: 40px auto 0;
  width: fit-content;
}

.page-index__app-flex {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.page-index__app-content {
  flex: 1;
  min-width: 300px;
}

.page-index__app-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 300px;
}

.page-index__app-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-index__app-features {
  list-style: none;
  padding: 0;
  margin: 30px 0 40px;
}

.page-index__app-features li {
  margin-bottom: 15px;
  font-size: 1.1em;
  position: relative;
  padding-left: 30px;
}

.page-index__app-features li::before {
  content: '✔️';
  position: absolute;
  left: 0;
  color: #FCBC45;
  font-size: 1.2em;
}

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

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

.page-index__about-text {
  margin-bottom: 20px;
  font-size: 1.05em;
  color: #444444;
}

.page-index__cta-section {
  background-color: #FCBC45; /* Gold background for CTA */
  color: #000000; /* Black text for CTA */
  text-align: center;
  padding: 100px 20px;
}

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

.page-index__cta-section .page-index__section-intro {
  color: #333333;
  margin-bottom: 40px;
}

.page-index__button--cta {
  background-color: #000000;
  color: #FFFFFF;
  padding: 18px 40px;
  font-size: 1.3em;
  border-radius: 10px;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3em;
  }
  .page-index__section-title {
    font-size: 2.2em;
  }
  .page-index__promo-grid, .page-index__game-categories, .page-index__security-features, .page-index__blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-index__hero-title {
    font-size: 2.5em;
  }
  .page-index__hero-description {
    font-size: 1.1em;
  }
  .page-index__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__button {
    width: 100%;
    max-width: 300px;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__section-intro {
    font-size: 1em;
  }
  .page-index__promo-grid, .page-index__game-categories, .page-index__security-features, .page-index__blog-grid {
    grid-template-columns: 1fr;
  }
  .page-index__app-flex {
    flex-direction: column;
  }
  .page-index__app-image-wrapper {
    order: -1; /* Image appears above text on mobile */
    margin-bottom: 30px;
  }
  /* CRITICAL: Ensure images do not overflow on mobile */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
  .page-index__promo-image, .page-index__game-image, .page-index__feature-icon, .page-index__blog-image {
    height: auto; /* Allow height to adjust for smaller screens */
    min-height: 200px; /* Minimum height for content images */
    width: 100%;
  }
  .page-index__feature-icon {
    width: 100%; /* Make icons fill available width up to their natural size */
    max-width: 150px;
    height: auto;
  }
  .page-index__payment-logo {
    width: 100px;
    height: auto;
  }
  .page-index__button--cta {
    font-size: 1.1em;
    padding: 15px 30px;
  }
}

@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__promo-card, .page-index__game-card, .page-index__feature-item, .page-index__blog-card {
    padding: 20px;
  }
  .page-index__card-title {
    font-size: 1.4em;
  }
  .page-index__app-features li {
    font-size: 1em;
  }
}