.page-index {
  font-family: Arial, sans-serif;
  color: #333333; /* Dark text for light body background */
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

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

.page-index__section-title {
  font-size: 2.8em;
  color: #1A202C;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

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

.page-index__section-subtitle {
  font-size: 1.2em;
  text-align: center;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index__bg-dark {
  background-color: #1A202C;
  color: #ffffff;
}

.page-index__bg-gold {
  background-color: #FFD700;
  color: #1A202C;
}

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

.page-index__button--primary {
  background-color: #FFD700;
  color: #1A202C;
  border: 2px solid #FFD700;
}

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

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

.page-index__button--secondary:hover {
  background-color: rgba(255, 215, 0, 0.1);
  transform: translateY(-2px);
}

.page-index__button--tertiary {
  background-color: #1A202C;
  color: #FFD700;
  border: 2px solid #1A202C;
}

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

.page-index__button--dark {
  background-color: #1A202C;
  color: #FFD700;
  border: 2px solid #1A202C;
}

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

.page-index__button--transparent {
  background-color: transparent;
  color: #1A202C;
  border: 2px solid #1A202C;
}

.page-index__button--transparent:hover {
  background-color: rgba(26, 32, 44, 0.1);
  transform: translateY(-2px);
}

.page-index__button--small {
  padding: 10px 20px;
  font-size: 1em;
  margin-top: 20px;
}

/* Hero Section */
.page-index__hero-section {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
  padding-top: 0; /* Handled by main.page-index */
}

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

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

.page-index__hero-content {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 40px;
  border-radius: 12px;
}

.page-index__hero-title {
  font-size: 3.8em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFD700;
}

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

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

/* About Section */
.page-index__about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

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

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

.page-index__about-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

/* Games Section */
.page-index__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-index__game-card {
  background-color: #2a3140;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index__game-card:hover {
  transform: translateY(-5px);
}

.page-index__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

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

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

/* Promo Section */
.page-index__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

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

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

.page-index__promo-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

.page-index__promo-title {
  font-size: 1.6em;
  color: #1A202C;
  margin: 25px 20px 15px;
}

.page-index__promo-description {
  font-size: 1em;
  color: #555555;
  margin: 0 20px 25px;
}

.page-index__center-cta {
  text-align: center;
  margin-top: 60px;
}

/* Download Section */
.page-index__download-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  color: #ffffff;
}

.page-index__download-subtitle {
  font-size: 2em;
  color: #FFD700;
  margin-bottom: 30px;
}

.page-index__download-steps {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
}

.page-index__download-steps li {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1.1em;
  color: #f0f0f0;
  border-left: 5px solid #FFD700;
}

.page-index__download-steps li strong {
  color: #FFD700;
}

.page-index__download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.page-index__download-note {
  font-size: 0.9em;
  color: #aaaaaa;
}

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

.page-index__download-image {
  width: 100%;
  height: auto;
  max-height: 900px;
  object-fit: contain;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

/* Security Section */
.page-index__security-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

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

.page-index__security-actions {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

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

.page-index__security-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

/* CTA Section */
.page-index__cta-container {
  text-align: center;
  padding: 60px 20px;
}

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

.page-index__cta-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #333333;
}

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

/* Responsive Design */
@media (max-width: 992px) {
  .page-index__hero-title {
    font-size: 3em;
  }
  .page-index__hero-description {
    font-size: 1.3em;
  }
  .page-index__section-title {
    font-size: 2.2em;
  }
  .page-index__about-grid,
  .page-index__download-content,
  .page-index__security-content {
    grid-template-columns: 1fr;
  }
  .page-index__download-image-wrapper,
  .page-index__security-image-wrapper {
    order: -1; /* Image above text on mobile */
  }
  .page-index__games-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-index__promo-grid {
    grid-template-columns: 1fr;
  }
}

@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: 1.1em;
  }
  .page-index__section-padding {
    padding: 60px 0;
  }
  .page-index__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-index__section-subtitle {
    margin-bottom: 40px;
  }
  .page-index__button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-index__hero-actions,
  .page-index__download-actions,
  .page-index__cta-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__about-grid,
  .page-index__download-content,
  .page-index__security-content {
    gap: 40px;
  }
  .page-index__download-steps li {
    padding: 15px;
    font-size: 1em;
  }
  .page-index__cta-title {
    font-size: 2.2em;
  }
  .page-index__cta-description {
    font-size: 1.1em;
  }
  /* Mobile content area images must not overflow */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 2em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__section-title {
    font-size: 1.6em;
  }
  .page-index__game-title {
    font-size: 1.5em;
  }
  .page-index__promo-title {
    font-size: 1.4em;
  }
  .page-index__download-subtitle {
    font-size: 1.6em;
  }
  .page-index__cta-title {
    font-size: 1.8em;
  }
}