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

.page-home__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 600px; /* Minimum height for hero section */
  background-color: #000000; /* Fallback background */
}

.page-home__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.7; /* Slightly dim the image for text readability */
}

.page-home__hero-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
  text-align: center;
  color: #FFFFFF;
  background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
  border-radius: 10px;
}

.page-home__hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-home__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-home__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

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

.page-home__hero-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  min-width: 180px;
  text-align: center;
}

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

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

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

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

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

.page-home__hero-button--download:hover {
  background-color: #333333;
  transform: translateY(-2px);
}

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

.page-home__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-home__section-paragraph {
  font-size: 1.1em;
  color: #333333;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 20px auto;
}

.page-home__learn-more-button,
.page-home__cta-button {
  display: block;
  width: fit-content;
  margin: 30px auto;
  padding: 15px 30px;
  background-color: #FCBC45;
  color: #000000;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-home__learn-more-button:hover,
.page-home__cta-button:hover {
  background-color: #e0a53b;
  transform: translateY(-2px);
}

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

.page-home__feature-card,
.page-home__download-card,
.page-home__game-card,
.page-home__promotion-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 400px; /* Ensure cards are large enough */
}

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

.page-home__feature-icon,
.page-home__download-icon,
.page-home__game-image,
.page-home__promotion-image {
  width: 100%; /* Occupy full width of card */
  max-width: 400px; /* Max width for images within cards */
  height: auto;
  min-height: 200px; /* Min height for content images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-home__feature-title,
.page-home__download-title,
.page-home__game-title,
.page-home__promotion-title {
  font-size: 1.8em;
  color: #000000;
  margin-bottom: 15px;
  font-weight: bold;
}

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

.page-home__game-title a:hover,
.page-home__promotion-title a:hover {
  color: #FCBC45;
  text-decoration: underline;
}

.page-home__feature-description,
.page-home__download-description,
.page-home__game-description,
.page-home__promotion-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-home__download-button {
  display: inline-block;
  padding: 12px 25px;
  background-color: #000000;
  color: #FFFFFF;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-home__download-button:hover {
  background-color: #333333;
}

.page-home__login-steps {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  text-align: left;
}

.page-home__login-step-item {
  background-color: #f9f9f9;
  border-left: 5px solid #FCBC45;
  padding: 20px 30px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.page-home__step-description {
  font-size: 1em;
  color: #555555;
  text-align: left;
  margin-bottom: 0;
}

.page-home__about-section,
.page-home__features-section,
.page-home__how-to-login-section,
.page-home__download-section,
.page-home__games-section,
.page-home__promotions-section,
.page-home__security-section,
.page-home__support-section,
.page-home__faq-section,
.page-home__cta-final-section {
  padding: 60px 0;
}

.page-home__about-section { background-color: #f8f8f8; }
.page-home__features-section { background-color: #FFFFFF; }
.page-home__how-to-login-section { background-color: #f8f8f8; }
.page-home__download-section { background-color: #FFFFFF; }
.page-home__games-section { background-color: #f8f8f8; }
.page-home__promotions-section { background-color: #FFFFFF; }
.page-home__security-section { background-color: #f8f8f8; }
.page-home__support-section { background-color: #FFFFFF; }
.page-home__faq-section { background-color: #f8f8f8; }
.page-home__cta-final-section { background-color: #000000; color: #FFFFFF; }
.page-home__cta-final-section .page-home__section-title, .page-home__cta-final-section .page-home__section-paragraph {
  color: #FFFFFF;
}

.page-home__cta-final-section .page-home__cta-button--register {
  background-color: #FFFFFF;
  color: #000000;
}

.page-home__cta-final-section .page-home__cta-button--register:hover {
  background-color: #e0e0e0;
}

.page-home__cta-final-section .page-home__cta-button--download {
  background-color: #FCBC45;
  color: #000000;
}

.page-home__cta-final-section .page-home__cta-button--download:hover {
  background-color: #e0a53b;
}

.page-home__faq-list {
  margin-top: 40px;
}

.page-home__faq-item {
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 15px;
  padding: 20px 30px;
}

.page-home__faq-question {
  font-size: 1.3em;
  color: #000000;
  margin-bottom: 10px;
  cursor: pointer;
  position: relative;
  padding-right: 30px;
}

.page-home__faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5em;
  color: #FCBC45;
}

.page-home__faq-question.active::after {
  content: '-';
}

.page-home__faq-answer {
  font-size: 1em;
  color: #555555;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.page-home__faq-answer.active {
  max-height: 200px; /* Adjust as needed for content */
  margin-top: 10px;
}

.page-home__cta-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-home__hero-title {
    font-size: 2.8em;
  }
  .page-home__hero-description {
    font-size: 1.1em;
  }
  .page-home__section-title {
    font-size: 2em;
  }
  .page-home__feature-card, .page-home__download-card, .page-home__game-card, .page-home__promotion-card {
    min-height: 350px;
  }
}

@media (max-width: 768px) {
  .page-home {
    padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
  }
  .page-home__hero-title {
    font-size: 2.2em;
  }
  .page-home__hero-description {
    font-size: 1em;
  }
  .page-home__hero-button {
    padding: 12px 20px;
    font-size: 1em;
    min-width: unset;
  }
  .page-home__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-home__section-title {
    font-size: 1.8em;
  }
  .page-home__section-paragraph {
    font-size: 0.95em;
  }
  .page-home__features-grid,
  .page-home__download-options,
  .page-home__games-grid,
  .page-home__promotions-grid {
    grid-template-columns: 1fr;
  }
  .page-home__feature-card, .page-home__download-card, .page-home__game-card, .page-home__promotion-card {
    min-height: unset;
  }
  .page-home__feature-icon,
  .page-home__download-icon,
  .page-home__game-image,
  .page-home__promotion-image {
    max-width: 100%;
    width: 100%;
    height: auto;
    min-height: 200px; /* Ensure images are not too small */
  }
  .page-home__faq-question {
    font-size: 1.1em;
  }
  .page-home__faq-answer {
    font-size: 0.9em;
  }
  .page-home__cta-actions {
    flex-direction: column;
  }
  .page-home__content-wrapper img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-home__hero-title {
    font-size: 1.8em;
  }
  .page-home__hero-description {
    font-size: 0.9em;
  }
  .page-home__hero-button {
    width: 100%;
  }
  .page-home__section-title {
    font-size: 1.5em;
  }
  .page-home__login-step-item {
    padding: 15px 20px;
  }
  .page-home__step-title {
    font-size: 1.3em;
  }
  .page-home__faq-question {
    font-size: 1em;
  }
}