/* style/game-rules.css */

/* Base styles */
.page-game-rules {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #FFFFFF);
}

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

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

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

.page-game-rules__dark-section {
  background-color: #26A9E0; /* Primary brand color */
  color: #ffffff;
}

.page-game-rules__dark-section .page-game-rules__section-title,
.page-game-rules__dark-section .page-game-rules__sub-title,
.page-game-rules__dark-section .page-game-rules__heading-4 {
  color: #ffffff;
}

.page-game-rules__section-title {
  font-size: 2.5em;
  margin-bottom: 40px;
  font-weight: bold;
  color: #26A9E0;
}

.page-game-rules__sub-title {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
  color: #26A9E0;
}

.page-game-rules__heading-4 {
  font-size: 1.3em;
  margin-top: 20px;
  margin-bottom: 10px;
  font-weight: bold;
  color: #26A9E0;
}

.page-game-rules__content-area {
  text-align: left;
  font-size: 1.1em;
  line-height: 1.7;
}

.page-game-rules__content-area p {
  margin-bottom: 15px;
}

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

.page-game-rules__hero-video-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  margin-bottom: 30px;
}

.page-game-rules__hero-video {
  width: 100%;
  height: auto;
  display: block;
}

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

.page-game-rules__main-title {
  font-size: 2.8em;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.page-game-rules__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

/* Buttons */
.page-game-rules__btn-primary,
.page-game-rules__btn-secondary,
.page-game-rules__btn-link {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

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

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

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

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

.page-game-rules__btn-link {
  background: none;
  color: #ffffff;
  border: 2px solid #ffffff;
  padding: 10px 20px;
  font-size: 0.95em;
}

.page-game-rules__btn-link:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

/* Grid for game rules */
.page-game-rules__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-game-rules__grid-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  color: #ffffff;
  display: flex;
  flex-direction: column;
}

.page-game-rules__grid-item .page-game-rules__sub-title {
  color: #ffffff;
  margin-top: 15px;
  margin-bottom: 10px;
}

.page-game-rules__grid-item .page-game-rules__heading-4 {
  color: #ffffff;
  margin-top: 15px;
  margin-bottom: 5px;
}

.page-game-rules__grid-item p {
  font-size: 1em;
}

.page-game-rules__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.page-game-rules__image--center {
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Section */
.page-game-rules__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
  text-align: left;
}

.page-game-rules__faq-item {
  background-color: rgba(255, 255, 255, 0.15);
  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: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.page-game-rules__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

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

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

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

.page-game-rules__faq-answer {
  padding: 15px 25px;
  font-size: 1em;
  line-height: 1.6;
  background-color: rgba(255, 255, 255, 0.1);
}

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

.page-game-rules__faq-item summary {
  list-style: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-game-rules__main-title {
    font-size: 2em !important;
  }

  .page-game-rules__description {
    font-size: 1em !important;
  }

  .page-game-rules__section-title {
    font-size: 2em !important;
  }

  .page-game-rules__sub-title {
    font-size: 1.5em !important;
  }

  .page-game-rules__heading-4 {
    font-size: 1.1em !important;
  }

  .page-game-rules__section {
    padding: 40px 0 !important;
  }

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

  /* Images responsive */
  .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,
  .page-game-rules__grid-item,
  .page-game-rules__content-area {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow-x: hidden !important;
  }

  /* Video responsive */
  .page-game-rules video,
  .page-game-rules__video,
  .page-game-rules__hero-video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-game-rules__hero-video-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 !important;
    padding-right: 15px !important;
    overflow: hidden !important;
  }

  .page-game-rules__hero-section {
    padding-top: 10px !important;
  }
  
  /* Buttons responsive */
  .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 !important;
    padding-right: 15px !important;
  }
  
  .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 !important;
    padding-right: 15px !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  .page-game-rules__grid {
    grid-template-columns: 1fr;
  }

  .page-game-rules__grid-item {
    padding: 20px;
  }

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

  .page-game-rules__faq-answer {
    padding: 10px 20px !important;
  }
}