/* style/game-rules.css */
.page-game-rules {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF; /* Default body background */
}

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

.page-game-rules__hero-section {
  position: relative;
  padding: 80px 0 60px; /* Adjust padding for desktop */
  color: #ffffff;
  text-align: center;
  background-color: #26A9E0; /* Brand primary color */
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-game-rules__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-game-rules__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px;
  color: #ffffff;
}

.page-game-rules__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px; /* Max width for video */
  margin: 30px auto;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-game-rules__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer;
}

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

.page-game-rules__btn-primary,
.page-game-rules__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-rules__btn-primary {
  background-color: #EA7C07; /* Login color for primary CTA */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

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

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

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

.page-game-rules__section-title {
  font-size: 2.5em;
  color: #26A9E0; /* Brand primary color */
  margin-bottom: 30px;
  text-align: center;
}

.page-game-rules__sub-title {
  font-size: 1.8em;
  color: #000000; /* Black for strong contrast */
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-game-rules__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #333333;
}

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

.page-game-rules__list-item {
  margin-bottom: 10px;
  color: #333333;
}

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

.page-game-rules__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.page-game-rules__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #26A9E0; /* Brand primary color */
  cursor: pointer;
  background-color: #eaf7ff; /* Lighter shade of primary for contrast */
  border-bottom: 1px solid #e0e0e0;
  list-style: none; /* Remove default marker for details summary */
}

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

.page-game-rules__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

.page-game-rules__faq-item[open] .page-game-rules__faq-toggle {
  transform: rotate(45deg);
}

.page-game-rules__faq-answer {
  padding: 20px 25px;
  font-size: 1.1em;
  color: #333333;
  background-color: #ffffff;
}

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

.page-game-rules__cta-buttons--bottom {
  margin-top: 60px;
}

/* Image specific styles */
.page-game-rules img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto; /* Center images */
  border-radius: 8px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-game-rules__hero-title {
    font-size: 2.8em;
  }
  .page-game-rules__section-title {
    font-size: 2em;
  }
  .page-game-rules__sub-title {
    font-size: 1.5em;
  }
}

@media (max-width: 768px) {
  .page-game-rules__hero-section {
    padding: 60px 20px 40px; /* Adjust padding for mobile */
    padding-top: var(--header-offset, 120px) !important; /* Ensure offset on mobile */
  }
  .page-game-rules__hero-title {
    font-size: 2em;
  }
  .page-game-rules__hero-description {
    font-size: 1em;
  }
  .page-game-rules__section-title {
    font-size: 1.8em;
  }
  .page-game-rules__sub-title {
    font-size: 1.3em;
  }
  .page-game-rules__paragraph,
  .page-game-rules__list-item,
  .page-game-rules__faq-answer p {
    font-size: 1em;
  }
  .page-game-rules__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-game-rules__btn-primary,
  .page-game-rules__btn-secondary {
    width: 100%;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-game-rules__container {
    padding: 0 15px;
  }
  .page-game-rules img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-game-rules__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }
  .page-game-rules__video {
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
    box-sizing: border-box !important;
  }
  /* Content area images should not be smaller than 200px. The max-width:100% ensures they scale down */
  .page-game-rules__content-area img {
    min-width: 200px; /* Enforce minimum size if not scaled down by max-width */
    min-height: 200px;
  }
  .page-game-rules__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-game-rules__faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-game-rules__hero-title {
    font-size: 1.8em;
  }
  .page-game-rules__section-title {
    font-size: 1.6em;
  }
}