.page-index {
  color: #333333; /* Dark text for default light body background */
  padding-top: var(--header-offset, 120px);
}

.page-index__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #0d0d0d; /* Dark background to make gold/red pop */
  color: #ffffff;
  padding-bottom: 60px;
}

.page-index__hero-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.page-index__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  margin-bottom: 40px;
}

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

.page-index__hero-title {
  font-size: 3.5em;
  color: #FFD700; /* Gold main color */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-index__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-index__button--primary {
  background-color: #FFD700; /* Gold main color */
  color: #8B0000; /* Dark red text */
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-index__button--primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.page-index__button--secondary {
  background-color: #8B0000; /* Dark red auxiliary color */
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
  box-shadow: 0 4px 15px rgba(139, 0, 0, 0.4);
}

.page-index__button--secondary:hover {
  background-color: #6a0000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 0, 0, 0.6);
}

.page-index__button--tertiary {
  background-color: #FFD700;
  color: #8B0000;
  padding: 10px 20px;
  font-size: 1em;
  border-radius: 5px;
}

.page-index__button--tertiary:hover {
  background-color: #e6c200;
  transform: translateY(-1px);
}

.page-index__section-title {
  font-size: 2.8em;
  color: #8B0000; /* Dark red */
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.page-index__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-index__games-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 40px 20px;
}

.page-index__game-categories {
  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);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-index__game-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index__card-title {
  font-size: 1.8em;
  color: #8B0000;
  margin-bottom: 15px;
}

.page-index__card-description {
  font-size: 1.1em;
  color: #555555;
  line-height: 1.6;
  margin-bottom: 25px;
}

.page-index__promo-section {
  background-color: #8B0000; /* Dark red background */
  color: #ffffff;
  padding: 80px 20px;
  margin: 60px 0;
}

.page-index__promo-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-index__promo-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-index__promo-text {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.page-index__promo-text .page-index__section-title {
  color: #FFD700;
  text-align: left;
}

.page-index__promo-text .page-index__section-title::after {
  margin-left: 0;
  background-color: #FFD700;
}

.page-index__promo-description {
  font-size: 1.2em;
  line-height: 1.7;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-index__about-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 40px 20px;
  line-height: 1.8;
  color: #333333;
}

.page-index__about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

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

.page-index__sub-title {
  font-size: 2em;
  color: #8B0000;
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 2px solid #FFD700;
  padding-bottom: 10px;
}

.page-index__about-text ul {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  font-size: 1.1em;
}

.page-index__about-text ul li {
  margin-bottom: 10px;
}

.page-index__cta-section {
  background-color: #FFD700; /* Gold background */
  color: #8B0000;
  padding: 80px 20px;
  text-align: center;
  margin: 60px 0;
}

.page-index__cta-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-index__cta-content .page-index__section-title {
  color: #8B0000;
}

.page-index__cta-content .page-index__section-title::after {
  background-color: #8B0000;
}

.page-index__cta-description {
  font-size: 1.4em;
  margin-bottom: 40px;
  line-height: 1.6;
  color: #6a0000;
}

.page-index__cta-section .page-index__button--primary {
  background-color: #8B0000;
  color: #FFD700;
  box-shadow: 0 4px 15px rgba(139, 0, 0, 0.4);
}

.page-index__cta-section .page-index__button--primary:hover {
  background-color: #6a0000;
  box-shadow: 0 6px 20px rgba(139, 0, 0, 0.6);
}

.page-index__cta-section .page-index__button--secondary {
  background-color: transparent;
  color: #8B0000;
  border: 2px solid #8B0000;
  box-shadow: none;
}

.page-index__cta-section .page-index__button--secondary:hover {
  background-color: #8B0000;
  color: #FFD700;
}

@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3em;
  }
  .page-index__section-title {
    font-size: 2.2em;
  }
  .page-index__promo-content {
    flex-direction: column;
    text-align: center;
  }
  .page-index__promo-text .page-index__section-title {
    text-align: center;
  }
  .page-index__promo-text .page-index__section-title::after {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .page-index__hero-title {
    font-size: 2.5em;
  }
  .page-index__hero-description {
    font-size: 1.1em;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__game-categories {
    grid-template-columns: 1fr;
  }
  .page-index__promo-image {
    max-width: 100%;
  }
  .page-index__promo-text {
    text-align: center;
  }
  .page-index__promo-text .page-index__section-title {
    text-align: center;
  }
  .page-index__promo-text .page-index__section-title::after {
    margin-left: auto;
    margin-right: auto;
  }
  .page-index__about-text p, .page-index__about-text ul li {
    font-size: 1em;
  }
  .page-index__sub-title {
    font-size: 1.6em;
  }
  .page-index__cta-description {
    font-size: 1.2em;
  }
  .page-index__hero-actions, .page-index__cta-section .page-index__button {
    flex-direction: column;
    gap: 15px;
  }
  /* Mobile image overflow prevention */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
  /* Content area must not cause horizontal scroll */
  .page-index {
    overflow-x: hidden;
  }
  .page-index__hero-container, .page-index__games-section, .page-index__promo-content, .page-index__about-section, .page-index__cta-content {
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Ensure all content area images are not smaller than 200px display size */
  .page-index__game-image {
    height: 200px; /* Adjust height to ensure min 200px */
  }
  .page-index__promo-image {
    min-width: 200px;
    min-height: 200px;
  }
}