.page-home {
  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 below fixed header */
}

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

.page-home__hero-content-wrapper {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-bottom: 40px;
}

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

.page-home__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #F0F0F0;
}

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

.page-home__hero-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;
  min-width: 200px; /* Ensure button minimum size */
}

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

.page-home__hero-button--register:hover {
  background-color: #F0F0F0;
  transform: translateY(-3px);
}

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

.page-home__hero-button--login:hover {
  background-color: #E6A83C;
  transform: translateY(-3px);
}

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

.page-home__games-section,
.page-home__features-section,
.page-home__responsible-gaming-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}

.page-home__section-title {
  font-size: 2.8em;
  margin-bottom: 15px;
  color: #000000;
  font-weight: bold;
}

.page-home__section-subtitle {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-home__game-cards {
  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: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-home__game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-home__game-card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-home__game-card-title {
  font-size: 1.8em;
  margin: 20px 20px 10px;
  font-weight: bold;
}

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

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

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

.page-home__game-card-link {
  display: inline-block;
  background-color: #FCBC45;
  color: #000000;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  margin: 0 20px 20px;
  transition: background-color 0.3s ease;
}

.page-home__game-card-link:hover {
  background-color: #E6A83C;
}

.page-home__promo-section {
  background-color: #000000;
  color: #FFFFFF;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-home__promo-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-bottom: 40px;
}

.page-home__section-title--light,
.page-home__section-subtitle--light {
  color: #FFFFFF;
}

.page-home__promo-button {
  display: inline-block;
  background-color: #FCBC45;
  color: #000000;
  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;
  min-width: 200px; /* Ensure button minimum size */
}

.page-home__promo-button:hover {
  background-color: #E6A83C;
  transform: translateY(-3px);
}

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

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

.page-home__feature-item {
  background-color: #F8F8F8;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-home__feature-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-home__feature-icon {
  width: 100px; /* Ensure icon size is not too small, but still icon-like */
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  display: block;
}

.page-home__feature-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #000000;
}

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

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

.page-home__feature-link:hover {
  color: #E6A83C;
}

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

.page-home__cta-button {
  display: inline-block;
  background-color: #000000;
  color: #FFFFFF;
  padding: 18px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.3em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  min-width: 250px; /* Ensure button minimum size */
}

.page-home__cta-button:hover {
  background-color: #333333;
  transform: translateY(-5px);
}

.page-home__responsible-gaming-section {
  background-color: #F5F5F5;
  padding: 60px 20px;
}

.page-home__responsible-gaming-text {
  font-size: 1em;
  color: #555555;
  max-width: 900px;
  margin: 0 auto 30px;
  line-height: 1.8;
}

.page-home__responsible-gaming-link {
  display: inline-block;
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
  margin-top: 15px;
  transition: color 0.3s ease;
}

.page-home__responsible-gaming-link:hover {
  color: #E6A83C;
}

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

@media (max-width: 768px) {
  .page-home__hero-title {
    font-size: 2.2em;
  }
  .page-home__hero-description {
    font-size: 1em;
  }
  .page-home__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-home__hero-button {
    width: 100%;
    max-width: 280px;
  }
  .page-home__section-title {
    font-size: 1.8em;
  }
  .page-home__section-subtitle {
    font-size: 0.95em;
  }
  .page-home__game-cards,
  .page-home__feature-grid {
    grid-template-columns: 1fr;
  }
  .page-home__game-card-image {
    height: 200px;
  }
  .page-home__game-card-title {
    font-size: 1.5em;
  }
  .page-home__feature-icon {
    width: 80px;
    height: 80px;
  }
  .page-home__feature-title {
    font-size: 1.3em;
  }
  .page-home__cta-button {
    font-size: 1.1em;
    padding: 15px 30px;
  }
  /* Ensure content area images do not overflow */
  .page-home img {
    max-width: 100%;
    height: auto;
  }
  .page-home__game-card-image, .page-home__feature-icon, .page-home__promo-image, .page-home__hero-image {
    max-width: 100%;
    height: auto;
  }
  .page-home__feature-item img {
    width: 200px; /* Minimum size for content images */
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-home__hero-section,
  .page-home__games-section,
  .page-home__promo-section,
  .page-home__features-section,
  .page-home__cta-section,
  .page-home__responsible-gaming-section {
    padding: 40px 15px;
  }
  .page-home__hero-title {
    font-size: 1.8em;
  }
  .page-home__section-title {
    font-size: 1.6em;
  }
}