/* style/pc28-game-rules.css */

:root {
  --main-color: #11A84E;
  --aux-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --body-bg: #08160F; /* Assuming this is the body background from shared.css */
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green: #0A4B2C;
}

/* Base styles for the page content, assuming a dark body background */
.page-pc28-game-rules {
  color: var(--text-main); /* Light text for dark background */
  background-color: var(--body-bg); /* Ensure main content area matches body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 40px; /* Add some padding at the bottom for spacing */
}

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

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

.page-pc28-game-rules__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.page-pc28-game-rules__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-pc28-game-rules__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  color: var(--text-main);
}

.page-pc28-game-rules__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--gold-color);
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.6);
}

.page-pc28-game-rules__intro-text {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 30px;
  color: var(--text-secondary);
}

.page-pc28-game-rules__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: var(--button-gradient);
  color: var(--text-main);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-pc28-game-rules__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-pc28-game-rules__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--gold-color);
  position: relative;
  padding-bottom: 10px;
}

.page-pc28-game-rules__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--main-color);
  border-radius: 2px;
}

.page-pc28-game-rules__content-section {
  padding: 60px 0;
}

.page-pc28-game-rules__dark-bg {
  background-color: var(--body-bg);
  color: var(--text-main);
}

.page-pc28-game-rules__light-bg {
  background-color: #0A2215; /* A slightly lighter dark green for contrast */
  color: var(--text-main);
}

.page-pc28-game-rules__text-main-dark {
  color: var(--text-secondary);
}

.page-pc28-game-rules__text-deep-green {
  color: var(--gold-color);
}

.page-pc28-game-rules__paragraph {
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-align: justify;
  color: var(--text-secondary);
}

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

.page-pc28-game-rules__image-center {
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  max-width: 100%; /* Ensure responsiveness */
  height: auto;
}

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

.page-pc28-game-rules__list-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  color: var(--text-main);
}

.page-pc28-game-rules__list-title {
  font-size: 1.5rem;
  color: var(--gold-color);
  margin-top: 0;
  margin-bottom: 15px;
}

.page-pc28-game-rules__sub-list {
  list-style: disc;
  margin-left: 20px;
  color: var(--text-secondary);
}

.page-pc28-game-rules__sub-list-item {
  margin-bottom: 10px;
}

.page-pc28-game-rules__faq-section {
  padding: 60px 0;
}

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

.page-pc28-game-rules__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-pc28-game-rules__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gold-color);
  cursor: pointer;
  background-color: var(--deep-green);
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-pc28-game-rules__faq-question:hover {
  background-color: #0C5835; /* Slightly lighter deep green */
}

.page-pc28-game-rules__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
}

.page-pc28-game-rules__faq-answer {
  padding: 20px 25px;
  font-size: 1.05rem;
  color: var(--text-secondary);
  text-align: justify;
  background-color: var(--card-bg);
}

/* Details element specific styling */
.page-pc28-game-rules__faq-item[open] .page-pc28-game-rules__faq-question {
  border-bottom: 1px solid var(--divider-color);
}

/* --- Responsive Styles --- */

/* All images basic responsive styles */
.page-pc28-game-rules img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* All buttons basic responsive styles */
.page-pc28-game-rules__btn-primary,
.page-pc28-game-rules a[class*="button"],
.page-pc28-game-rules a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

/* Button container basic responsive styles */
.page-pc28-game-rules__cta-buttons,
.page-pc28-game-rules__button-group,
.page-pc28-game-rules__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Desktop video container width (if any video was present, for __video-container) */
/* .page-pc28-game-rules__video-container { width: 100%; max-width: 1200px; } */

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

  .page-pc28-game-rules__hero-section {
    padding: 10px 0 40px 0;
  }

  .page-pc28-game-rules__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .page-pc28-game-rules__intro-text {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
  }

  .page-pc28-game-rules__section-title {
    font-size: clamp(1.8rem, 6vw, 2.2rem);
    margin-bottom: 30px;
  }

  .page-pc28-game-rules__paragraph {
    font-size: 1rem;
  }

  .page-pc28-game-rules__list-title {
    font-size: 1.3rem;
  }

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

  .page-pc28-game-rules__faq-answer {
    font-size: 0.95rem;
    padding: 15px 20px;
  }

  /* Mobile image forced adaptation */
  .page-pc28-game-rules img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-pc28-game-rules__content-section,
  .page-pc28-game-rules__faq-section,
  .page-pc28-game-rules__hero-section {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
  }

  /* Mobile button forced adaptation */
  .page-pc28-game-rules__btn-primary,
  .page-pc28-game-rules a[class*="button"],
  .page-pc28-game-rules a[class*="btn"] {
    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-pc28-game-rules__cta-buttons,
  .page-pc28-game-rules__button-group,
  .page-pc28-game-rules__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-pc28-game-rules__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}