.page-game-rules {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light background */
  background-color: #FFFFFF;
}

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

.page-game-rules__hero-section {
  position: relative;
  padding: 100px 0 60px; /* Adjusted for header offset */
  background-color: #017439;
  color: #ffffff;
  text-align: center;
  padding-top: calc(var(--header-offset, 120px) + 60px);
}

.page-game-rules__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFFF00; /* Special color for hero title as per brand guidelines */
}

.page-game-rules__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px;
}

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

.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;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.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: #e01a1a;
  border-color: #e01a1a;
}

.page-game-rules__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

.page-game-rules__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005f2e;
  border-color: #005f2e;
}

.page-game-rules__section {
  padding: 60px 0;
}

.page-game-rules__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-game-rules__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-game-rules__section-title {
  font-size: 2.2em;
  margin-bottom: 20px;
  text-align: center;
  font-weight: bold;
}

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

.page-game-rules__light-bg .page-game-rules__section-title {
  color: #017439;
}

.page-game-rules__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
}

.page-game-rules__paragraph {
  font-size: 1.05em;
  margin-bottom: 20px;
  line-height: 1.7;
  text-align: justify;
}

.page-game-rules__sub-title {
  font-size: 1.6em;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
  color: #017439;
}

.page-game-rules__dark-bg .page-game-rules__sub-title {
  color: #FFFF00;
}

.page-game-rules__list {
  list-style: disc inside;
  margin-bottom: 20px;
  padding-left: 20px;
}

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

.page-game-rules__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-game-rules__video-section {
  position: relative;
  padding: 60px 0;
  background-color: #ffffff;
  color: #333333;
  text-align: center;
}

.page-game-rules__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px; /* Max width for video */
  margin: 0 auto;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-game-rules__faq-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.page-game-rules__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-game-rules__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  background-color: #e8f5e9; /* Light green background */
  border-bottom: 1px solid #d4edda;
  user-select: none; /* Prevent text selection on click */
}

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

.page-game-rules__faq-question::marker {
  display: none;
}

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

.page-game-rules__faq-item[open] .page-game-rules__faq-toggle {
  transform: rotate(45deg); /* Change + to X or similar */
}

.page-game-rules__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: #555555;
  background-color: #ffffff;
}

.page-game-rules__faq-answer p {
  margin-bottom: 0;
}

.page-game-rules__conclusion-section {
  padding: 80px 0;
  background-color: #017439;
  color: #ffffff;
  text-align: center;
}

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

/* Responsive Design */
@media (max-width: 992px) {
  .page-game-rules__hero-title {
    font-size: 2.2em;
  }
  .page-game-rules__section-title {
    font-size: 1.8em;
  }
  .page-game-rules__sub-title {
    font-size: 1.4em;
  }
}

@media (max-width: 768px) {
  .page-game-rules {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-game-rules__hero-section {
    padding-top: calc(var(--header-offset, 120px) + 40px);
    padding-bottom: 40px;
  }
  .page-game-rules__hero-title {
    font-size: 1.8em;
  }
  .page-game-rules__hero-description {
    font-size: 1em;
  }
  .page-game-rules__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-game-rules__btn-primary,
  .page-game-rules__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px;
    margin: 0 auto;
  }
  .page-game-rules__container {
    padding: 0 15px;
  }
  .page-game-rules__section {
    padding: 40px 0;
  }
  .page-game-rules__section-title {
    font-size: 1.6em;
  }
  .page-game-rules__sub-title {
    font-size: 1.2em;
  }
  .page-game-rules__paragraph,
  .page-game-rules__list-item {
    font-size: 0.95em;
  }
  .page-game-rules__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .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__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-game-rules__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-game-rules__faq-answer {
    padding: 10px 20px 15px;
  }
}

/* Ensure all images and video within content sections are responsive */
.page-game-rules__content-area img,
.page-game-rules__section img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-game-rules__video-section .page-game-rules__container {
  padding-top: var(--header-offset, 120px) !important; /* This should only apply if shared doesn't set it on body */
  /* In this case, hero section already has it, so this might be redundant or require adjustment */
}

/* Adjusting for potential double padding-top if body already has it */
/* Assuming shared.css already applies padding-top to body */
/* If body doesn't have padding-top, uncomment the following on .page-game-rules__hero-section */
/* .page-game-rules__hero-section { padding-top: calc(var(--header-offset, 120px) + 60px); } */
/* The current setup for hero-section padding-top is correct if body has no padding-top */