:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #1A1A2E; /* Midnight Blue */
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #0a0a0a;
  --bg-light: #f8f8f8;
  --border-color: #e0e0e0;
}

/* Base styles for the page content */
.page-game-guides {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--bg-dark); /* Inherited from body */
  padding-top: 120px; /* Adjust for fixed header on desktop */
}

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

/* Sections */
.page-game-guides__hero-section,
.page-game-guides__intro-section,
.page-game-guides__game-types-section,
.page-game-guides__strategy-section,
.page-game-guides__register-section,
.page-game-guides__faq-section,
.page-game-guides__blog-section,
.page-game-guides__final-cta-section {
  padding: 80px 0;
  text-align: center;
}

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

.page-game-guides__light-bg {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

/* Titles */
.page-game-guides__main-title {
  font-size: 3.5em;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-game-guides__subtitle {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
}

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

.page-game-guides__light-bg .page-game-guides__section-title {
  color: var(--secondary-color);
}

.page-game-guides__section-description {
  font-size: 1.1em;
  margin-bottom: 50px;
  color: rgba(255, 255, 255, 0.8);
}

.page-game-guides__light-bg .page-game-guides__section-description {
  color: var(--text-dark);
}

.page-game-guides__sub-title {
  font-size: 1.8em;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--primary-color);
  text-align: left;
}

.page-game-guides__light-bg .page-game-guides__sub-title {
  color: var(--secondary-color);
}

/* Call to Action Buttons */
.page-game-guides__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

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

.page-game-guides__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-game-guides__btn-primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-game-guides__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-game-guides__btn-large {
  padding: 18px 45px;
  font-size: 1.2em;
}

.page-game-guides__btn-huge {
  padding: 20px 50px;
  font-size: 1.4em;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

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

/* Content Wrappers */
.page-game-guides__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
  margin-top: 40px;
}

.page-game-guides__content-wrapper:nth-child(even) {
  flex-direction: row-reverse;
}

.page-game-guides__text-block {
  flex: 1;
  padding: 20px;
}

.page-game-guides__text-block p {
  margin-bottom: 15px;
  color: inherit;
}

.page-game-guides__image-block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

.page-game-guides__game-card {
  background-color: var(--bg-light);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-dark);
}

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

.page-game-guides__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-game-guides__card-title {
  font-size: 1.4em;
  font-weight: bold;
  padding: 15px 20px 10px;
  color: var(--secondary-color);
}

.page-game-guides__card-text {
  padding: 0 20px 20px;
  font-size: 0.95em;
  color: var(--text-dark);
}

.page-game-guides__card-button {
  display: block;
  width: calc(100% - 40px);
  margin: 0 20px 20px;
  padding: 12px 0;
  text-align: center;
  font-size: 1em;
  border-radius: 6px;
  text-decoration: none;
}

/* Registration Steps */
.page-game-guides__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-game-guides__step-item {
  background-color: var(--bg-light);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: var(--text-dark);
  transition: transform 0.3s ease;
}

.page-game-guides__step-item:hover {
  transform: translateY(-5px);
}

.page-game-guides__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-game-guides__step-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.page-game-guides__step-text {
  font-size: 0.95em;
  color: var(--text-dark);
}

/* FAQ Section */
.page-game-guides__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.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: #ffffff;
  border-radius: 0 0 5px 5px;
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-dark);
}

.page-game-guides__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-game-guides__faq-question:active {
  background: #eeeeee;
}

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

.page-game-guides__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  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(--primary-color);
  transform: rotate(45deg);
}

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

/* Blog Section */
.page-game-guides__blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-game-guides__blog-item {
  background-color: var(--bg-light);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-game-guides__blog-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.page-game-guides__blog-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-game-guides__blog-content {
  padding: 20px;
}

.page-game-guides__blog-item-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.page-game-guides__blog-item-excerpt {
  font-size: 0.95em;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.page-game-guides__blog-item-date {
  font-size: 0.85em;
  color: #888;
  display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-game-guides__main-title {
    font-size: 3em;
  }
  .page-game-guides__section-title {
    font-size: 2em;
  }
  .page-game-guides__sub-title {
    font-size: 1.6em;
  }
  .page-game-guides__hero-section,
  .page-game-guides__intro-section,
  .page-game-guides__game-types-section,
  .page-game-guides__strategy-section,
  .page-game-guides__register-section,
  .page-game-guides__faq-section,
  .page-game-guides__blog-section,
  .page-game-guides__final-cta-section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .page-game-guides {
    padding-top: 100px !important; /* Adjust for fixed header on mobile */
    font-size: 16px;
    line-height: 1.6;
  }
  .page-game-guides__container {
    padding: 0 15px;
  }

  .page-game-guides__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-game-guides__subtitle {
    font-size: 1.1em;
    margin-bottom: 30px;
  }
  .page-game-guides__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-game-guides__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-game-guides__sub-title {
    font-size: 1.4em;
  }

  .page-game-guides__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-game-guides__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
  }
  .page-game-guides__btn-large, .page-game-guides__btn-huge {
    padding: 15px 30px;
    font-size: 1.1em;
  }

  .page-game-guides__content-wrapper {
    flex-direction: column;
    gap: 20px;
  }
  .page-game-guides__content-wrapper:nth-child(even) {
    flex-direction: column;
  }
  .page-game-guides__text-block {
    padding: 0;
  }
  .page-game-guides__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    border-radius: 8px;
  }

  .page-game-guides__game-grid {
    grid-template-columns: 1fr;
  }
  .page-game-guides__game-card {
    padding-bottom: 0;
  }
  .page-game-guides__card-button {
    width: calc(100% - 40px) !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-game-guides__steps-grid {
    grid-template-columns: 1fr;
  }

  .page-game-guides__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-game-guides__faq-question h3 {
    font-size: 1em;
    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;
  }

  .page-game-guides__blog-list {
    grid-template-columns: 1fr;
  }
  .page-game-guides__blog-image {
    height: 180px;
  }

  /* Ensure all sections/containers are responsive */
  .page-game-guides__hero-section,
  .page-game-guides__intro-section,
  .page-game-guides__game-types-section,
  .page-game-guides__strategy-section,
  .page-game-guides__register-section,
  .page-game-guides__faq-section,
  .page-game-guides__blog-section,
  .page-game-guides__final-cta-section,
  .page-game-guides__container,
  .page-game-guides__game-card,
  .page-game-guides__step-item,
  .page-game-guides__blog-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-game-guides__hero-section, .page-game-guides__final-cta-section {
    padding-left: 0;
    padding-right: 0;
  }
  .page-game-guides__hero-section .page-game-guides__container, .page-game-guides__final-cta-section .page-game-guides__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}