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

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

.page-index__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 20px;
  margin-top: 60px;
  font-weight: bold;
}

.page-index__section-subtitle {
  font-size: 1.2em;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
}

.page-index__text-content {
  font-size: 1em;
  margin-bottom: 15px;
  text-align: justify;
}

.page-index__text-link {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
}

.page-index__text-link:hover {
  text-decoration: underline;
}

/* Hero Section */
.page-index__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background-color: #000000; /* Dark background for hero */
  color: #FFFFFF;
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.page-index__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-index__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.page-index__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFFFF;
  font-weight: bold;
}

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

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

.page-index__cta-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, color 0.3s ease;
  min-width: 200px; /* Ensure button minimum size */
}

.page-index__cta-button--register {
  background-color: #FFFFFF;
  color: #000000;
  border: 2px solid #FFFFFF;
}

.page-index__cta-button--register:hover {
  background-color: transparent;
  color: #FFFFFF;
}

.page-index__cta-button--login {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-index__cta-button--login:hover {
  background-color: transparent;
  color: #FCBC45;
}

/* About Section */
.page-index__about-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

/* Games Section */
.page-index__games-section {
  padding: 80px 0;
  background-color: #F8F8F8;
}

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

.page-index__game-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index__game-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
}

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

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

.page-index__card-title a:hover {
  color: #FCBC45;
}

.page-index__card-description {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 20px;
  padding: 0 15px;
  flex-grow: 1;
}

.page-index__card-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #FCBC45;
  color: #000000;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-index__card-button:hover {
  background-color: #e0a53b;
}

/* Promotions Section */
.page-index__promotions-section {
  padding: 80px 0;
  background-color: #000000;
  color: #FFFFFF;
}

.page-index__promotions-section .page-index__section-title,
.page-index__promotions-section .page-index__section-subtitle {
  color: #FFFFFF;
}

.page-index__promotion-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-index__promotion-image {
  width: 50%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  min-width: 400px; /* Minimum width for content images */
  min-height: 300px;
}

.page-index__promotion-details {
  width: 50%;
}

.page-index__promotion-heading {
  font-size: 2em;
  margin-bottom: 20px;
  color: #FCBC45;
}

.page-index__promotions-section .page-index__text-content {
  color: #f0f0f0;
}

.page-index__cta-button--promo {
  background-color: #FCBC45;
  color: #000000;
  margin-top: 30px;
}

.page-index__cta-button--promo:hover {
  background-color: #FFFFFF;
  color: #000000;
}

/* Security Section */
.page-index__security-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

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

.page-index__security-card {
  background-color: #F8F8F8;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index__security-icon {
  width: 250px; /* Enforce minimum size for content images */
  height: 187px; /* Maintain aspect ratio for 400x300 source */
  margin-bottom: 20px;
}

/* Mobile Section */
.page-index__mobile-section {
  padding: 80px 0;
  background-color: #F0F0F0;
}

.page-index__mobile-content {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap-reverse; /* Image first on mobile */
}

.page-index__mobile-text,
.page-index__mobile-image {
  flex: 1;
  min-width: 300px;
}

.page-index__mobile-image {
  width: 400px; /* Display width */
  height: 500px; /* Display height */
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.page-index__cta-button--download {
  background-color: #000000;
  color: #FFFFFF;
  margin-top: 30px;
}

.page-index__cta-button--download:hover {
  background-color: #333333;
}

/* Final CTA Section */
.page-index__cta-final-section {
  padding: 80px 0;
  background-color: #FCBC45;
  color: #000000;
  text-align: center;
}

.page-index__cta-final-section .page-index__section-title,
.page-index__cta-final-section .page-index__section-subtitle {
  color: #000000;
}

.page-index__cta-button--register-large {
  background-color: #000000;
  color: #FFFFFF;
  padding: 20px 40px;
  font-size: 1.3em;
  margin-top: 40px;
}

.page-index__cta-button--register-large:hover {
  background-color: #333333;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3em;
  }

  .page-index__section-title {
    font-size: 2em;
  }

  .page-index__promotion-content {
    flex-direction: column;
  }

  .page-index__promotion-image,
  .page-index__promotion-details {
    width: 100%;
  }

  .page-index__mobile-content {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .page-index__hero-title {
    font-size: 2.5em;
  }

  .page-index__hero-description {
    font-size: 1.1em;
  }

  .page-index__section-title {
    font-size: 1.8em;
  }

  .page-index__section-subtitle {
    font-size: 1em;
  }

  .page-index__hero-cta-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-index__cta-button {
    min-width: unset;
    width: 100%;
  }

  .page-index__game-grid,
  .page-index__security-grid {
    grid-template-columns: 1fr;
  }

  .page-index__promotion-image {
    min-width: 200px; /* Ensure mobile image is not too small */
    min-height: 150px;
  }

  .page-index__mobile-image {
    width: 100%;
    height: auto;
  }

  /* Critical: Prevent content overflow on mobile */
  .page-index img {
    max-width: 100%;
    height: auto;
  }

  .page-index__container {
    padding: 0 15px;
  }

  .page-index__hero-section,
  .page-index__about-section,
  .page-index__games-section,
  .page-index__promotions-section,
  .page-index__security-section,
  .page-index__mobile-section,
  .page-index__cta-final-section {
    padding: 40px 0;
  }

  .page-index__section-title {
    margin-top: 40px;
  }

  .page-index__cta-button--register-large {
    padding: 15px 30px;
    font-size: 1.1em;
  }
}