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

.page-index__section {
  padding: 60px 20px;
  text-align: center;
}

.page-index__section--dark {
  background-color: #f5f5f5; /* Light grey background for contrast */
  color: #333333;
}

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

.page-index__section-title {
  font-size: 2.8em;
  color: #0056B3; /* Primary color for titles */
  margin-bottom: 20px;
  font-weight: 700;
}

.page-index__section-description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 40px;
  color: #555555;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin: 10px;
  min-width: 200px; /* Ensure buttons are not too small */
}

.page-index__button--primary {
  background-color: #FFD700; /* Gold auxiliary color */
  color: #0056B3; /* Dark blue text for contrast */
  border: 2px solid #FFD700;
}

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

.page-index__button--secondary {
  background-color: transparent;
  color: #0056B3; /* Dark blue text */
  border: 2px solid #0056B3;
}

.page-index__button--secondary:hover {
  background-color: #004494;
  color: #ffffff;
  transform: translateY(-2px);
}

.page-index__button--tertiary {
  background-color: #0056B3;
  color: #ffffff;
  border: 2px solid #0056B3;
}

.page-index__button--tertiary:hover {
  background-color: #004494;
  border-color: #004494;
  transform: translateY(-2px);
}

.page-index__button--quaternary {
  background-color: #0056B3;
  color: #FFD700;
  border: 1px solid #0056B3;
  padding: 10px 20px;
  font-size: 1em;
  min-width: unset;
}

.page-index__button--quaternary:hover {
  background-color: #004494;
  border-color: #004494;
  color: #FFD700;
  transform: translateY(-1px);
}

/* Hero Section */
.page-index__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  position: relative;
  overflow: hidden;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
}

.page-index__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.6); /* Darken image for text readability */
}

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

.page-index__hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

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

.page-index__hero-description {
  font-size: 1.4em;
  line-height: 1.5;
  margin-bottom: 40px;
  color: #f0f0f0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

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

/* About Section */
.page-index__about-section {
  background-color: #ffffff;
}

/* Games Section */
.page-index__games-section {
  background-color: #0056B3;
  color: #ffffff;
}

.page-index__games-section .page-index__section-title {
  color: #FFD700;
}

.page-index__games-section .page-index__section-description {
  color: #f0f0f0;
}

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

.page-index__game-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index__game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

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

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

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

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

.page-index__game-card-description {
  font-size: 0.95em;
  color: #cccccc;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-index__center-cta {
  margin-top: 50px;
}

/* Promotions Section */
.page-index__promotions-section {
  background-color: #ffffff;
}

.page-index__promo-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 12px;
  margin: 40px auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Enforce minimum size */
}

/* Why Choose Us Section */
.page-index__why-choose-us-section .page-index__section-title {
  color: #FFD700;
}

.page-index__why-choose-us-section .page-index__section-description {
  color: #f0f0f0;
}

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

.page-index__feature-item {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-index__feature-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-index__feature-description {
  font-size: 0.95em;
  color: #cccccc;
  line-height: 1.6;
}

/* Detail Pages Section */
.page-index__detail-pages-section {
  background-color: #ffffff;
}

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

.page-index__detail-card {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.page-index__detail-card-title {
  font-size: 1.6em;
  color: #0056B3;
  margin-bottom: 15px;
}

.page-index__detail-card-title a {
  color: #0056B3;
  text-decoration: none;
}

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

.page-index__detail-card-description {
  font-size: 1em;
  color: #555555;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* CTA Section */
.page-index__cta-section {
  background-color: #0056B3;
  color: #ffffff;
  padding: 80px 20px;
}

.page-index__cta-title {
  font-size: 3em;
  color: #FFD700;
  margin-bottom: 20px;
}

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

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3.5em;
  }
  .page-index__hero-description {
    font-size: 1.2em;
  }
  .page-index__section-title {
    font-size: 2.2em;
  }
  .page-index__cta-title {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    min-height: 500px;
  }
  .page-index__hero-title {
    font-size: 2.5em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  .page-index__button {
    width: 80%;
    margin: 10px 0;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__section-description {
    font-size: 0.9em;
  }
  .page-index__game-categories, .page-index__features-grid, .page-index__detail-pages-grid {
    grid-template-columns: 1fr;
  }
  .page-index__game-card-image, .page-index__promo-image {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px; /* Enforce minimum size */
  }
  /* Enforce max-width for all images within .page-index */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
  .page-index__cta-title {
    font-size: 2em;
  }
  .page-index__cta-description {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 2em;
  }
  .page-index__hero-description {
    font-size: 0.9em;
  }
  .page-index__section, .page-index__cta-section {
    padding: 40px 15px;
  }
  .page-index__button {
    width: 90%;
  }
  .page-index__section-title {
    font-size: 1.6em;
  }
  .page-index__cta-title {
    font-size: 1.8em;
  }
}