/* style/game-rules.css */
.page-game-rules {
  font-family: 'Arial', sans-serif;
  color: var(--Text-Main); /* Default text color for the page */
  background-color: var(--Deep-Navy); /* Background color from shared.css */
}

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

.page-game-rules__section {
  padding: 40px 0;
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
}

.page-game-rules__dark-section {
  background-color: var(--Card-B-G);
  color: var(--Text-Main);
}

.page-game-rules__dark-section .page-game-rules__section-description,
.page-game-rules__dark-section .page-game-rules__list-item p,
.page-game-rules__dark-section .page-game-rules__intro-text,
.page-game-rules__dark-section .page-game-rules__cta-block p {
  color: var(--Text-Secondary);
}

.page-game-rules__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: var(--Card-B-G);
  border-radius: 0;
  margin-bottom: 0;
  padding-bottom: 40px;
}

.page-game-rules__hero-image-container {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
}

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

.page-game-rules__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-game-rules__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: bold;
  line-height: 1.2;
  color: var(--Text-Main);
  margin-bottom: 20px;
}

.page-game-rules__intro-text {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--Text-Secondary);
}

.page-game-rules__btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-rules__btn-primary:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
}

.page-game-rules__section-title {
  font-size: 2.2rem;
  font-weight: bold;
  color: var(--Text-Main);
  margin-bottom: 20px;
  text-align: center;
}

.page-game-rules__section-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--Text-Secondary);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-rules__image-wrapper {
  margin: 30px auto;
  max-width: 1000px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-game-rules__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

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

.page-game-rules__list-item {
  background-color: var(--Card-B-G);
  border: 1px solid var(--Border);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-game-rules__dark-section .page-game-rules__list-item {
  background-color: #10233F;
  border: 1px solid var(--Border);
}

.page-game-rules__list-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--Text-Main);
  margin-bottom: 15px;
}

.page-game-rules__list-item p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--Text-Secondary);
}

.page-game-rules__cta-block {
  text-align: center;
  margin-top: 50px;
  padding: 30px;
  background-color: rgba(29, 95, 209, 0.1);
  border-radius: 10px;
  border: 1px solid var(--Border);
}

.page-game-rules__cta-block p {
  font-size: 1.1rem;
  color: var(--Text-Main);
  margin-bottom: 20px;
}

.page-game-rules__game-category {
  background-color: var(--Card-B-G);
  border: 1px solid var(--Border);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-game-rules__game-category .page-game-rules__image-wrapper {
  max-width: 800px;
}

.page-game-rules__category-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--Gold);
  margin-bottom: 20px;
  text-align: center;
}

.page-game-rules__game-category p {
  color: var(--Text-Secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: center;
}

.page-game-rules__game-category .page-game-rules__list {
  margin-top: 20px;
  padding-left: 20px;
  list-style: disc;
}

.page-game-rules__game-category .page-game-rules__list li {
  background-color: transparent;
  border: none;
  box-shadow: none;
  padding: 5px 0;
  color: var(--Text-Secondary);
  font-size: 0.95rem;
}

.page-game-rules__game-category .page-game-rules__list li strong {
  color: var(--Text-Main);
}

.page-game-rules__btn-secondary {
  display: inline-block;
  padding: 10px 25px;
  background-color: var(--Deep-Navy);
  color: var(--Text-Main);
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  border: 2px solid var(--Border);
  transition: all 0.3s ease;
  margin-top: 20px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-rules__btn-secondary:hover {
  background-color: var(--Glow);
  color: #ffffff;
  border-color: var(--Glow);
}