/* style/game-guides.css */

/* Global styles for the page content, using Text Main for dark background */
.page-game-guides {
  background-color: var(--background-color, #140C0C); /* Ensure body background is dark */
  color: var(--text-main-color, #FFF1E8); /* Default text color for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-game-guides__section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border-color, #6A1E1E);
}

.page-game-guides__section:last-of-type {
  border-bottom: none;
}

.page-game-guides__section-title {
  font-size: clamp(28px, 4vw, 42px); /* Responsive font size for H2 */
  color: var(--gold-color, #F3C54D); /* Gold color for section titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

/* Hero Section */
.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 as body handles header offset */
  background: linear-gradient(180deg, var(--deep-red-color, #7E0D0D) 0%, var(--background-color, #140C0C) 100%);
  overflow: hidden;
}

.page-game-guides__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Ensure it takes full width for flex item */
}

.page-game-guides__hero-image {
  width: 100%;
  margin-bottom: 30px;
  order: 1; /* Image first */
}

.page-game-guides__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-game-guides__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  order: 2; /* Content second */
  padding: 0 15px;
}

.page-game-guides__hero-content h1 {
  font-size: clamp(32px, 5vw, 56px); /* Responsive font size for H1 */
  color: var(--gold-color, #F3C54D);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-game-guides__hero-content p {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-main-color, #FFF1E8);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-guides__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Custom button color */
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%; /* Ensure responsive button */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-guides__cta-button:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* List styles */
.page-game-guides__numbered-list,
.page-game-guides__bullet-list {
  list-style-position: inside;
  padding-left: 0;
  margin-bottom: 30px;
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-guides__numbered-list li,
.page-game-guides__bullet-list li {
  margin-bottom: 15px;
  font-size: 17px;
  color: var(--text-main-color, #FFF1E8);
  padding-left: 10px;
}

.page-game-guides__numbered-list li strong,
.page-game-guides__bullet-list li strong {
  color: var(--gold-color, #F3C54D);
}

.page-game-guides__numbered-list {
  list-style-type: decimal;
}

.page-game-guides__bullet-list {
  list-style-type: disc;
}

.page-game-guides__image-wrapper {
  margin: 40px auto;
  max-width: 900px;
  text-align: center;
}

.page-game-guides__image-wrapper img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-game-guides__card {
  background: var(--card-bg-color, #2A1212); /* Custom card background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--text-main-color, #FFF1E8); /* Ensure text is light on dark card BG */
}

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

.page-game-guides__card img {
  width: 100%;
  height: 200px; /* Fixed height for card images */
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border-color, #6A1E1E);
}

.page-game-guides__card-title {
  font-size: 22px;
  margin: 20px 20px 10px;
  color: var(--gold-color, #F3C54D);
  font-weight: bold;
}

.page-game-guides__card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-game-guides__card-title a:hover {
  color: var(--gold-color-hover, #FFD700); /* Slightly brighter gold on hover */
}

.page-game-guides__card-description {
  font-size: 15px;
  margin: 0 20px 15px;
  flex-grow: 1; /* Push link to bottom */
  color: var(--text-main-color, #FFF1E8);
}

.page-game-guides__card-link {
  display: inline-block;
  margin: 0 20px 20px;
  color: var(--primary-color, #C61F1F);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-game-guides__card-link:hover {
  color: var(--gold-color, #F3C54D);
}

/* FAQ Section */
.page-game-guides__faq {
  background-color: var(--background-color, #140C0C); /* Dark background for FAQ */
  padding: 60px 0;
}

details.page-game-guides__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border-color, #6A1E1E);
  overflow: hidden;
  background: var(--card-bg-color, #2A1212); /* Darker card background for FAQ items */
  color: var(--text-main-color, #FFF1E8);
}
details.page-game-guides__faq-item summary.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--gold-color, #F3C54D);
}
details.page-game-guides__faq-item summary.page-game-guides__faq-question::-webkit-details-marker {
  display: none;
}
details.page-game-guides__faq-item summary.page-game-guides__faq-question:hover {
  background: var(--deep-red-color, #7E0D0D); /* Hover effect for FAQ question */
}
.page-game-guides__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-game-guides__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--gold-color, #F3C54D);
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
}
details.page-game-guides__faq-item .page-game-guides__faq-answer {
  padding: 0 25px 25px;
  background: var(--background-color, #140C0C); /* Slightly lighter background for answer */
  border-radius: 0 0 10px 10px;
  color: var(--text-main-color, #FFF1E8);
}
.page-game-guides__faq-answer p {
  margin-top: 10px;
  margin-bottom: 0;
}

/* Related Articles / Blog Cards */
.page-game-guides__related-articles {
    background-color: var(--background-color, #140C0C);
}

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

.page-game-guides__blog-card {
  background: var(--card-bg-color, #2A1212);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--text-main-color, #FFF1E8);
}

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

.page-game-guides__blog-card img {
  width: 100%;
  height: 220px; /* Fixed height for blog card images */
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border-color, #6A1E1E);
}

.page-game-guides__blog-card-title {
  font-size: 20px;
  margin: 20px 20px 10px;
  color: var(--gold-color, #F3C54D);
  font-weight: bold;
}

.page-game-guides__blog-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-game-guides__blog-card-title a:hover {
  color: var(--gold-color-hover, #FFD700);
}

.page-game-guides__blog-card-meta {
  font-size: 14px;
  color: #aaa;
  margin: 0 20px 10px;
}

.page-game-guides__blog-card-excerpt {
  font-size: 15px;
  margin: 0 20px 20px;
  flex-grow: 1;
  color: var(--text-main-color, #FFF1E8);
}

.page-game-guides__blog-card-button {
  display: inline-block;
  margin: 0 20px 20px;
  padding: 10px 20px;
  background: var(--primary-color, #C61F1F);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 15px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-game-guides__blog-card-button:hover {
  background: var(--secondary-color, #E53030);
}

.page-game-guides__view-all {
    text-align: center;
    margin-top: 50px;
}

/* Links within content */
.page-game-guides p a,
.page-game-guides li a {
  color: var(--gold-color, #F3C54D);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-game-guides p a:hover,
.page-game-guides li a:hover {
  color: var(--gold-color-hover, #FFD700);
}


/* Responsive styles */
@media (max-width: 1024px) {
  .page-game-guides__hero-content h1 {
    font-size: clamp(28px, 4.5vw, 48px);
  }
  .page-game-guides__hero-content p {
    font-size: clamp(15px, 1.8vw, 18px);
  }
  .page-game-guides__section-title {
    font-size: clamp(26px, 3.5vw, 38px);
  }
  .page-game-guides__card-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-game-guides__blog-cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-game-guides {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-game-guides__container {
    padding: 20px 15px;
  }
  .page-game-guides__section {
    padding: 40px 0;
  }
  .page-game-guides__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-game-guides__hero-image img {
    border-radius: 4px;
  }
  .page-game-guides__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Images */
  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-game-guides__section,
  .page-game-guides__card,
  .page-game-guides__container,
  .page-game-guides__blog-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-game-guides__card img,
  .page-game-guides__blog-card img {
     /* Adjust card image height for mobile */
  }

  /* FAQ */
  details.page-game-guides__faq-item summary.page-game-guides__faq-question {
    padding: 15px;
  }
  .page-game-guides__faq-qtext {
    font-size: 16px;
  }
  .page-game-guides__faq-toggle {
    font-size: 24px;
    margin-left: 15px;
    width: 24px;
  }
  details.page-game-guides__faq-item .page-game-guides__faq-answer {
    padding: 0 15px 15px;
  }
}

/* Color Contrast Enforcement */
/* Based on body background #140C0C (dark) */
.page-game-guides {
  color: var(--text-main-color, #FFF1E8); /* Light text on dark body */
}

.page-game-guides__card,
.page-game-guides__blog-card,
details.page-game-guides__faq-item {
  background: var(--card-bg-color, #2A1212); /* Darker card background */
  color: var(--text-main-color, #FFF1E8); /* Light text on dark card */
}

details.page-game-guides__faq-item .page-game-guides__faq-answer {
  background: var(--background-color, #140C0C); /* Slightly lighter background for FAQ answer */
  color: var(--text-main-color, #FFF1E8);
}

.page-game-guides__section-title,
.page-game-guides__card-title a,
.page-game-guides__faq-qtext,
.page-game-guides__faq-toggle,
.page-game-guides__blog-card-title a,
.page-game-guides p a,
.page-game-guides__numbered-list li a,
.page-game-guides__bullet-list li a {
  color: var(--gold-color, #F3C54D); /* Gold for titles and important links */
}

.page-game-guides__cta-button,
.page-game-guides__blog-card-button {
  color: #ffffff; /* White text on dark/gradient buttons */
}

.page-game-guides__blog-card-meta {
  color: #aaa; /* Slightly subdued for meta info */
}

/* Ensure no filter properties are used on images */
.page-game-guides img {
  filter: none !important;
}