.page-resources-abc8-game-guide {
  --primary-color: #0A192F;
  --secondary-color: #FFD700;
  --text-color-light: #F0F2F5;
  --text-color-dark: #333333;
  --background-light: #FFFFFF;
  --background-dark: #1E2A3B;
  --border-color: #e0e0e0;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark);
}

.page-resources-abc8-game-guide-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-resources-abc8-game-guide-section {
  padding: 60px 0;
  text-align: center;
}

.page-resources-abc8-game-guide-section:nth-of-type(even) {
  background-color: var(--background-light);
}

.page-resources-abc8-game-guide-section:nth-of-type(odd) {
  background-color: #f9f9f9;
}

.page-resources-abc8-game-guide-section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-resources-abc8-game-guide-section-subtitle {
  font-size: 1.2em;
  color: #666;
  margin-bottom: 40px;
}

/* Hero Section */
.page-resources-abc8-game-guide-hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, #3a4a5e 100%);
  padding: 100px 20px;
  color: var(--text-color-light);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.page-resources-abc8-game-guide-hero-content {
  max-width: 800px;
}

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

.page-resources-abc8-game-guide-hero-description {
  font-size: 1.4em;
  margin-bottom: 40px;
  line-height: 1.5;
}

.page-resources-abc8-game-guide-cta-button {
  display: inline-block;
  padding: 18px 45px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-resources-abc8-game-guide-cta-button:hover {
  background: #f0c500;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* General Content Wrapper */
.page-resources-abc8-game-guide-content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-resources-abc8-game-guide-content-wrapper .page-resources-abc8-game-guide-text-content {
  flex: 1;
}

.page-resources-abc8-game-guide-content-wrapper .page-resources-abc8-game-guide-image-container {
  flex: 1;
  min-width: 300px; /* Ensure image container has a minimum width */
}

.page-resources-abc8-game-guide-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-resources-abc8-game-guide-text-content p {
  margin-bottom: 15px;
  font-size: 1.1em;
  color: var(--text-color-dark);
}

.page-resources-abc8-game-guide-inline-button {
  display: inline-block;
  padding: 12px 25px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  margin-top: 20px;
  transition: background-color 0.3s ease;
}

.page-resources-abc8-game-guide-inline-button:hover {
  background: #f0c500;
}

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

.page-resources-abc8-game-guide-step-item {
  background-color: var(--background-light);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: left;
  transition: transform 0.3s ease;
}

.page-resources-abc8-game-guide-step-item:hover {
  transform: translateY(-5px);
}

.page-resources-abc8-game-guide-step-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-resources-abc8-game-guide-small-button {
  display: inline-block;
  padding: 10px 20px;
  background: var(--primary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.9em;
  margin-top: 15px;
  transition: background-color 0.3s ease;
}

.page-resources-abc8-game-guide-small-button:hover {
  background: #1a3a5e;
}

/* Game Types Section */
.page-resources-abc8-game-guide-game-category {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
  text-align: left;
}

.page-resources-abc8-game-guide-game-category.page-resources-abc8-game-guide-reverse {
  flex-direction: row-reverse;
}

.page-resources-abc8-game-guide-game-category .page-resources-abc8-game-guide-image-container {
  flex: 1;
  min-width: 300px;
}

.page-resources-abc8-game-guide-game-category .page-resources-abc8-game-guide-text-content {
  flex: 2;
}

.page-resources-abc8-game-guide-game-title {
  font-size: 2em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-resources-abc8-game-guide-game-category ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-resources-abc8-game-guide-game-category ul li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%23FFD700"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>') no-repeat left center;
  background-size: 18px;
  padding-left: 30px;
  margin-bottom: 10px;
  color: var(--text-color-dark);
  font-size: 1.05em;
}

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

.page-resources-abc8-game-guide-rule-card {
  background-color: var(--background-light);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 5px solid var(--secondary-color);
}

.page-resources-abc8-game-guide-rule-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-resources-abc8-game-guide-card-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

/* Tips Section */
.page-resources-abc8-game-guide-tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources-abc8-game-guide-tip-card {
  background-color: var(--background-light);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources-abc8-game-guide-tip-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* FAQ Section */
.page-resources-abc8-game-guide-faq-list {
  margin-top: 40px;
  text-align: left;
}

.faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--background-light);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background: #f5f5f5;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.25em;
  color: var(--primary-color);
}

.faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: #fcfcfc;
  color: var(--text-color-dark);
}

.faq-answer p {
  margin: 0;
  padding-bottom: 20px;
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Adjust as needed */
  padding: 20px 25px;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: var(--primary-color);
}

/* Conclusion Section */
.page-resources-abc8-game-guide-conclusion {
  background-color: var(--background-dark);
  color: var(--text-color-light);
  padding: 80px 20px;
}

.page-resources-abc8-game-guide-conclusion .page-resources-abc8-game-guide-section-title {
  color: var(--secondary-color);
}

.page-resources-abc8-game-guide-conclusion p {
  font-size: 1.15em;
  margin-bottom: 25px;
  color: var(--text-color-light);
}

.page-resources-abc8-game-guide-conclusion .page-resources-abc8-game-guide-cta-button {
  background: var(--secondary-color);
  color: var(--primary-color);
}

.page-resources-abc8-game-guide-conclusion .page-resources-abc8-game-guide-cta-button:hover {
  background: #f0c500;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-resources-abc8-game-guide-hero-title {
    font-size: 2.8em;
  }
  .page-resources-abc8-game-guide-hero-description {
    font-size: 1.2em;
  }
  .page-resources-abc8-game-guide-content-wrapper,
  .page-resources-abc8-game-guide-game-category {
    flex-direction: column;
    text-align: center;
  }
  .page-resources-abc8-game-guide-game-category.page-resources-abc8-game-guide-reverse {
    flex-direction: column;
  }
  .page-resources-abc8-game-guide-game-category .page-resources-abc8-game-guide-text-content {
    order: 2;
  }
  .page-resources-abc8-game-guide-game-category .page-resources-abc8-game-guide-image-container {
    order: 1;
    margin-bottom: 30px;
  }
  .page-resources-abc8-game-guide-game-category ul {
    text-align: left;
  }
  .page-resources-abc8-game-guide-section-title {
    font-size: 2em;
  }
  .page-resources-abc8-game-guide-section {
    padding: 40px 0;
  }
}

@media (max-width: 768px) {
  .page-resources-abc8-game-guide-hero {
    padding: 60px 15px;
  }
  .page-resources-abc8-game-guide-hero-title {
    font-size: 2.2em;
  }
  .page-resources-abc8-game-guide-hero-description {
    font-size: 1em;
  }
  .page-resources-abc8-game-guide-cta-button {
    padding: 15px 30px;
    font-size: 1em;
  }
  .page-resources-abc8-game-guide-section-title {
    font-size: 1.8em;
  }
  .page-resources-abc8-game-guide-section-subtitle {
    font-size: 1em;
  }
  .page-resources-abc8-game-guide-step-item,
  .page-resources-abc8-game-guide-rule-card,
  .page-resources-abc8-game-guide-tip-card {
    padding: 20px;
  }
  .page-resources-abc8-game-guide-step-title,
  .page-resources-abc8-game-guide-card-title,
  .page-resources-abc8-game-guide-game-title {
    font-size: 1.5em;
  }
  .faq-question h3 {
    font-size: 1.1em;
  }
  .faq-question {
    padding: 15px 20px;
  }
  .faq-answer {
    padding: 0 20px;
  }
  .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-resources-abc8-game-guide-hero-title {
    font-size: 1.8em;
  }
  .page-resources-abc8-game-guide-hero-description {
    font-size: 0.9em;
  }
  .page-resources-abc8-game-guide-cta-button {
    padding: 12px 25px;
  }
  .page-resources-abc8-game-guide-section-title {
    font-size: 1.5em;
  }
  .page-resources-abc8-game-guide-game-category ul li {
    font-size: 0.9em;
  }
}