.page-faq {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #FFF3E6; /* Text Main */
  background: #0D0E12; /* Background */
  line-height: 1.6;
}

.page-faq__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  overflow: hidden;
  background: linear-gradient(180deg, #17191F 0%, #0D0E12 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px; /* Ensure hero section has a decent height */
  padding-bottom: 50px;
}

.page-faq__hero-content-wrapper {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  max-width: 1200px; /* Consistent with HTML width attribute */
  border-radius: 10px;
  object-fit: cover;
  margin-bottom: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-faq__hero-text-container {
  max-width: 800px;
  z-index: 1;
}

.page-faq__main-title {
  font-size: 3.2em;
  font-weight: 700;
  color: #FFB04D; /* Glow */
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(255, 176, 77, 0.5);
  max-width: 100%; /* Ensure H1 doesn't overflow */
}

.page-faq__hero-description {
  font-size: 1.2em;
  line-height: 1.6;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 30px;
  max-width: 100%;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  margin: 0 10px 15px; /* Add margin-bottom for wrap */
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button color */
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 165, 58, 0.4);
}

.page-faq__btn-primary:hover {
  background: linear-gradient(180deg, #FFB04D 0%, #E67A00 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 176, 77, 0.6);
}

.page-faq__btn-secondary {
  background: transparent;
  color: #FFA53A; /* Auxiliary color */
  border: 2px solid #FFA53A; /* Border color */
  box-shadow: none;
}

.page-faq__btn-secondary:hover {
  background: rgba(255, 165, 58, 0.1);
  color: #FFB04D;
  border-color: #FFB04D;
  transform: translateY(-2px);
}

.page-faq__content-area {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px;
  box-sizing: border-box;
}

.page-faq__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #FF8C1A; /* Primary color */
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 0 0 8px rgba(255, 140, 26, 0.3);
}

.page-faq__introduction-text {
  font-size: 1.1em;
  line-height: 1.7;
  color: #FFF3E6; /* Text Main */
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #A84F0C; /* Border color */
  overflow: hidden;
  background: #17191F; /* Card BG */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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;
}

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, 140, 26, 0.1);
}

.page-faq__faq-qtext {
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF3E6; /* Text Main */
}

.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #FFA53A; /* Auxiliary color */
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
  line-height: 1; /* Adjust line height for better centering */
}

details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 25px 25px;
  background: rgba(255, 140, 26, 0.05); /* Lighter background for answer */
  border-radius: 0 0 8px 8px;
}

details.page-faq__faq-item .page-faq__faq-answer p {
  font-size: 1em;
  line-height: 1.7;
  color: #FFF3E6; /* Text Main */
}

.page-faq__cta-section {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(180deg, #17191F 0%, #0D0E12 100%);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  margin-top: 60px;
}

.page-faq__cta-title {
  font-size: 2em;
  font-weight: 700;
  color: #FFB04D; /* Glow */
  margin-bottom: 20px;
  text-shadow: 0 0 8px rgba(255, 176, 77, 0.4);
}

.page-faq__cta-description {
  font-size: 1.1em;
  line-height: 1.6;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Styles for Tablet */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: 2.8em;
  }
  .page-faq__hero-description {
    font-size: 1.1em;
  }
  .page-faq__section-title {
    font-size: 2.2em;
  }
  .page-faq__introduction-text {
    font-size: 1em;
  }
  .page-faq__faq-qtext {
    font-size: 1.1em;
  }
  .page-faq__faq-toggle {
    font-size: 26px;
  }
  .page-faq__cta-title {
    font-size: 1.8em;
  }
}

/* Responsive Styles for Mobile */
@media (max-width: 768px) {
  /* Hero Section */
  .page-faq__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
    min-height: auto;
    padding-bottom: 40px;
  }

  .page-faq__hero-content-wrapper {
    padding: 30px 15px;
  }

  .page-faq__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin-bottom: 20px;
  }

  .page-faq__main-title {
    font-size: 2em;
    margin-bottom: 15px;
    line-height: 1.3;
  }

  .page-faq__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  /* Buttons */
  .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: 1em;
    margin: 0 auto 15px; /* Center buttons and add space */
  }

  .page-faq__hero-text-container a[class*="btn"] {
    display: block; /* Stack buttons vertically */
  }

  /* Content Area */
  .page-faq__content-area {
    padding: 40px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-faq__introduction-text {
    font-size: 0.95em;
    margin-bottom: 40px;
  }

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

  .page-faq__faq-qtext {
    font-size: 1em;
  }

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

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

  details.page-faq__faq-item .page-faq__faq-answer p {
    font-size: 0.95em;
  }

  /* CTA Section */
  .page-faq__cta-section {
    padding: 30px 15px;
    margin-top: 40px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-faq__cta-title {
    font-size: 1.6em;
    margin-bottom: 15px;
  }

  .page-faq__cta-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-faq__cta-section a[class*="btn"] {
    display: block; /* Stack buttons vertically */
    margin: 0 auto 15px; /* Center buttons and add space */
  }

  /* Generic Image Responsiveness */
  .page-faq img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Generic Container Responsiveness */
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__hero-content-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Buttons within flex containers should wrap */
  .page-faq__hero-text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .page-faq__cta-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
}