.page-home {
  color: #000000; /* Dark text for 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: #FFFFFF;
  padding-bottom: 40px;
}

.page-home__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-top: 20px;
}

.page-home__hero-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-home__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

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

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

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

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

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

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

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

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

.page-home__section-title {
  font-size: 2.2em;
  color: #000000;
  text-align: center;
  margin-bottom: 20px;
  margin-top: 60px;
  font-weight: bold;
}

.page-home__section-intro {
  font-size: 1.1em;
  color: #555555;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

.page-home__about-section,
.page-home__games-section,
.page-home__promotions-section,
.page-home__app-section,
.page-home__about-ahh88-section,
.page-home__contact-section,
.page-home__cta-final-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #FFFFFF;
}

.page-home__features-grid,
.page-home__games-grid,
.page-home__promotions-grid,
.page-home__contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-home__feature-card,
.page-home__game-card,
.page-home__promo-card,
.page-home__contact-card {
  background-color: #f8f8f8;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-home__feature-icon,
.page-home__game-image,
.page-home__promo-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensure it's a block element */
  object-fit: cover;
}

.page-home__feature-title,
.page-home__game-title,
.page-home__promo-title,
.page-home__contact-title {
  font-size: 1.5em;
  color: #000000;
  margin-bottom: 15px;
  font-weight: bold;
}

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

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

.page-home__feature-text,
.page-home__game-text,
.page-home__promo-text,
.page-home__contact-text {
  font-size: 1em;
  color: #666666;
  line-height: 1.6;
  flex-grow: 1;
}

.page-home__button--small {
  padding: 10px 20px;
  font-size: 0.95em;
  margin-top: 20px;
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
}

.page-home__button--small:hover {
  background-color: #333333;
  border-color: #333333;
}

.page-home__call-to-action {
  text-align: center;
  margin-top: 50px;
}

.page-home__button--large {
  padding: 15px 40px;
  font-size: 1.2em;
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
}

.page-home__button--large:hover {
  background-color: #333333;
  border-color: #333333;
}

.page-home__app-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-home__app-image-wrapper {
  flex-shrink: 0;
}

.page-home__app-image {
  width: 100%;
  height: auto;
  max-width: 400px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: block;
}

.page-home__app-details {
  text-align: center;
}

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

.page-home__app-features-list li {
  font-size: 1.1em;
  color: #333333;
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

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

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

.page-home__button--download:hover {
  background-color: #e0a53b;
}

.page-home__about-text {
  font-size: 1em;
  color: #666666;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: justify;
}

.page-home__button--hero-cta {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  padding: 18px 45px;
  font-size: 1.3em;
  border-radius: 10px;
}

.page-home__button--hero-cta:hover {
  background-color: #e0a53b;
  transform: translateY(-3px);
}

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

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

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

  .page-home__button {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .page-home__section-title {
    font-size: 1.8em;
  }

  .page-home__section-intro {
    font-size: 0.95em;
  }

  .page-home__features-grid,
  .page-home__games-grid,
  .page-home__promotions-grid,
  .page-home__contact-methods {
    grid-template-columns: 1fr;
  }

  .page-home__app-content {
    flex-direction: column;
  }

  .page-home__app-image {
    max-width: 300px;
  }

  /* Ensure all content area images are responsive and do not overflow */
  .page-home img {
    max-width: 100% !important;
    height: auto !important;
  }

  .page-home {
    overflow-x: hidden;
  }
}

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

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

  .page-home__button--hero-cta {
    font-size: 1.1em;
    padding: 15px 30px;
  }
}