/* style/game-rules.css */
.page-game-rules {
  color: #333333; /* Dark text for default light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-game-rules__hero-section {
  background-color: #3A1C71; /* Primary color background */
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-game-rules__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 0;
}

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

.page-game-rules__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #D72638; /* Accent color for main title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-game-rules__description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-rules__cta-button {
  display: inline-block;
  background-color: #D72638; /* Accent color for CTA */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-game-rules__cta-button:hover {
  background-color: #A91E2D;
}

.page-game-rules__introduction-section,
.page-game-rules__category-section,
.page-game-rules__fair-play-section,
.page-game-rules__cta-section {
  padding: 60px 0;
}

.page-game-rules__section-title {
  font-size: 2.5em;
  color: #3A1C71; /* Primary color for section titles */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-game-rules__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #D72638;
  margin: 15px auto 0;
  border-radius: 2px;
}

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

.page-game-rules__game-category {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-game-rules__category-title {
  font-size: 2em;
  color: #3A1C71;
  margin-bottom: 25px;
  text-align: center;
}

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

.page-game-rules__list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  width: 100%;
  max-width: 800px;
}

.page-game-rules__list-item {
  background-color: #f9f9f9;
  border-left: 5px solid #D72638;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 5px;
  font-size: 1.0em;
  line-height: 1.5;
}

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

.page-game-rules__inline-link {
  color: #D72638;
  text-decoration: none;
  font-weight: bold;
}

.page-game-rules__inline-link:hover {
  text-decoration: underline;
}

.page-game-rules__cta-content {
  text-align: center;
  background-color: #3A1C71;
  color: #ffffff;
  padding: 60px 30px;
  border-radius: 10px;
  margin-top: 40px;
}

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

.page-game-rules__cta-content .page-game-rules__section-title::after {
  background-color: #ffffff;
}

.page-game-rules__cta-content .page-game-rules__paragraph {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
}

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

.page-game-rules__cta-button--secondary {
  background-color: transparent;
  border: 2px solid #D72638;
  color: #D72638;
}

.page-game-rules__cta-button--secondary:hover {
  background-color: #D72638;
  color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-game-rules__main-title {
    font-size: 2.8em;
  }

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

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

@media (max-width: 768px) {
  .page-game-rules__main-title {
    font-size: 2.2em;
  }

  .page-game-rules__description {
    font-size: 1.1em;
  }

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

  .page-game-rules__category-title {
    font-size: 1.6em;
  }

  .page-game-rules__hero-section,
  .page-game-rules__introduction-section,
  .page-game-rules__category-section,
  .page-game-rules__fair-play-section,
  .page-game-rules__cta-section {
    padding: 40px 0;
  }

  .page-game-rules__hero-content {
    padding: 0 10px;
  }

  .page-game-rules__container {
    padding: 0 15px;
  }

  .page-game-rules__cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  /* Mobile content area images must not cause overflow */
  .page-game-rules img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
  }

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

@media (max-width: 480px) {
  .page-game-rules__main-title {
    font-size: 1.8em;
  }

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

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

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