.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF3E6; /* Main text color for dark body background */
  background-color: var(--bg-color, #0D0E12); /* Inherit from shared or default */
}

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

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  background-color: #0D0E12;
  overflow: hidden;
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Ensure minimum size */
}

.page-faq__hero-content {
  position: relative; 
  z-index: 2;
  text-align: center;
  padding: 40px 20px 60px; 
  background-color: #0D0E12; /* Ensure dark background for text */
}

.page-faq__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Responsive font size */
  font-weight: 700;
  color: #FF8C1A; /* Brand color for title */
  margin-bottom: 20px;
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__hero-description {
  font-size: clamp(16px, 1.5vw, 20px);
  color: #FFF3E6; /* Light text for dark background */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__hero-cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__hero-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
}

/* FAQ List Section */
.page-faq__faq-list-section {
  padding: 60px 0;
  background-color: #0D0E12; /* Dark background */
}

.page-faq__section-title {
  font-size: clamp(24px, 3vw, 38px);
  color: #FF8C1A; /* Brand color for title */
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

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

details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #A84F0C; /* Brand border color */
  overflow: hidden;
  background: #17191F; /* Card BG color */
}
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;
  color: #FFF3E6; /* Light text for dark card background */
}
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); /* Slight hover effect with brand color */
}
.page-faq__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF3E6; /* Light text for dark card background */
}
.page-faq__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFA53A; /* Auxiliary brand color for toggle */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 20px 20px;
  background: rgba(255, 255, 255, 0.05); /* Slightly lighter background for answer */
  border-radius: 0 0 5px 5px;
  color: #FFF3E6; /* Light text for dark answer background */
}
.page-faq__faq-answer p {
  margin-bottom: 10px;
}
.page-faq__faq-answer p:last-child {
  margin-bottom: 0;
}
.page-faq__faq-answer a {
  color: #FFA53A; /* Link color within FAQ answer */
  text-decoration: underline;
}
.page-faq__faq-answer a:hover {
  color: #FF8C1A;
}

.page-faq__btn-inline {
  display: inline-block;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  margin-top: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(255, 140, 26, 0.3);
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}
.page-faq__btn-inline:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(255, 140, 26, 0.4);
}


/* CTA Section */
.page-faq__cta-section {
  padding: 80px 0;
  background-color: #17191F; /* Card BG for CTA section */
  text-align: center;
}

.page-faq__dark-section {
  background-color: #17191F; /* Specific dark background for sections */
  color: #FFF3E6;
}

.page-faq__cta-content {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 40px;
}

.page-faq__cta-text {
  flex: 1;
  text-align: left;
}

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

.page-faq__cta-description {
  font-size: clamp(16px, 1.5vw, 18px);
  color: #FFF3E6;
  margin-bottom: 30px;
}

.page-faq__cta-button.page-faq__btn-primary {
  display: inline-block;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__cta-button.page-faq__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
}

.page-faq__cta-image-wrapper {
  flex: 1;
  max-width: 50%; /* Limit image width */
  text-align: center;
}

.page-faq__cta-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
  min-height: 200px; /* Ensure minimum size */
}

/* General image responsiveness */
.page-faq img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Mobile Styles --- */
@media (max-width: 768px) {
  .page-faq {
    font-size: 15px;
    line-height: 1.5;
  }

  .page-faq__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Hero Section Mobile */
  .page-faq__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
  }
  
  .page-faq__hero-image-wrapper {
    max-height: 300px; /* Adjust height for mobile */
  }

  .page-faq__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-height: 200px !important;
  }

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

  .page-faq__main-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .page-faq__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-faq__hero-cta-button {
    font-size: 16px;
    padding: 12px 25px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* FAQ List Section Mobile */
  .page-faq__faq-list-section {
    padding: 40px 0;
  }

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

  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__btn-inline {
    font-size: 13px;
    padding: 7px 12px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* CTA Section Mobile */
  .page-faq__cta-section {
    padding: 50px 0;
  }

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

  .page-faq__cta-text {
    text-align: center;
    flex: none; 
    width: 100%;
  }

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

  .page-faq__cta-description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-faq__cta-button.page-faq__btn-primary {
    font-size: 16px;
    padding: 12px 25px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-faq__cta-image-wrapper {
    max-width: 100%; 
    flex: none; 
    width: 100%;
  }

  .page-faq__cta-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-height: 200px !important;
  }

  /* General image responsiveness for all images */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !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;
  }
  /* Buttons and button containers mobile adaptation */
  .page-faq__cta-button,
  .page-faq__btn-primary,
  .page-faq__btn-secondary,
  .page-faq a[class*="button"],
  .page-faq a[class*="btn"],
  .page-faq__btn-inline {
    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;
  }
  .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;
    display: flex;
    flex-direction: column;
  }
}