/* Base styles for the FAQ page */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #f8f8f8; /* A light grey background for the page content */
}

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

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

.page-faq__grey-bg {
  background-color: #f0f0f0;
}

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, assuming body handles --header-offset */
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-faq__hero-image {
  width: 100%;
  height: 450px; /* Fixed height for desktop hero image container */
  overflow: hidden;
  position: relative;
}

.page-faq__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cover the container */
  display: block;
}

.page-faq__hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 15px;
  max-width: 900px;
}

.page-faq__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Responsive font size */
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

.page-faq__hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #ffffff;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Buttons */
.page-faq__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  margin-top: 30px;
}

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

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

.page-faq__btn-primary:hover {
  background-color: #d46a00;
  border-color: #d46a00;
}

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

.page-faq__btn-secondary:hover {
  background-color: #e0e0e0;
  border-color: #e0e0e0;
}

/* Section Titles */
.page-faq__section-title {
  font-size: clamp(24px, 3vw, 36px); /* Responsive font size */
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
}

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

/* FAQ Item styles (from prompt) */
details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 8px; /* Slightly larger radius */
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Subtle shadow */
}
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;
}
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; /* Slightly larger font */
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333; /* Ensure contrast */
}
.page-faq__faq-toggle {
  font-size: 26px; /* Slightly larger icon */
  font-weight: bold;
  color: #26A9E0; /* Brand color for toggle */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px; /* Slightly larger width */
  text-align: center;
}
details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px; /* Match item radius */
  color: #555555; /* Slightly lighter text for answer */
}
.page-faq__faq-answer p {
  margin: 0;
  padding: 0;
}

/* Inline Image styles */
.page-faq__image-inline {
  width: 100%;
  height: auto;
  margin-top: 20px;
  border-radius: 8px;
  display: block;
}

/* CTA Section at the bottom */
.page-faq__cta-section {
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
  padding: 60px 15px;
  text-align: center;
}

.page-faq__cta-title {
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-faq__cta-description {
  font-size: 18px;
  margin-bottom: 40px;
  color: #ffffff;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-faq__hero-image {
    height: 350px;
  }
}

@media (max-width: 768px) {
  /* General mobile adjustments */
  .page-faq__container {
    padding: 15px;
  }
  .page-faq__section {
    padding: 30px 0;
  }

  /* HERO 主图区域 */
  .page-faq__hero-section {
    padding-top: 10px;
  }
  .page-faq__hero-image {
    height: 250px;
  }
  .page-faq__hero-image img {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-faq__hero-content {
    padding: 30px 15px;
  }
  .page-faq__main-title {
    font-size: clamp(24px, 6vw, 36px);
    margin-bottom: 15px;
  }
  .page-faq__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  /* 按钮与按钮容器 */
  .page-faq__cta-buttons {
    flex-direction: column !important;
    gap: 10px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    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;
  }

  /* Section Titles */
  .page-faq__section-title {
    font-size: clamp(22px, 5vw, 30px);
    margin-bottom: 30px;
  }

  /* FAQ Item mobile styles */
  details.page-faq__faq-item summary.page-faq__faq-question {
    padding: 15px;
  }
  .page-faq__faq-qtext {
    font-size: 15px;
  }
  .page-faq__faq-toggle {
    font-size: 20px;
    width: 24px;
    margin-left: 10px;
  }
  details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 15px 15px;
  }

  /* 通用图片与容器 */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-faq__section,
  .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* CTA Section mobile */
  .page-faq__cta-section {
    padding: 40px 15px;
  }
  .page-faq__cta-title {
    font-size: clamp(24px, 6vw, 36px);
    margin-bottom: 15px;
  }
  .page-faq__cta-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
}