.page-game-guides {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

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

.page-game-guides__dark-bg {
  background-color: #0a0a0a; /* Body background color */
  color: #ffffff;
}

.page-game-guides__light-bg {
  background-color: #1a1a1a; /* Slightly lighter background for contrast sections */
  color: #ffffff;
}

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

.page-game-guides__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin-bottom: 40px;
}

.page-game-guides__hero-title {
  font-size: 3.5em;
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-game-guides__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 40px;
}

.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; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
}

.page-game-guides__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-game-guides__btn-primary:hover {
  background-color: #1f8ac7;
  border-color: #1f8ac7;
}

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

.page-game-guides__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-game-guides__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0.15; /* Subtle background image */
}

.page-game-guides__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.page-game-guides__intro-section,
.page-game-guides__guides-section,
.page-game-guides__download-section,
.page-game-guides__tips-section,
.page-game-guides__faq-section,
.page-game-guides__cta-bottom-section {
  padding: 80px 0;
}

.page-game-guides__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 60px;
}

.page-game-guides__text-block {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
}

.page-game-guides__image-container {
  text-align: center;
  margin-top: 40px;
}

.page-game-guides__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: block; /* Ensure it behaves as a block element */
  margin: 0 auto;
}

.page-game-guides__grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-game-guides__card {
  background-color: #1a1a1a; /* Card background for dark theme */
  color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-guides__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-game-guides__card-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-game-guides__card-title a {
  color: #26A9E0;
  text-decoration: none;
}

.page-game-guides__card-title a:hover {
  text-decoration: underline;
}

.page-game-guides__card-description {
  font-size: 1em;
  color: #e0e0e0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-game-guides__card-link {
  display: inline-block;
  color: #EA7C07; /* Login orange for action links */
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.page-game-guides__card-link:hover {
  border-color: #EA7C07;
}

.page-game-guides__download-flex {
  display: flex;
  align-items: center;
  gap: 50px;
  text-align: left;
}

.page-game-guides__download-text {
  flex: 1;
}

.page-game-guides__download-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-game-guides__download-text .page-game-guides__section-title,
.page-game-guides__download-text .page-game-guides__text-block {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-game-guides__list {
  list-style: none;
  padding: 0;
  margin: 0 auto 40px;
  max-width: 900px;
}

.page-game-guides__list-item {
  background-color: #1a1a1a;
  border-left: 5px solid #26A9E0;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1.1em;
  color: #f0f0f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-game-guides__list-item strong {
  color: #26A9E0;
}

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

.page-game-guides__faq-item {
  background-color: #1a1a1a;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

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

.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); /* Or change to '-' */
}

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

.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__faq-answer p {
  color: #e0e0e0;
  font-size: 1em;
  margin: 0;
}

.page-game-guides__cta-bottom-section {
  text-align: center;
}

.page-game-guides__cta-bottom-section .page-game-guides__btn-primary {
  margin-top: 40px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-game-guides__hero-title {
    font-size: 2.8em;
  }
  .page-game-guides__hero-description {
    font-size: 1.1em;
  }
  .page-game-guides__section-title {
    font-size: 2em;
  }
}

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

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

  .page-game-guides__hero-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-game-guides__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .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;
  }

  .page-game-guides__intro-section,
  .page-game-guides__guides-section,
  .page-game-guides__download-section,
  .page-game-guides__tips-section,
  .page-game-guides__faq-section,
  .page-game-guides__cta-bottom-section {
    padding: 50px 0;
  }

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

  .page-game-guides__text-block {
    font-size: 1em;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  .page-game-guides__download-flex {
    flex-direction: column;
    gap: 30px;
    padding: 0 15px;
  }

  .page-game-guides__download-text .page-game-guides__section-title,
  .page-game-guides__download-text .page-game-guides__text-block {
    text-align: center;
  }

  .page-game-guides__download-image-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-game-guides__content-image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-game-guides__section,
  .page-game-guides__card,
  .page-game-guides__container,
  .page-game-guides__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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

  .page-game-guides__faq-question,
  .page-game-guides__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-game-guides__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Re-apply for video if needed */
  }
  
  /* Ensure no image filters */
  .page-game-guides img {
    filter: none !important;
  }
}

/* Global image size constraint for content area */
.page-game-guides__content-area img,
.page-game-guides__grid-layout img,
.page-game-guides__download-section img,
.page-game-guides__tips-section img,
.page-game-guides__faq-section img {
  min-width: 200px;
  min-height: 200px;
}

/* Color contrast fixes */
.page-game-guides__card {
  background-color: #1a1a1a; /* Darker background for card to ensure contrast with #ffffff text */
  color: #ffffff;
}

.page-game-guides__list-item {
  background-color: #1a1a1a;
  color: #f0f0f0;
}

.page-game-guides__faq-item {
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-game-guides__faq-answer p {
  color: #e0e0e0;
}

/* Ensure no image filter for color change */
.page-game-guides img {
  filter: none;
}