/* style/game-guides.css */
:root {
  --primary-color: #007BFF;
  --secondary-color: #FFC107;
  --dark-bg-color: #121212;
  --light-text-color: #ffffff;
  --dark-text-color: #333333;
  --card-bg-dark: rgba(255, 255, 255, 0.1);
  --border-color-dark: rgba(255, 255, 255, 0.15);
}

.page-game-guides {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--light-text-color); /* Body background is dark, so use light text */
  background-color: var(--dark-bg-color);
}

/* Ensure content is not hidden by fixed header */
.page-game-guides__hero-section {
  padding-top: 120px; /* Adjust based on shared header height */
}

.page-game-guides__hero-section,
.page-game-guides__introduction-section,
.page-game-guides__guides-content-section,
.page-game-guides__faq-section,
.page-game-guides__brand-section,
.page-game-guides__blog-section,
.page-game-guides__final-cta-section {
  padding: 60px 20px;
  text-align: center;
  background-color: var(--dark-bg-color);
}

.page-game-guides__hero-container,
.page-game-guides__introduction-container,
.page-game-guides__guides-content-container,
.page-game-guides__faq-container,
.page-game-guides__brand-container,
.page-game-guides__blog-container,
.page-game-guides__final-cta-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-game-guides__main-title {
  font-size: 3.2em;
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-game-guides__hero-description {
  font-size: 1.2em;
  color: var(--light-text-color);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-game-guides__subsection-title {
  font-size: 1.8em;
  color: var(--secondary-color);
  margin-top: 30px;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-game-guides__category-title {
  font-size: 2em;
  color: var(--primary-color);
  margin-top: 40px;
  margin-bottom: 25px;
  font-weight: bold;
}

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

.page-game-guides__cta-button {
  display: inline-block;
  padding: 15px 35px;
  background: var(--primary-color);
  color: var(--light-text-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.page-game-guides__cta-button:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 193, 7, 0.6);
  color: var(--dark-text-color);
}

.page-game-guides__cta-button--large {
    padding: 18px 45px;
    font-size: 1.3em;
    margin-top: 30px;
}

.page-game-guides p {
  font-size: 1.1em;
  margin-bottom: 1em;
  color: #f0f0f0;
}

.page-game-guides__list {
  list-style-type: none;
  padding: 0;
  margin: 20px auto;
  text-align: left;
  max-width: 800px;
}

.page-game-guides__list li {
  background: var(--card-bg-dark);
  margin-bottom: 10px;
  padding: 15px 20px;
  border-left: 5px solid var(--primary-color);
  border-radius: 5px;
  font-size: 1.05em;
  color: var(--light-text-color);
}

.page-game-guides__list li p {
    margin: 0;
    color: var(--light-text-color);
}

.page-game-guides__guide-category {
  background: var(--card-bg-dark);
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 40px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: left;
}

.page-game-guides__category-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 8px;
  margin: 20px auto;
  display: block;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-game-guides__faq-list {
  margin-top: 30px;
  text-align: left;
}

.page-game-guides__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background: var(--card-bg-dark);
}

.page-game-guides__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-game-guides__faq-item.active .page-game-guides__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 5px 5px;
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--card-bg-dark);
  border: 1px solid var(--border-color-dark);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-game-guides__faq-question:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary-color);
}

.page-game-guides__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--light-text-color);
  pointer-events: none;
}

.page-game-guides__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-game-guides__faq-item.active .page-game-guides__faq-toggle {
  color: var(--secondary-color);
  transform: rotate(45deg); /* Change to X or rotate for active state */
}

/* Brand Section */
.page-game-guides__brand-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
  text-align: left;
}

.page-game-guides__brand-item {
  background: var(--card-bg-dark);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color-dark);
}

.page-game-guides__brand-item h3 {
  color: var(--primary-color);
  font-size: 1.5em;
  margin-bottom: 15px;
}

.page-game-guides__brand-item p {
  color: #f0f0f0;
}

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

.page-game-guides__blog-item {
  background: var(--card-bg-dark);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
  border: 1px solid var(--border-color-dark);
}

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

.page-game-guides__blog-link {
  text-decoration: none;
  display: block;
  color: var(--light-text-color);
  padding-bottom: 20px;
}

.page-game-guides__blog-item-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color-dark);
  margin-bottom: 15px;
}

.page-game-guides__blog-item-title {
  font-size: 1.3em;
  color: var(--secondary-color);
  margin: 0 15px 10px;
  line-height: 1.3;
}

.page-game-guides__blog-item-excerpt {
  font-size: 0.95em;
  color: #cccccc;
  margin: 0 15px 15px;
}

.page-game-guides__blog-item-date {
  font-size: 0.85em;
  color: #999999;
  margin: 0 15px;
  display: block;
}

/* Final CTA Section */
.page-game-guides__final-cta-section {
    padding: 80px 20px;
    background: linear-gradient(45deg, #0056b3, #007bff);
    border-radius: 10px;
    margin: 40px auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-game-guides__final-cta-section .page-game-guides__section-title {
    color: var(--light-text-color);
    margin-bottom: 20px;
}

.page-game-guides__final-cta-section p {
    max-width: 900px;
    margin: 0 auto 40px;
    font-size: 1.2em;
    color: #e0e0e0;
}

/* Responsive Design */
@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__subsection-title {
    font-size: 1.6em;
  }
  .page-game-guides__category-title {
    font-size: 1.8em;
  }
}

@media (max-width: 768px) {
  .page-game-guides__hero-section {
    padding-top: 100px !important; /* Mobile adjust for fixed header */
  }

  .page-game-guides__hero-section,
  .page-game-guides__introduction-section,
  .page-game-guides__guides-content-section,
  .page-game-guides__faq-section,
  .page-game-guides__brand-section,
  .page-game-guides__blog-section,
  .page-game-guides__final-cta-section {
    padding: 40px 15px;
  }

  .page-game-guides__hero-container,
  .page-game-guides__introduction-container,
  .page-game-guides__guides-content-container,
  .page-game-guides__faq-container,
  .page-game-guides__brand-container,
  .page-game-guides__blog-container,
  .page-game-guides__final-cta-container {
    padding: 0;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-game-guides__main-title {
    font-size: 2em;
  }
  .page-game-guides__hero-description {
    font-size: 1em;
  }
  .page-game-guides__section-title {
    font-size: 1.8em;
  }
  .page-game-guides__subsection-title {
    font-size: 1.4em;
  }
  .page-game-guides__category-title {
    font-size: 1.6em;
  }

  .page-game-guides__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

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

  .page-game-guides__cta-button--large {
      font-size: 1.1em !important;
      padding: 15px 30px !important;
  }

  .page-game-guides p {
    font-size: 0.95em;
  }

  .page-game-guides__list li {
    padding: 12px 15px;
    font-size: 0.9em;
  }

  .page-game-guides__guide-category {
    padding: 20px;
  }

  .page-game-guides__category-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-game-guides__faq-question {
    padding: 15px;
  }
  .page-game-guides__faq-question h3 {
    font-size: 1em;
  }
  .page-game-guides__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  .page-game-guides__faq-item.active .page-game-guides__faq-answer {
    padding: 15px !important;
  }

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

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

  .page-game-guides__blog-item-image {
    height: 180px;
  }
  .page-game-guides__blog-item-title {
    font-size: 1.1em;
  }
  .page-game-guides__blog-item-excerpt {
    font-size: 0.85em;
  }

  .page-game-guides__final-cta-section {
      padding: 50px 15px;
  }
  .page-game-guides__final-cta-section p {
      font-size: 1em;
  }
}

@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__cta-button {
    font-size: 0.9em !important;
    padding: 10px 20px !important;
  }
  .page-game-guides__cta-button--large {
      font-size: 1em !important;
      padding: 12px 25px !important;
  }
  .page-game-guides__list li {
    font-size: 0.85em;
  }
  .page-game-guides__faq-question h3 {
    font-size: 0.9em;
  }
  .page-game-guides__blog-item-title {
    font-size: 1em;
  }
}