.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__hero-section {
  position: relative;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #017439; /* Brand color for hero */
  color: #ffffff;
  overflow: hidden;
  gap: 30px;
}

.page-game-guides__hero-content {
  max-width: 900px;
  z-index: 1;
}

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

.page-game-guides__intro-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-game-guides__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2; /* Subtle background */
}

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

.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, transform 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
  text-align: center;
}

.page-game-guides__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-game-guides__btn-primary:hover {
  background-color: #a00606;
  transform: translateY(-3px);
}

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

.page-game-guides__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.page-game-guides__section {
  padding: 60px 20px;
  margin-bottom: 0;
  color: #ffffff; /* Default text color for sections */
}

.page-game-guides__content-area {
  max-width: 1200px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly visible light background for content */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-game-guides__dark-section {
  background-color: #017439; /* Brand green background */
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-game-guides__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.page-game-guides__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.8;
  color: #e0e0e0;
}

.page-game-guides__paragraph strong {
  color: #FFFF00; /* Highlight important keywords */
}

.page-game-guides__grid-container {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-game-guides__grid-container--reverse {
  flex-direction: row-reverse;
}

.page-game-guides__text-block {
  flex: 1;
}

.page-game-guides__image-block {
  flex: 1;
  min-width: 200px; /* Minimum image size */
}

.page-game-guides__image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

/* FAQ Section */
.page-game-guides__faq-section {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-game-guides__faq-item {
  background-color: rgba(0, 0, 0, 0.3); /* Darker background for FAQ items */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.page-game-guides__faq-item.active {
  background-color: rgba(1, 116, 57, 0.7); /* Active item uses brand green */
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  transition: color 0.3s ease;
}

.page-game-guides__faq-question:hover {
  color: #FFFF00; /* Hover effect for question */
}

.page-game-guides__faq-question h3 {
  margin: 0;
  color: inherit; /* Inherit color from parent */
}

.page-game-guides__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  transition: transform 0.3s ease;
}

.page-game-guides__faq-item.active .page-game-guides__faq-toggle {
  transform: rotate(45deg); /* Plus sign rotates to X or minus */
}

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

.page-game-guides__faq-item.active .page-game-guides__faq-answer {
  max-height: 1000px !important; /* Ensure content fits */
  padding: 20px;
}

.page-game-guides__faq-answer p {
  margin-bottom: 0;
  font-size: 1em;
}

.page-game-guides__cta-section {
  text-align: center;
  background-color: #017439; /* Brand green for final CTA */
}

.page-game-guides__cta-section .page-game-guides__section-title {
  font-size: 2.8em;
  margin-bottom: 25px;
}

.page-game-guides__cta-section .page-game-guides__paragraph {
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

  .page-game-guides__section-title {
    font-size: 2em;
  }

  .page-game-guides__grid-container {
    flex-direction: column;
    text-align: center;
  }

  .page-game-guides__grid-container--reverse {
    flex-direction: column;
  }

  .page-game-guides__text-block,
  .page-game-guides__image-block {
    flex: none;
    width: 100%;
  }

  .page-game-guides__image {
    max-width: 80%;
    margin: 0 auto;
  }
}

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

  .page-game-guides__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
  }

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

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

  .page-game-guides__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  .page-game-guides__section {
    padding: 40px 15px;
  }

  .page-game-guides__content-area,
  .page-game-guides__dark-section,
  .page-game-guides__faq-section,
  .page-game-guides__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-game-guides__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-game-guides__paragraph {
    font-size: 0.95em;
  }

  .page-game-guides__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-game-guides__image-block {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

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

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

  /* Video specific mobile adaptations (if any video is added) */
  .page-game-guides video,
  .page-game-guides__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-game-guides__video-section,
  .page-game-guides__video-container,
  .page-game-guides__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

}

/* Color Contrast Fixes (as per instructions) */
.page-game-guides__dark-bg {
  color: #ffffff;
  background: #017439; /* Example usage, ensure contrast */
}

.page-game-guides__light-bg {
  color: #333333;
  background: #ffffff;
}

.page-game-guides__medium-bg {
  color: #000000;
  background: #FFFFFF;
}

.page-game-guides p,
.page-game-guides li {
  color: #e0e0e0; /* Slightly off-white for better readability on dark background */
}

.page-game-guides__faq-question h3 {
  color: inherit;
}

.page-game-guides a {
  color: #FFFF00; /* Yellow for links on dark background */
  text-decoration: underline;
}

.page-game-guides a:hover {
  color: #fff;
}