.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: #f8f8f8;
}

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

.page-index__section {
  padding: 60px 0;
  text-align: center;
  position: relative;
}

.page-index__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #0A2463;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-index__section-description {
  font-size: 18px;
  color: #555555;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* HERO Section */
.page-index__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  background-color: #0A2463; /* Use primary color as background for hero */
  color: #ffffff;
}

.page-index__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-index__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-index__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-index__hero-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  color: #E0A441; /* Highlight with secondary color */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index__hero-description {
  font-size: 22px;
  margin-bottom: 40px;
  color: #f0f0f0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #E0A441;
  color: #0A2463;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-index__cta-button--primary {
  background: #E0A441;
  color: #0A2463;
}

.page-index__cta-button--secondary {
  background: #0A2463;
  color: #E0A441;
  border-color: #E0A441;
}

.page-index__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

/* Module 1: Introduction */
.page-index__introduction-section {
  background-color: #ffffff;
  padding-bottom: 80px;
}

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

.page-index__feature-item {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.page-index__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-index__feature-item img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-index__feature-title {
  font-size: 22px;
  font-weight: bold;
  color: #0A2463;
  margin-bottom: 10px;
}

.page-index__feature-item p {
  font-size: 16px;
  color: #666666;
}

/* Module 2: Quick Access */
.page-index__quick-access-section {
  background-color: #0A2463;
  color: #ffffff;
}

.page-index__quick-access-section .page-index__section-title {
  color: #E0A441;
}

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

.page-index__access-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.page-index__access-link-item {
  display: block;
  background-color: rgba(224, 164, 65, 0.2);
  color: #E0A441;
  padding: 18px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 17px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 1px solid #E0A441;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-index__access-link-item:hover {
  background-color: #E0A441;
  color: #0A2463;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Module 3: Core Games */
.page-index__core-games-section {
  background-color: #f2f2f2;
}

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

.page-index__game-category-item {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__game-category-item:hover {
  transform: translateY(-7px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-index__game-category-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #eee;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-index__game-category-item .page-index__game-category-title {
  font-size: 24px;
  font-weight: bold;
  color: #0A2463;
  margin: 20px 15px 10px 15px;
}

.page-index__game-category-item .page-index__game-category-title a {
  color: #0A2463;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__game-category-item .page-index__game-category-title a:hover {
  color: #E0A441;
}

.page-index__game-category-item p {
  font-size: 16px;
  color: #666666;
  padding: 0 20px 25px 20px;
}

/* Module 4: Promotions */
.page-index__promotions-section {
  background-color: #E0A441;
  color: #0A2463;
}

.page-index__promotions-section .page-index__section-title {
  color: #0A2463;
}

.page-index__promotions-section .page-index__section-description {
  color: #333333;
}

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

.page-index__promotion-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__promotion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-index__promotion-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-index__promotion-title {
  font-size: 22px;
  font-weight: bold;
  color: #0A2463;
  margin: 20px 15px 10px 15px;
}

.page-index__promotion-title a {
  color: #0A2463;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__promotion-title a:hover {
  color: #E0A441;
}

.page-index__promotion-card p {
  font-size: 16px;
  color: #666666;
  padding: 0 20px 25px 20px;
}

.page-index__cta-center {
  margin-top: 50px;
}

/* Module 5: Security & Support */
.page-index__security-support-section {
  background-color: #0A2463;
  color: #ffffff;
}

.page-index__security-support-section .page-index__section-title {
  color: #E0A441;
}

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

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

.page-index__info-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  overflow: hidden;
}

.page-index__info-item:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-index__info-item img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-index__info-title {
  font-size: 22px;
  font-weight: bold;
  color: #E0A441;
  margin-bottom: 10px;
}

.page-index__info-title a {
  color: #E0A441;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__info-title a:hover {
  color: #ffffff;
}

.page-index__info-item p {
  font-size: 16px;
  color: #cccccc;
}

/* Module 6: FAQ */
.page-index__faq-section {
  background-color: #ffffff;
}

.page-index__faq-list {
  max-width: 900px;
  margin: 50px auto 0 auto;
  text-align: left;
}