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

.page-index__section-padding {
  padding: 80px 20px;
}

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

.page-index__background--dark {
  background-color: #003366; /* Main brand dark blue */
  color: #ffffff;
}

.page-index__background--gold {
  background-color: #FFCC00; /* Auxiliary brand gold */
  color: #333333;
}

.page-index__section-title {
  font-size: 2.8em;
  color: #003366;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-index__section-title--light {
  color: #ffffff;
}

.page-index__section-title--dark {
  color: #333333;
}

.page-index__section-subtitle {
  font-size: 1.3em;
  color: #666666;
  text-align: center;
  margin-bottom: 50px;
  line-height: 1.6;
}

.page-index__section-subtitle--light {
  color: #f0f0f0;
}

.page-index__section-subtitle--dark {
  color: #333333;
}

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

.page-index__button--primary {
  background-color: #FFCC00; /* Gold */
  color: #003366; /* Dark blue */
  border: 2px solid #FFCC00;
}

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

.page-index__button--secondary {
  background-color: transparent;
  color: #FFCC00; /* Gold */
  border: 2px solid #FFCC00;
  margin-left: 20px;
}

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

.page-index__button--dark {
  background-color: #003366;
  color: #FFCC00;
  border: 2px solid #003366;
}

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

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

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

.page-index__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
  border-radius: 5px;
  background-color: #FFCC00;
  color: #003366;
  border: none;
}

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

.page-index__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
  padding-bottom: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-color: #003366;
  color: #ffffff;
}

.page-index__hero-content-wrapper {
  max-width: 900px;
  margin: 0 auto 40px auto;
  padding: 0 20px;
  z-index: 1;
}

.page-index__hero-title {
  font-size: 3.8em;
  margin-bottom: 25px;
  line-height: 1.2;
  color: #FFCC00; /* Gold for main title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index__hero-description {
  font-size: 1.4em;
  margin-bottom: 40px;
  line-height: 1.7;
  color: #f0f0f0;
}

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

.page-index__hero-image-wrapper {
  width: 100%;
  max-width: 1600px;
  margin-top: 40px;
  z-index: 0;
}

.page-index__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

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

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

.page-index__about-image-wrapper {
  text-align: center;
}

.page-index__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

.page-index__game-card, .page-index__promo-card, .page-index__resource-card {
  background-color: #002244; /* Darker blue for cards */
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.page-index__game-card:hover, .page-index__promo-card:hover, .page-index__resource-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-index__game-card-image, .page-index__promo-card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  width: 100%;
  min-height: 200px; /* Enforce min image size */
  object-fit: cover;
}

.page-index__game-card-title, .page-index__promo-card-title, .page-index__resource-card-title {
  font-size: 1.6em;
  color: #FFCC00; /* Gold */
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-index__game-card-title a, .page-index__promo-card-title a, .page-index__resource-card-title a {
  color: #FFCC00;
  text-decoration: none;
}

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

.page-index__game-card-description, .page-index__promo-card-description, .page-index__resource-card-description {
  font-size: 1em;
  color: #cccccc;
  line-height: 1.7;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-index__center-button {
  text-align: center;
  margin-top: 50px;
}

.page-index__mobile-content-wrapper {
  display: flex;
  align-items: center;
  gap: 50px;
}

.page-index__mobile-text {
  flex: 1;
}

.page-index__mobile-description {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 30px;
}

.page-index__mobile-description--light {
  color: #f0f0f0;
}

.page-index__mobile-image-wrapper {
  flex: 1;
  text-align: center;
}

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

.page-index__security-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.page-index__security-item-title {
  font-size: 1.8em;
  color: #003366;
  margin-bottom: 15px;
}

.page-index__security-item-description {
  font-size: 1em;
  color: #555555;
  line-height: 1.7;
  margin-bottom: 20px;
}

.page-index__cta-content {
  text-align: center;
}

@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3em;
  }
  .page-index__section-title {
    font-size: 2.2em;
  }
  .page-index__about-grid, .page-index__mobile-content-wrapper {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
  .page-index__about-image-wrapper, .page-index__mobile-image-wrapper {
    order: -1; /* Image first on mobile */
  }
}

@media (max-width: 768px) {
  .page-index {
    padding-top: var(--header-offset, 120px);
  }
  .page-index__section-padding {
    padding: 50px 15px;
  }
  .page-index__hero-title {
    font-size: 2.5em;
  }
  .page-index__hero-description {
    font-size: 1.1em;
  }
  .page-index__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__button--secondary {
    margin-left: 0;
  }
  .page-index__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-index__section-subtitle {
    font-size: 1.1em;
    margin-bottom: 30px;
  }
  .page-index__games-grid, .page-index__promo-grid, .page-index__security-grid, .page-index__resources-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-index__game-card, .page-index__promo-card, .page-index__resource-card, .page-index__security-item {
    padding: 20px;
  }
  .page-index__game-card-title, .page-index__promo-card-title, .page-index__resource-card-title {
    font-size: 1.4em;
  }
  .page-index__game-card-description, .page-index__promo-card-description, .page-index__resource-card-description, .page-index__security-item-description {
    font-size: 0.95em;
  }

  /* Mobile content area image overflow prevention */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
}