.page-game-rules {
  background-color: #08160F; /* Body background color */
  color: #F2FFF6; /* Main text color for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-game-rules__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 60px; /* Adjust as needed */
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden; /* Ensure no overflow from image */
}

.page-game-rules__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit hero image height */
  overflow: hidden;
}

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

.page-game-rules__hero-content {
  position: relative; /* Relative to hero-section */
  z-index: 1;
  text-align: center;
  padding: 20px;
  max-width: 900px;
  margin-top: -150px; /* Pull content up over the image slightly */
  background: rgba(17, 40, 27, 0.8); /* Semi-transparent background for readability */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.page-game-rules__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
  color: #F2C14E; /* Gold color for main title */
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-game-rules__description {
  font-size: 1.1em;
  color: #A7D9B8; /* Secondary text color */
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-rules__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

.page-game-rules__btn-primary,
.page-game-rules__btn-secondary,
.page-game-rules__btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%; /* Ensure responsiveness */
}

.page-game-rules__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6; /* Main text color */
  border: none;
}

.page-game-rules__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 0 15px #57E38D; /* Glow effect */
}

.page-game-rules__btn-secondary {
  background-color: transparent;
  color: #2AD16F; /* Primary color for text */
  border: 2px solid #2AD16F;
}

.page-game-rules__btn-secondary:hover {
  background-color: #2AD16F;
  color: #F2FFF6;
  box-shadow: 0 0 15px #57E38D; /* Glow effect */
}

.page-game-rules__btn-link {
  background-color: transparent;
  color: #2AD16F;
  border: 1px solid #2AD16F;
  padding: 10px 20px;
  font-size: 1em;
  margin-top: 15px;
}

.page-game-rules__btn-link:hover {
  background-color: #2AD16F;
  color: #F2FFF6;
}

.page-game-rules__introduction-section,
.page-game-rules__general-rules-section,
.page-game-rules__specific-games-section,
.page-game-rules__fair-play-section,
.page-game-rules__responsible-gaming-section,
.page-game-rules__faq-section,
.page-game-rules__cta-section {
  padding: 60px 20px;
}

.page-game-rules__dark-bg {
  background-color: #11271B; /* Card BG color for dark sections */
}

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

.page-game-rules__section-title {
  font-size: 2.5em;
  color: #F2FFF6; /* Main text color */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-game-rules__introduction-section p,
.page-game-rules__fair-play-section p,
.page-game-rules__responsible-gaming-section p,
.page-game-rules__cta-section p {
  font-size: 1.1em;
  color: #A7D9B8; /* Secondary text color */
  text-align: center;
  max-width: 900px;
  margin: 0 auto 20px auto;
}

.page-game-rules__rule-list,
.page-game-rules__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-game-rules__card {
  background-color: #11271B; /* Card BG color */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  color: #F2FFF6; /* Main text color for cards */
}

.page-game-rules__card-title {
  font-size: 1.5em;
  color: #F2C14E; /* Gold color for card titles */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-game-rules__card p {
  color: #A7D9B8; /* Secondary text color */
  font-size: 1em;
  margin-bottom: 15px;
  flex-grow: 1; /* Allow paragraph to grow */
}

.page-game-rules__list {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
  flex-grow: 1;
}

.page-game-rules__list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 8px;
  color: #A7D9B8; /* Secondary text color */
}

.page-game-rules__list li::before {
  content: '✓';
  color: #2AD16F; /* Primary color for checkmark */
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}

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

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

.page-game-rules__link {
  color: #2AD16F; /* Primary color for links */
  text-decoration: none;
  font-weight: bold;
}

.page-game-rules__link:hover {
  text-decoration: underline;
  color: #57E38D; /* Glow color on hover */
}

.page-game-rules__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-rules__faq-item {
  background-color: #11271B; /* Card BG color */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-game-rules__faq-item summary {
  list-style: none; /* Hide default marker */
}

.page-game-rules__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit */
}

.page-game-rules__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  font-size: 1.2em;
  font-weight: bold;
  color: #F2FFF6; /* Main text color */
  cursor: pointer;
  background-color: #0A4B2C; /* Deep Green for question background */
  transition: background-color 0.3s ease;
}

.page-game-rules__faq-question:hover {
  background-color: #11A84E; /* Primary color on hover */
}

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

.page-game-rules__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #F2C14E; /* Gold color for toggle */
  margin-left: 15px;
}

.page-game-rules__faq-answer {
  padding: 20px 30px;
  font-size: 1em;
  color: #A7D9B8; /* Secondary text color */
  border-top: 1px solid #2E7A4E; /* Divider color */
}

.page-game-rules__cta-container {
  text-align: center;
  padding: 40px;
  border-radius: 10px;
  background-color: #0A4B2C; /* Deep Green for CTA section */
  border: 1px solid #2E7A4E;
}


/* Responsive styles */
@media (max-width: 1024px) {
  .page-game-rules__hero-content {
    margin-top: -100px;
    padding: 15px;
  }
  .page-game-rules__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }
  .page-game-rules__description {
    font-size: 1em;
  }
  .page-game-rules__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-game-rules__hero-section {
    padding-bottom: 40px;
    padding-top: 10px !important; /* body handles --header-offset */
  }
  .page-game-rules__hero-content {
    margin-top: -80px;
    padding: 10px;
    max-width: 95%;
  }
  .page-game-rules__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em);
  }
  .page-game-rules__description {
    font-size: 0.95em;
    margin-bottom: 20px;
  }
  .page-game-rules__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-game-rules__btn-primary,
  .page-game-rules__btn-secondary,
  .page-game-rules__btn-link {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-game-rules__introduction-section,
  .page-game-rules__general-rules-section,
  .page-game-rules__specific-games-section,
  .page-game-rules__fair-play-section,
  .page-game-rules__responsible-gaming-section,
  .page-game-rules__faq-section,
  .page-game-rules__cta-section {
    padding: 40px 15px;
  }
  .page-game-rules__container {
    padding-left: 0;
    padding-right: 0;
  }

  .page-game-rules__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-game-rules__rule-list,
  .page-game-rules__game-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-game-rules__card {
    padding: 20px;
  }
  .page-game-rules__card-title {
    font-size: 1.3em;
  }
  .page-game-rules__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-game-rules__faq-answer {
    padding: 15px 20px;
  }

  /* Image responsive rules for content area */
  .page-game-rules img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-game-rules__section, /* General section styling for mobile */
  .page-game-rules__card, /* Card styling for mobile */
  .page-game-rules__container, /* Container styling for mobile */
  .page-game-rules__image-center { /* Centered image styling for mobile */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }
  /* For elements that don't need inner padding but need width constraint */
  .page-game-rules__hero-image-wrapper {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-game-rules__cta-container {
    padding: 30px 15px;
  }
}