/* style/game-rules.css */
.page-game-rules {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Dark body background #1a1a1a, so text is light */
  background-color: #1a1a1a; /* Ensure consistency with body background */
}

.page-game-rules__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  min-height: 500px;
  background-color: #017439; /* Primary brand color */
  color: #ffffff;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-game-rules__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.3; /* Subtle background image */
}

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

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

.page-game-rules__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFFF00; /* Highlight title with custom yellow for impact */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-game-rules__intro-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  line-height: 1.8;
}

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

.page-game-rules__btn-primary,
.page-game-rules__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-game-rules__btn-primary {
  background-color: #C30808; /* Custom red for register */
  color: #FFFF00; /* Custom yellow for register font */
  border: 2px solid #C30808;
}

.page-game-rules__btn-primary:hover {
  background-color: #a30606;
  transform: translateY(-3px);
}

.page-game-rules__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Custom yellow for login font */
  border: 2px solid #FFFF00; /* Custom yellow border for login */
}

.page-game-rules__btn-secondary:hover {
  background-color: rgba(255, 255, 0, 0.1);
  transform: translateY(-3px);
}

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

.page-game-rules__section-title {
  font-size: 2.5em;
  color: #FFFF00; /* Highlight section titles */
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-game-rules__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #f0f0f0;
}

.page-game-rules__content-area {
  background-color: #1a1a1a; /* Inherit body background */
  color: #ffffff;
}

.page-game-rules__text-block p {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-game-rules__highlight {
  color: #FFFF00;
  font-weight: bold;
}

.page-game-rules__card-grid,
.page-game-rules__game-rules-grid,
.page-game-rules__info-cards,
.page-game-rules__tips-grid {
  display: grid;
  gap: 30px;
  margin-top: 40px;
}

.page-game-rules__card-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-game-rules__card,
.page-game-rules__game-card,
.page-game-rules__info-card,
.page-game-rules__tip-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards on dark bg */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-rules__card:hover,
.page-game-rules__game-card:hover,
.page-game-rules__info-card:hover,
.page-game-rules__tip-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.page-game-rules__card-title,
.page-game-rules__game-card-title,
.page-game-rules__info-card-title,
.page-game-rules__tip-title {
  font-size: 1.8em;
  color: #FFFF00; /* Card titles with yellow */
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-game-rules__card-title a,
.page-game-rules__game-card-title a,
.page-game-rules__info-card-title a {
  color: #FFFF00;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-game-rules__card-title a:hover,
.page-game-rules__game-card-title a:hover,
.page-game-rules__info-card-title a:hover {
  color: #017439; /* Hover to primary brand green */
}