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

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

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

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

.page-index__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-align: center;
}

.page-index__btn--register {
  background-color: #000000; /* Main color for primary action */
  color: #FFFFFF;
  margin-right: 15px;
  border: 2px solid #000000;
}

.page-index__btn--register:hover {
  background-color: #333333;
  border-color: #333333;
}

.page-index__btn--login {
  background-color: #FCBC45; /* Login specific color */
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-index__btn--login:hover {
  background-color: #e0a53b;
  border-color: #e0a53b;
}

.page-index__btn--small {
  padding: 8px 15px;
  font-size: 0.9em;
  background-color: #000000;
  color: #FFFFFF;
  border: 1px solid #000000;
}

.page-index__btn--small:hover {
  background-color: #333333;
  border-color: #333333;
}

.page-index__btn--promo {
  background-color: #FCBC45;
  color: #000000;
  border: 1px solid #FCBC45;
}

.page-index__btn--promo:hover {
  background-color: #e0a53b;
  border-color: #e0a53b;
}

.page-index__btn--view-all {
  background-color: transparent;
  color: #000000;
  border: 2px solid #000000;
  margin-top: 30px;
}

.page-index__btn--view-all:hover {
  background-color: #000000;
  color: #FFFFFF;
}

.page-index__btn--download {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
  margin-top: 30px;
}

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

.page-index__btn--final-register {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
  font-size: 1.2em;
  padding: 15px 35px;
  margin-top: 40px;
}

.page-index__btn--final-register:hover {
  background-color: #333333;
  border-color: #333333;
}

/* Hero Section */
.page-index__hero-section {
  position: relative;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 0;
}

.page-index__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-index__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.page-index__hero-content {
  position: relative;
  z-index: 3;
  color: #FFFFFF;
  max-width: 900px;
  padding: 20px;
}

.page-index__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-index__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

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

.page-index__game-card {
  background-color: #fefefe;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index__game-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
}

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

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

.page-index__game-card-title a:hover {
  text-decoration: underline;
}

.page-index__game-card-text {
  color: #555555;
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Promotions Section */
.page-index__promo-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: 50px;
}

.page-index__promo-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index__promo-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
}

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

.page-index__promo-card-text {
  color: #555555;
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Security Section */
.page-index__security-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

.page-index__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
  text-align: center;
}

.page-index__feature-item {
  background-color: #fefefe;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding: 30px;
}

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

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

.page-index__feature-text {
  color: #555555;
}

/* Mobile App Section */
.page-index__mobile-app-section {
  padding: 80px 0;
  background-color: #f8f8f8;
}

.page-index__mobile-app-section .page-index__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

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

.page-index__mobile-app-image {
  flex-shrink: 0;
  width: 400px;
  height: 450px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

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

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

.page-index__cta-section .page-index__section-description {
  color: #f0f0f0;
}

/* 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 {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    height: auto;
    min-height: 400px;
    padding-top: var(--header-offset, 120px); /* Ensure mobile content is not hidden by fixed header */
  }

  .page-index__hero-title {
    font-size: 2.2em;
  }

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

  .page-index__hero-actions {
    flex-direction: column;
    gap: 10px;
  }

  .page-index__btn--register, .page-index__btn--login {
    margin-right: 0;
    width: 80%;
    max-width: 300px;
  }

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

  .page-index__section-description {
    font-size: 0.95em;
  }

  .page-index__game-grid, .page-index__promo-cards, .page-index__security-features {
    grid-template-columns: 1fr;
  }

  .page-index__mobile-app-section .page-index__container {
    flex-direction: column;
    text-align: center;
  }

  .page-index__mobile-app-image {
    width: 100%;
    max-width: 350px;
    height: auto;
    margin-top: 30px;
  }

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

  /* Specific overrides for feature icons to maintain their size */
  .page-index__feature-icon {
    width: 80px;
    height: 80px;
  }
}

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

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

  .page-index__btn--register, .page-index__btn--login {
    width: 90%;
  }

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

  .page-index__game-card-image, .page-index__promo-card-image {
    height: 180px;
  }
}