/* style/resources-game-strategy-guide.css */
.page-resources-game-strategy-guide {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: var(--secondary-color, #FFFFFF);
}

.page-resources-game-strategy-guide__hero-section {
  position: relative;
  width: 100%;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background-color: #017439;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  min-height: 500px;
}

.page-resources-game-strategy-guide__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
  margin: 0 auto;
}

.page-resources-game-strategy-guide__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-resources-game-strategy-guide__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #FFFFFF;
}

.page-resources-game-strategy-guide__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-resources-game-strategy-guide__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 1;
}

.page-resources-game-strategy-guide__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #FFFFFF;
  color: #333333;
}

.page-resources-game-strategy-guide__container {
  max-width: 900px;
  margin: 0 auto;
}

.page-resources-game-strategy-guide__section-title {
  font-size: 2.5em;
  color: #017439;
  margin-bottom: 30px;
  text-align: center;
  font-weight: bold;
}

.page-resources-game-strategy-guide__sub-section-title {
  font-size: 1.8em;
  color: #017439;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-resources-game-strategy-guide__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.8;
}

.page-resources-game-strategy-guide__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  font-size: 1.1em;
}

.page-resources-game-strategy-guide__list-item {
  margin-bottom: 10px;
}

.page-resources-game-strategy-guide__image-content {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-resources-game-strategy-guide__btn-primary,
.page-resources-game-strategy-guide__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

/* Custom colors for Đăng Ký/Đăng Nhập buttons, ensuring contrast */
.page-resources-game-strategy-guide__btn-primary {
  background-color: #C30808; /* Đăng ký color */
  color: #FFFFFF; /* Adjusted for WCAG AA contrast on #C30808 */
  border-color: #C30808;
}

.page-resources-game-strategy-guide__btn-primary:hover {
  background-color: #a30606;
  border-color: #a30606;
}

.page-resources-game-strategy-guide__btn-secondary {
  background-color: #017439;
  color: #FFFFFF;
  border-color: #017439;
}

.page-resources-game-strategy-guide__btn-secondary:hover {
  background-color: #005f2e;
  border-color: #005f2e;
}

.page-resources-game-strategy-guide__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
  flex-wrap: wrap;
}

/* FAQ Styles */
.page-resources-game-strategy-guide__faq-list {
  margin-top: 40px;
}

.page-resources-game-strategy-guide__faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  background-color: #f9f9f9;
}

.page-resources-game-strategy-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  background-color: #FFFFFF;
  border-bottom: 1px solid #e0e0e0;
}

.page-resources-game-strategy-guide__faq-question:hover {
  background-color: #f0f0f0;
}

.page-resources-game-strategy-guide__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-resources-game-strategy-guide__faq-item.active .page-resources-game-strategy-guide__faq-toggle {
  transform: rotate(45deg);
}

.page-resources-game-strategy-guide__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 1.1em;
  color: #333333;
}

.page-resources-game-strategy-guide__faq-item.active .page-resources-game-strategy-guide__faq-answer {
  max-height: 1000px !important; /* Use !important for override */
  padding: 15px 25px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-game-strategy-guide__hero-title {
    font-size: 2.8em;
  }

  .page-resources-game-strategy-guide__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-resources-game-strategy-guide {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-resources-game-strategy-guide__hero-section {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-resources-game-strategy-guide__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-resources-game-strategy-guide__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-resources-game-strategy-guide__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources-game-strategy-guide__btn-primary,
  .page-resources-game-strategy-guide__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-resources-game-strategy-guide__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-resources-game-strategy-guide__content-area {
    padding: 30px 15px;
  }

  .page-resources-game-strategy-guide__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-resources-game-strategy-guide__sub-section-title {
    font-size: 1.4em;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-resources-game-strategy-guide__text-block,
  .page-resources-game-strategy-guide__list-item,
  .page-resources-game-strategy-guide__faq-answer p {
    font-size: 1em;
  }

  .page-resources-game-strategy-guide__image-content {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 30px auto;
  }

  .page-resources-game-strategy-guide__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

  .page-resources-game-strategy-guide__faq-answer {
    padding: 0 20px;
  }

  .page-resources-game-strategy-guide__faq-item.active .page-resources-game-strategy-guide__faq-answer {
    padding: 15px 20px;
  }

  /* Ensure all containers with images/videos/buttons are constrained */
  .page-resources-game-strategy-guide__section,
  .page-resources-game-strategy-guide__card,
  .page-resources-game-strategy-guide__container,
  .page-resources-game-strategy-guide__hero-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
}

@media (max-width: 480px) {
  .page-resources-game-strategy-guide__hero-title {
    font-size: 1.8em;
  }

  .page-resources-game-strategy-guide__section-title {
    font-size: 1.6em;
  }

  .page-resources-game-strategy-guide__sub-section-title {
    font-size: 1.2em;
  }
}