.page-game-rules {
  color: #ffffff; /* Dark body background #121212 requires light text */
  background-color: #121212;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
}

.page-game-rules__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  background-color: #0a0a0a; /* Slightly darker for hero */
  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;
  color: #FFCC00; /* Accent color for main title */
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-game-rules__description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 40px;
}

.page-game-rules__cta-button {
  display: inline-block;
  padding: 15px 35px;
  background: #336699; /* Primary brand color */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
}

.page-game-rules__cta-button:hover {
  background-color: #FFCC00; /* Accent color on hover */
  color: #121212;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-game-rules__cta-button--large {
  padding: 18px 45px;
  font-size: 1.3em;
}

.page-game-rules__section {
  padding: 60px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-game-rules__section:last-of-type {
  border-bottom: none;
}

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

.page-game-rules__section-title {
  font-size: 2.5em;
  color: #FFCC00; /* Accent color for section titles */
  margin-bottom: 40px;
  text-align: center;
  border-bottom: 2px solid #336699;
  padding-bottom: 15px;
}

.page-game-rules__sub-title {
  font-size: 1.8em;
  color: #336699; /* Primary brand color for sub-titles */
  margin-top: 40px;
  margin-bottom: 20px;
}

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

.page-game-rules__game-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-game-rules__game-type-item {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for cards */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
}

.page-game-rules__game-type-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-game-rules__game-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  max-width: 100%;
  display: block;
}

.page-game-rules__game-type-title {
  font-size: 1.6em;
  color: #FFCC00;
  margin-bottom: 15px;
}

.page-game-rules__list {
  list-style: disc inside;
  color: #f0f0f0;
  margin-left: 20px;
  padding-left: 0;
}

.page-game-rules__list li {
  margin-bottom: 10px;
  font-size: 1.05em;
}

.page-game-rules__list li strong {
  color: #336699;
}

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

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

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

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

@media (max-width: 768px) {
  .page-game-rules {
    font-size: 15px;
    line-height: 1.7;
  }

  .page-game-rules__hero-section {
    padding: 60px 15px;
  }

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

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

  .page-game-rules__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-game-rules__cta-button--large {
    padding: 15px 30px;
    font-size: 1.1em;
  }

  .page-game-rules__section {
    padding: 40px 15px;
  }

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

  .page-game-rules__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-game-rules__sub-title {
    font-size: 1.4em;
    margin-top: 30px;
    margin-bottom: 15px;
  }

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

  .page-game-rules__game-type-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-game-rules__game-image {
    height: 200px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-game-rules img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-game-rules__section,
  .page-game-rules__game-type-item,
  .page-game-rules__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}