.page-game-guides {
  font-family: 'Arial', sans-serif;
  color: var(--text-main, #F2FFF6); /* Default text color for the page */
  background-color: var(--background, #08160F); /* Default background color for the page */
}

.page-game-guides__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
}

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

.page-game-guides__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-game-guides__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  color: var(--text-main, #F2FFF6);
  padding: 20px;
}

.page-game-guides__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--gold, #F2C14E);
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-game-guides__intro-text {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 30px;
  line-height: 1.6;
  color: var(--text-main, #F2FFF6);
}

.page-game-guides__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-game-guides__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
  transform: translateY(-2px);
}

.page-game-guides__section {
  padding: 60px 20px;
  box-sizing: border-box;
}

.page-game-guides__dark-bg {
  background-color: var(--background, #08160F);
  color: var(--text-main, #F2FFF6);
}

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

.page-game-guides__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--gold, #F2C14E);
  text-shadow: 0 0 8px rgba(87, 227, 141, 0.3);
}

.page-game-guides__paragraph {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--text-main, #F2FFF6);
}

.page-game-guides__game-category {
  margin-bottom: 60px;
  background-color: var(--card-b-g, #11271B);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border, #2E7A4E);
}

.page-game-guides__category-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: bold;
  margin-bottom: 25px;
  color: var(--glow, #57E38D);
  text-align: center;
}

.page-game-guides__sub-title {
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--gold, #F2C14E);
}

.page-game-guides__sub-title--spacing {
  margin-top: 40px;
}

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

.page-game-guides__list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  line-height: 1.6;
  color: var(--text-main, #F2FFF6);
}

.page-game-guides__list-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--glow, #57E38D);
  font-weight: bold;
  font-size: 1.2rem;
  top: 0;
}

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

.page-game-guides__list--columns .page-game-guides__list-item {
  background-color: var(--card-b-g, #11271B);
  border-radius: 8px;
  padding: 25px;
  padding-left: 55px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--divider, #1E3A2A);
}

.page-game-guides__list--columns .page-game-guides__list-item::before {
  top: 25px;
  left: 20px;
}

.page-game-guides__image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  border: 1px solid var(--border, #2E7A4E);
}

.page-game-guides__image-right, .page-game-guides__image-left {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 30px;
}

.page-game-guides__image-right .page-game-guides__image {
  order: 2;
  flex: 1;
  min-width: 300px;
}

.page-game-guides__image-left .page-game-guides__image {
  order: 1;
  flex: 1;
  min-width: 300px;
}

.page-game-guides__image-right .page-game-guides__text-content,
.page-game-guides__image-left .page-game-guides__text-content {
  flex: 2;
  order: 1;
}

.page-game-guides__image-right .page-game-guides__text-content {
  order: 1;
}

.page-game-guides__step-by-step {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-game-guides__step-item {
  background-color: var(--card-b-g, #11271B);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border, #2E7A4E);
}

.page-game-guides__step-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid var(--divider, #1E3A2A);
}

.page-game-guides__step-description {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-secondary, #A7D9B8);
}

.page-game-guides__step-description strong {
  color: var(--text-main, #F2FFF6);
}

.page-game-guides__ordered-list {
  list-style: decimal;
  padding-left: 25px;
  margin-bottom: 30px;
}

.page-game-guides__ordered-list .page-game-guides__list-item {
  padding-left: 0;
  margin-bottom: 10px;
  color: var(--text-main, #F2FFF6);
}

.page-game-guides__ordered-list .page-game-guides__list-item::before {
  content: none;
}

.page-game-guides__faq-section {
  background-color: var(--background, #08160F);
  color: var(--text-main, #F2FFF6);
}

.page-game-guides__faq-item {
  background-color: var(--card-b-g, #11271B);
  border: 1px solid var(--border, #2E7A4E);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--text-main, #F2FFF6);
  cursor: pointer;
  background-color: var(--deep-green, #0A4B2C);
  border-bottom: 1px solid var(--divider, #1E3A2A);
  list-style: none;
}

.page-game-guides__faq-question::-webkit-details-marker {
  display: none;
}

.page-game-guides__faq-item[open] > .page-game-guides__faq-question {
  border-bottom: 1px solid var(--border, #2E7A4E);
}

.page-game-guides__faq-qtext {
  flex-grow: 1;
}

.page-game-guides__faq-toggle {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--glow, #57E38D);
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

.page-game-guides__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary, #A7D9B8);
  background-color: var(--card-b-g, #11271B);
}

.page-game-guides__text-center {
  text-align: center;
}

.page-game-guides__cta-btn {
  margin-top: 30px;
}

.page-game-guides__cta-btn--large {
  padding: 18px 40px;
  font-size: 1.2rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-game-guides__hero-content {
    padding: 15px;
  }

  .page-game-guides__section-title {
    margin-bottom: 30px;
  }

  .page-game-guides__game-category {
    padding: 25px;
  }
}

@media (max-width: 768px) {
  .page-game-guides__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles --header-offset, small top padding */
  }

  .page-game-guides__main-title {
    font-size: 2rem;
  }

  .page-game-guides__intro-text {
    font-size: 0.95rem;
  }

  .page-game-guides__btn-primary {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .page-game-guides__section {
    padding: 40px 15px;
  }

  .page-game-guides__section-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
  }

  .page-game-guides__paragraph {
    font-size: 0.95rem;
  }

  .page-game-guides__game-category {
    padding: 20px;
    margin-bottom: 40px;
  }

  .page-game-guides__category-title {
    font-size: 1.6rem;
    margin-bottom: 20px;
  }

  .page-game-guides__sub-title {
    font-size: 1.3rem;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-game-guides__list-item {
    font-size: 0.9rem;
    padding-left: 25px;
  }

  .page-game-guides__list-item::before {
    font-size: 1rem;
  }

  .page-game-guides__list--columns {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-game-guides__list--columns .page-game-guides__list-item {
    padding: 20px;
    padding-left: 50px;
  }

  .page-game-guides__list--columns .page-game-guides__list-item::before {
    top: 20px;
    left: 15px;
  }

  .page-game-guides__image-right, .page-game-guides__image-left {
    flex-direction: column;
    gap: 20px;
  }

  .page-game-guides__image-right .page-game-guides__image,
  .page-game-guides__image-left .page-game-guides__image {
    order: unset; /* Reset order for mobile */
    width: 100%;
    max-width: 100% !important;
    height: auto !important;
    min-width: unset;
  }

  .page-game-guides__image-right .page-game-guides__text-content,
  .page-game-guides__image-left .page-game-guides__text-content {
    order: unset;
  }

  .page-game-guides__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-game-guides__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-game-guides__step-by-step {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-game-guides__step-item {
    padding: 20px;
  }

  .page-game-guides__step-image {
    height: 180px;
  }

  .page-game-guides__ordered-list {
    padding-left: 20px;
  }

  .page-game-guides__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }

  .page-game-guides__faq-answer {
    padding: 15px 20px;
    font-size: 0.9rem;
  }

  .page-game-guides__cta-btn--large {
    padding: 15px 30px;
    font-size: 1.1rem;
  }

  /* Ensure all content sections and containers are responsive */
  .page-game-guides__section,
  .page-game-guides__container,
  .page-game-guides__game-category,
  .page-game-guides__step-by-step,
  .page-game-guides__step-item,
  .page-game-guides__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons responsiveness */
  .page-game-guides__btn-primary,
  .page-game-guides a[class*="button"],
  .page-game-guides a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-game-guides__cta-buttons,
  .page-game-guides__button-group,
  .page-game-guides__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

/* Color contrast rules */
.page-game-guides__dark-bg {
  color: var(--text-main, #F2FFF6); /* Deep Green/Black background, so light text */
}

.page-game-guides__introduction-section {
  background-color: var(--background, #08160F);
  color: var(--text-main, #F2FFF6);
}

.page-game-guides__general-tips-section {
  background-color: var(--background, #08160F);
  color: var(--text-main, #F2FFF6);
}

.page-game-guides__registration-section {
  background-color: var(--background, #08160F);
  color: var(--text-main, #F2FFF6);
}

.page-game-guides__faq-section {
  background-color: var(--background, #08160F);
  color: var(--text-main, #F2FFF6);
}

.page-game-guides__call-to-action-section {
  background-color: var(--deep-green, #0A4B2C);
  color: var(--text-main, #F2FFF6);
}

/* Ensure text in cards/boxes is readable */
.page-game-guides__game-category,
.page-game-guides__list--columns .page-game-guides__list-item,
.page-game-guides__step-item,
.page-game-guides__faq-item {
  color: var(--text-main, #F2FFF6);
  background-color: var(--card-b-g, #11271B);
}

.page-game-guides__faq-answer {
  color: var(--text-secondary, #A7D9B8);
}

.page-game-guides__faq-question {
  background-color: var(--deep-green, #0A4B2C);
  color: var(--text-main, #F2FFF6);
}

.page-game-guides__btn-primary {
  color: #FFFFFF; /* Ensure white text on green gradient button */
}