.page-faq__hero-section {
  padding-top: 10px; /* Consistent small top padding */
  background: var(--primary-color); /* Brand primary color */
  color: var(--secondary-color);
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding-bottom: 40px;
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-height: 400px; /* Limit height of image wrapper */
  overflow: hidden;
  position: relative;
  margin-bottom: 20px;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Cover for desktop to fill space */
  object-position: center;
  max-height: 400px;
}

.page-faq__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-faq__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.page-faq__hero-description {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--secondary-color);
  opacity: 0.9;
}

.page-faq__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 180px;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary {
  background-color: var(--auxiliary-color-login, #EA7C07);
  color: var(--secondary-color);
  border: 2px solid var(--auxiliary-color-login, #EA7C07);
}

.page-faq__btn-primary:hover {
  background-color: darken(#EA7C07, 10%);
  border-color: darken(#EA7C07, 10%);
}

.page-faq__btn-secondary {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.page-faq__btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.page-faq__faq-list-section {
  padding: 60px 0;
  background: var(--background-color, #FFFFFF);
  color: #333333; /* Dark text on light background */
}

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

.page-faq__section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.page-faq__section-description {
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #555555;
}

.page-faq__faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 30px;
}

.page-faq__category-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  margin-bottom: 25px;
  color: #333333;
  text-align: left;
}

details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

details.page-faq__faq-item summary.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  position: relative;
}

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

details.page-faq__faq-item summary.page-faq__faq-question:hover {
  background: #f5f5f5;
}

.page-faq__faq-qtext {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}

.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
  line-height: 1;
}

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

details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-top: 1px solid #eee;
  border-radius: 0 0 8px 8px;
  line-height: 1.7;
  font-size: 15px;
  color: #444444;
}

.page-faq__faq-answer p {
  margin-bottom: 1em;
}

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

.page-faq__faq-illustration {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 20px;
  border-radius: 8px;
  object-fit: contain;
  max-width: 100%;
}

.page-faq__responsible-gaming-section {
  margin-top: 60px;
}

.page-faq__cta-section {
  background: var(--primary-color);
  color: var(--secondary-color);
  padding: 80px 0;
  text-align: center;
}

.page-faq__cta-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.page-faq__cta-description {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 40px auto;
  color: var(--secondary-color);
  opacity: 0.9;
}

.page-faq__btn-large {
  padding: 15px 35px;
  font-size: 1.2rem;
  min-width: 220px;
}

@media (max-width: 1024px) {
  .page-faq__faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 849px) {
  .page-faq__hero-image {
    object-fit: contain !important; /* Prevent cropping on smaller screens */
    aspect-ratio: unset !important;
    max-height: 300px;
  }
  .page-faq__hero-image-wrapper {
    max-height: 300px;
  }
  .page-faq__hero-section {
    min-height: auto;
    padding-bottom: 30px;
  }
  .page-faq__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-faq__hero-description {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-faq__hero-section {
    padding-top: 10px; /* Small top padding */
    padding-left: 15px;
    padding-right: 15px;
    padding-bottom: 20px;
  }
  .page-faq__hero-image-wrapper {
    max-height: 250px;
  }
  .page-faq__hero-image {
    max-height: 250px;
    object-fit: contain !important; /* Ensure image is fully visible */
    aspect-ratio: unset !important;
  }
  .page-faq__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 15px;
  }
  .page-faq__hero-description {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }
  .page-faq__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 10px;
  }
  
  /* 按钮与按钮容器 */
  .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: 15px;
    padding-right: 15px;
    min-width: unset;
  }
  .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 {
    display: flex;
    flex-direction: column;
  }

  /* 通用图片与容器 */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important; /* Ensure content images are fully visible */
  }
  .page-faq__container,
  .page-faq__section,
  .page-faq__box {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  /* FAQ list and items */
  .page-faq__faq-list-section {
    padding: 40px 0;
  }
  .page-faq__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    margin-bottom: 15px;
  }
  .page-faq__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }
  .page-faq__faq-category {
    padding: 0;
  }
  .page-faq__category-title {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
    margin-bottom: 20px;
    text-align: center;
  }
  details.page-faq__faq-item summary.page-faq__faq-question {
    padding: 15px;
  }
  .page-faq__faq-qtext {
    font-size: 16px;
  }
  .page-faq__faq-toggle {
    font-size: 24px;
    width: 25px;
    margin-left: 10px;
  }
  details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 15px 15px;
    font-size: 14px;
  }
  .page-faq__faq-illustration {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* CTA Section */
  .page-faq__cta-section {
    padding: 50px 15px;
  }
  .page-faq__cta-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 15px;
  }
  .page-faq__cta-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }
  .page-faq__btn-large {
    padding: 12px 25px;
    font-size: 1.1rem;
    min-width: unset;
    width: 100%;
    max-width: 100%;
  }
}