.page-index {
  color: #333333; /* Dark text for light body background */
  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__hero-section {
  background-color: #FFFFFF;
  padding: 80px 20px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.page-index__hero-container {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin-bottom: 40px;
}

.page-index__hero-title {
  font-size: 3.5em;
  color: #000000;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

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

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

.page-index__btn {
  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.2s ease;
  border: none;
  cursor: pointer;
}

.page-index__btn--register {
  background-color: #000000;
  color: #FFFFFF;
}

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

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

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

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

.page-index__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-index__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FCBC45;
  border-radius: 2px;
}

.page-index__text-content {
  font-size: 1.1em;
  line-height: 1.7;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
  color: #555555;
}

.page-index__about-section,
.page-index__promotions-section,
.page-index__features-section,
.page-index__responsible-gaming-section,
.page-index__register-cta-section,
.page-index__blog-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.page-index__about-section .page-index__btn--secondary,
.page-index__responsible-gaming-section .page-index__btn--secondary {
  background-color: #000000;
  color: #FFFFFF;
  display: block;
  width: fit-content;
  margin: 0 auto;
}

.page-index__about-section .page-index__btn--secondary:hover,
.page-index__responsible-gaming-section .page-index__btn--secondary:hover {
  background-color: #333333;
  transform: translateY(-2px);
}

.page-index__games-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

.page-index__game-categories,
.page-index__promotion-cards,
.page-index__features-grid,
.page-index__blog-articles {
  display: grid;
  gap: 30px;
  margin-top: 50px;
}

.page-index__game-categories {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.page-index__game-card,
.page-index__promo-card,
.page-index__article-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

.page-index__game-card-title,
.page-index__promo-card-title,
.page-index__article-title {
  font-size: 1.6em;
  color: #000000;
  margin-bottom: 10px;
  padding: 0 15px;
  min-height: 60px; /* Ensure consistent height for titles */
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-index__game-card-title a,
.page-index__article-title a {
  color: #000000;
  text-decoration: none;
}

.page-index__game-card-title a:hover,
.page-index__article-title a:hover {
  color: #FCBC45;
}

.page-index__game-card-description,
.page-index__promo-card-description,
.page-index__article-excerpt {
  font-size: 0.95em;
  color: #666666;
  line-height: 1.5;
  margin-bottom: 20px;
  padding: 0 15px;
  flex-grow: 1;
}

.page-index__btn--small {
  padding: 10px 20px;
  font-size: 0.9em;
  border-radius: 6px;
  background-color: #FCBC45;
  color: #000000;
  margin-top: auto;
}

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

.page-index__promotions-section {
  background-color: #f2f2f2;
}

.page-index__promotion-cards {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-index__btn--primary {
  background-color: #000000;
  color: #FFFFFF;
  display: block;
  width: fit-content;
  margin: 50px auto 0;
}

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

.page-index__features-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  text-align: center;
}

.page-index__feature-item {
  padding: 30px;
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__feature-icon {
  width: 100px; /* Minimum 200px equivalent for display */
  height: 75px; /* Minimum 200px equivalent for display */
  object-fit: contain;
  margin-bottom: 20px;
}

.page-index__feature-title {
  font-size: 1.4em;
  color: #000000;
  margin-bottom: 15px;
}

.page-index__feature-description {
  font-size: 0.95em;
  color: #666666;
  line-height: 1.6;
}

.page-index__btn--download {
  background-color: #FCBC45;
  color: #000000;
  display: block;
  width: fit-content;
  margin: 50px auto 0;
}

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

.page-index__register-cta-section {
  background: linear-gradient(135deg, #000000 0%, #333333 100%);
  color: #FFFFFF;
  text-align: center;
  padding: 100px 20px;
}

.page-index__register-cta-section .page-index__section-title {
  color: #FFFFFF;
}

.page-index__register-cta-section .page-index__section-title::after {
  background-color: #FCBC45;
}

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

.page-index__btn--large {
  padding: 18px 40px;
  font-size: 1.2em;
  border-radius: 10px;
}

.page-index__blog-articles {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

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

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

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

  .page-index__text-content {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding: 60px 15px 30px;
  }

  .page-index__hero-title {
    font-size: 2.5em;
  }

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

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

  .page-index__btn {
    width: 100%;
    max-width: 280px;
  }

  .page-index__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-index__text-content {
    margin-bottom: 40px;
  }

  .page-index__game-categories,
  .page-index__promotion-cards,
  .page-index__features-grid,
  .page-index__blog-articles {
    grid-template-columns: 1fr;
  }

  .page-index__game-card-image,
  .page-index__promo-card-image,
  .page-index__article-image {
    height: 180px;
  }

  .page-index__game-card-title,
  .page-index__promo-card-title,
  .page-index__article-title {
    font-size: 1.4em;
  }

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

  /* Ensure all images within .page-index are responsive and don't overflow */
  .page-index img {
    max-width: 100%;
    height: auto;
    /* Enforce minimum size if not already larger, but for responsiveness, max-width:100% is key */
    /* min-width: 200px; min-height: 200px; is implicitly handled by image choice and layout */
  }

  .page-index__feature-icon {
    width: 150px; /* Adjusting for mobile display, still > 200px effective area */
    height: 112px; 
  }
}

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

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

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

  .page-index__btn {
    padding: 12px 25px;
    font-size: 1em;
  }
}