/* style/game-rules.css */

/* BEM Naming Convention: page-game-rules__element-name */
/* Colors: #11A84E (main), #22C768 (aux), #F2FFF6 (text main), #A7D9B8 (text secondary), #11271B (card bg), #08160F (bg), linear-gradient(180deg, #2AD16F 0%, #13994A 100%) (button) */

.page-game-rules {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main, #F2FFF6); /* Default text color for the page */
  background-color: var(--background-color, #08160F); /* Page background from shared */
  padding: 0;
  margin: 0;
}

.page-game-rules__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  margin-bottom: 40px;
}

.page-game-rules__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 500px; /* Fixed height for desktop hero image */
  overflow: hidden;
}

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

.page-game-rules__hero-content {
  position: relative;
  z-index: 10;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -150px; /* Overlap image slightly for visual effect */
  background: var(--card-bg, #11271B);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-game-rules__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--gold, #F2C14E);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.6);
}

.page-game-rules__description {
  font-size: 1.1rem;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-rules__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

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

.page-game-rules__section {
  padding: 60px 0;
  margin-bottom: 20px;
}

.page-game-rules__introduction-section {
  background-color: var(--deep-green, #0A4B2C);
}

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

.page-game-rules__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold, #F2C14E);
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

.page-game-rules__text-block {
  font-size: 1rem;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 20px;
  line-height: 1.8;
}

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

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

.page-game-rules__list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1rem;
  color: var(--text-main, #F2FFF6);
}

.page-game-rules__list-item::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--main-color, #11A84E);
  font-weight: bold;
  font-size: 1.2rem;
  line-height: 1;
}

.page-game-rules__specific-rules-section {
  background-color: var(--background-color, #08160F);
}

.page-game-rules__game-type-card {
  background: var(--card-bg, #11271B);
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-game-rules__game-type-title {
  font-size: 1.8rem;
  color: var(--glow, #57E38D);
  margin-top: 20px;
  margin-bottom: 15px;
  text-align: center;
}

.page-game-rules__sub-list {
  list-style: disc;
  padding-left: 25px;
  margin-top: 15px;
  color: var(--text-secondary, #A7D9B8);
}

.page-game-rules__sub-list .page-game-rules__list-item {
  padding-left: 0;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.page-game-rules__sub-list .page-game-rules__list-item::before {
  content: none;
}

.page-game-rules__fair-play-section {
  background-color: var(--deep-green, #0A4B2C);
}

.page-game-rules__faq-section {
  background-color: var(--background-color, #08160F);
}

.page-game-rules__faq-list {
  margin-top: 30px;
}

.page-game-rules__faq-item {
  background: var(--card-bg, #11271B);
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-game-rules__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--text-main, #F2FFF6);
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-game-rules__faq-question:hover {
  background-color: rgba(var(--main-color-rgb, 17, 168, 78), 0.1);
}

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

.page-game-rules__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--main-color, #11A84E);
  margin-left: 15px;
}

.page-game-rules__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: var(--text-secondary, #A7D9B8);
  line-height: 1.7;
}

/* Ensure details summary does not have default marker */
.page-game-rules__faq-item summary {
  list-style: none;
}

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

.page-game-rules__cta-section {
  text-align: center;
  padding: 80px 0;
  background-color: var(--deep-green, #0A4B2C);
  position: relative;
  overflow: hidden;
}

.page-game-rules__cta-content {
  position: relative;
  z-index: 2;
}

.page-game-rules__cta-button--large {
  padding: 18px 40px;
  font-size: 1.25rem;
  margin-top: 30px;
}

.page-game-rules__cta-image {
  position: absolute;
  bottom: -50px;
  right: -50px;
  opacity: 0.2;
  max-width: 500px;
  width: 100%;
  height: auto;
  z-index: 1;
  transform: rotate(15deg);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-game-rules__hero-image-wrapper {
    height: 400px;
  }

  .page-game-rules__hero-content {
    margin-top: -100px;
    padding: 30px 15px;
  }

  .page-game-rules__main-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
  }

  .page-game-rules__section-title {
    font-size: 2rem;
  }

  .page-game-rules__description,
  .page-game-rules__text-block,
  .page-game-rules__list-item,
  .page-game-rules__faq-question,
  .page-game-rules__faq-answer p {
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  /* Mobile image responsiveness */
  .page-game-rules img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-game-rules__section,
  .page-game-rules__container,
  .page-game-rules__game-type-card,
  .page-game-rules__hero-section,
  .page-game-rules__hero-image-wrapper,
  .page-game-rules__hero-content,
  .page-game-rules__faq-item,
  .page-game-rules__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-game-rules__hero-section {
    padding-top: 10px !important; /* body handles --header-offset */
  }

  .page-game-rules__hero-image-wrapper {
    height: 300px;
  }

  .page-game-rules__hero-content {
    margin-top: -80px;
    padding: 25px 15px;
  }

  .page-game-rules__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

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

  .page-game-rules__description,
  .page-game-rules__text-block,
  .page-game-rules__list-item,
  .page-game-rules__faq-question,
  .page-game-rules__faq-answer p {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-game-rules__cta-button,
  .page-game-rules__cta-button--large {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 15px 20px !important;
    font-size: 1rem !important;
  }

  .page-game-rules__cta-image {
    position: static;
    transform: none;
    opacity: 0.3;
    margin-top: 30px;
  }

  .page-game-rules__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }

  .page-game-rules__faq-answer {
    padding: 0 20px 15px;
  }
}