/* style/game-guides.css */
:root {
  --primary-color: #1A2B5B;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #121212;
  --card-bg-dark-mode: rgba(255, 255, 255, 0.1);
  --border-color: #e0e0e0;
}

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

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

.page-game-guides__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  min-height: 600px;
  overflow: hidden;
  color: var(--text-light);
  background-color: var(--primary-color);
}

.page-game-guides__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3;
}

.page-game-guides__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.page-game-guides__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-game-guides__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: var(--text-light);
}

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

.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;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-guides__btn-primary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--secondary-color);
}

.page-game-guides__btn-primary:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

.page-game-guides__btn-secondary {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.page-game-guides__btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-3px);
}

.page-game-guides__introduction-section,
.page-game-guides__game-type-section,
.page-game-guides__faq-section,
.page-game-guides__conclusion-section {
  padding: 60px 0;
}

.page-game-guides__section-title {
  font-size: 2.5em;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-game-guides__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

.page-game-guides__text-block {
  font-size: 1.1em;
  margin-bottom: 30px;
  text-align: justify;
  color: var(--text-light);
}

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

.page-game-guides__card,
.page-game-guides__article-card {
  background-color: var(--card-bg-dark-mode);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-game-guides__card:hover,
.page-game-guides__article-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-game-guides__card-image,
.page-game-guides__article-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-game-guides__card-title,
.page-game-guides__article-title {
  font-size: 1.5em;
  color: var(--secondary-color);
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-game-guides__article-title a {
  color: var(--secondary-color);
  text-decoration: none;
}

.page-game-guides__article-title a:hover {
  text-decoration: underline;
}

.page-game-guides__card-text,
.page-game-guides__article-excerpt {
  font-size: 1em;
  color: var(--text-light);
  margin-bottom: 20px;
  text-align: justify;
}

.page-game-guides__read-more {
  display: inline-block;
  margin-top: auto; /* Push to bottom */
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: 1px solid var(--secondary-color);
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-game-guides__read-more:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.page-game-guides__dark-section {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-game-guides__dark-section .page-game-guides__section-title {
  color: var(--secondary-color);
}

.page-game-guides__dark-section .page-game-guides__text-block {
  color: var(--text-light);
}

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

.page-game-guides__faq-item {
  background-color: var(--card-bg-dark-mode);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--secondary-color);
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

.page-game-guides__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-game-guides__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-game-guides__faq-item.active .page-game-guides__faq-toggle {
  transform: rotate(45deg);
}

.page-game-guides__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-game-guides__faq-item.active .page-game-guides__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px;
}

.page-game-guides__faq-answer p {
  margin: 0;
  color: var(--text-light);
  text-align: justify;
}

.page-game-guides__link {
  color: var(--secondary-color);
  text-decoration: underline;
  font-weight: bold;
}

.page-game-guides__link:hover {
  color: #e6c200;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-game-guides__hero-title {
    font-size: 3em;
  }
  .page-game-guides__hero-description {
    font-size: 1.1em;
  }
  .page-game-guides__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-game-guides__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    min-height: 500px;
  }
  .page-game-guides__hero-title {
    font-size: 2.5em;
  }
  .page-game-guides__hero-description {
    font-size: 1em;
  }
  .page-game-guides__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px; /* Constrain button group width for better stacking */
    margin-left: auto;
    margin-right: auto;
  }
  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }
  .page-game-guides__section-title {
    font-size: 1.8em;
  }
  .page-game-guides__text-block {
    font-size: 0.95em;
  }
  .page-game-guides__card-grid,
  .page-game-guides__article-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-game-guides__card,
  .page-game-guides__article-card {
    padding: 20px;
  }
  .page-game-guides__card-image,
  .page-game-guides__article-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-game-guides__introduction-section,
  .page-game-guides__game-type-section,
  .page-game-guides__faq-section,
  .page-game-guides__conclusion-section {
    padding: 40px 0;
  }
  .page-game-guides__container {
    padding: 0 15px;
  }
  .page-game-guides__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-game-guides__faq-answer {
    padding: 0 20px;
  }
  .page-game-guides__faq-item.active .page-game-guides__faq-answer {
    padding: 15px 20px;
  }
  .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 {
    padding-top: var(--header-offset, 120px) !important; /* With !important for mobile */
  }
}

@media (max-width: 480px) {
  .page-game-guides__hero-title {
    font-size: 2em;
  }
  .page-game-guides__hero-description {
    font-size: 0.9em;
  }
  .page-game-guides__section-title {
    font-size: 1.5em;
  }
  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    font-size: 1em;
  }
}