.page-index {
  padding-top: var(--header-offset, 120px);
  color: #f0f0f0; /* Default text color for the page content, ensuring contrast against potential darker body background */
  background-color: #1A202C; /* Main brand color for general sections */
}

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

.page-index__section-title {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.page-index__button--primary {
  background-color: #FFD700;
  color: #1A202C;
  border: 2px solid #FFD700;
}

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

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

.page-index__button--secondary:hover {
  background-color: #FFD700;
  color: #1A202C;
}

.page-index__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
  background-color: #FFD700;
  color: #1A202C;
  border: 2px solid #FFD700;
}

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

.page-index__button--text {
  background-color: transparent;
  color: #FFD700;
  border: none;
  padding: 0;
  text-decoration: underline;
  font-size: 1em;
}

.page-index__button--text:hover {
  color: #e6c200;
}

/* Hero Section */
.page-index__hero-section {
  background-color: #1A202C;
  color: #f0f0f0;
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-index__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-bottom: 40px;
}

.page-index__hero-title {
  font-size: 3.8em;
  margin-bottom: 20px;
  color: #FFD700;
  line-height: 1.2;
}

.page-index__hero-description {
  font-size: 1.4em;
  margin-bottom: 30px;
  line-height: 1.5;
  color: #ffffff;
}

.page-index__hero-actions .page-index__button {
  margin: 0 15px;
}

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

.page-index__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* About Section */
.page-index__about-section {
  background-color: #2a313d; /* Slightly lighter dark background */
  padding: 80px 0;
  color: #f0f0f0;
}

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

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

.page-index__about-text p {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-index__about-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-index__about-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

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

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

.page-index__game-card {
  background-color: #2a313d;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index__game-card img {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-index__game-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-index__game-description {
  font-size: 1em;
  line-height: 1.5;
  color: #cccccc;
  margin-bottom: 20px;
  padding: 0 15px;
  flex-grow: 1;
}

/* Promotions Section */
.page-index__promotions-section {
  background-color: #2a313d;
  padding: 80px 0;
  color: #f0f0f0;
  text-align: center;
}

.page-index__promotion-link-title {
  text-decoration: none;
  display: block;
  margin-bottom: 20px;
}

.page-index__promotion-link-title .page-index__section-title {
  color: #FFD700;
  transition: color 0.3s ease;
}

.page-index__promotion-link-title:hover .page-index__section-title {
  color: #e6c200;
}

.page-index__promotion-description {
  font-size: 1.2em;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #ffffff;
}

.page-index__promotion-image {
  margin-top: 40px;
}

.page-index__promotion-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

/* Register Guide Section */
.page-index__register-guide-section {
  background-color: #1A202C;
  padding: 80px 0;
  color: #f0f0f0;
}

.page-index__guide-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-index__guide-steps {
  flex: 1;
  min-width: 300px;
}

.page-index__guide-steps ol {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-index__guide-steps li {
  font-size: 1.1em;
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
  color: #cccccc;
}

.page-index__guide-steps li strong {
  color: #FFD700;
}

.page-index__guide-steps li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 0;
  background-color: #FFD700;
  color: #1A202C;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9em;
}

.page-index__guide-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-index__guide-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

/* App Download Section */
.page-index__app-download-section {
  background-color: #2a313d;
  padding: 80px 0;
  color: #f0f0f0;
  text-align: center;
}

.page-index__app-description {
  font-size: 1.2em;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #ffffff;
}

.page-index__app-image {
  margin-top: 40px;
}

.page-index__app-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

/* FAQ Section */
.page-index__faq-section {
  background-color: #1A202C;
  padding: 80px 0;
  color: #f0f0f0;
}

.page-index__faq-item {
  background-color: #2a313d;
  border-radius: 8px;
  margin-bottom: 20px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-index__faq-question {
  font-size: 1.4em;
  color: #FFD700;
  margin-bottom: 10px;
  cursor: pointer;
}

.page-index__faq-answer {
  font-size: 1.1em;
  line-height: 1.6;
  color: #cccccc;
  display: none; /* Hidden by default, toggled by JS */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3em;
  }
  .page-index__hero-description {
    font-size: 1.2em;
  }
}

@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-actions .page-index__button {
    margin: 10px 0;
    display: block;
  }
  .page-index__section-title {
    font-size: 2em;
  }
  .page-index__container {
    padding: 30px 15px;
  }
  .page-index__about-content, .page-index__guide-content {
    flex-direction: column;
  }
  .page-index__about-image, .page-index__guide-image {
    order: -1; /* Image first on mobile */
  }
  .page-index__game-card img, .page-index__about-image img, .page-index__promotion-image img, .page-index__guide-image img, .page-index__app-image img {
    max-width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 1.8em;
  }
  .page-index__hero-description {
    font-size: 0.9em;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-index__faq-question {
    font-size: 1.2em;
  }
}