/* 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 */
}

.page-game-guides__dark-bg {
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
}

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

.page-game-guides__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  text-align: center;
  overflow: hidden;
}

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

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

.page-game-guides__hero-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;
}

.page-game-guides__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for better text contrast */
}

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

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

.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;
  border-color: #a00606;
}

.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__content-section {
  padding: 60px 20px;
}

.page-game-guides__container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

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

.page-game-guides__dark-bg .page-game-guides__section-title {
  color: #ffffff;
}

.page-game-guides__light-bg .page-game-guides__section-title {
  color: #017439;
}

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

.page-game-guides__dark-bg .page-game-guides__sub-title {
  color: #f0f0f0;
}

.page-game-guides__light-bg .page-game-guides__sub-title {
  color: #333333;
}

.page-game-guides__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
}

.page-game-guides__dark-bg .page-game-guides__paragraph {
  color: #f0f0f0;
}

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

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

.page-game-guides__ordered-list {
  list-style: decimal inside;
  margin-bottom: 20px;
  padding-left: 20px;
}

.page-game-guides__list-item {
  font-size: 1.1em;
  margin-bottom: 10px;
}

.page-game-guides__dark-bg .page-game-guides__list-item {
  color: #f0f0f0;
}

.page-game-guides__light-bg .page-game-guides__list-item {
  color: #333333;
}

.page-game-guides__paragraph a,
.page-game-guides__list-item a {
  color: #C30808; /* A contrasting color for links */
  text-decoration: underline;
}

.page-game-guides__paragraph a:hover,
.page-game-guides__list-item a:hover {
  color: #017439;
}

.page-game-guides__highlight {
  font-weight: bold;
  color: #FFFF00; /* Highlight color */
}

.page-game-guides__image-block {
  text-align: center;
  margin: 40px 0;
}

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

.page-game-guides__faq-list {
  margin-top: 30px;
}

.page-game-guides__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-game-guides__light-bg .page-game-guides__faq-item {
  background-color: #f5f5f5;
  color: #333333;
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.2em;
  background-color: rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-game-guides__light-bg .page-game-guides__faq-question {
  background-color: #e0e0e0;
  border-bottom: 1px solid #cccccc;
}

.page-game-guides__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-game-guides__light-bg .page-game-guides__faq-question:hover {
  background-color: #d0d0d0;
}

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

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

.page-game-guides__faq-answer {
  padding: 15px 25px;
  font-size: 1em;
  line-height: 1.6;
}

.page-game-guides__faq-answer p {
  margin-bottom: 0; /* Remove default paragraph margin within answer */
}

.page-game-guides__faq-item details > summary {
  list-style: none;
}

.page-game-guides__faq-item details > summary::-webkit-details-marker {
  display: none;
}

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

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

  .page-game-guides__hero-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;
  }

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

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

  .page-game-guides__paragraph,
  .page-game-guides__list-item {
    font-size: 1em;
  }

  .page-game-guides__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

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

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

  /* Ensure content sections respect padding and prevent overflow */
  .page-game-guides__content-section {
    padding: 40px 0;
  }
}