/* style/resources-game-guide.css */

/* Variables for colors */
:root {
  --primary-bg-color: #0A1931;
  --secondary-accent-color: #E0B973;
  --text-light: #ffffff;
  --text-dark: #333333;
  --card-bg-light: #ffffff;
  --card-bg-dark: rgba(255, 255, 255, 0.1);
}

.page-resources-game-guide {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for the page content, assuming dark body background */
  background-color: var(--primary-bg-color);
}

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

.page-resources-game-guide__section-title {
  font-size: 2.5em;
  color: var(--secondary-accent-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

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

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

/* Hero Section */
.page-resources-game-guide__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 60px; /* Adjusted padding to account for header offset, then add specific top padding */
  background-color: var(--primary-bg-color);
  color: var(--text-light);
  min-height: 600px;
  text-align: center;
  overflow: hidden;
  padding-top: calc(var(--header-offset, 120px) + 60px); /* Ensure space below fixed header */
}

.page-resources-game-guide__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-resources-game-guide__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-resources-game-guide__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.page-resources-game-guide__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: var(--secondary-accent-color);
  line-height: 1.2;
}

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

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

/* Buttons */
.page-resources-game-guide__btn-primary,
.page-resources-game-guide__btn-secondary,
.page-resources-game-guide__btn-text {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

.page-resources-game-guide__btn-primary {
  background-color: var(--secondary-accent-color);
  color: var(--primary-bg-color);
  border: 2px solid var(--secondary-accent-color);
}

.page-resources-game-guide__btn-primary:hover {
  background-color: #c9a464;
  border-color: #c9a464;
}

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

.page-resources-game-guide__btn-secondary:hover {
  background-color: var(--secondary-accent-color);
  color: var(--primary-bg-color);
}

.page-resources-game-guide__btn-text {
  background-color: transparent;
  color: var(--secondary-accent-color);
  border: none;
  padding: 0;
  font-size: 1em;
  text-decoration: underline;
}

.page-resources-game-guide__btn-text:hover {
  color: #c9a464;
}

/* Introduction Section */
.page-resources-game-guide__introduction-section {
  padding: 80px 0;
  background-color: var(--primary-bg-color);
}

.page-resources-game-guide__introduction-section .page-resources-game-guide__text-block {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Game Types Section */
.page-resources-game-guide__game-types-section {
  padding: 80px 0;
  background-color: #1a2a47; /* Slightly lighter dark background for contrast */
  color: var(--text-light);
}

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

.page-resources-game-guide__game-card {
  background-color: var(--card-bg-dark);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-resources-game-guide__game-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-resources-game-guide__game-card-title {
  font-size: 1.8em;
  color: var(--secondary-accent-color);
  margin-bottom: 10px;
}

.page-resources-game-guide__game-card-title a {
  color: inherit;
  text-decoration: none;
}

.page-resources-game-guide__game-card-title a:hover {
  text-decoration: underline;
}

.page-resources-game-guide__game-card-description {
  font-size: 1em;
  color: var(--text-light);
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Guide Section */
.page-resources-game-guide__guide-section {
  padding: 80px 0;
  background-color: var(--primary-bg-color);
}

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

.page-resources-game-guide__guide-step {
  background-color: var(--card-bg-dark);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-resources-game-guide__step-title {
  font-size: 1.8em;
  color: var(--secondary-accent-color);
  margin-bottom: 15px;
}

.page-resources-game-guide__step-description {
  font-size: 1em;
  color: var(--text-light);
  margin-bottom: 25px;
  flex-grow: 1;
}

/* Strategy Section */
.page-resources-game-guide__strategy-section {
  padding: 80px 0;
  background-color: #1a2a47;
  color: var(--text-light);
}

.page-resources-game-guide__strategy-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-resources-game-guide__strategy-image {
  flex: 1;
  max-width: 50%;
  border-radius: 12px;
  object-fit: cover;
}

.page-resources-game-guide__strategy-text {
  flex: 1;
  max-width: 50%;
}

.page-resources-game-guide__strategy-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-resources-game-guide__strategy-list li {
  font-size: 1.1em;
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
  color: var(--text-light);
}

.page-resources-game-guide__strategy-list li::before {
  content: '✔';
  color: var(--secondary-accent-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Promotions Section */
.page-resources-game-guide__promotions-section {
  padding: 80px 0;
  background-color: var(--primary-bg-color);
}

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

.page-resources-game-guide__promotion-card {
  background-color: var(--card-bg-dark);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 20px;
}

.page-resources-game-guide__promotion-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-resources-game-guide__promotion-card-title {
  font-size: 1.8em;
  color: var(--secondary-accent-color);
  margin-bottom: 10px;
  padding: 0 20px;
}

.page-resources-game-guide__promotion-card-description {
  font-size: 1em;
  color: var(--text-light);
  padding: 0 20px;
}

.page-resources-game-guide__cta-buttons--center {
  text-align: center;
  margin-top: 40px;
}

/* FAQ Section */
.page-resources-game-guide__faq-section {
  padding: 80px 0;
  background-color: #1a2a47;
  color: var(--text-light);
}

.page-resources-game-guide__faq-list {
  max-width: 800px;
  margin: 40px auto 0 auto;
}

.page-resources-game-guide__faq-item {
  background-color: var(--card-bg-dark);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-resources-game-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--secondary-accent-color);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-resources-game-guide__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

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

.page-resources-game-guide__faq-item.active .page-resources-game-guide__faq-toggle {
  transform: rotate(45deg); /* Plus to X */
}

.page-resources-game-guide__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: var(--text-light);
}

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

.page-resources-game-guide__faq-answer p {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--text-light);
}

.page-resources-game-guide__faq-answer a {
  color: var(--secondary-accent-color);
  text-decoration: underline;
}

.page-resources-game-guide__faq-answer a:hover {
  color: #c9a464;
}

/* CTA Section */
.page-resources-game-guide__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--primary-bg-color);
}

.page-resources-game-guide__cta-section .page-resources-game-guide__section-title {
  color: var(--secondary-accent-color);
}

.page-resources-game-guide__cta-section .page-resources-game-guide__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

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

/* Image and Video responsive styles */
.page-resources-game-guide img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: none; /* Ensure no filter is applied */
}

.page-resources-game-guide video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  filter: none; /* Ensure no filter is applied */
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-resources-game-guide {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-resources-game-guide__container,
  .page-resources-game-guide__hero-content,
  .page-resources-game-guide__game-card,
  .page-resources-game-guide__guide-step,
  .page-resources-game-guide__promotion-card,
  .page-resources-game-guide__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-resources-game-guide__hero-section {
    padding: calc(var(--header-offset, 120px) + 30px) 15px 30px !important;
    min-height: auto;
  }

  .page-resources-game-guide__hero-title {
    font-size: 2.2em;
  }

  .page-resources-game-guide__hero-description {
    font-size: 1.1em;
  }

  .page-resources-game-guide__hero-buttons,
  .page-resources-game-guide__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources-game-guide__btn-primary,
  .page-resources-game-guide__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }

  .page-resources-game-guide__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-resources-game-guide__game-grid,
  .page-resources-game-guide__guide-steps,
  .page-resources-game-guide__promotion-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-resources-game-guide__strategy-content {
    flex-direction: column;
  }

  .page-resources-game-guide__strategy-image,
  .page-resources-game-guide__strategy-text {
    max-width: 100%;
    width: 100%;
  }

  .page-resources-game-guide__game-card-image,
  .page-resources-game-guide__promotion-card-image {
    height: 180px;
  }

  .page-resources-game-guide__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }

  .page-resources-game-guide__faq-answer {
    padding: 0 15px;
  }

  .page-resources-game-guide__faq-item.active .page-resources-game-guide__faq-answer {
    padding: 10px 15px;
  }

  .page-resources-game-guide__cta-section .page-resources-game-guide__text-block {
    margin-bottom: 30px;
  }
}