/* style/index-popular-games-recommendation.css */
.page-index-popular-games-recommendation {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

.page-index-popular-games-recommendation__dark-bg {
  background-color: #017439; /* Brand primary color for dark sections */
  color: #ffffff;
}

.page-index-popular-games-recommendation__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-index-popular-games-recommendation__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
  position: relative;
  overflow: hidden;
}

.page-index-popular-games-recommendation__hero-content {
  z-index: 1;
  max-width: 900px;
}

.page-index-popular-games-recommendation__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFFF00; /* Custom color for title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index-popular-games-recommendation__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-index-popular-games-recommendation__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-index-popular-games-recommendation__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for better text contrast */
}

.page-index-popular-games-recommendation__section {
  padding: 60px 20px;
  text-align: left;
}

.page-index-popular-games-recommendation__content-area {
  max-width: 1200px;
  margin: 0 auto;
  color: #ffffff; /* Default text color for content sections */
}

.page-index-popular-games-recommendation__section-title {
  font-size: 2.5em;
  color: #FFFF00; /* Custom color for section titles */
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-index-popular-games-recommendation__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-index-popular-games-recommendation__image-full-width {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 30px 0;
  object-fit: cover;
}

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

.page-index-popular-games-recommendation__card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
}

.page-index-popular-games-recommendation__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-index-popular-games-recommendation__card-title {
  font-size: 1.5em;
  color: #FFFF00; /* Custom color for card titles */
  margin-bottom: 15px;
}

.page-index-popular-games-recommendation__card-text {
  font-size: 1em;
  color: #f0f0f0;
}

.page-index-popular-games-recommendation__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index-popular-games-recommendation__game-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-align: center;
  transition: transform 0.3s ease;
  color: #ffffff;
}

.page-index-popular-games-recommendation__game-card:hover {
  transform: translateY(-8px);
}

.page-index-popular-games-recommendation__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
}

.page-index-popular-games-recommendation__game-title {
  font-size: 1.4em;
  margin-bottom: 10px;
}

.page-index-popular-games-recommendation__game-title a {
  color: #FFFF00; /* Custom color for game titles */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index-popular-games-recommendation__game-title a:hover {
  color: #ffffff;
}

.page-index-popular-games-recommendation__game-description {
  font-size: 0.95em;
  color: #cccccc;
  margin-bottom: 20px;
}

.page-index-popular-games-recommendation__btn-link {
  display: inline-block;
  background-color: #017439;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-index-popular-games-recommendation__btn-link:hover {
  background-color: #005a2d;
}

.page-index-popular-games-recommendation__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-index-popular-games-recommendation__cta-buttons--center {
  justify-content: center;
}

.page-index-popular-games-recommendation__btn-primary,
.page-index-popular-games-recommendation__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index-popular-games-recommendation__btn-primary {
  background-color: #C30808; /* Custom color for Register/Login */
  color: #FFFF00; /* Custom font color for Register/Login */
  border: 2px solid #C30808;
}

.page-index-popular-games-recommendation__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
  transform: translateY(-2px);
}

.page-index-popular-games-recommendation__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Custom font color for Register/Login */
  border: 2px solid #FFFF00;
}

.page-index-popular-games-recommendation__btn-secondary:hover {
  background-color: #FFFF00;
  color: #C30808;
  transform: translateY(-2px);
}

.page-index-popular-games-recommendation__steps {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-index-popular-games-recommendation__step-item {
  background: rgba(255, 255, 255, 0.05);
  border-left: 5px solid #017439;
  margin-bottom: 20px;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-index-popular-games-recommendation__step-title {
  font-size: 1.3em;
  color: #FFFF00; /* Custom color for step titles */
  margin-bottom: 10px;
}

.page-index-popular-games-recommendation__step-description {
  font-size: 1em;
  color: #cccccc;
}

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

.page-index-popular-games-recommendation__promo-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-align: center;
  transition: transform 0.3s ease;
  color: #ffffff;
}

.page-index-popular-games-recommendation__promo-card:hover {
  transform: translateY(-8px);
}

.page-index-popular-games-recommendation__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
}

.page-index-popular-games-recommendation__promo-title {
  font-size: 1.4em;
  color: #FFFF00; /* Custom color for promo titles */
  margin-bottom: 10px;
}

.page-index-popular-games-recommendation__promo-description {
  font-size: 0.95em;
  color: #cccccc;
}

.page-index-popular-games-recommendation__faq-list {
  margin-top: 40px;
}

.page-index-popular-games-recommendation__faq-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-index-popular-games-recommendation__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  background-color: #017439;
  color: #ffffff;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-index-popular-games-recommendation__faq-question:hover {
  background-color: #005a2d;
}

.page-index-popular-games-recommendation__faq-title {
  margin: 0;
  color: #FFFF00; /* Custom color for FAQ titles */
}

.page-index-popular-games-recommendation__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-index-popular-games-recommendation__faq-item.active .page-index-popular-games-recommendation__faq-toggle {
  transform: rotate(45deg);
}

.page-index-popular-games-recommendation__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  background-color: rgba(255, 255, 255, 0.03);
  color: #cccccc;
}

.page-index-popular-games-recommendation__faq-item.active .page-index-popular-games-recommendation__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show all content */
  padding: 15px 20px;
}

.page-index-popular-games-recommendation__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
}

.page-index-popular-games-recommendation__text-center {
  text-align: center;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-index-popular-games-recommendation__hero-title {
    font-size: 2.8em;
  }
  .page-index-popular-games-recommendation__hero-description {
    font-size: 1.2em;
  }
  .page-index-popular-games-recommendation__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-index-popular-games-recommendation__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
  }
  .page-index-popular-games-recommendation__hero-title {
    font-size: 2.2em;
  }
  .page-index-popular-games-recommendation__hero-description {
    font-size: 1em;
  }
  .page-index-popular-games-recommendation__section {
    padding: 40px 15px;
  }
  .page-index-popular-games-recommendation__section-title {
    font-size: 1.8em;
  }
  .page-index-popular-games-recommendation__paragraph {
    font-size: 0.95em;
  }
  .page-index-popular-games-recommendation__grid,
  .page-index-popular-games-recommendation__game-grid,
  .page-index-popular-games-recommendation__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-index-popular-games-recommendation__card,
  .page-index-popular-games-recommendation__game-card,
  .page-index-popular-games-recommendation__promo-card {
    padding: 20px;
  }
  .page-index-popular-games-recommendation__card-title,
  .page-index-popular-games-recommendation__game-title,
  .page-index-popular-games-recommendation__promo-title {
    font-size: 1.3em;
  }
  .page-index-popular-games-recommendation__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-index-popular-games-recommendation__btn-primary,
  .page-index-popular-games-recommendation__btn-secondary,
  .page-index-popular-games-recommendation a[class*="button"],
  .page-index-popular-games-recommendation a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index-popular-games-recommendation img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-index-popular-games-recommendation__section,
  .page-index-popular-games-recommendation__card,
  .page-index-popular-games-recommendation__container,
  .page-index-popular-games-recommendation__hero-section,
  .page-index-popular-games-recommendation__content-area,
  .page-index-popular-games-recommendation__game-card,
  .page-index-popular-games-recommendation__promo-card,
  .page-index-popular-games-recommendation__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }
  .page-index-popular-games-recommendation__hero-image {
    filter: brightness(0.6) !important; /* Slightly less dark for mobile */
  }
}