.page-game-rules {
  background-color: #08160F;
  color: #F2FFF6;
  padding-bottom: 40px; /* Add some padding at the bottom */
  overflow-x: hidden; /* Prevent horizontal scroll on main content */
}

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

.page-game-rules__hero-section {
  position: relative;
  overflow: hidden;
  background-color: #11271B; /* Card BG as a fallback/container color */
  padding-top: 10px; /* Small top padding for first section */
}

.page-game-rules__hero-image {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/5; /* 1920x600 */
  object-fit: cover;
  object-position: center;
}

.page-game-rules__hero-content {
  text-align: center;
  padding: 30px 15px 50px;
  background-color: #11271B; /* Match card background for content block */
  margin-top: -5px; /* Slightly overlap with image bottom for aesthetic */
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-rules__main-title {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem); /* Adjusted for better desktop/mobile balance */
  font-weight: 700;
  line-height: 1.2;
  color: #F2FFF6;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-rules__intro-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #A7D9B8;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-rules__section-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  color: #F2C14E; /* Gold for main titles */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 60px;
  position: relative;
}

.page-game-rules__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background-color: #11A84E; /* Main color for divider */
  margin: 15px auto 0;
}

.page-game-rules__paragraph {
  font-size: 1rem;
  line-height: 1.7;
  color: #F2FFF6;
  margin-bottom: 20px;
  text-align: justify; /* Informational intent */
}

.page-game-rules__rule-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-game-rules__list-item {
  background-color: #11271B; /* Card BG */
  border-left: 5px solid #22C768; /* Auxiliary color for accent */
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  font-size: 1rem;
  line-height: 1.6;
  color: #F2FFF6;
}

.page-game-rules__list-item strong {
  color: #F2C14E; /* Gold for emphasis */
}

.page-game-rules__content-image {
  width: 100%;
  max-width: 800px; /* Example max-width for content images */
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  object-fit: cover; /* Ensure image covers the area */
  aspect-ratio: 4/3; /* 800x600 */
}

.page-game-rules__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-game-rules__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-game-rules__cta-button--secondary {
  background: linear-gradient(180deg, #57E38D 0%, #11A84E 100%); /* Glow to Main Green */
  margin-top: 30px;
}

.page-game-rules__cta-button--alt {
  background: #2E7A4E; /* Border color as button */
  margin-top: 30px;
}

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

.page-game-rules__card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #1E3A2A; /* Divider color for border */
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.page-game-rules__card:hover {
  transform: translateY(-5px);
  border-color: #22C768; /* Auxiliary color on hover */
}

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

.page-game-rules__card-text {
  font-size: 0.95rem;
  color: #A7D9B8; /* Secondary text color */
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-game-rules__card-link {
  display: inline-block;
  color: #2AD16F; /* Button start gradient color */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

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

.page-game-rules__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #1E3A2A; /* Divider color for border */
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 15px;
}

.page-game-rules__faq-question {
  font-size: 1.15rem;
  color: #F2FFF6;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-game-rules__faq-answer {
  font-size: 0.95rem;
  color: #A7D9B8;
  line-height: 1.6;
}

.page-game-rules__register-promo {
  text-align: center;
  padding: 60px 15px;
  background-color: #0A4B2C; /* Deep Green for a distinct promo section */
  margin-top: 60px;
  border-top: 5px solid #22C768; /* Auxiliary color accent */
}

.page-game-rules__register-promo .page-game-rules__section-title {
  color: #F2FFF6; /* Main text color for title in promo */
  padding-top: 0;
  margin-bottom: 25px;
}

.page-game-rules__register-promo .page-game-rules__section-title::after {
  background-color: #F2C14E; /* Gold for divider in promo */
}

.page-game-rules__register-promo .page-game-rules__paragraph {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .page-game-rules__main-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }

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

  .page-game-rules__section-title {
    font-size: clamp(1.4rem, 5vw, 1.9rem);
    padding-top: 40px;
    margin-bottom: 30px;
  }

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

  .page-game-rules__list-item {
    padding: 12px 15px;
    font-size: 0.95rem;
  }

  .page-game-rules__content-image {
    max-width: 100%;
    margin: 30px auto;
  }

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

  .page-game-rules__rule-cards {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
  }

  .page-game-rules__card-title {
    font-size: 1.2rem;
  }

  .page-game-rules__card-text {
    font-size: 0.9rem;
  }

  .page-game-rules__faq-question {
    font-size: 1.05rem;
  }

  .page-game-rules__faq-answer {
    font-size: 0.9rem;
  }

  .page-game-rules__register-promo {
    padding: 40px 15px;
    margin-top: 40px;
  }

  /* Mobile content area image overflow prevention */
  .page-game-rules img {
    max-width: 100%;
    height: auto;
  }
}

/* Ensure images in content sections adhere to minimum size and responsive rules */
.page-game-rules__content-section img {
  min-width: 200px;
  min-height: 200px;
  width: 100%; /* Overrides max-width for smaller screens if needed */
  height: auto; /* Maintains aspect ratio */
}

/* Specific rule for content images to not be styled smaller than 200px (desktop) */
.page-game-rules__content-area img,
.page-game-rules__general-rules img,
.page-game-rules__specific-game-rules img,
.page-game-rules__fair-play img {
  min-width: 200px;
  min-height: 200px;
}