.page-index {
  color: #333333; /* Default dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-index__hero-section {
  background-color: #007BFF; /* Primary color background for hero */
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  position: relative;
  overflow: hidden;
}

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

.page-index__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  filter: brightness(0.7); /* Darken image to ensure text contrast */
}

.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: #FFC107; /* Auxiliary color for emphasis */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

.page-index__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}

.page-index__button--primary {
  background-color: #FFC107; /* Auxiliary color for primary action */
  color: #0056b3; /* Darker shade of primary for contrast */
  border: 2px solid #FFC107;
}

.page-index__button--primary:hover {
  background-color: #e0a800;
  transform: translateY(-2px);
}

.page-index__button--secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-index__button--secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.page-index__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
  border-radius: 6px;
}

.page-index__section-title {
  font-size: 2.5em;
  color: #007BFF; /* Primary color for main titles */
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

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

.page-index__features-section,
.page-index__games-showcase,
.page-index__promotions-section,
.page-index__login-guide-section,
.page-index__about-us-section,
.page-index__cta-bottom-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

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

.page-index__feature-card,
.page-index__game-card,
.page-index__promotion-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 20px 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;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.page-index__feature-card:hover,
.page-index__game-card:hover,
.page-index__promotion-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-index__feature-icon,
.page-index__game-image,
.page-index__promotion-image {
  width: 100%;
  height: auto;
  max-width: 400px; /* Ensure images are not too wide */
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-index__feature-title,
.page-index__game-title,
.page-index__promotion-title {
  font-size: 1.8em;
  color: #007BFF;
  margin-bottom: 15px;
}

.page-index__feature-description,
.page-index__game-description,
.page-index__promotion-description {
  font-size: 1em;
  color: #666666;
  flex-grow: 1;
}

.page-index__cta-buttons {
  text-align: center;
  margin-top: 50px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.page-index__guide-step {
  background-color: #f8f9fa;
  border-left: 5px solid #007BFF;
  padding: 25px;
  border-radius: 8px;
}

.page-index__guide-step-title {
  font-size: 1.5em;
  color: #007BFF;
  margin-bottom: 10px;
}

.page-index__guide-step-description {
  font-size: 0.95em;
  color: #555555;
}

.page-index__login-troubleshooting {
  text-align: center;
  margin-top: 30px;
  font-size: 1em;
  color: #666666;
}

.page-index__login-troubleshooting a {
  color: #007BFF;
  text-decoration: none;
  font-weight: bold;
}

.page-index__login-troubleshooting a:hover {
  text-decoration: underline;
}

.page-index__about-us-section {
  background-color: #f0f8ff;
  padding: 60px 20px;
  border-radius: 12px;
}

.page-index__about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  margin-top: 30px;
}

.page-index__about-image {
  flex: 1;
  min-width: 300px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-height: 200px; /* Minimum size requirement */
  object-fit: cover;
}

.page-index__about-text {
  flex: 2;
  min-width: 300px;
}

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

.page-index__cta-bottom-section {
  background-color: #007BFF;
  color: #ffffff;
  padding: 60px 20px;
  text-align: center;
  border-radius: 12px;
  margin-top: 60px;
}

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

.page-index__cta-bottom-section .page-index__section-intro {
  color: #e0e0e0;
}

/* 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;
  }
  .page-index__about-content {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding: 60px 15px;
  }
  .page-index__hero-title {
    font-size: 2.2em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__button {
    width: 80%;
    margin: 0 auto;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__section-intro {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-index__features-grid,
  .page-index__game-grid,
  .page-index__promotions-grid,
  .page-index__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-index__feature-card,
  .page-index__game-card,
  .page-index__promotion-card {
    padding: 20px;
  }
  .page-index__feature-title,
  .page-index__game-title,
  .page-index__promotion-title {
    font-size: 1.5em;
  }
  .page-index__hero-image-wrapper img, /* Mobile image constraint */
  .page-index__feature-icon, /* Mobile image constraint */
  .page-index__game-image, /* Mobile image constraint */
  .page-index__promotion-image, /* Mobile image constraint */
  .page-index__about-image { /* Mobile image constraint */
    max-width: 100%;
    height: auto;
    width: auto; /* Allow auto width to respect max-width */
  }
  .page-index__about-image {
    min-width: 200px;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 1.8em;
  }
  .page-index__hero-description {
    font-size: 0.9em;
  }
  .page-index__button {
    width: 90%;
    padding: 12px 25px;
  }
  .page-index__section-title {
    font-size: 1.5em;
  }
  .page-index__feature-title,
  .page-index__game-title,
  .page-index__promotion-title {
    font-size: 1.3em;
  }
  .page-index__hero-buttons {
    flex-direction: column;
    gap: 10px;
  }
}