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

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

.page-game-rules__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background-color: #007bff; /* Primary color for hero background */
  color: #ffffff;
  text-align: center;
}

.page-game-rules__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  opacity: 0.2; /* Subtle overlay */
}

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

.page-game-rules__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-game-rules__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-game-rules__hero-button {
  display: inline-block;
  background-color: #ffc107; /* Auxiliary color */
  color: #000000;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-game-rules__hero-button:hover {
  background-color: #e0a800;
}

.page-game-rules__introduction-section,
.page-game-rules__casino-rules-section,
.page-game-rules__live-casino-rules-section,
.page-game-rules__sports-betting-rules-section,
.page-game-rules__fair-play-section {
  padding: 60px 0;
}

.page-game-rules__alt-background {
  background-color: #f8f9fa; /* Light grey for alternating sections */
}

.page-game-rules__section-title {
  font-size: 2.5em;
  color: #007bff;
  text-align: center;
  margin-bottom: 40px;
}

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

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

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

.page-game-rules__list-item {
  background-color: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  margin-bottom: 20px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-game-rules__list-title {
  font-size: 1.8em;
  color: #007bff;
  margin-top: 0;
  margin-bottom: 15px;
}

.page-game-rules__list-description {
  font-size: 1em;
  color: #555555;
}

.page-game-rules__cta-section {
  background-color: #007bff; /* Primary color */
  padding: 80px 20px;
  text-align: center;
  color: #ffffff;
}

.page-game-rules__cta-content {
  max-width: 900px;
}

.page-game-rules__cta-section .page-game-rules__section-title {
  color: #ffffff;
  margin-bottom: 30px;
}

.page-game-rules__cta-section .page-game-rules__paragraph {
  color: #f0f0f0;
  margin-bottom: 40px;
}

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

.page-game-rules__cta-button {
  display: inline-block;
  background-color: #ffc107; /* Auxiliary color */
  color: #000000;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease;
  min-width: 200px;
}

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

.page-game-rules__cta-button--secondary {
  background-color: #ffffff;
  color: #007bff;
  border: 2px solid #ffffff;
}

.page-game-rules__cta-button--secondary:hover {
  background-color: #e9ecef;
  color: #0056b3;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-game-rules__hero-title {
    font-size: 2.8em;
  }
  .page-game-rules__hero-description {
    font-size: 1.1em;
  }
  .page-game-rules__section-title {
    font-size: 2em;
  }
  .page-game-rules__list-title {
    font-size: 1.5em;
  }
}

@media (max-width: 768px) {
  .page-game-rules__hero-content {
    padding: 60px 15px;
  }
  .page-game-rules__hero-title {
    font-size: 2.2em;
  }
  .page-game-rules__hero-description {
    font-size: 1em;
  }
  .page-game-rules__introduction-section,
  .page-game-rules__casino-rules-section,
  .page-game-rules__live-casino-rules-section,
  .page-game-rules__sports-betting-rules-section,
  .page-game-rules__fair-play-section {
    padding: 40px 0;
  }
  .page-game-rules__section-title {
    font-size: 1.8em;
  }
  .page-game-rules__paragraph {
    font-size: 0.95em;
  }
  .page-game-rules__list-item {
    padding: 20px;
  }
  .page-game-rules__list-title {
    font-size: 1.3em;
  }
  .page-game-rules__cta-section {
    padding: 60px 15px;
  }
  .page-game-rules__button-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-game-rules__cta-button {
    width: 100%;
    max-width: 300px;
  }
  .page-game-rules__image {
    max-width: 100%;
    height: auto;
  }
  /* Ensure content images do not overflow */
  .page-game-rules img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-game-rules__hero-title {
    font-size: 1.8em;
  }
  .page-game-rules__hero-description {
    font-size: 0.9em;
  }
  .page-game-rules__section-title {
    font-size: 1.5em;
  }
  .page-game-rules__list-title {
    font-size: 1.2em;
  }
}