/* style/resources-how-to-choose-best-games.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-resources-how-to-choose-best-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css (#000000) */
}

/* Hero Section */
.page-resources-how-to-choose-best-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 600px;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background-color: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
  overflow: hidden;
}

.page-resources-how-to-choose-best-games__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.page-resources-how-to-choose-best-games__hero-content {
  max-width: 900px;
  z-index: 1;
}

.page-resources-how-to-choose-best-games__hero-title {
  font-size: 3.5em;
  color: #ffffff;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources-how-to-choose-best-games__hero-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 40px;
}

/* Call to Action Buttons */
.page-resources-how-to-choose-best-games__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-resources-how-to-choose-best-games__btn-primary,
.page-resources-how-to-choose-best-games__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  text-align: center;
}

.page-resources-how-to-choose-best-games__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-resources-how-to-choose-best-games__btn-primary:hover {
  background-color: #1e87b6;
  border-color: #1e87b6;
}

.page-resources-how-to-choose-best-games__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-resources-how-to-choose-best-games__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

/* Content Area */
.page-resources-how-to-choose-best-games__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #0d0d0d; /* Slightly lighter dark background for content area */
  color: #ffffff; /* Light text for dark background */
  box-sizing: border-box;
}

.page-resources-how-to-choose-best-games__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  border-bottom: 3px solid #26A9E0;
  padding-bottom: 15px;
  display: inline-block;
  width: auto;
  max-width: 100%;
  box-sizing: border-box;
}

.page-resources-how-to-choose-best-games__sub-title {
  font-size: 2em;
  color: #ffffff;
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-resources-how-to-choose-best-games__content-area p {
  margin-bottom: 20px;
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-resources-how-to-choose-best-games__image-full {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-resources-how-to-choose-best-games__image-inline {
  width: 100%; /* Default to full width for better readability */
  max-width: 600px; /* Limit max width for larger screens */
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-resources-how-to-choose-best-games__list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-resources-how-to-choose-best-games__list-item {
  background-color: rgba(38, 169, 224, 0.1);
  border-left: 5px solid #26A9E0;
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 5px;
  color: #ffffff;
}

.page-resources-how-to-choose-best-games__list-item strong {
  color: #26A9E0;
}

/* Card Grid */
.page-resources-how-to-choose-best-games__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-resources-how-to-choose-best-games__card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  color: #ffffff; /* Light text for card content */
}

.page-resources-how-to-choose-best-games__card-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
  text-align: left;
}

.page-resources-how-to-choose-best-games__card p {
  font-size: 1em;
  color: #e0e0e0;
  text-align: left;
}

.page-resources-how-to-choose-best-games__btn-inline {
    margin-top: 20px;
    margin-bottom: 20px;
    display: inline-block;
    width: auto;
    padding: 10px 20px;
    font-size: 1em;
}

/* FAQ Section */
.page-resources-how-to-choose-best-games__faq-section {
  background-color: #000000; /* Darker background for FAQ section */
  padding: 60px 20px;
  color: #ffffff;
  box-sizing: border-box;
}

.page-resources-how-to-choose-best-games__faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-resources-how-to-choose-best-games__faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 10px;
}

.page-resources-how-to-choose-best-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  transition: color 0.3s ease;
}

.page-resources-how-to-choose-best-games__faq-question:hover {
  color: #26A9E0;
}

.page-resources-how-to-choose-best-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-resources-how-to-choose-best-games__faq-item.active .page-resources-how-to-choose-best-games__faq-toggle {
  transform: rotate(45deg); /* Plus sign becomes an 'x' or 'minus' */
}

.page-resources-how-to-choose-best-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #e0e0e0;
}

.page-resources-how-to-choose-best-games__faq-item.active .page-resources-how-to-choose-best-games__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to reveal content */
  padding: 15px;
}

.page-resources-how-to-choose-best-games__faq-answer p {
  margin-bottom: 15px;
  font-size: 1em;
  color: #e0e0e0;
}

/* CTA Banner */
.page-resources-how-to-choose-best-games__cta-banner {
  background-color: #26A9E0; /* Brand color background */
  color: #ffffff;
  text-align: center;
  padding: 60px 20px;
  box-sizing: border-box;
}

.page-resources-how-to-choose-best-games__cta-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-resources-how-to-choose-best-games__cta-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* Utility classes for background colors and text contrast */
.page-resources-how-to-choose-best-games__dark-bg {
  background-color: #000000;
  color: #ffffff;
}

.page-resources-how-to-choose-best-games__light-bg {
  background-color: #0d0d0d; /* Slightly lighter dark for content areas */
  color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-resources-how-to-choose-best-games__hero-title {
    font-size: 3em;
  }
  .page-resources-how-to-choose-best-games__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-resources-how-to-choose-best-games__hero-section {
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

  .page-resources-how-to-choose-best-games__hero-title {
    font-size: 2em;
  }

  .page-resources-how-to-choose-best-games__hero-description {
    font-size: 1em;
  }

  .page-resources-how-to-choose-best-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources-how-to-choose-best-games__btn-primary,
  .page-resources-how-to-choose-best-games__btn-secondary,
  .page-resources-how-to-choose-best-games__btn-inline {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-resources-how-to-choose-best-games__content-area,
  .page-resources-how-to-choose-best-games__faq-section,
  .page-resources-how-to-choose-best-games__cta-banner {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-resources-how-to-choose-best-games__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-resources-how-to-choose-best-games__sub-title {
    font-size: 1.5em;
  }

  .page-resources-how-to-choose-best-games p,
  .page-resources-how-to-choose-best-games__list-item,
  .page-resources-how-to-choose-best-games__card p {
    font-size: 0.95em;
  }

  .page-resources-how-to-choose-best-games__image-full,
  .page-resources-how-to-choose-best-games__image-inline {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Ensure min size */
    min-height: 200px !important; /* Ensure min size */
  }

  .page-resources-how-to-choose-best-games__card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-resources-how-to-choose-best-games__faq-question {
    font-size: 1.1em;
  }

  .page-resources-how-to-choose-best-games__cta-title {
    font-size: 1.8em;
  }

  .page-resources-how-to-choose-best-games__cta-text {
    font-size: 1em;
  }
}

/* Ensure content area images are not smaller than 200px */
.page-resources-how-to-choose-best-games__content-area img {
  min-width: 200px;
  min-height: 200px;
}

/* Contrast safety for specific elements if needed */
.page-resources-how-to-choose-best-games__card {
  /* Inherits light text from parent, background is dark translucent */
}