/* style/game-rules.css */
.page-game-rules {
  background-color: #08160F; /* Nền chính của trang */
  color: #F2FFF6; /* Màu chữ chính */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-game-rules__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* body đã có padding-top, chỉ cần top-spacing nhỏ */
  text-align: center;
  background-color: #08160F;
  overflow: hidden;
}

.page-game-rules__hero-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 30px;
}

.page-game-rules__hero-content {
  max-width: 900px;
  margin: 0 auto;
  z-index: 1;
  position: relative;
  text-align: center;
}

.page-game-rules__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-game-rules__intro-text {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

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

.page-game-rules__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 255, 100, 0.5);
}

.page-game-rules__content-section {
  padding: 80px 20px;
  background-color: #08160F;
  color: #F2FFF6;
}

.page-game-rules__dark-section {
  background-color: #11271B; /* Card BG */
  color: #F2FFF6;
}

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

.page-game-rules__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #F2C14E; /* Gold */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-game-rules__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #57E38D; /* Glow */
  border-radius: 2px;
}

.page-game-rules__sub-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: #57E38D; /* Glow */
  margin-top: 40px;
  margin-bottom: 20px;
  line-height: 1.3;
}

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

.page-game-rules__paragraph a {
  color: #57E38D;
  text-decoration: underline;
}

.page-game-rules__list {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #A7D9B8;
}

.page-game-rules__list-item {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

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

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

.page-game-rules__faq-item {
  background-color: #0A4B2C; /* Deep Green */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-game-rules__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #1E3A2A; /* Divider */
  color: #F2FFF6;
  font-weight: 600;
  font-size: 1.15rem;
  transition: background-color 0.3s ease;
}

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

.page-game-rules__faq-item summary:hover {
  background-color: #2E7A4E;
}

.page-game-rules__faq-item[open] summary {
  background-color: #2E7A4E;
}

.page-game-rules__faq-qtext {
  flex-grow: 1;
}

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

.page-game-rules__faq-item[open] .page-game-rules__faq-toggle {
  content: '−';
}

.page-game-rules__faq-answer {
  padding: 0 25px 20px;
  color: #A7D9B8;
  font-size: 1rem;
  line-height: 1.5;
}

.page-game-rules__faq-answer p {
  margin-top: 15px;
  margin-bottom: 0;
}

.page-game-rules__cta-section {
  text-align: center;
  padding: 80px 20px;
  background-color: #11271B; /* Card BG */
}

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

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

.page-game-rules__btn-secondary {
  background: #0A4B2C; /* Deep Green */
  color: #F2FFF6;
  border: 2px solid #2AD16F;
}

.page-game-rules__btn-secondary:hover {
  background: #13994A;
  border-color: #13994A;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-game-rules__hero-section {
    padding: 40px 15px;
  }

  .page-game-rules__section-title {
    margin-bottom: 30px;
  }

  .page-game-rules__sub-title {
    margin-top: 30px;
  }

  .page-game-rules__content-section, .page-game-rules__cta-section {
    padding: 60px 15px;
  }
}

@media (max-width: 768px) {
  .page-game-rules__hero-section {
    padding: 30px 15px;
    padding-top: 10px !important;
  }

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

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

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

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

  .page-game-rules__sub-title {
    font-size: clamp(1.3rem, 5vw, 1.7rem);
    margin-top: 25px;
    margin-bottom: 15px;
  }

  .page-game-rules__paragraph, .page-game-rules__list-item {
    font-size: 1rem;
  }

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

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

  .page-game-rules__button-group {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Image and Video responsiveness */
  .page-game-rules img,
  .page-game-rules video,
  .page-game-rules__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-game-rules__section,
  .page-game-rules__card,
  .page-game-rules__container,
  .page-game-rules__video-section,
  .page-game-rules__video-container,
  .page-game-rules__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
}