.page-index {
  /* No padding-top here as shared.css is assumed to handle body padding */
  color: #000000; /* Dark text for light body background */
}

.page-index__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 600px; /* Ensures hero section has a decent height */
  padding: 80px 20px;
  background-color: #FFFFFF;
  overflow: hidden;
}

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

.page-index__hero-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  color: #000000; /* Dark text over potentially lighter image areas */
  background: rgba(255, 255, 255, 0.85); /* Semi-transparent white background for text readability */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-index__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  line-height: 1.6;
  color: #333333;
}

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

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

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

.page-index__btn--register:hover {
  background-color: #F0F0F0;
  transform: translateY(-2px);
}

.page-index__btn--login {
  background-color: #FCBC45;
  color: #000000;
}

.page-index__btn--login:hover {
  background-color: #e0a73b;
  transform: translateY(-2px);
}

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

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

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

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

.page-index__text--light {
  color: #FFFFFF;
}

.page-index__bg--dark {
  background-color: #000000;
}

.page-index__about-section {
  background-color: #FFFFFF;
}

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

.page-index__text-content {
  text-align: left;
}

.page-index__text-content p {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #333333;
}

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

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

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

.page-index__image--right {
  justify-self: end;
}

.page-index__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.page-index__game-card {
  background-color: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.page-index__card-link {
  color: inherit;
  text-decoration: none;
}

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

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

.page-index__game-card-btn {
  display: inline-block;
  background-color: #FCBC45;
  color: #000000;
  padding: 10px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin-top: auto;
  transition: background-color 0.3s ease;
}

.page-index__game-card-btn:hover {
  background-color: #e0a73b;
}

.page-index__game-showcase-wrapper {
  text-align: center;
}

.page-index__game-showcase-image {
  max-width: 100%;
  border-radius: 10px;
}

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

.page-index__promo-card {
  background-color: #F8F8F8;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-index__promo-card-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  margin-bottom: 20px;
}

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

.page-index__promo-card-description {
  font-size: 1em;
  color: #555555;
  line-height: 1.6;
  padding: 0 15px;
  flex-grow: 1;
  margin-bottom: 25px;
}

.page-index__promo-card-btn {
  display: inline-block;
  background-color: #FCBC45;
  color: #000000;
  padding: 12px 28px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-index__promo-card-btn:hover {
  background-color: #e0a73b;
}

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

.page-index__promo-image {
  max-width: 100%;
  border-radius: 10px;
}

.page-index__mobile-section {
  background-color: #000000;
}

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

.page-index__mobile-image {
  justify-self: start;
  max-width: 100%;
}

.page-index__mobile-text-content {
  text-align: left;
}

.page-index__mobile-text-content p {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 25px;
}

.page-index__mobile-features {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-index__mobile-features li {
  font-size: 1.1em;
  margin-bottom: 10px;
  position: relative;
  padding-left: 30px;
}

.page-index__mobile-features li::before {
  content: '✔';
  color: #FCBC45;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-index__btn--download {
  background-color: #FCBC45;
  color: #000000;
}

.page-index__btn--download:hover {
  background-color: #e0a73b;
}

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

.page-index__security-item {
  background-color: #F8F8F8;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
}

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

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

.page-index__cta-section {
  background-color: #000000;
  text-align: center;
}

.page-index__cta-content {
  padding: 60px 20px;
}

.page-index__btn--large {
  padding: 18px 40px;
  font-size: 1.3em;
  margin-top: 30px;
}

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

.page-index__blog-card {
  background-color: #F8F8F8;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-index__blog-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.page-index__blog-card-title {
  font-size: 1.5em;
  color: #000000;
  padding: 20px 15px 10px;
  line-height: 1.4;
}

.page-index__blog-card-excerpt {
  font-size: 0.95em;
  color: #555555;
  line-height: 1.6;
  padding: 0 15px 20px;
}

.page-index__blog-card-link {
  display: inline-block;
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
  padding: 0 15px 20px;
  transition: color 0.3s ease;
}

.page-index__blog-card-link:hover {
  color: #e0a73b;
  text-decoration: underline;
}

.page-index__view-all-wrapper {
  text-align: center;
  margin-top: 60px;
}

.page-index__btn--secondary {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.page-index__btn--secondary:hover {
  background-color: #333333;
  border-color: #FCBC45;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 2.8em;
  }
  .page-index__hero-description {
    font-size: 1.1em;
  }
  .page-index__section-title {
    font-size: 2.2em;
  }
  .page-index__section-subtitle {
    font-size: 1.2em;
  }
  .page-index__content-grid,
  .page-index__mobile-content {
    grid-template-columns: 1fr;
  }
  .page-index__image--right,
  .page-index__mobile-image {
    justify-self: center;
    order: -1; /* Image appears above text on mobile */
    margin-bottom: 30px;
  }
  .page-index__game-card-image,
  .page-index__promo-card-image {
    height: 200px;
  }
  .page-index__hero-image,
  .page-index__image,
  .page-index__game-card-image,
  .page-index__promo-card-image,
  .page-index__blog-card-image {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    min-height: 500px;
    padding: 60px 15px;
  }
  .page-index__hero-title {
    font-size: 2em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__hero-container {
    padding: 30px;
  }
  .page-index__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__btn {
    width: 100%;
    padding: 12px 20px;
  }
  .page-index__section-padding {
    padding: 60px 15px;
  }
  .page-index__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-index__section-subtitle {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-index__text-content p {
    font-size: 0.95em;
  }
  .page-index__game-card,
  .page-index__promo-card,
  .page-index__blog-card,
  .page-index__security-item {
    padding: 20px;
  }
  .page-index__game-card-title,
  .page-index__promo-card-title,
  .page-index__security-item-title,
  .page-index__blog-card-title {
    font-size: 1.4em;
  }
  .page-index__game-card-description,
  .page-index__promo-card-description,
  .page-index__security-item-description,
  .page-index__blog-card-excerpt {
    font-size: 0.9em;
  }
  .page-index__mobile-features li {
    font-size: 1em;
  }
  .page-index__btn--large {
    padding: 15px 30px;
    font-size: 1.1em;
  }
  /* Mobile content image constraint */
  .page-index__hero-image,
  .page-index__image,
  .page-index__game-card-image,
  .page-index__promo-card-image,
  .page-index__blog-card-image {
    max-width: 100%;
    height: auto;
  }
  .page-index__hero-section .page-index__hero-image,
  .page-index__about-section .page-index__image,
  .page-index__games-section .page-index__image,
  .page-index__promo-section .page-index__image,
  .page-index__mobile-section .page-index__image,
  .page-index__security-section .page-index__image,
  .page-index__blog-section .page-index__image,
  .page-index__game-card-image,
  .page-index__promo-card-image,
  .page-index__blog-card-image {
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px;
  }
  .page-index__hero-image {
    width: 100%; /* Ensure hero image scales correctly on mobile */
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 1.6em;
  }
  .page-index__hero-description {
    font-size: 0.9em;
  }
  .page-index__section-title {
    font-size: 1.5em;
  }
  .page-index__section-subtitle {
    font-size: 0.9em;
  }
  .page-index__btn {
    font-size: 0.95em;
  }
}