.page-game-rules {
  color: #ffffff; /* Dark body background (#222) requires light text */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Main content background will be transparent to show body background */
}

.page-game-rules__hero-section {
  position: relative;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  background-color: #017439; /* Primary brand color */
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

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

.page-game-rules__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: bold;
}

.page-game-rules__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.8;
}

.page-game-rules__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0.3; /* Subtle background image */
}

.page-game-rules__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-game-rules__section {
  padding: 60px 20px;
  background-color: #333333; /* Slightly darker than body for contrast */
  margin-bottom: 20px;
}

.page-game-rules__section:nth-of-type(odd) {
  background-color: #2a2a2a; /* Alternate section background */
}

.page-game-rules__container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-game-rules__section-title {
  font-size: 2.5em;
  color: #017439; /* Primary brand color for titles */
  margin-bottom: 30px;
  text-align: center;
  font-weight: bold;
}

.page-game-rules__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0; /* Light text on dark background */
}

.page-game-rules__paragraph a {
  color: #FFFF00; /* Yellow for links on dark background */
  text-decoration: underline;
}

.page-game-rules__list {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-game-rules__list-item {
  margin-bottom: 10px;
  font-size: 1.05em;
}

.page-game-rules__list-item strong {
  color: #ffffff;
}

.page-game-rules__btn-primary,
.page-game-rules__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  margin: 10px 10px 10px 0;
  text-align: center;
}

.page-game-rules__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-game-rules__btn-primary:hover {
  background-color: #e01010;
  border-color: #e01010;
  transform: translateY(-2px);
}

.page-game-rules__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808; /* Register/Login color for border */
}

.page-game-rules__btn-secondary:hover {
  background-color: #C30808;
  color: #ffffff;
  transform: translateY(-2px);
}

.page-game-rules__game-category {
  background-color: #444444; /* Slightly lighter card background */
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-game-rules__game-title {
  font-size: 1.8em;
  color: #FFFF00; /* Yellow for game titles */
  margin-bottom: 20px;
  border-bottom: 2px solid #017439;
  padding-bottom: 10px;
}

.page-game-rules__game-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 8px;
  margin: 20px auto;
  display: block;
}

.page-game-rules__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-game-rules__text-content {
  flex: 1;
}

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

.page-game-rules__image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-game-rules__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 40px;
}

/* FAQ Section */
.page-game-rules__faq-list {
  margin-top: 30px;
}

.page-game-rules__faq-item {
  background-color: #444444;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-game-rules__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #017439; /* Primary brand color for question background */
  color: #ffffff;
  font-weight: bold;
  font-size: 1.15em;
  transition: background-color 0.3s ease;
}

.page-game-rules__faq-question:hover {
  background-color: #005f2c;
}

.page-game-rules__faq-title {
  margin: 0;
  color: #ffffff;
  font-size: 1.15em;
}

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

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

.page-game-rules__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  background-color: #333333; /* Darker background for answer */
  color: #f0f0f0;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

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

.page-game-rules__faq-answer .page-game-rules__paragraph {
  margin-bottom: 0; /* Remove bottom margin from paragraph inside answer */
}

.page-game-rules__faq-image {
  margin-top: 40px;
}

/* Video Section */
.page-game-rules__video-section {
  background-color: #2a2a2a;
  text-align: center;
}

.page-game-rules__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px; /* Max width for video */
  margin: 30px auto;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  overflow: hidden;
}

.page-game-rules__video-link {
  display: block; /* Make the entire video area clickable */
  position: relative;
  cursor: pointer;
}

.page-game-rules__video {
  width: 100%;
  height: auto;
  display: block;
}

.page-game-rules__video-caption {
  margin-top: 15px;
  font-size: 0.95em;
  color: #f0f0f0;
}

.page-game-rules__video-caption a {
  color: #FFFF00;
  text-decoration: underline;
}

/* Conclusion Section */
.page-game-rules__conclusion {
  text-align: center;
  background-color: #017439;
  color: #ffffff;
  padding-bottom: 80px;
}

.page-game-rules__conclusion .page-game-rules__section-title {
  color: #ffffff;
}

.page-game-rules__conclusion .page-game-rules__paragraph {
  color: #ffffff;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-rules__conclusion .page-game-rules__paragraph a {
  color: #FFFF00;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-game-rules__main-title {
    font-size: 2.8em;
  }
  .page-game-rules__section-title {
    font-size: 2em;
  }
  .page-game-rules__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px);
  }
  .page-game-rules__content-wrapper {
    flex-direction: column;
  }
  .page-game-rules__image-wrapper {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-game-rules__hero-section {
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
  }

  .page-game-rules__main-title {
    font-size: 2em;
  }

  .page-game-rules__intro-text {
    font-size: 1em;
  }

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

  .page-game-rules__section-title {
    font-size: 1.8em;
  }

  .page-game-rules__paragraph,
  .page-game-rules__list-item {
    font-size: 0.95em;
  }

  .page-game-rules__btn-primary,
  .page-game-rules__btn-secondary,
  .page-game-rules a[class*="button"],
  .page-game-rules a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 10px 0;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-game-rules__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-game-rules img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-game-rules__section,
  .page-game-rules__card,
  .page-game-rules__container,
  .page-game-rules__content-wrapper,
  .page-game-rules__video-section,
  .page-game-rules__video-container,
  .page-game-rules__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-game-rules__game-category {
    padding: 20px 15px;
  }

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

  .page-game-rules__faq-answer {
    padding: 0 20px;
  }

  .page-game-rules__faq-item.active .page-game-rules__faq-answer {
    padding: 15px 20px;
  }

  .page-game-rules__video-wrapper {
    margin: 20px auto;
  }

  .page-game-rules video,
  .page-game-rules__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-game-rules__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
}

/* Ensure content area images are not too small */
.page-game-rules__content-area img,
.page-game-rules__game-category img,
.page-game-rules__image-wrapper img {
  min-width: 200px;
  min-height: 200px;
}

/* No filter on images */
.page-game-rules img {
  filter: none !important;
}