.page-game-guides {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --background-dark: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green: #0A4B2C;
  color: var(--text-main); /* Default text color for the page, assuming dark body background */
  background-color: var(--background-dark); /* Default background for sections if not specified */
}

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

.page-game-guides__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--background-dark);
  overflow: hidden;
}

.page-game-guides__hero-image-wrapper {
  width: 100%;
  height: auto;
  margin-bottom: 30px;
}

.page-game-guides__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
}

.page-game-guides__hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
}

.page-game-guides__main-title {
  font-size: clamp(2em, 4vw, 3em);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-game-guides__hero-description {
  font-size: 1.1em;
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-game-guides__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  color: var(--text-main);
  border: none;
  cursor: pointer;
}

.page-game-guides__btn-primary {
  background: var(--button-gradient);
  color: #ffffff; /* Explicitly white for contrast */
}

.page-game-guides__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

.page-game-guides__btn-secondary {
  background-color: var(--card-bg);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-game-guides__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-main);
}

.page-game-guides__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
  text-shadow: 0 0 8px rgba(87, 227, 141, 0.3);
}

.page-game-guides__introduction-section, 
.page-game-guides__tips-strategy-section, 
.page-game-guides__faq-section {
  padding: 80px 0;
  background-color: var(--background-dark);
}

.page-game-guides__game-types-section, 
.page-game-guides__code-usage-section, 
.page-game-guides__conclusion-section {
  padding: 80px 0;
  background-color: var(--card-bg);
}

.page-game-guides__text-block {
  font-size: 1.1em;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 30px;
  text-align: justify;
}

.page-game-guides__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin: 40px 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-game-guides__image-content {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin: 40px auto;
  max-width: 800px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-game-guides__guide-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-game-guides__card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-game-guides__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
}

.page-game-guides__card-title {
  font-size: 1.5em;
  color: var(--text-main);
  margin-bottom: 15px;
}

.page-game-guides__card-description {
  font-size: 1em;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-game-guides__card-button {
  margin-top: auto;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.95em;
  font-weight: 600;
}

.page-game-guides__strategy-list, .page-game-guides__usage-steps {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
}

.page-game-guides__strategy-list li, .page-game-guides__usage-steps li {
  background-color: var(--card-bg);
  border-left: 5px solid var(--primary-color);
  padding: 20px 25px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1.1em;
  line-height: 1.6;
  color: var(--text-main);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

.page-game-guides__strategy-list li:hover, .page-game-guides__usage-steps li:hover {
  transform: translateX(5px);
}

.page-game-guides__strategy-list strong, .page-game-guides__usage-steps strong {
  color: var(--gold-color);
}

/* FAQ Section */
.page-game-guides__faq-list {
  margin-top: 40px;
}

.page-game-guides__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  background-color: var(--deep-green);
  border-bottom: 1px solid var(--border-color);
  list-style: none; /* For details summary */
}

.page-game-guides__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome */
}

.page-game-guides__faq-question:hover {
  background-color: var(--primary-color);
}

.page-game-guides__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--gold-color);
  margin-left: 15px;
}

.page-game-guides__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-secondary);
  background-color: var(--card-bg);
}

.page-game-guides__faq-answer p {
  margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-game-guides__guide-cards {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-game-guides__container {
    padding: 0 15px; /* Adjust padding for smaller screens */
  }

  .page-game-guides__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-game-guides__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

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

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

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

  .page-game-guides__introduction-section, 
  .page-game-guides__game-types-section, 
  .page-game-guides__tips-strategy-section, 
  .page-game-guides__code-usage-section, 
  .page-game-guides__faq-section, 
  .page-game-guides__conclusion-section {
    padding: 50px 0;
  }

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

  .page-game-guides__guide-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-game-guides__card-image {
    height: 180px;
  }

  .page-game-guides__card-title {
    font-size: 1.3em;
  }

  .page-game-guides__strategy-list li, 
  .page-game-guides__usage-steps li {
    font-size: 1em;
    padding: 15px 20px;
  }

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

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

  /* Image responsive adaptations */
  .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__hero-section, 
  .page-game-guides__introduction-section, 
  .page-game-guides__game-types-section, 
  .page-game-guides__tips-strategy-section, 
  .page-game-guides__code-usage-section, 
  .page-game-guides__faq-section, 
  .page-game-guides__conclusion-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
  
  .page-game-guides__hero-image-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Ensure contrast for all text elements */
.page-game-guides p, 
.page-game-guides li, 
.page-game-guides a, 
.page-game-guides h1, 
.page-game-guides h2, 
.page-game-guides h3, 
.page-game-guides h4, 
.page-game-guides h5, 
.page-game-guides h6 {
  color: var(--text-main); /* Default to main text color */
}

/* Specific overrides for secondary text */
.page-game-guides__hero-description, 
.page-game-guides__text-block, 
.page-game-guides__card-description, 
.page-game-guides__faq-answer {
  color: var(--text-secondary);
}

/* Buttons and interactive elements */
.page-game-guides__cta-button, .page-game-guides__card-button {
  color: #ffffff; /* Ensure white text on gradient/brand colors */
}

.page-game-guides__btn-secondary {
  color: var(--primary-color);
}

.page-game-guides__btn-secondary:hover {
  color: var(--text-main);
}

.page-game-guides__faq-toggle {
  color: var(--gold-color);
}