.page-home {
  color: #333333; /* Dark text for default light body background */
}

.page-home__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #000000; /* Primary color for hero background */
  color: #FFFFFF;
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

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

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

.page-home__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  border-radius: 10px;
  margin-top: 40px;
}

.page-home__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FCBC45; /* Highlight color for title */
}

.page-home__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  line-height: 1.6;
}

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

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

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

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

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

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

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

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

.page-home__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FCBC45;
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-home__text-content {
  font-size: 1.1em;
  line-height: 1.7;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px;
}

.page-home__about-section {
  background-color: #f8f8f8;
  padding: 60px 0;
}

.page-home__games-section {
  padding: 60px 0;
}

.page-home__game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

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

.page-home__game-card-image {
  width: 100%;
  height: 250px; /* Ensure images are not too small */
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

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

.page-home__game-card-title a {
  color: inherit;
  text-decoration: none;
}

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

.page-home__game-card-description {
  font-size: 0.95em;
  line-height: 1.5;
  color: #555555;
  padding: 0 15px 15px;
}

.page-home__btn--small {
  padding: 10px 20px;
  font-size: 0.9em;
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-home__btn--small:hover {
  background-color: #e0a53b;
}

.page-home__promo-section {
  background-color: #000000;
  color: #FFFFFF;
  padding: 60px 0;
}

.page-home__promo-section .page-home__section-title,
.page-home__promo-section .page-home__text-content {
  color: #FFFFFF;
}

.page-home__promo-section .page-home__section-title::after {
  background-color: #FCBC45;
}

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

.page-home__promo-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease;
}

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

.page-home__promo-card-image {
  width: 100%;
  height: 250px; /* Ensure images are not too small */
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-home__promo-card-title {
  font-size: 1.5em;
  color: #FFFFFF;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-home__promo-card-title a {
  color: inherit;
  text-decoration: none;
}

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

.page-home__promo-card-description {
  font-size: 0.95em;
  line-height: 1.5;
  color: #CCCCCC;
  padding: 0 15px 15px;
}

.page-home__btn--primary {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  margin-top: 30px;
}

.page-home__btn--primary:hover {
  background-color: #e0a53b;
}

.page-home__why-choose-us-section {
  padding: 60px 0;
  background-color: #f8f8f8;
}

.page-home__features-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-home__feature-item {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-home__feature-item:hover {
  transform: translateY(-5px);
}

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

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

.page-home__cta-section {
  background-color: #000000;
  color: #FFFFFF;
  padding: 80px 20px;
  text-align: center;
}

.page-home__cta-section .page-home__section-title,
.page-home__cta-section .page-home__text-content {
  color: #FFFFFF;
}

.page-home__cta-section .page-home__section-title::after {
  background-color: #FCBC45;
}

.page-home__btn--large {
  padding: 18px 40px;
  font-size: 1.2em;
  margin-top: 40px;
}

.page-home__resources-section {
  padding: 60px 0;
}

.page-home__resource-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-home__resource-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

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

.page-home__resource-card-title {
  font-size: 1.5em;
  color: #000000;
  margin-bottom: 10px;
}

.page-home__resource-card-title a {
  color: inherit;
  text-decoration: none;
}

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

.page-home__resource-card-description {
  font-size: 0.95em;
  line-height: 1.5;
  color: #555555;
  margin-bottom: 20px;
}

.page-home__testimonials-section {
  background-color: #f8f8f8;
  padding: 60px 0;
}

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

.page-home__testimonial-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
}

.page-home__testimonial-text {
  font-style: italic;
  font-size: 1.1em;
  line-height: 1.6;
  color: #333333;
  margin-bottom: 15px;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-home__hero-title {
    font-size: 3em;
  }
  .page-home__hero-description {
    font-size: 1.2em;
  }
  .page-home__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-home__hero-section {
    padding-top: var(--header-offset, 120px);
    padding: 40px 15px;
  }
  .page-home__hero-content {
    padding: 30px 15px;
  }
  .page-home__hero-title {
    font-size: 2.5em;
  }
  .page-home__hero-description {
    font-size: 1em;
  }
  .page-home__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-home__btn {
    width: 100%;
    max-width: 300px;
  }
  .page-home__container {
    padding: 30px 15px;
  }
  .page-home__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-home__text-content {
    font-size: 0.95em;
    margin-bottom: 20px;
  }
  .page-home__game-categories,
  .page-home__promo-cards,
  .page-home__features-list,
  .page-home__resource-cards,
  .page-home__testimonial-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  /* Mobile image overflow prevention */
  .page-home img {
    max-width: 100%;
    height: auto;
  }
  .page-home__game-card-image,
  .page-home__promo-card-image {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .page-home__hero-title {
    font-size: 2em;
  }
  .page-home__hero-description {
    font-size: 0.9em;
  }
  .page-home__btn--large {
    font-size: 1.1em;
    padding: 15px 30px;
  }
}