.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 space for fixed header */
}

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

.page-index__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.page-index__hero-content {
  z-index: 1;
  max-width: 800px;
}

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

.page-index__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #e0e0e0;
}

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

.page-index__hero-button {
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-index__hero-button--register {
  background-color: #FFFFFF; /* White for Register */
  color: #000000; /* Black text for white background */
}

.page-index__hero-button--register:hover {
  background-color: #f0f0f0;
}

.page-index__hero-button--login {
  background-color: #FCBC45; /* Orange for Login */
  color: #000000; /* Black text for orange background */
}

.page-index__hero-button--login:hover {
  background-color: #e0a53b;
}

.page-index__hero-image {
  margin-top: 40px;
  width: 100%;
  max-width: 1000px;
}

.page-index__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.page-index__section-subtitle {
  font-size: 1.2em;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
}

.page-index__about-section,
.page-index__games-section,
.page-index__promotions-section,
.page-index__security-section,
.page-index__app-section,
.page-index__join-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-index__games-section {
  background-color: #f8f8f8;
  border-radius: 10px;
}

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

.page-index__game-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
}

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

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

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

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

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

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

.page-index__game-button:hover {
  background-color: #333333;
}

.page-index__promotions-section {
  background-color: #FCBC45;
  color: #000000;
  border-radius: 10px;
}

.page-index__promotions-section .page-index__section-title,
.page-index__promotions-section .page-index__section-subtitle {
  color: #000000;
}

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

.page-index__promo-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
}

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

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

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

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

.page-index__promo-button:hover {
  background-color: #333333;
}

.page-index__promotions-callout {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1em;
  color: #000000;
}

.page-index__promotions-callout a {
  color: #000000;
  font-weight: bold;
  text-decoration: underline;
}

.page-index__promotions-callout a:hover {
  color: #333333;
}

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

.page-index__feature-item img {
  width: 100%;
  max-width: 300px;
  height: 200px;
  object-fit: contain;
  margin: 0 auto 20px auto;
  display: block;
}

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

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

.page-index__security-more-info {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1em;
  color: #444444;
}

.page-index__security-more-info a {
  color: #000000;
  font-weight: bold;
  text-decoration: underline;
}

.page-index__security-more-info a:hover {
  color: #333333;
}

.page-index__app-section {
  background-color: #000000;
  color: #FFFFFF;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  text-align: center;
}

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

.page-index__app-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.page-index__app-content {
  max-width: 800px;
}

.page-index__app-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  color: #e0e0e0;
}

.page-index__app-button {
  display: inline-block;
  background-color: #FCBC45;
  color: #000000;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-index__app-button:hover {
  background-color: #e0a53b;
}

.page-index__app-image img {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.page-index__join-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

.page-index__join-button {
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-index__join-button--register {
  background-color: #000000;
  color: #FFFFFF;
}

.page-index__join-button--register:hover {
  background-color: #333333;
}

.page-index__join-button--faq {
  background-color: #FFFFFF;
  color: #000000;
  border: 2px solid #000000;
}

.page-index__join-button--faq:hover {
  background-color: #f0f0f0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3em;
  }
  .page-index__section-title {
    font-size: 2.2em;
  }
  .page-index__hero-image img,
  .page-index__app-image img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding: 60px 15px;
  }
  .page-index__hero-title {
    font-size: 2.5em;
  }
  .page-index__hero-description {
    font-size: 1.1em;
  }
  .page-index__hero-actions,
  .page-index__join-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__hero-button,
  .page-index__join-button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__section-subtitle {
    font-size: 1em;
  }
  .page-index__game-grid,
  .page-index__promo-grid,
  .page-index__security-features {
    grid-template-columns: 1fr;
  }
  .page-index__game-card img,
  .page-index__promo-card img,
  .page-index__feature-item img,
  .page-index__app-image img {
    max-width: 100%;
    height: auto; /* Ensure images scale correctly */
  }
  .page-index__about-section,
  .page-index__games-section,
  .page-index__promotions-section,
  .page-index__security-section,
  .page-index__app-section,
  .page-index__join-section {
    padding: 40px 15px;
  }

  /* Enforce minimum image display size for content area */
  .page-index img {
    max-width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
  }
  .page-index__game-card img, .page-index__promo-card img, .page-index__feature-item img, .page-index__app-image img {
    min-width: 200px;
    min-height: 200px;
  }
  .page-index__hero-image img {
    min-width: unset;
    min-height: unset;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 2em;
  }
  .page-index__hero-description {
    font-size: 0.9em;
  }
  .page-index__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-index__section-title {
    font-size: 1.5em;
  }
  .page-index__section-subtitle {
    font-size: 0.9em;
  }
  .page-index__app-button,
  .page-index__join-button {
    font-size: 1em;
    padding: 12px 25px;
  }
}