/* style/game-rules.css */

/* Base styles for page-game-rules */
.page-game-rules {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

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

.page-game-rules__section {
  padding: 40px 0;
  text-align: center;
}

.page-game-rules__dark-bg {
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-game-rules__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-game-rules__heading {
  font-size: clamp(1.8rem, 2.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 30px;
  color: #26A9E0;
  line-height: 1.2;
}

.page-game-rules__sub-heading {
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-game-rules__text-block p {
  margin-bottom: 15px;
  font-size: 1rem;
}

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

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

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

.page-game-rules__hero-content {
  max-width: 900px;
  padding: 0 20px;
  text-align: center;
  z-index: 1;
}

.page-game-rules__main-title {
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.1;
}

.page-game-rules__description {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-game-rules__btn-primary,
.page-game-rules__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  margin: 10px;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-rules__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-game-rules__btn-primary:hover {
  background-color: #1a8cc4;
  border-color: #1a8cc4;
}

.page-game-rules__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-game-rules__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1a8cc4;
  border-color: #1a8cc4;
}

/* Specific content sections */
.page-game-rules__general-principles .page-game-rules__text-block,
.page-game-rules__specific-rules .page-game-rules__text-block,
.page-game-rules__account-transactions .page-game-rules__text-block,
.page-game-rules__fairness-security .page-game-rules__text-block,
.page-game-rules__dispute-support .page-game-rules__text-block {
  text-align: left;
}

.page-game-rules__general-principles .page-game-rules__heading,
.page-game-rules__account-transactions .page-game-rules__heading,
.page-game-rules__dispute-support .page-game-rules__heading,
.page-game-rules__conclusion .page-game-rules__heading {
  color: #26A9E0;
}

.page-game-rules__specific-rules .page-game-rules__heading,
.page-game-rules__fairness-security .page-game-rules__heading,
.page-game-rules__faq-section .page-game-rules__heading {
  color: #ffffff;
}

/* FAQ Section */
.page-game-rules__faq-list {
  margin-top: 30px;
  text-align: left;
}

.page-game-rules__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-game-rules__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  color: #ffffff;
  list-style: none;
}

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

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

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

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

.page-game-rules__faq-answer {
  padding: 0 20px 15px;
  font-size: 0.95rem;
  color: #f0f0f0;
  line-height: 1.5;
}

.page-game-rules__faq-answer p {
  margin-bottom: 10px;
}

/* Conclusion Section */
.page-game-rules__conclusion .page-game-rules__text-block {
  max-width: 900px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
}

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

  .page-game-rules__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-game-rules__section {
    padding: 30px 0;
  }

  .page-game-rules__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-game-rules__hero-image {
    max-height: 300px;
    margin-bottom: 20px;
  }

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

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

  .page-game-rules__heading {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }

  .page-game-rules__sub-heading {
    font-size: 1.5rem;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-game-rules__image {
    margin: 20px auto;
  }

  /* Images and their containers */
  .page-game-rules img {
    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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons and their containers */
  .page-game-rules__cta-button,
  .page-game-rules__btn-primary,
  .page-game-rules__btn-secondary,
  .page-game-rules a[class*="button"],
  .page-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;
    margin: 10px 0 !important; /* Adjust margin for vertical stacking */
  }
  .page-game-rules__cta-buttons,
  .page-game-rules__button-group,
  .page-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;
    display: flex;
    flex-direction: column;
  }

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

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