.page-index {
  color: #ffffff; /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-index__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-color: #000000; /* Main dark background for hero */
  padding-bottom: 60px;
}

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

.page-index__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Subtle background image */
}

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

.page-index__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

.page-index__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-width: 200px;
  text-align: center;
  font-size: 1.1em;
}

.page-index__button--register {
  background-color: #FFFFFF; /* Custom color for Register */
  color: #000000;
}

.page-index__button--register:hover {
  background-color: #e0e0e0;
}

.page-index__button--login {
  background-color: #FCBC45; /* Custom color for Login */
  color: #000000;
}

.page-index__button--login:hover {
  background-color: #e6a938;
}

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

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

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

.page-index__button--primary:hover {
  background-color: #e6a938;
}

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

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

.page-index__button--join-now {
  background-color: #FCBC45;
  color: #000000;
}

.page-index__button--join-now:hover {
  background-color: #e6a938;
}

.page-index__section-title {
  font-size: 2.8em;
  text-align: center;
  margin-bottom: 20px;
  color: #FCBC45; /* Highlight with auxiliary color */
}

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

.page-index__featured-games-section,
.page-index__promotions-section,
.page-index__download-app-section,
.page-index__deep-content,
.page-index__cta-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  background-color: rgba(0, 0, 0, 0.7); /* Slightly transparent dark background for sections */
  border-radius: 8px;
  margin-bottom: 40px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

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

.page-index__game-card {
  background-color: rgba(255, 255, 255, 0.05); /* Lighter dark for cards */
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

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

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

.page-index__game-card-title {
  font-size: 1.5em;
  margin-bottom: 10px;
}

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

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

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

.page-index__all-games-cta,
.page-index__all-promos-cta {
  text-align: center;
}

.page-index__promotion-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.page-index__promotion-item {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-index__promotion-image {
  width: 40%;
  height: 250px;
  object-fit: cover;
}

.page-index__promotion-content {
  padding: 25px;
  width: 60%;
}

.page-index__promotion-title {
  font-size: 1.8em;
  margin-bottom: 10px;
}

.page-index__promotion-title a {
  color: #FCBC45;
  text-decoration: none;
}

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

.page-index__promotion-description {
  font-size: 1em;
  color: #cccccc;
  margin-bottom: 20px;
}

.page-index__download-app-section {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  text-align: center;
}

.page-index__download-app-content {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  padding: 20px;
}

.page-index__download-app-image-wrapper {
  flex: 1;
  min-width: 300px;
  max-width: 400px;
  padding: 20px;
}

.page-index__download-app-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.page-index__deep-content-subtitle {
  font-size: 2em;
  margin-top: 40px;
  margin-bottom: 15px;
  color: #FCBC45;
}

.page-index__deep-content p {
  margin-bottom: 20px;
  color: #e0e0e0;
}

.page-index__deep-content-list {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #e0e0e0;
}

.page-index__deep-content-list li {
  margin-bottom: 8px;
}

.page-index__deep-content-list strong {
  color: #FCBC45;
}

.page-index__cta-section {
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3em;
  }
  .page-index__section-title {
    font-size: 2.5em;
  }
  .page-index__promotion-item {
    flex-direction: column;
  }
  .page-index__promotion-image,
  .page-index__promotion-content {
    width: 100%;
  }
  .page-index__promotion-image {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .page-index__hero-title {
    font-size: 2.5em;
  }
  .page-index__hero-description {
    font-size: 1.1em;
  }
  .page-index__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__button {
    width: 100%;
    max-width: 300px;
  }
  .page-index__section-title {
    font-size: 2em;
  }
  .page-index__game-grid {
    grid-template-columns: 1fr;
  }
  .page-index__download-app-section {
    flex-direction: column-reverse;
  }
  .page-index__download-app-content,
  .page-index__download-app-image-wrapper {
    min-width: unset;
    max-width: 100%;
  }
  /* Ensure all images within .page-index are responsive and don't overflow */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
  .page-index {
    overflow-x: hidden;
  }
  /* Specific image size overrides for mobile to ensure min 200px display */
  .page-index__game-card-image, .page-index__promotion-image, .page-index__download-app-image {
    min-width: 200px; 
    min-height: 200px; 
    object-fit: cover; /* Maintain aspect ratio and cover space */
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 2em;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__hero-content,
  .page-index__featured-games-section,
  .page-index__promotions-section,
  .page-index__download-app-section,
  .page-index__deep-content,
  .page-index__cta-section {
    padding: 30px 15px;
  }
  .page-index__hero-cta-buttons {
    gap: 10px;
  }
  .page-index__button {
    font-size: 1em;
    padding: 12px 25px;
  }
  .page-index__deep-content-subtitle {
    font-size: 1.6em;
  }
}