.page-index {
  color: #333333; /* Default text color for light body background */
}

.page-index__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden; /* Prevent image overflow */
}

.page-index__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  z-index: 1;
  position: absolute;
  top: 0;
  left: 0;
  min-height: 100%;
}

.page-index__hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 20px;
  max-width: 900px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  border-radius: 10px;
  color: #ffffff;
}

.page-index__hero-title {
  font-size: 3.2em;
  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: 30px;
  line-height: 1.6;
}

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

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

.page-index__button--primary {
  background-color: #FFD700; /* Gold main color */
  color: #1E90FF; /* Blue auxiliary color for contrast */
  border: 2px solid #FFD700;
}

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

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

.page-index__button--secondary:hover {
  background-color: #FFD700;
  color: #1E90FF;
  transform: translateY(-2px);
}

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

.page-index__section-title {
  font-size: 2.5em;
  color: #1E90FF; /* Blue auxiliary color */
  text-align: center;
  margin-bottom: 30px;
  border-bottom: 3px solid #FFD700;
  padding-bottom: 10px;
  display: inline-block;
  width: auto;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.page-index__section-text {
  font-size: 1.1em;
  line-height: 1.8;
  text-align: justify;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__section-text--full-width {
  max-width: 100%;
}

.page-index__about-section,
.page-index__security-section,
.page-index__cta-section {
  background-color: #f8f8f8;
  padding: 60px 0;
}

.page-index__game-categories-section,
.page-index__promotions-section,
.page-index__download-app-section {
  background-color: #ffffff;
  padding: 60px 0;
}

.page-index__button--learn-more {
  background-color: #1E90FF;
  color: #ffffff;
  border: 2px solid #1E90FF;
  display: block;
  margin: 40px auto 0;
  max-width: 250px;
  text-align: center;
}

.page-index__button--learn-more:hover {
  background-color: #1565b3;
  border-color: #1565b3;
}

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

.page-index__category-card,
.page-index__promo-card {
  background-color: #fefefe;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease;
}

.page-index__category-card:hover,
.page-index__promo-card:hover {
  transform: translateY(-5px);
}

.page-index__category-image,
.page-index__promo-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
}

.page-index__card-title {
  font-size: 1.5em;
  color: #1E90FF;
  margin-bottom: 10px;
  padding: 0 15px;
}

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

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

.page-index__card-description {
  font-size: 0.95em;
  color: #555555;
  line-height: 1.6;
  margin-bottom: 20px;
  padding: 0 15px;
}

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

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

.page-index__button--large {
  background-color: #1E90FF;
  color: #ffffff;
  border: 2px solid #1E90FF;
  display: block;
  margin: 40px auto 0;
  max-width: 300px;
  text-align: center;
}

.page-index__button--large:hover {
  background-color: #1565b3;
  border-color: #1565b3;
}

.page-index__security-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-index__button--text {
  background-color: transparent;
  color: #1E90FF;
  border: 2px solid #1E90FF;
  padding: 10px 20px;
  font-size: 0.95em;
}

.page-index__button--text:hover {
  background-color: #1E90FF;
  color: #ffffff;
}

.page-index__app-image {
  display: block;
  margin: 40px auto;
  max-width: 600px;
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-index__app-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 2.8em;
  }
  .page-index__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding-top: var(--header-offset, 80px);
    min-height: 450px;
  }
  .page-index__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .page-index__hero-content {
    padding: 40px 15px;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.7); /* Slightly darker for mobile */
  }
  .page-index__hero-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .page-index__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-index__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__button {
    padding: 12px 25px;
    font-size: 1em;
    width: 100%;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__section-text {
    font-size: 1em;
  }
  .page-index__categories-grid,
  .page-index__promotions-grid {
    grid-template-columns: 1fr;
  }
  .page-index__category-image,
  .page-index__promo-image {
    height: 180px;
  }
  .page-index__button--large,
  .page-index__button--learn-more {
    max-width: 90%;
  }
  .page-index__app-image {
    max-width: 90%;
  }
  .page-index__app-buttons {
    flex-direction: column;
  }

  /* Ensure all images in content areas are responsive and don't overflow */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 1.8em;
  }
  .page-index__section-title {
    font-size: 1.5em;
  }
  .page-index__button {
    font-size: 0.9em;
  }
  .page-index__card-title {
    font-size: 1.3em;
  }
}

/* Ensure content area does not cause horizontal scroll */
.page-index {
  overflow-x: hidden;
}