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

.page-home-featured-games__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

.page-home-featured-games__hero-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px;
}

.page-home-featured-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.6); /* Slightly dim the background image for text readability */
}

.page-home-featured-games__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #FFFFFF;
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.page-home-featured-games__hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
  color: #FCBC45;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-home-featured-games__hero-description {
  font-size: 1.3rem;
  margin-bottom: 30px;
  line-height: 1.6;
  color: #F0F0F0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

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

.page-home-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;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

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

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

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

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

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

.page-home-featured-games__intro-section,
.page-home-featured-games__why-choose-section,
.page-home-featured-games__cta-section,
.page-home-featured-games__responsible-gaming-section {
  padding: 60px 0;
  text-align: center;
}

.page-home-featured-games__intro-section {
  background-color: #F8F8F8;
}

.page-home-featured-games__intro-heading,
.page-home-featured-games__grid-heading,
.page-home-featured-games__why-choose-heading,
.page-home-featured-games__cta-heading,
.page-home-featured-games__responsible-gaming-heading {
  font-size: 2.8rem;
  color: #000000;
  margin-bottom: 25px;
  font-weight: 700;
}

.page-home-featured-games__intro-text,
.page-home-featured-games__grid-description,
.page-home-featured-games__cta-description,
.page-home-featured-games__responsible-gaming-text {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #555555;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-home-featured-games__games-grid-section {
  background-color: #FFFFFF;
  padding: 80px 0;
}

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

.page-home-featured-games__game-card {
  background-color: #FDFDFD;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-home-featured-games__game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

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

.page-home-featured-games__game-card-title {
  font-size: 1.8rem;
  color: #000000;
  margin: 20px 25px 10px;
  font-weight: 600;
  min-height: 54px; /* Ensure consistent height for titles */
}

.page-home-featured-games__game-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-home-featured-games__game-card-title a:hover {
  color: #FCBC45;
}

.page-home-featured-games__game-card-text {
  font-size: 1rem;
  color: #666666;
  line-height: 1.6;
  padding: 0 25px;
  flex-grow: 1;
}

.page-home-featured-games__game-card-button {
  display: inline-block;
  background-color: #000000;
  color: #FFFFFF;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
  margin: 25px;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-home-featured-games__game-card-button:hover {
  background-color: #333333;
}

.page-home-featured-games__why-choose-section {
  background-color: #F0F0F0;
}

.page-home-featured-games__why-choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-home-featured-games__why-choose-item {
  background-color: #FFFFFF;
  border-radius: 12px;
  padding: 40px 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.page-home-featured-games__why-choose-item:hover {
  transform: translateY(-5px);
}

.page-home-featured-games__why-choose-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 25px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
}

.page-home-featured-games__why-choose-title {
  font-size: 1.6rem;
  color: #000000;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-home-featured-games__why-choose-text {
  font-size: 1rem;
  color: #666666;
  line-height: 1.6;
}

.page-home-featured-games__cta-section {
  background-color: #000000;
  color: #FFFFFF;
  padding: 80px 0;
}

.page-home-featured-games__cta-heading {
  color: #FCBC45;
}

.page-home-featured-games__cta-description {
  color: #F0F0F0;
}

.page-home-featured-games__cta-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

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

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

.page-home-featured-games__responsible-gaming-section {
  padding: 40px 0;
  background-color: #F8F8F8;
}

.page-home-featured-games__responsible-gaming-heading a {
  color: #000000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-home-featured-games__responsible-gaming-heading a:hover {
  color: #FCBC45;
}

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

  .page-home-featured-games__intro-heading,
  .page-home-featured-games__grid-heading,
  .page-home-featured-games__why-choose-heading,
  .page-home-featured-games__cta-heading,
  .page-home-featured-games__responsible-gaming-heading {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .page-home-featured-games__hero-section {
    padding-top: var(--header-offset, 120px); /* Keep for mobile too */
    min-height: 400px;
  }

  .page-home-featured-games__hero-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
  }

  .page-home-featured-games__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

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

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

  .page-home-featured-games__container {
    padding: 20px 15px;
  }

  .page-home-featured-games__intro-heading,
  .page-home-featured-games__grid-heading,
  .page-home-featured-games__why-choose-heading,
  .page-home-featured-games__cta-heading,
  .page-home-featured-games__responsible-gaming-heading {
    font-size: 2rem;
  }

  .page-home-featured-games__intro-text,
  .page-home-featured-games__grid-description,
  .page-home-featured-games__cta-description,
  .page-home-featured-games__responsible-gaming-text {
    font-size: 1rem;
  }

  .page-home-featured-games__games-grid-section,
  .page-home-featured-games__intro-section,
  .page-home-featured-games__why-choose-section,
  .page-home-featured-games__cta-section,
  .page-home-featured-games__responsible-gaming-section {
    padding: 40px 0;
  }

  .page-home-featured-games__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-home-featured-games__game-card-image {
    height: 200px;
  }

  .page-home-featured-games__game-card-title {
    font-size: 1.5rem;
  }

  .page-home-featured-games__why-choose-grid {
    grid-template-columns: 1fr;
  }

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

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

  .page-home-featured-games__intro-heading,
  .page-home-featured-games__grid-heading,
  .page-home-featured-games__why-choose-heading,
  .page-home-featured-games__cta-heading,
  .page-home-featured-games__responsible-gaming-heading {
    font-size: 1.8rem;
  }

  .page-home-featured-games__button {
    padding: 12px 20px;
    font-size: 1rem;
  }

  .page-home-featured-games__game-card-title {
    font-size: 1.3rem;
  }

  .page-home-featured-games__why-choose-title {
    font-size: 1.4rem;
  }
}