/* Base Styles */
.page-faq {
  font-family: 'Arial', sans-serif;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
  line-height: 1.6;
}

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

.page-faq__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #FFD36B; /* Glow color for titles */
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-faq__intro-text {
  font-size: 18px;
  text-align: center;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-faq__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  position: relative;
  margin-bottom: 40px; /* Space between image and content */
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

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

.page-faq__main-title {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 800;
  color: #FFF6D6; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-faq__description {
  font-size: 20px;
  margin-bottom: 40px;
  color: #FFF6D6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #111111; /* Dark text for bright button */
  border: none;
  box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
}

.page-faq__btn-primary:hover {
  background: linear-gradient(180deg, #DDA11D 0%, #FFD86A 100%);
  box-shadow: 0 6px 20px rgba(255, 211, 107, 0.6);
}

.page-faq__btn-secondary {
  background: #111111; /* Card B G */
  color: #FFD36B; /* Glow color */
  border: 2px solid #3A2A12; /* Border */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-faq__btn-secondary:hover {
  background: #3A2A12; /* Border color on hover */
  color: #FFF6D6; /* Text Main on hover */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
}

.page-faq__btn-small {
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 6px;
}

/* FAQ Overview Section */
.page-faq__faq-overview-section {
  padding: 80px 0;
  background-color: #0A0A0A;
}

.page-faq__image-content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
}

.page-faq__content-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  display: block;
}

.page-faq__text-content {
  flex: 1;
  max-width: 50%;
}

.page-faq__text-content p {
  margin-bottom: 20px;
  font-size: 17px;
  color: #FFF6D6;
}

/* FAQ Categories Section */
.page-faq__faq-categories {
  padding: 80px 0;
  background-color: #0A0A0A;
}

.page-faq__faq-category {
  margin-bottom: 60px;
}

.page-faq__category-title {
  font-size: 28px;
  font-weight: 700;
  color: #F2C14E; /* Main color */
  margin-bottom: 30px;
  text-align: center;
}

.page-faq__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

/* FAQ Item (Details/Summary) */
details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #3A2A12; /* Border */
  overflow: hidden;
  background: #111111; /* Card B G */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

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: rgba(255, 211, 107, 0.1);
  color: #FFD36B;
}

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

.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #FFD36B; /* Glow color */
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
}

details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 25px 20px;
  background: rgba(17, 17, 17, 0.8); /* Slightly transparent for depth */
  border-top: 1px solid #3A2A12;
  border-radius: 0 0 10px 10px;
  color: #FFF6D6;
}

.page-faq__faq-answer p {
  margin-bottom: 15px;
  font-size: 16px;
}

/* Responsible Gaming Section */
.page-faq__responsible-gaming-section {
  padding: 80px 0;
  background-color: #0A0A0A;
}

/* CTA Section */
.page-faq__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #0A0A0A;
}

.page-faq__cta-container {
  background: #111111; /* Card B G */
  border-radius: 15px;
  padding: 60px 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  max-width: 1000px;
}

.page-faq__cta-container .page-faq__section-title {
  color: #FFD36B;
  margin-bottom: 25px;
}

.page-faq__cta-container .page-faq__intro-text {
  color: #FFF6D6;
  margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-faq__container {
    padding: 15px;
  }

  .page-faq__hero-image-wrapper {
    max-height: 450px;
  }

  .page-faq__main-title {
    font-size: clamp(28px, 5vw, 48px);
  }

  .page-faq__description {
    font-size: 18px;
  }

  .page-faq__section-title {
    font-size: 32px;
  }

  .page-faq__intro-text {
    font-size: 16px;
  }

  .page-faq__image-content-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .page-faq__content-image,
  .page-faq__text-content {
    max-width: 100%;
  }

  .page-faq__faq-qtext {
    font-size: 17px;
  }

  .page-faq__faq-toggle {
    font-size: 26px;
    width: 28px;
  }

  .page-faq__faq-answer p {
    font-size: 15px;
  }

  .page-faq__cta-container {
    padding: 50px 30px;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-faq__hero-section {
    padding-top: 10px;
    padding-bottom: 40px;
  }

  .page-faq__hero-image-wrapper {
    max-height: 300px;
    margin-bottom: 30px;
  }

  .page-faq__hero-image {
    object-fit: contain !important; /* Mobile: prevent cropping */
    aspect-ratio: unset !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-faq__main-title {
    font-size: clamp(24px, 7vw, 40px);
    margin-bottom: 15px;
  }

  .page-faq__description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  /* Buttons and Button Containers */
  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
  }

  .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: 12px 20px;
    font-size: 16px;
  }

  .page-faq__btn-small {
    padding: 8px 15px;
    font-size: 14px;
  }

  /* General Images 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,
  .page-faq__image-content-wrapper,
  .page-faq__text-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Section Titles and Intro Text */
  .page-faq__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-faq__intro-text {
    font-size: 15px;
    margin-bottom: 25px;
  }

  .page-faq__faq-overview-section,
  .page-faq__faq-categories,
  .page-faq__responsible-gaming-section,
  .page-faq__cta-section {
    padding: 50px 0;
  }

  .page-faq__image-content-wrapper {
    margin-top: 30px;
    flex-direction: column;
  }

  .page-faq__content-image {
    max-width: 100%;
  }

  .page-faq__faq-category {
    margin-bottom: 40px;
  }

  .page-faq__category-title {
    font-size: 24px;
    margin-bottom: 25px;
  }

  details.page-faq__faq-item summary.page-faq__faq-question {
    padding: 15px 20px;
  }

  .page-faq__faq-qtext {
    font-size: 16px;
  }

  .page-faq__faq-toggle {
    font-size: 24px;
    width: 24px;
    margin-left: 15px;
  }

  details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 20px 15px;
  }

  .page-faq__faq-answer p {
    font-size: 14px;
  }

  .page-faq__cta-container {
    padding: 40px 20px;
  }

  .page-faq__cta-container .page-faq__section-title {
    font-size: 26px;
    margin-bottom: 20px;
  }

  .page-faq__cta-container .page-faq__intro-text {
    font-size: 15px;
    margin-bottom: 30px;
  }
}