.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__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.page-home__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  color: #FFFFFF; /* White text for hero overlay */
  text-align: center;
}

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

.page-home__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
  z-index: -1;
}

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

.page-home__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  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;
  line-height: 1.5;
  color: #FFFFFF;
}

.page-home__hero-actions {
  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;
  transition: background-color 0.3s ease, transform 0.3s ease;
  font-size: 1.1em;
}

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

.page-home__button--register:hover {
  background-color: transparent;
  color: #FFFFFF;
  transform: translateY(-3px);
}

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

.page-home__button--login:hover {
  background-color: transparent;
  color: #FCBC45;
  transform: translateY(-3px);
}

/* Section Titles & Intros */
.page-home__section-title {
  font-size: 2.8em;
  text-align: center;
  margin-bottom: 20px;
  color: #000000;
}

.page-home__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #666666;
}

/* Features Section */
.page-home__features-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

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

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

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

.page-home__feature-icon {
  width: 200px; /* Minimum size */
  height: 150px; /* Minimum size */
  object-fit: contain;
  margin-bottom: 20px;
}

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

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

.page-home__feature-link {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
}

.page-home__feature-link:hover {
  text-decoration: underline;
}

/* Games Section */
.page-home__games-section {
  padding: 80px 0;
}

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

.page-home__game-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-home__game-title {
  font-size: 1.8em;
  padding: 20px 20px 0;
  color: #000000;
}

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

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

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

.page-home__button--play, .page-home__button--bet, .page-home__button--spin, .page-home__button--deal {
  background-color: #FCBC45;
  color: #000000;
  margin: 0 20px 20px;
  width: calc(100% - 40px);
  text-align: center;
  border: 2px solid #FCBC45;
}

.page-home__button--play:hover, .page-home__button--bet:hover, .page-home__button--spin:hover, .page-home__button--deal:hover {
  background-color: transparent;
  color: #FCBC45;
  transform: translateY(-3px);
}

/* About Section */
.page-home__about-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.page-home__about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-home__about-text {
  flex: 1;
  min-width: 300px;
}

.page-home__about-text p {
  margin-bottom: 15px;
  color: #444444;
}

.page-home__about-image {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-home__button--learn-more {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
  margin-top: 20px;
}

.page-home__button--learn-more:hover {
  background-color: transparent;
  color: #000000;
  transform: translateY(-3px);
}

/* CTA Section */
.page-home__cta-section {
  padding: 80px 0;
  background: linear-gradient(90deg, #000000 0%, #333333 100%);
  color: #FFFFFF;
}

.page-home__cta-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  text-align: center;
}

.page-home__cta-image {
  width: 250px;
  height: 250px;
  object-fit: contain;
}

.page-home__cta-text {
  max-width: 600px;
}

.page-home__cta-text .page-home__section-title {
  color: #FFFFFF;
}

.page-home__cta-text .page-home__section-intro {
  color: #f0f0f0;
  margin-bottom: 30px;
}

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

.page-home__button--download:hover {
  background-color: transparent;
  color: #FCBC45;
  transform: translateY(-3px);
}

/* Testimonials Section */
.page-home__testimonials-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

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

.page-home__testimonial-card {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.page-home__testimonial-quote {
  font-style: italic;
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 20px;
}

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

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

@media (max-width: 768px) {
  .page-home {
    padding-top: var(--header-offset, 80px); /* Adjust for smaller mobile header */
  }
  .page-home__hero-title {
    font-size: 2.5em;
  }
  .page-home__hero-description {
    font-size: 1.1em;
  }
  .page-home__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-home__button {
    width: 100%;
  }
  .page-home__section-title {
    font-size: 1.8em;
  }
  .page-home__section-intro {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-home__features-grid, .page-home__games-grid, .page-home__testimonials-grid {
    grid-template-columns: 1fr;
  }
  .page-home__about-content, .page-home__cta-content {
    flex-direction: column;
    text-align: center;
  }
  .page-home__about-image, .page-home__cta-image {
    max-width: 100%;
    width: 100%;
    height: auto; /* Ensure images scale */
  }
  .page-home__feature-icon, .page-home__game-image, .page-home__about-image, .page-home__cta-image {
    max-width: 100%;
    height: auto; /* Prevent overflow */
  }
  /* Ensure all images in content area do not cause horizontal scroll */
  .page-home img {
    max-width: 100%;
    height: auto;
  }
  .page-home__feature-icon, .page-home__game-image, .page-home__about-image, .page-home__cta-image {
    min-width: 200px; /* Enforce minimum size for mobile */
    min-height: 150px; /* Enforce minimum size for mobile */
    object-fit: contain;
  }
  .page-home__about-image {
    min-height: 250px;
  }
  .page-home__cta-image {
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-home__hero-content {
    padding: 20px;
  }
  .page-home__hero-title {
    font-size: 2em;
  }
  .page-home__hero-description {
    font-size: 0.9em;
  }
  .page-home__button {
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-home__section-title {
    font-size: 1.5em;
  }
  .page-home__section-intro {
    margin-bottom: 20px;
  }
  .page-home__feature-card, .page-home__game-card, .page-home__testimonial-card {
    padding: 20px;
  }
}