.page-home {
  color: #ffffff; /* Light text for dark body background */
  padding-top: var(--header-offset, 120px); /* Ensure content starts below fixed header */
}

.page-home__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

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

.page-home__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
  z-index: 1;
}

.page-home__hero-content {
  background: rgba(0, 0, 0, 0.7); /* Semi-transparent dark overlay for text readability */
  padding: 30px;
  border-radius: 10px;
  max-width: 800px;
  margin: 0 auto;
}

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

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

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

.page-home__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 1.1em;
  cursor: pointer;
}

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

.page-home__button--register:hover {
  background-color: transparent;
  color: #FFFFFF;
}

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

.page-home__button--login:hover {
  background-color: transparent;
  color: #FCBC45;
}

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

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

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

.page-home__button--small:hover {
  background-color: transparent;
  color: #FCBC45;
}

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

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

.page-home__section-text {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
}

.page-home__about-section,
.page-home__promotions-section,
.page-home__why-choose-section,
.page-home__cta-section,
.page-home__footer-links-section {
  padding: 60px 0;
  background-color: #000000; /* Main dark background */
}

.page-home__games-section {
  padding: 60px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
}

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

.page-home__game-card {
  background-color: #000000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-home__game-image {
  width: 100%;
  height: 200px; /* Min height for card images */
  object-fit: cover;
  margin-bottom: 15px;
}

.page-home__game-title {
  font-size: 1.8em;
  margin-bottom: 10px;
  color: #FCBC45;
}

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

.page-home__game-title a:hover {
  text-decoration: underline;
}

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

.page-home__mobile-app-section {
  padding: 60px 0;
  background-color: #1a1a1a;
}

.page-home__mobile-app-flex {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-home__mobile-app-content {
  flex: 1;
}

.page-home__mobile-app-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-home__mobile-app-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  min-width: 200px; /* Ensure image is not too small */
  min-height: 200px;
}

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

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

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

.page-home__feature-description {
  font-size: 1em;
  line-height: 1.7;
  color: #cccccc;
}

.page-home__cta-section {
  text-align: center;
}

.page-home__cta-content {
  background: #1a1a1a;
  padding: 60px 40px;
  border-radius: 15px;
}

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

.page-home__footer-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.page-home__footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-home__footer-links-list li {
  margin-bottom: 10px;
}

.page-home__footer-links-list a {
  color: #cccccc;
  text-decoration: none;
  font-size: 1em;
}

.page-home__footer-links-list a:hover {
  color: #FCBC45;
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-home__hero-title {
    font-size: 2.8em;
  }
  .page-home__section-title {
    font-size: 2em;
  }
  .page-home__mobile-app-flex {
    flex-direction: column;
    text-align: center;
  }
  .page-home__mobile-app-content,
  .page-home__mobile-app-image-wrapper {
    flex: none;
    width: 100%;
  }
  .page-home__hero-actions, .page-home__cta-actions {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .page-home__hero-title {
    font-size: 2.2em;
  }
  .page-home__hero-description {
    font-size: 1em;
  }
  .page-home__button {
    width: 100%;
    padding: 12px 20px;
  }
  .page-home__section-title {
    font-size: 1.8em;
  }
  .page-home__section-text {
    font-size: 0.95em;
  }
  .page-home__game-image, .page-home__mobile-app-image, .page-home__hero-image {
    max-width: 100%;
    height: auto; /* Ensure images are responsive and don't overflow */
    min-width: 200px;
    min-height: 200px;
  }
  .page-home__container {
    padding: 20px 15px;
  }
  .page-home__about-section, .page-home__games-section, .page-home__promotions-section, .page-home__mobile-app-section, .page-home__why-choose-section, .page-home__cta-section, .page-home__footer-links-section {
    padding: 40px 0;
  }
}

@media (max-width: 480px) {
  .page-home__hero-title {
    font-size: 1.8em;
  }
  .page-home__section-title {
    font-size: 1.5em;
  }
  .page-home__game-grid, .page-home__feature-grid, .page-home__footer-links-grid {
    grid-template-columns: 1fr;
  }
}