.page-index-featured-games {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background-color: #FFFFFF; /* Light background as per shared.css body background */
  color: #333333; /* Dark text for contrast on light background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-index-featured-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 600px;
  overflow: hidden;
  padding: 40px 20px;
  background-color: #000000; /* Dark background for hero text contrast */
}

.page-index-featured-games__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.page-index-featured-games__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability, but NOT changing color */
  display: block;
}

.page-index-featured-games__hero-content {
  position: relative;
  z-index: 2;
  color: #FFFFFF; /* Light text on dark hero background */
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.page-index-featured-games__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FCBC45; /* Accent color for title */
}

.page-index-featured-games__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  opacity: 0.9;
}

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

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

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

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

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

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

.page-index-featured-games__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #000000; /* Dark text on light background */
  font-weight: bold;
}

.page-index-featured-games__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: -20px auto 60px auto;
  color: #555555;
}

.page-index-featured-games__introduction-section,
.page-index-featured-games__categories-section,
.page-index-featured-games__spotlight-section,
.page-index-featured-games__bonuses-section,
.page-index-featured-games__responsible-gaming-section,
.page-index-featured-games__testimonials-section,
.page-index-featured-games__faq-section,
.page-index-featured-games__final-cta-section {
  padding: 80px 0;
}

.page-index-featured-games__text-content {
  font-size: 1.05em;
  margin-bottom: 20px;
  line-height: 1.7;
  text-align: justify;
}

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

.page-index-featured-games__category-card,
.page-index-featured-games__game-card,
.page-index-featured-games__testimonial-card {
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index-featured-games__category-card img,
.page-index-featured-games__game-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover; /* Ensures images fill their space without distortion */
  min-width: 200px; /* Enforce min width */
  min-height: 200px; /* Enforce min height */
}

.page-index-featured-games__card-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #000000;
  font-weight: bold;
}

.page-index-featured-games__card-description {
  font-size: 0.95em;
  color: #555555;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
  text-align: justify;
}

.page-index-featured-games__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
  background-color: #FCBC45;
  color: #000000;
  border-radius: 6px;
}

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

.page-index-featured-games__bonuses-content,
.page-index-featured-games__responsible-gaming-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
}

.page-index-featured-games__bonuses-content img,
.page-index-featured-games__responsible-gaming-content img {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce min width */
  min-height: 200px; /* Enforce min height */
}

.page-index-featured-games__bonuses-text,
.page-index-featured-games__responsible-gaming-text {
  flex: 1;
  max-width: 50%;
}

.page-index-featured-games__bonuses-text p,
.page-index-featured-games__responsible-gaming-text p {
  font-size: 1.05em;
  margin-bottom: 20px;
  line-height: 1.7;
  text-align: justify;
}

.page-index-featured-games__button--promo,
.page-index-featured-games__button--learn-more {
  background-color: #FCBC45;
  color: #000000;
  padding: 12px 25px;
  font-size: 1em;
  border-radius: 6px;
}

.page-index-featured-games__button--promo:hover,
.page-index-featured-games__button--learn-more:hover {
  background-color: #e0a53b;
  transform: translateY(-2px);
}

.page-index-featured-games__testimonial-card {
  background-color: #e8e8e8;
  text-align: left;
}

.page-index-featured-games__testimonial-quote {
  font-style: italic;
  margin-bottom: 15px;
  color: #444444;
  font-size: 1.05em;
  line-height: 1.7;
}

.page-index-featured-games__testimonial-author {
  font-weight: bold;
  color: #000000;
  font-size: 1em;
}

.page-index-featured-games__call-to-action {
  text-align: center;
  margin-top: 80px;
  padding: 40px;
  background-color: #000000; /* Dark background for CTA */
  color: #FFFFFF;
  border-radius: 12px;
}

.page-index-featured-games__call-to-action-title {
  font-size: 2em;
  margin-bottom: 25px;
  color: #FCBC45;
}

.page-index-featured-games__faq-item {
  background-color: #f0f0f0;
  border-radius: 8px;
  margin-bottom: 20px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-index-featured-games__faq-question {
  font-size: 1.3em;
  color: #000000;
  margin-bottom: 10px;
  cursor: pointer;
  font-weight: bold;
}

.page-index-featured-games__faq-answer {
  font-size: 1em;
  color: #555555;
  line-height: 1.6;
  /* For accordion style, could add display: none; max-height: 0; overflow: hidden; and toggle with JS */
}

.page-index-featured-games__final-cta-section {
  background-color: #000000; /* Dark background for final CTA */
  color: #FFFFFF;
  text-align: center;
  padding: 100px 0;
}

.page-index-featured-games__final-cta-content .page-index-featured-games__section-title {
  color: #FCBC45;
}

.page-index-featured-games__final-cta-content .page-index-featured-games__text-content {
  color: #f0f0f0;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.page-index-featured-games__button--large {
  padding: 18px 40px;
  font-size: 1.2em;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index-featured-games__hero-title {
    font-size: 3em;
  }
  .page-index-featured-games__hero-description {
    font-size: 1.2em;
  }
  .page-index-featured-games__section-title {
    font-size: 2em;
  }
  .page-index-featured-games__bonuses-content,
  .page-index-featured-games__responsible-gaming-content {
    flex-direction: column;
    gap: 30px;
  }
  .page-index-featured-games__bonuses-content img,
  .page-index-featured-games__responsible-gaming-content img,
  .page-index-featured-games__bonuses-text,
  .page-index-featured-games__responsible-gaming-text {
    max-width: 100%;
    flex: none;
  }
}

@media (max-width: 768px) {
  .page-index-featured-games__hero-section {
    min-height: 500px;
  }
  .page-index-featured-games__hero-title {
    font-size: 2.5em;
  }
  .page-index-featured-games__hero-description {
    font-size: 1em;
  }
  .page-index-featured-games__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-index-featured-games__button {
    width: 100%;
    max-width: 300px;
  }
  .page-index-featured-games__section-title {
    font-size: 1.8em;
  }
  .page-index-featured-games__category-card,
  .page-index-featured-games__game-card,
  .page-index-featured-games__testimonial-card {
    padding: 20px;
  }
  .page-index-featured-games__category-card img,
  .page-index-featured-games__game-card img,
  .page-index-featured-games__bonuses-content img,
  .page-index-featured-games__responsible-gaming-content img {
    max-width: 100%;
    height: auto; /* Ensure images scale down correctly */
    min-width: 200px;
    min-height: 200px;
  }
  .page-index-featured-games__final-cta-section {
    padding: 60px 0;
  }
  .page-index-featured-games__call-to-action-title {
    font-size: 1.8em;
  }
  .page-index-featured-games__faq-question {
    font-size: 1.1em;
  }
  /* Prevent horizontal overflow for the main content area */
  .page-index-featured-games {
    overflow-x: hidden;
  }
  /* Ensure all content images within the main content area are responsive and don't overflow */
  .page-index-featured-games img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-index-featured-games__hero-title {
    font-size: 2em;
  }
  .page-index-featured-games__hero-description {
    font-size: 0.9em;
  }
  .page-index-featured-games__section-title {
    font-size: 1.6em;
  }
  .page-index-featured-games__category-grid,
  .page-index-featured-games__spotlight-grid {
    grid-template-columns: 1fr;
  }
  .page-index-featured-games__testimonial-grid {
    grid-template-columns: 1fr;
  }
  .page-index-featured-games__button--large {
    padding: 15px 30px;
    font-size: 1.1em;
  }
}