:root {
  --main-color: #11A84E;
  --accent-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --background: #08160F;
  --card-bg: #11271B;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border: #2E7A4E;
  --glow: #57E38D;
  --gold: #F2C14E;
  --divider: #1E3A2A;
  --deep-green: #0A4B2C;
  --border-rgb: 46, 122, 78; /* RGB for --border to use with rgba() */
}

/* style/game-guides.css */

/* General Styles for the Game Guides Page */
.page-game-guides {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color for dark background */
  background-color: var(--background); /* Body background from shared.css */
}

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

.page-game-guides__section {
  padding: 60px 0;
  text-align: center;
}

.page-game-guides__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: var(--text-main);
  font-weight: bold;
}

.page-game-guides__section-title--white {
  color: var(--text-main); /* Ensure it's white/light for dark backgrounds */
}

.page-game-guides__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

/* Hero Section */
.page-game-guides__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom for content */
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-game-guides__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Limit height to maintain aspect ratio */
  overflow: hidden;
  border-radius: 8px;
}

.page-game-guides__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px;
}

.page-game-guides__hero-content {
  width: 100%;
  max-width: 800px;
  margin-top: 40px;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  background: var(--card-bg); /* Use dark card background */
  color: var(--text-main);
  box-sizing: border-box;
}

.page-game-guides__main-title {
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-main);
  max-width: 600px; /* To prevent extremely long lines */
  margin-left: auto;
  margin-right: auto;
}

.page-game-guides__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--text-secondary);
}

/* Buttons */
.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: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  max-width: 100%; /* Ensure responsiveness */
}

.page-game-guides__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main); /* Text Main for buttons */
  border: none;
  margin: 10px;
}

.page-game-guides__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-game-guides__btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 2px solid var(--border); /* Border color */
  margin: 10px;
}

.page-game-guides__btn-secondary:hover {
  background: rgba(var(--border-rgb), 0.2); /* Light background on hover */
  transform: translateY(-2px);
}

/* Background Colors */
.page-game-guides__dark-bg {
  background-color: var(--background);
  color: var(--text-main);
}

.page-game-guides__light-bg {
  background-color: var(--deep-green); /* A slightly lighter dark green, still ensuring contrast */
  color: var(--text-main);
}

.page-game-guides__dark-bg-card {
  background-color: var(--card-bg);
  color: var(--text-main);
}

/* Importance Section */
.page-game-guides__importance .page-game-guides__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-game-guides__card {
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: left;
  background-color: var(--card-bg);
  color: var(--text-main);
  border: 1px solid var(--border);
}

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

.page-game-guides__card-text {
  font-size: 1em;
  color: var(--text-secondary);
}

/* Game Types Section */
.page-game-guides__game-types .page-game-guides__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 40px auto;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px;
}

.page-game-guides__type-item {
  text-align: left;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--divider);
}

.page-game-guides__type-item:last-child {
  border-bottom: none;
}

.page-game-guides__type-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: var(--text-main);
  font-weight: bold;
}

/* Strategy Tips Section */
.page-game-guides__strategy-tips .page-game-guides__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 40px auto;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px;
}

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

/* Access Guide Section */
.page-game-guides__access-guide .page-game-guides__ordered-list {
  list-style-type: decimal;
  text-align: left;
  margin: 30px auto;
  max-width: 800px;
  padding-left: 40px;
  color: var(--text-secondary);
}

.page-game-guides__access-guide .page-game-guides__ordered-list li {
  margin-bottom: 15px;
  font-size: 1.1em;
  color: var(--text-secondary);
}

.page-game-guides__access-guide .page-game-guides__ordered-list strong {
  color: var(--text-main);
}

/* FAQ Section */
.page-game-guides__faq-section {
  padding-bottom: 80px;
}

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

.page-game-guides__faq-item {
  background-color: var(--card-bg); /* Dark background for FAQ items */
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main);
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: var(--card-bg);
  color: var(--text-main);
  position: relative;
  list-style: none; /* For details/summary */
}

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

.page-game-guides__faq-qtext {
  flex-grow: 1;
  margin-right: 15px;
}

.page-game-guides__faq-toggle {
  font-size: 1.5em;
  color: var(--glow); /* Gold color for toggle */
  transition: transform 0.3s ease;
}

.page-game-guides__faq-item[open] .page-game-guides__faq-toggle {
  transform: rotate(45deg); /* Rotate '+' to 'x' or similar */
}

.page-game-guides__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1.1em;
  color: var(--text-secondary);
  line-height: 1.7;
}

.page-game-guides__faq-answer p {
  margin: 0;
  color: var(--text-secondary); /* Ensure paragraph text is secondary color */
}

/* CTA Section */
.page-game-guides__cta-section {
  background-color: var(--deep-green); /* Deep Green for CTA background */
  padding: 80px 0;
  color: var(--text-main);
}

.page-game-guides__cta-container {
  max-width: 900px;
}

.page-game-guides__cta-section .page-game-guides__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 40px auto;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px;
}

.page-game-guides__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  justify-content: center;
  margin-top: 40px;
  gap: 20px; /* Space between buttons */
}


/* Responsive Styles */
@media (max-width: 1024px) {
  .page-game-guides__section-title {
    font-size: 2em;
  }
  .page-game-guides__hero-content {
    padding: 30px;
  }
  .page-game-guides__main-title {
    font-size: 2.2em; /* Keep relative size for H1 */
  }
}

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

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

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

  .page-game-guides__main-title {
    font-size: clamp(1.8em, 5vw, 2.5em); /* Clamp for H1 font size */
    max-width: 90%;
    padding: 0 15px;
  }

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

  .page-game-guides__hero-section {
    padding-top: 10px !important; /* body handles header offset, this is just for content */
    padding-bottom: 40px;
  }

  .page-game-guides__hero-content {
    margin-top: 20px;
    padding: 25px 15px;
    border-radius: 8px;
    max-width: calc(100% - 30px); /* Account for padding on container */
  }

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

  .page-game-guides__card {
    padding: 25px;
  }

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

  .page-game-guides__ordered-list {
    padding-left: 20px;
    margin: 20px auto;
  }

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

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

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

  .page-game-guides__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px; /* Add padding to button container */
  }

  .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;
    margin: 0; /* Remove horizontal margin for full width */
  }

  /* Mobile image and video responsiveness */
  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-game-guides__hero-image-wrapper,
  .page-game-guides__game-types .page-game-guides__image-full-width,
  .page-game-guides__strategy-tips .page-game-guides__image-full-width,
  .page-game-guides__access-guide .page-game-guides__image-full-width,
  .page-game-guides__cta-section .page-game-guides__image-full-width {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-game-guides__section,
  .page-game-guides__card,
  .page-game-guides__container,
  .page-game-guides__type-item,
  .page-game-guides__faq-list,
  .page-game-guides__cta-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-game-guides__video-section {
    padding-top: 10px !important;
  }
  .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;
  }
}