/* style/game-guides.css */

/* Base styles for the page */
.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 */
}

/* Sections */
.page-game-guides__section {
  padding: 60px 20px;
  text-align: center;
}

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

/* Color contrast classes */
.page-game-guides__dark-bg {
  background-color: #1a1a2e; /* Matches body background */
  color: #ffffff;
}

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

/* Hero Section */
.page-game-guides__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-game-guides__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit hero image height */
  overflow: hidden;
  position: relative;
  margin-bottom: 30px;
}

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

.page-game-guides__hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  padding: 0 15px;
  box-sizing: border-box;
  text-align: center;
  color: #ffffff;
}

.page-game-guides__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 20px;
  /* No fixed font-size for H1, relying on responsive design for scaling */
}

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

/* Section Titles */
.page-game-guides__section-title {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 30px;
  color: inherit; /* Inherits from section's color */
}

.page-game-guides__sub-title {
  font-size: 1.8em;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 20px;
  color: inherit; /* Inherits from section's color */
}

/* Paragraphs */
.page-game-guides__paragraph {
  font-size: 1.05em;
  margin-bottom: 15px;
  color: inherit;
  text-align: justify;
}

/* Lists */
.page-game-guides__list {
  list-style: disc inside;
  text-align: left;
  margin: 20px auto;
  max-width: 800px;
  color: inherit;
}

.page-game-guides__list-item {
  margin-bottom: 10px;
}

/* Images in content */
.page-game-guides__image-content {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Cards */
.page-game-guides__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-game-guides__card {
  background-color: #ffffff; /* White background for cards */
  color: #333333; /* Dark text for cards */
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  text-align: left;
}

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

.page-game-guides__card-text {
  font-size: 1em;
  color: #555555;
}

/* Call to Action Buttons */
.page-game-guides__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word;
}

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

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

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

.page-game-guides__btn-secondary:hover {
  background-color: #e0f2f7;
  color: #1f8ec4;
}

/* FAQ Section */
.page-game-guides__faq-section {
  background-color: #1a1a2e;
  color: #ffffff;
}

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

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

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.15em;
  color: #ffffff;
  background-color: #26A9E0; /* Brand color for question background */
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  list-style: none; /* For details/summary */
}

.page-game-guides__faq-question::-webkit-details-marker {
  display: none;
}

.page-game-guides__faq-question:hover {
  background-color: #1f8ec4;
}

.page-game-guides__faq-qtext {
  flex-grow: 1;
  color: #ffffff;
}

.page-game-guides__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #ffffff;
}

.page-game-guides__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #f0f0f0;
  background-color: rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-game-guides__faq-item[open] .page-game-guides__faq-question {
  border-bottom: none;
}

.page-game-guides__faq-item[open] .page-game-guides__faq-answer {
  border-top: none;
}

/* Bottom CTA Section */
.page-game-guides__cta-bottom {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

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

@media (max-width: 768px) {
  .page-game-guides__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }
  .page-game-guides__main-title {
    font-size: 2em; /* Smaller for mobile */
  }
  .page-game-guides__section-title {
    font-size: 1.8em;
  }
  .page-game-guides__sub-title {
    font-size: 1.4em;
  }
  .page-game-guides__hero-description,
  .page-game-guides__paragraph,
  .page-game-guides__list-item,
  .page-game-guides__card-text,
  .page-game-guides__faq-answer {
    font-size: 1em;
  }
  .page-game-guides__section {
    padding: 40px 15px;
  }
  .page-game-guides__card-grid {
    grid-template-columns: 1fr;
  }
  .page-game-guides__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to prevent overflow */
  }
  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary,
  .page-game-guides a[class*="button"],
  .page-game-guides a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-game-guides__cta-buttons,
  .page-game-guides__button-group,
  .page-game-guides__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
    flex-wrap: wrap !important;
  }
  /* Mobile image responsiveness */
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-game-guides__video-section { /* If video existed, apply this */
    padding-top: 10px !important;
  }
}

@media (max-width: 480px) {
  .page-game-guides__main-title {
    font-size: 1.8em;
  }
  .page-game-guides__section-title {
    font-size: 1.6em;
  }
  .page-game-guides__sub-title {
    font-size: 1.2em;
  }
  .page-game-guides__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-game-guides__faq-answer {
    padding: 15px 20px;
  }
}