/* style/game-guides.css */
.page-game-guides {
  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-game-guides__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-game-guides__hero-section {
  position: relative;
  width: 100%;
  padding: 100px 0 60px; /* Adjusted padding-top to accommodate header-offset */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px);
}

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

.page-game-guides__main-title {
  font-size: 3.2em;
  color: #FFFFFF;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-game-guides__intro-text {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  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;
  text-align: center;
}

.page-game-guides__btn-primary {
  background-color: #017439;
  color: #FFFFFF;
  border: 2px solid #017439;
}

.page-game-guides__btn-primary:hover {
  background-color: #005a2e;
  border-color: #005a2e;
}

.page-game-guides__btn-secondary {
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.page-game-guides__btn-secondary:hover {
  background-color: #FFFFFF;
  color: #017439;
}

.page-game-guides__btn-large {
  padding: 18px 40px;
  font-size: 1.3em;
}

.page-game-guides__content-section {
  padding: 60px 0;
}

.page-game-guides__light-bg {
  background-color: #FFFFFF;
  color: #333333; /* Dark text for light background */
}

.page-game-guides__dark-bg {
  background-color: #017439; /* Brand color */
  color: #FFFFFF; /* Light text for dark background */
}

.page-game-guides__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  text-align: center;
  color: inherit;
}

.page-game-guides__sub-title {
  font-size: 1.8em;
  margin-top: 40px;
  margin-bottom: 20px;
  color: inherit;
}

.page-game-guides__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
  color: inherit;
}

.page-game-guides__text-block p,
.page-game-guides__text-block li {
  margin-bottom: 15px;
  font-size: 1.05em;
  line-height: 1.7;
  color: inherit;
}

.page-game-guides__list {
  list-style-type: disc;
  margin-left: 20px;
  padding-left: 0;
}

.page-game-guides__list-numbered {
  list-style-type: decimal;
  margin-left: 20px;
  padding-left: 0;
}

.page-game-guides__list-item {
  margin-bottom: 10px;
}

.page-game-guides__content-image {
  display: block;
  margin: 30px auto;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-game-guides__video-section {
  padding: 60px 0;
  text-align: center;
  background-color: #017439;
  color: #FFFFFF;
  padding-top: var(--header-offset, 120px);
}

.page-game-guides__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  width: 100%; /* Ensure wrapper is 100% width */
  box-sizing: border-box;
}

.page-game-guides__video-wrapper .page-game-guides__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  cursor: pointer;
}

.page-game-guides__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  max-width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}

.page-game-guides__faq-section {
  padding: 60px 0;
  background-color: #FFFFFF;
  color: #333333;
}

.page-game-guides__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
}

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

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  cursor: pointer;
  background-color: #f0f0f0;
  color: #333333;
  transition: background-color 0.3s ease;
}

.page-game-guides__faq-question:hover {
  background-color: #e0e0e0;
}

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

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

.page-game-guides__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

.page-game-guides__faq-item.active .page-game-guides__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px;
}

.page-game-guides__conclusion-section {
  padding: 80px 0;
  text-align: center;
  background-color: #017439;
  color: #FFFFFF;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-game-guides__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding: 80px 20px 40px;
  }

  .page-game-guides__main-title {
    font-size: 2.2em;
  }

  .page-game-guides__intro-text {
    font-size: 1em;
  }

  .page-game-guides__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary,
  .page-game-guides a[class*="button"],
  .page-game-guides 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-game-guides__section-title {
    font-size: 2em;
  }

  .page-game-guides__sub-title {
    font-size: 1.5em;
  }

  .page-game-guides__content-section,
  .page-game-guides__video-section,
  .page-game-guides__faq-section,
  .page-game-guides__conclusion-section {
    padding: 40px 0;
  }

  .page-game-guides__container {
    padding: 0 15px;
  }

  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-game-guides__section,
  .page-game-guides__card,
  .page-game-guides__container,
  .page-game-guides__video-section,
  .page-game-guides__video-container,
  .page-game-guides__video-wrapper,
  .page-game-guides__cta-buttons,
  .page-game-guides__button-group,
  .page-game-guides__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-game-guides__video-wrapper {
    padding-bottom: 75%; /* Adjust for mobile if needed, e.g., 4:3 or keep 16:9 */
  }

  .page-game-guides__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-game-guides__faq-answer {
    padding: 0 20px;
  }

  .page-game-guides__faq-item.active .page-game-guides__faq-answer {
    padding: 10px 20px;
  }

  .page-game-guides__text-block p,
  .page-game-guides__text-block li {
    font-size: 1em;
  }
}