.page-index-featured-games {
  color: #333333; /* Dark text for light body background */
}

.page-index-featured-games__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 600px; /* Minimum height for hero section */
  background-color: #000000; /* Dark background for hero */
  color: #ffffff;
  overflow: hidden;
}

.page-index-featured-games__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.4; /* Slightly transparent to let text stand out */
}

.page-index-featured-games__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
}

.page-index-featured-games__hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FCBC45; /* Login button color for emphasis */
}

.page-index-featured-games__hero-description {
  font-size: 1.3rem;
  margin-bottom: 40px;
  line-height: 1.6;
}

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

.page-index-featured-games__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-index-featured-games__button--register {
  background-color: #FFFFFF;
  color: #000000;
}

.page-index-featured-games__button--register:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.page-index-featured-games__button--login {
  background-color: #FCBC45;
  color: #000000;
}

.page-index-featured-games__button--login:hover {
  background-color: #e0a030;
  transform: translateY(-2px);
}

.page-index-featured-games__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-index-featured-games__introduction {
  padding: 60px 0;
  background-color: #FFFFFF;
  text-align: center;
}

.page-index-featured-games__introduction-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #000000;
}

.page-index-featured-games__introduction-text {
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto 20px auto;
}

.page-index-featured-games__game-categories {
  padding: 80px 0;
  background-color: #f8f8f8;
  text-align: center;
}

.page-index-featured-games__categories-title {
  font-size: 2.8rem;
  margin-bottom: 20px;
  color: #000000;
}

.page-index-featured-games__categories-description {
  font-size: 1.2rem;
  margin-bottom: 50px;
  color: #555555;
}

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

.page-index-featured-games__category-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index-featured-games__category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

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

.page-index-featured-games__card-title {
  font-size: 1.8rem;
  margin: 20px 20px 10px 20px;
  line-height: 1.3;
}

.page-index-featured-games__card-link {
  color: #000000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index-featured-games__card-link:hover {
  color: #FCBC45;
}

.page-index-featured-games__card-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #666666;
  padding: 0 20px 20px 20px;
  flex-grow: 1;
}

.page-index-featured-games__card-button {
  display: inline-block;
  padding: 12px 25px;
  margin: 0 20px 20px 20px;
  background-color: #FCBC45;
  color: #000000;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-index-featured-games__card-button:hover {
  background-color: #e0a030;
  transform: translateY(-2px);
}

.page-index-featured-games__why-choose {
  padding: 80px 0;
  background-color: #FFFFFF;
}

.page-index-featured-games__why-choose-title {
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: 20px;
  color: #000000;
}

.page-index-featured-games__why-choose-description {
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 50px;
  color: #555555;
}

.page-index-featured-games__why-choose-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.page-index-featured-games__why-choose-item {
  background-color: #f8f8f8;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index-featured-games__why-choose-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.page-index-featured-games__why-choose-heading {
  font-size: 1.8rem;
  color: #000000;
  margin-bottom: 15px;
}

.page-index-featured-games__why-choose-item p {
  font-size: 1rem;
  line-height: 1.7;
  color: #666666;
}

.page-index-featured-games__why-choose-item a {
  color: #FCBC45;
  text-decoration: none;
}

.page-index-featured-games__why-choose-item a:hover {
  text-decoration: underline;
}

.page-index-featured-games__cta-section {
  padding: 80px 0;
  background-color: #000000; /* Dark background for CTA */
  color: #ffffff;
  text-align: center;
}

.page-index-featured-games__cta-title {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #FCBC45;
}

.page-index-featured-games__cta-description {
  font-size: 1.3rem;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index-featured-games__button--download {
  background-color: #FFFFFF;
  color: #000000;
}

.page-index-featured-games__button--download:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index-featured-games__hero-title {
    font-size: 3rem;
  }

  .page-index-featured-games__categories-title,
  .page-index-featured-games__why-choose-title,
  .page-index-featured-games__cta-title {
    font-size: 2.5rem;
  }

  .page-index-featured-games__card-image {
    height: 220px;
  }
}

@media (max-width: 768px) {
  .page-index-featured-games__hero-section {
    min-height: 500px;
    padding: var(--header-offset, 120px) 20px 40px;
  }

  .page-index-featured-games__hero-title {
    font-size: 2.5rem;
  }

  .page-index-featured-games__hero-description {
    font-size: 1.1rem;
  }

  .page-index-featured-games__hero-buttons,
  .page-index-featured-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-index-featured-games__button {
    width: 80%;
    max-width: 300px;
  }

  .page-index-featured-games__introduction-title,
  .page-index-featured-games__categories-title,
  .page-index-featured-games__why-choose-title,
  .page-index-featured-games__cta-title {
    font-size: 2rem;
  }

  .page-index-featured-games__introduction-text,
  .page-index-featured-games__categories-description,
  .page-index-featured-games__why-choose-description,
  .page-index-featured-games__cta-description {
    font-size: 1rem;
  }

  .page-index-featured-games__category-grid,
  .page-index-featured-games__why-choose-list {
    grid-template-columns: 1fr;
  }

  .page-index-featured-games__card-image {
    height: 200px;
  }

  /* Ensure content area images do not overflow */
  .page-index-featured-games img {
    max-width: 100%;
    height: auto;
  }

  /* Content area images must be >= 200px. This override ensures images are responsive but not too small. */
  .page-index-featured-games__card-image {
    min-width: 200px;
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-index-featured-games__hero-title {
    font-size: 2rem;
  }

  .page-index-featured-games__hero-description {
    font-size: 0.9rem;
  }

  .page-index-featured-games__introduction-title,
  .page-index-featured-games__categories-title,
  .page-index-featured-games__why-choose-title,
  .page-index-featured-games__cta-title {
    font-size: 1.8rem;
  }

  .page-index-featured-games__button {
    width: 90%;
  }
}