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

.page-home__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  background: linear-gradient(135deg, #000000 0%, #333333 100%); /* Dark gradient background */
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.page-home__hero-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.3; /* Slightly transparent to allow text to stand out */
}

.page-home__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.page-home__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FCBC45; /* Login button color for emphasis */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-home__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-home__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;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

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

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

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

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

.page-home__features-section,
.page-home__games-overview,
.page-home__registration-guide,
.page-home__testimonials-section,
.page-home__contact-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 40px 20px;
  text-align: center;
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.page-home__features-title,
.page-home__games-title,
.page-home__registration-title,
.page-home__testimonials-title,
.page-home__contact-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #000000;
}

.page-home__features-intro,
.page-home__games-intro,
.page-home__registration-intro,
.page-home__contact-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  color: #555555;
}

.page-home__features-grid,
.page-home__games-grid,
.page-home__guide-steps,
.page-home__testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-home__feature-card,
.page-home__game-card,
.page-home__step-card,
.page-home__testimonial-card {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-home__feature-card:hover,
.page-home__game-card:hover,
.page-home__step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-home__feature-icon,
.page-home__game-image,
.page-home__step-image {
  width: 100%;
  height: 250px; /* Consistent height for content images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Ensure images are not too small */
  min-height: 200px;
}

.page-home__testimonial-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid #FCBC45;
  min-width: 100px; /* Smallest allowed for avatars, but still > 200px for general content */
  min-height: 100px;
}

.page-home__feature-heading,
.page-home__game-heading,
.page-home__step-heading {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #000000;
}

.page-home__game-heading a {
  color: #000000;
  text-decoration: none;
}

.page-home__game-heading a:hover {
  color: #FCBC45;
}

.page-home__feature-description,
.page-home__game-description,
.page-home__step-description,
.page-home__testimonial-quote {
  font-size: 1em;
  color: #666666;
  margin-bottom: 20px;
}

.page-home__feature-link,
.page-home__game-button,
.page-home__step-link {
  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-home__feature-link:hover,
.page-home__game-button:hover,
.page-home__step-link:hover {
  background-color: #e0a53b;
}

.page-home__cta-section {
  margin-top: 60px;
  padding: 40px 20px;
  background-color: #000000;
  color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-home__cta-heading {
  font-size: 2.2em;
  margin-bottom: 15px;
  color: #FCBC45;
}

.page-home__cta-text {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.page-home__button--primary,
.page-home__button--support {
  background-color: #FCBC45;
  color: #000000;
  padding: 15px 30px;
  font-size: 1.1em;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-home__button--primary:hover,
.page-home__button--support:hover {
  background-color: #e0a53b;
  transform: translateY(-2px);
}

.page-home__testimonial-quote {
  font-style: italic;
}

.page-home__testimonial-author {
  font-weight: bold;
  color: #000000;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-home {
    padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
  }

  .page-home__hero-section {
    padding: 40px 15px;
  }

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

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

  .page-home__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-home__button {
    width: 80%;
    max-width: 300px;
  }

  .page-home__features-title,
  .page-home__games-title,
  .page-home__registration-title,
  .page-home__testimonials-title,
  .page-home__contact-title {
    font-size: 2em;
  }

  .page-home__features-intro,
  .page-home__games-intro,
  .page-home__registration-intro,
  .page-home__contact-description {
    font-size: 0.95em;
  }

  .page-home__features-grid,
  .page-home__games-grid,
  .page-home__guide-steps,
  .page-home__testimonials-grid {
    grid-template-columns: 1fr;
  }

  .page-home__feature-icon,
  .page-home__game-image,
  .page-home__step-image {
    height: 200px; /* Slightly smaller for mobile, but still >= 200px */
  }

  /* Ensure all content area images are responsive and don't overflow */
  .page-home img {
    max-width: 100%;
    height: auto;
  }

  .page-home__cta-heading {
    font-size: 1.8em;
  }

  .page-home__cta-text {
    font-size: 1em;
  }
}