/* style/game-guides.css */
:root {
  --primary-color: #FFD700;
  --secondary-color: #000080;
  --text-light: #f0f0f0;
  --text-dark: #333333;
  --bg-dark-1: #0d0d0d; /* Assuming from shared.css */
  --bg-dark-2: #1a1a1a;
  --bg-light: #ffffff;
  --border-color: #e0e0e0;
  --accent-color: #ff6b35;
}

.page-game-guides {
  color: var(--text-light); /* Main page content text color for dark body background */
  background-color: var(--bg-dark-1);
}

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

/* Fixed header padding */
.page-game-guides__intro-section {
  padding-top: 180px; /* Desktop: Adjust for fixed header */
  padding-bottom: 60px;
  background-color: var(--bg-dark-2);
  text-align: center;
}

@media (max-width: 768px) {
  .page-game-guides__intro-section {
    padding-top: 140px; /* Mobile: Adjust for fixed header */
    padding-bottom: 40px;
  }
}

.page-game-guides__main-title {
  font-size: 42px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 25px;
  line-height: 1.2;
}

.page-game-guides__intro-text {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 40px;
  color: var(--text-light);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-guides__intro-text a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-game-guides__intro-text a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

.page-game-guides__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-game-guides__cta-button:hover {
  background: var(--accent-color);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-game-guides__genre-guides,
.page-game-guides__general-strategy,
.page-game-guides__responsible-gaming-section,
.page-game-guides__faq-section {
  padding: 60px 0;
  background-color: var(--bg-dark-1);
}

.page-game-guides__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
}

.page-game-guides__section-description {
  font-size: 18px;
  line-height: 1.6;
  text-align: center;
  color: var(--text-light);
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.page-game-guides__section-description a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-game-guides__section-description a:hover {
  text-decoration: underline;
}

.page-game-guides__guide-card,
.page-game-guides__strategy-card {
  display: flex;
  background: var(--bg-light);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-guides__guide-card:last-child,
.page-game-guides__strategy-card:last-child {
  margin-bottom: 0;
}

.page-game-guides__guide-card:hover,
.page-game-guides__strategy-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-game-guides__guide-image,
.page-game-guides__strategy-image {
  width: 40%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-game-guides__guide-content,
.page-game-guides__strategy-content {
  width: 60%;
  padding: 30px;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-game-guides__card-title {
  font-size: 28px;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-game-guides__guide-content p,
.page-game-guides__strategy-content p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.page-game-guides__guide-content p a,
.page-game-guides__strategy-content p a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-game-guides__guide-content p a:hover,
.page-game-guides__strategy-content p a:hover {
  text-decoration: underline;
  color: var(--primary-color);
}

.page-game-guides__read-more-button {
  display: inline-block;
  padding: 10px 25px;
  background: var(--secondary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 15px;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.page-game-guides__read-more-button:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.page-game-guides__responsible-gaming-section {
  text-align: center;
  padding-bottom: 80px;
}

.page-game-guides__responsible-image {
  max-width: 800px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 30px auto;
  display: block;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-game-guides__responsible-text {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-light);
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.page-game-guides__responsible-text a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-game-guides__responsible-text a:hover {
  text-decoration: underline;
  color: var(--accent-color);
}

/* FAQ styles */
.page-game-guides__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-game-guides__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.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, opacity 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: var(--bg-dark-2);
  border-radius: 0 0 5px 5px;
  color: var(--text-light);
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--bg-dark-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  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.1);
  border-color: var(--primary-color);
}

.page-game-guides__faq-question:active {
  background: rgba(255, 255, 255, 0.05);
}

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

.page-game-guides__faq-question h3 a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-game-guides__faq-question h3 a:hover {
  text-decoration: underline;
}

.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(--accent-color);
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-game-guides__faq-answer p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-light);
}

.page-game-guides__faq-answer p a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-game-guides__faq-answer p a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-game-guides__guide-card,
  .page-game-guides__strategy-card {
    flex-direction: column;
  }

  .page-game-guides__guide-image,
  .page-game-guides__strategy-image {
    width: 100%;
    height: 250px;
  }

  .page-game-guides__guide-content,
  .page-game-guides__strategy-content {
    width: 100%;
    padding: 25px;
  }

  .page-game-guides__main-title {
    font-size: 36px;
  }

  .page-game-guides__section-title {
    font-size: 30px;
  }

  .page-game-guides__card-title {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .page-game-guides__intro-section,
  .page-game-guides__genre-guides,
  .page-game-guides__general-strategy,
  .page-game-guides__responsible-gaming-section,
  .page-game-guides__faq-section {
    padding: 30px 0;
  }

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

  .page-game-guides__main-title {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .page-game-guides__intro-text,
  .page-game-guides__section-description,
  .page-game-guides__responsible-text {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-game-guides__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }

  .page-game-guides__section-title {
    font-size: 26px;
    margin-bottom: 15px;
  }

  .page-game-guides__guide-content,
  .page-game-guides__strategy-content {
    padding: 20px;
  }

  .page-game-guides__card-title {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .page-game-guides__guide-content p,
  .page-game-guides__strategy-content p {
    font-size: 15px;
    margin-bottom: 15px;
  }

  .page-game-guides__read-more-button {
    padding: 8px 20px;
    font-size: 14px;
  }

  .page-game-guides__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-game-guides__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-game-guides__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-game-guides__faq-answer {
    padding: 0 15px;
  }
  
  .page-game-guides__faq-item.active .page-game-guides__faq-answer {
    padding: 15px !important;
  }
}

@media (max-width: 480px) {
  .page-game-guides__main-title {
    font-size: 24px;
  }

  .page-game-guides__section-title {
    font-size: 22px;
  }

  .page-game-guides__cta-button {
    width: 100%;
    max-width: 280px;
  }

  .page-game-guides__guide-image,
  .page-game-guides__strategy-image {
    height: 200px;
  }
}