.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #F5F7FA; /* Page background color */
}

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  text-align: center;
  padding: 0 20px 40px; /* Small top padding, more bottom padding for content below image */
  background-color: #E53935; /* Brand color for hero background */
  color: #ffffff;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  max-width: 1920px; /* Max width for the image */
  display: block;
  object-fit: cover;
  margin-bottom: 20px; /* Space between image and content */
}

.page-faq__hero-content {
  position: relative; /* Ensure content is not absolutely positioned over image */
  max-width: 800px;
  padding: 0 15px;
  z-index: 1;
}

.page-faq__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #ffffff; /* White text on red background */
}

.page-faq__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0; /* Slightly off-white for contrast */
}

/* Sections */
.page-faq__section {
  padding: 40px 0;
  background-color: #ffffff; /* Default section background */
  margin-bottom: 20px;
}

.page-faq__section:nth-of-type(even) {
  background-color: #F5F7FA; /* Alternate background for visual separation */
}

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

.page-faq__section-title {
  font-size: 2.2em;
  color: #E53935; /* Main brand color for titles */
  text-align: center;
  margin-bottom: 30px;
  font-weight: 600;
}

.page-faq__text-block {
  font-size: 1em;
  margin-bottom: 20px;
  color: #333333;
}

/* FAQ Items */
.page-faq__faq-list {
  padding-bottom: 60px;
}

.page-faq__faq-item {
  background-color: #FFFFFF;
  border: 1px solid #E0E0E0; /* Border for cards */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #fcfcfc;
  transition: background-color 0.3s ease;
  user-select: none; /* Prevent text selection on click */
}

.page-faq__faq-question:hover {
  background-color: #f0f0f0;
}

.page-faq__faq-qtext {
  flex-grow: 1;
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #E53935;
}

/* For <details> element */
.page-faq__faq-item[open] .page-faq__faq-question {
  background-color: #E53935;
  color: #ffffff;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  color: #ffffff;
}

/* For <details> element, hide default marker */
.page-faq__faq-item summary {
  list-style: none;
}

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

.page-faq__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: #555555;
  border-top: 1px solid #E0E0E0;
  background-color: #ffffff;
}

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

.page-faq__faq-answer p:last-child {
  margin-bottom: 0;
}

/* Images within content */
.page-faq__image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  max-width: 800px; /* Content images max width */
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Buttons */
.page-faq__cta-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-faq__cta-button--primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
}

.page-faq__cta-button--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.page-faq__cta-button--secondary {
  background-color: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
  /* margin-left: 15px; Rely on gap from parent */
}

.page-faq__cta-button--secondary:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.page-faq__cta-button--tertiary {
  background-color: transparent;
  color: #E53935;
  border: 1px solid #E53935;
  margin-top: 15px; /* For links inside answers */
}

.page-faq__cta-button--tertiary:hover {
  background-color: rgba(229, 57, 53, 0.1);
}

.page-faq__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%; /* Ensure container takes full width */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-faq__game-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.page-faq__game-link {
  display: inline-block;
  padding: 8px 15px;
  background-color: #f0f0f0;
  color: #E53935;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.9em;
  border: 1px solid #E0E0E0;
  transition: background-color 0.3s ease;
}

.page-faq__game-link:hover {
  background-color: #E53935;
  color: #ffffff;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }
}

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

  .page-faq__hero-section {
    padding: 0 15px 30px;
  }

  .page-faq__hero-image {
    margin-bottom: 15px;
  }

  .page-faq__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em);
    margin-bottom: 10px;
  }

  .page-faq__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-faq__section {
    padding: 30px 0;
  }

  .page-faq__container {
    padding: 0 15px;
  }

  .page-faq__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-faq__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-faq__faq-answer {
    padding: 10px 20px 15px;
  }

  .page-faq__image {
    margin: 20px auto;
  }

  .page-faq__cta-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }

  .page-faq__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px;
  }

  /* Force responsive for images, videos, buttons and containers */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-faq__section,
  .page-faq__card,
  .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-faq__hero-section {
    padding-top: 10px !important; /* body already has --header-offset, small padding here */
  }

  /* Video responsive styles (if any video is added) */
  .page-faq video,
  .page-faq__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-faq__video-section,
  .page-faq__video-container,
  .page-faq__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-faq__video-section {
    padding-top: 10px !important;
  }
  
  .page-faq__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Button responsive styles */
  .page-faq__cta-button,
  .page-faq__btn-primary,
  .page-faq__btn-secondary,
  .page-faq a[class*="button"],
  .page-faq 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 and padding-right are already part of container */
  }
  
  .page-faq__cta-buttons,
  .page-faq__button-group,
  .page-faq__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-faq__cta-buttons {
    flex-direction: column !important; /* Ensure vertical stacking */
  }
}