/* style/resources-how-to-choose-games.css */
.page-resources-how-to-choose-games {
  font-family: 'Arial', sans-serif;
  color: #333333;
  line-height: 1.6;
  background-color: var(--background-color, #FFFFFF);
}

.page-resources-how-to-choose-games__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjusted for larger desktop view */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-resources-how-to-choose-games__hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.page-resources-how-to-choose-games__video-link {
  display: block;
  width: 100%;
  height: 100%;
}

.page-resources-how-to-choose-games__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken video for text readability */
  cursor: pointer;
}

.page-resources-how-to-choose-games__hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: #FFFFFF;
  max-width: 800px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
  border-radius: 8px;
}

.page-resources-how-to-choose-games__title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources-how-to-choose-games__description {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.page-resources-how-to-choose-games__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources-how-to-choose-games__btn-primary {
  background-color: #017439;
  color: #FFFFFF;
  border: 2px solid #017439;
}

.page-resources-how-to-choose-games__btn-primary:hover {
  background-color: #005f2e;
  transform: translateY(-2px);
}

.page-resources-how-to-choose-games__content-section {
  padding: 60px 0;
}

.page-resources-how-to-choose-games__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-resources-how-to-choose-games__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #017439;
  font-weight: bold;
}

.page-resources-how-to-choose-games__dark-bg .page-resources-how-to-choose-games__section-title,
.page-resources-how-to-choose-games__dark-bg .page-resources-how-to-choose-games__text-block,
.page-resources-how-to-choose-games__dark-bg .page-resources-how-to-choose-games__sub-title,
.page-resources-how-to-choose-games__dark-bg .page-resources-how-to-choose-games__list-item,
.page-resources-how-to-choose-games__dark-bg .page-resources-how-to-choose-games__card-title a {
  color: #FFFFFF;
}

.page-resources-how-to-choose-games__dark-bg {
  background-color: #017439;
  color: #FFFFFF;
}

.page-resources-how-to-choose-games__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
  color: #333333;
}

.page-resources-how-to-choose-games__sub-title {
  font-size: 1.8em;
  color: #017439;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-resources-how-to-choose-games__list {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #333333;
}

.page-resources-how-to-choose-games__list-item {
  margin-bottom: 10px;
  font-size: 1.05em;
}

.page-resources-how-to-choose-games__image-wrapper {
  text-align: center;
  margin: 30px 0;
}

.page-resources-how-to-choose-games__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-resources-how-to-choose-games__card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

.page-resources-how-to-choose-games__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-resources-how-to-choose-games__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-resources-how-to-choose-games__card-title {
  font-size: 1.5em;
  margin: 20px 15px 10px;
  color: #017439;
}

.page-resources-how-to-choose-games__card-title a {
  color: #017439;
  text-decoration: none;
}

.page-resources-how-to-choose-games__card-title a:hover {
  text-decoration: underline;
}

.page-resources-how-to-choose-games__card-text {
  font-size: 0.95em;
  padding: 0 15px 20px;
  color: #555555;
}

.page-resources-how-to-choose-games__faq-section {
  padding: 60px 0;
  background-color: #f8f8f8;
}

.page-resources-how-to-choose-games__faq-item {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-resources-how-to-choose-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15em;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  background-color: #f0f0f0;
  transition: background-color 0.3s ease;
}

.page-resources-how-to-choose-games__faq-question:hover {
  background-color: #e5e5e5;
}

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

.page-resources-how-to-choose-games__faq-item.active .page-resources-how-to-choose-games__faq-toggle {
  transform: rotate(45deg);
}

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

.page-resources-how-to-choose-games__faq-item.active .page-resources-how-to-choose-games__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show all content */
  padding: 20px;
  padding-top: 0;
}

.page-resources-how-to-choose-games__conclusion-section {
  padding: 80px 0;
  text-align: center;
  background-color: #017439;
  color: #FFFFFF;
}

.page-resources-how-to-choose-games__conclusion-section .page-resources-how-to-choose-games__section-title {
  color: #FFFFFF;
}

.page-resources-how-to-choose-games__conclusion-section .page-resources-how-to-choose-games__text-block {
  color: #FFFFFF;
  max-width: 900px;
  margin: 0 auto 30px;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-resources-how-to-choose-games__title {
    font-size: 2.8em;
  }
  .page-resources-how-to-choose-games__section-title {
    font-size: 2em;
  }
  .page-resources-how-to-choose-games__sub-title {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  .page-resources-how-to-choose-games__hero-section {
    height: 450px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-resources-how-to-choose-games__title {
    font-size: 2em;
  }
  .page-resources-how-to-choose-games__description {
    font-size: 1em;
  }
  .page-resources-how-to-choose-games__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-resources-how-to-choose-games__content-section,
  .page-resources-how-to-choose-games__faq-section,
  .page-resources-how-to-choose-games__conclusion-section {
    padding: 40px 0;
  }
  .page-resources-how-to-choose-games__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-resources-how-to-choose-games__section-title {
    font-size: 1.8em;
  }
  .page-resources-how-to-choose-games__sub-title {
    font-size: 1.4em;
  }
  .page-resources-how-to-choose-games__text-block,
  .page-resources-how-to-choose-games__list-item,
  .page-resources-how-to-choose-games__card-text,
  .page-resources-how-to-choose-games__faq-answer {
    font-size: 0.95em;
  }
  .page-resources-how-to-choose-games__card-grid {
    grid-template-columns: 1fr;
  }
  .page-resources-how-to-choose-games__card-image {
    height: 200px;
  }
  .page-resources-how-to-choose-games__image {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources-how-to-choose-games__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources-how-to-choose-games__hero-video-wrapper,
  .page-resources-how-to-choose-games__video-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-resources-how-to-choose-games__faq-question {
    font-size: 1em;
    padding: 15px;
  }
  .page-resources-how-to-choose-games__faq-answer {
    padding: 15px;
    padding-top: 0;
  }
}

@media (max-width: 480px) {
  .page-resources-how-to-choose-games__title {
    font-size: 1.8em;
  }
  .page-resources-how-to-choose-games__section-title {
    font-size: 1.6em;
  }
  .page-resources-how-to-choose-games__hero-section {
    height: 350px;
  }
}