.page-game-rules {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
}

.page-game-rules__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  overflow: hidden;
}

.page-game-rules__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  max-height: 500px; /* Limit hero image height */
}

.page-game-rules__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 40px 20px;
  background: rgba(17, 39, 27, 0.7); /* Card B G with transparency */
  border-radius: 10px;
  margin-top: 20px; /* Space from image if image is shorter */
}

.page-game-rules__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-game-rules__description {
  font-size: 1.1rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

.page-game-rules__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-game-rules__cta-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

.page-game-rules__section {
  padding: 60px 20px;
  text-align: center;
}

.page-game-rules__section--dark-bg {
  background-color: #11271B; /* Card B G */
}

.page-game-rules__section--deep-green-bg {
  background-color: #0A4B2C; /* Deep Green */
}

.page-game-rules__section--cta-bottom {
  padding-bottom: 80px;
}

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

.page-game-rules__container--center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-game-rules__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: #F2FFF6; /* Text Main */
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.3;
}

.page-game-rules__text-block {
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: justify;
}

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

.page-game-rules__card {
  background-color: #11271B; /* Card B G */
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E; /* Border */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-game-rules__card-title {
  font-size: 1.5rem;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-game-rules__card-text {
  font-size: 0.95rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-game-rules__card-button {
  display: inline-block;
  background-color: #22C768; /* Auxiliary Color */
  color: #08160F; /* Background color for contrast */
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  margin-top: auto; /* Push button to bottom */
}

.page-game-rules__card-button:hover {
  background-color: #57E38D; /* Glow */
}

.page-game-rules__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  object-fit: cover;
}

.page-game-rules__image-center {
  display: block;
  margin: 40px auto;
  max-width: 800px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

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

.page-game-rules__game-rule-item {
  background-color: #11271B; /* Card B G */
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E; /* Border */
  display: flex;
  flex-direction: column;
}

.page-game-rules__game-rule-title {
  font-size: 1.6rem;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  font-weight: 600;
}

.page-game-rules__list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-game-rules__list--bullet {
  list-style: disc;
  margin-left: 20px;
  text-align: left;
}

.page-game-rules__list-item {
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 10px;
}

.page-game-rules__list-item strong {
  color: #F2FFF6; /* Text Main */
}

.page-game-rules__game-rule-button {
  display: inline-block;
  background-color: #22C768; /* Auxiliary Color */
  color: #08160F; /* Background color for contrast */
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  margin-top: auto;
  align-self: flex-start;
}

.page-game-rules__game-rule-button:hover {
  background-color: #57E38D; /* Glow */
}

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

.page-game-rules__cta-button--primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
}

.page-game-rules__cta-button--secondary {
  background-color: #11271B; /* Card B G */
  color: #2AD16F;
  border: 1px solid #2AD16F;
}

.page-game-rules__cta-button--secondary:hover {
  background-color: #2AD16F;
  color: #F2FFF6;
}

.page-game-rules__cta-button--gold {
  background: #F2C14E; /* Gold */
  color: #08160F;
}

.page-game-rules__cta-button--gold:hover {
  background: #ffdb85;
}

.page-game-rules__faq-section {
  padding-bottom: 80px;
}

.page-game-rules__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-game-rules__faq-item {
  background-color: #11271B; /* Card B G */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-game-rules__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  background-color: #11271B; /* Card B G */
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-game-rules__faq-question:hover {
  background-color: #1E3A2A; /* Divider for hover */
}

.page-game-rules__faq-question::-webkit-details-marker {
  display: none;
}

.page-game-rules__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #2AD16F;
}

.page-game-rules__faq-answer {
  padding: 0 20px 20px;
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  text-align: justify;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-game-rules__hero-image {
    max-height: 400px;
  }
  .page-game-rules__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-game-rules__section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
  }
}

@media (max-width: 768px) {
  .page-game-rules {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-game-rules__hero-section {
    padding: 10px 15px 40px;
  }
  .page-game-rules__hero-image {
    max-height: 300px;
  }
  .page-game-rules__hero-content {
    padding: 30px 15px;
  }
  .page-game-rules__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-game-rules__description {
    font-size: 1rem;
  }
  .page-game-rules__cta-button,
  .page-game-rules__card-button,
  .page-game-rules__game-rule-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-game-rules__button-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column;
    gap: 10px;
  }
  .page-game-rules__section,
  .page-game-rules__card,
  .page-game-rules__container,
  .page-game-rules__game-rule-item,
  .page-game-rules__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-game-rules img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-game-rules__section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }
  .page-game-rules__card-title,
  .page-game-rules__game-rule-title {
    font-size: 1.3rem;
  }
  .page-game-rules__faq-question {
    font-size: 1rem;
  }
  .page-game-rules__faq-answer {
    font-size: 0.9rem;
  }
  .page-game-rules__hero-content {
    margin-top: 0; /* Remove margin-top on mobile */
  }
}