.page-faq {
  padding: 10px 0 0; /* Small top padding for the first section, body handles --header-offset */
  background-color: #0A0A0A;
  color: #FFF6D6;
  font-family: Arial, sans-serif;
}

.page-faq__hero-section {
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height of the hero image wrapper */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-faq__hero-image {
  width: 100%;
  height: auto; /* Ensure image scales proportionally */
  object-fit: cover; /* Cover the container without distorting */
  min-height: 200px; /* Ensure min size */
}

.page-faq__hero-content {
  text-align: center;
  padding: 20px;
  max-width: 900px;
  margin: 0 auto;
  background-color: rgba(10, 10, 10, 0.8); /* Slightly transparent background for readability */
  border-radius: 8px;
  margin-top: -80px; /* Overlap slightly with the image for visual flow */
  position: relative;
  z-index: 1;
}

.page-faq__main-title {
  font-size: clamp(2rem, 4vw, 2.8rem); /* Use clamp for H1 font size */
  font-weight: 700;
  color: #FFD36B;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-faq__intro-text {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #FFF6D6;
}

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

.page-faq__cta-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #0A0A0A; /* Text color for buttons to ensure contrast */
  border: none;
  cursor: pointer;
  min-width: 180px; /* Ensure buttons are not too small */
  text-align: center;
}

.page-faq__cta-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.1); /* Use brightness for hover, not filter for color change */
}

.page-faq__cta-button--secondary {
  background: transparent;
  border: 2px solid #F2C14E;
  color: #F2C14E;
}

.page-faq__cta-button--secondary:hover {
  background-color: rgba(242, 193, 78, 0.2);
  transform: translateY(-2px);
}

.page-faq__questions-section,
.page-faq__guides-section,
.page-faq__contact-cta-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  background-color: #111111;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-faq__section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: #FFD36B;
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 1px solid #3A2A12;
}

.page-faq__accordion-item {
  margin-bottom: 10px;
  border: 1px solid #3A2A12;
  border-radius: 8px;
  overflow: hidden;
}

.page-faq__accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 15px 20px;
  background-color: #1A1A1A;
  color: #FFF6D6;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.page-faq__accordion-header:hover {
  background-color: #3A2A12;
}

.page-faq__question {
  margin: 0;
  color: #FFF6D6;
  font-size: 1.1rem; /* Ensure H3 in header is readable */
}

.page-faq__accordion-icon {
  width: 20px;
  height: 20px;
  position: relative;
}

.page-faq__accordion-icon::before,
.page-faq__accordion-icon::after {
  content: '';
  position: absolute;
  background-color: #FFD36B;
  transition: transform 0.3s ease;
}

.page-faq__accordion-icon::before {
  width: 100%;
  height: 2px;
  top: 9px;
  left: 0;
}

.page-faq__accordion-icon::after {
  width: 2px;
  height: 100%;
  top: 0;
  left: 9px;
}

.page-faq__accordion-header[aria-expanded="true"] .page-faq__accordion-icon::after {
  transform: rotate(90deg);
}

.page-faq__accordion-content {
  padding: 0 20px;
  background-color: #111111;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-faq__accordion-content.page-faq__accordion-content--expanded {
  max-height: 500px; /* Adjust as needed */
  padding: 15px 20px;
}

.page-faq__answer {
  line-height: 1.6;
  color: #E5E5E5;
  margin: 0;
}

.page-faq__guides-intro {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #E5E5E5;
}

.page-faq__guide-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

.page-faq__guide-card {
  background-color: #1A1A1A;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

.page-faq__guide-card:hover {
  transform: translateY(-5px);
}

.page-faq__guide-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  min-height: 200px; /* Enforce minimum size */
}

.page-faq__guide-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 15px 20px 10px;
  line-height: 1.3;
}

.page-faq__guide-card-title a {
  color: #FFD36B;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-faq__guide-card-title a:hover {
  color: #F2C14E;
}

.page-faq__guide-card-text {
  font-size: 0.95rem;
  color: #E5E5E5;
  margin: 0 20px 15px;
  flex-grow: 1; /* Allow text to grow and push link to bottom */
}

.page-faq__guide-card-link {
  display: inline-block;
  color: #F2C14E;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 20px 15px;
  transition: color 0.3s ease;
}

.page-faq__guide-card-link:hover {
  color: #FFD36B;
}

.page-faq__view-all-guides {
  text-align: center;
  margin-top: 20px;
}

.page-faq__contact-text {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #E5E5E5;
}

.page-faq__cta-button--support {
  background: linear-gradient(180deg, #F2C14E 0%, #DDA11D 100%); /* Slightly different gradient for support CTA */
  color: #0A0A0A;
}

.page-faq__cta-button--support:hover {
  filter: brightness(1.1);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-faq__hero-content {
    margin-top: -40px;
    padding: 15px;
  }

  .page-faq__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .page-faq__intro-text {
    font-size: 1rem;
  }

  .page-faq__cta-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-faq__cta-button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .page-faq__questions-section,
  .page-faq__guides-section,
  .page-faq__contact-cta-section {
    margin: 20px auto;
    padding: 15px;
  }

  .page-faq__section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .page-faq__accordion-header {
    font-size: 1rem;
    padding: 12px 15px;
  }

  .page-faq__question {
    font-size: 1rem;
  }

  .page-faq__answer {
    font-size: 0.95rem;
  }

  .page-faq__guide-cards {
    grid-template-columns: 1fr; /* Single column for guide cards */
  }

  .page-faq__guide-card-image {
    max-width: 100%;
    height: auto; /* Ensure images scale down */
    min-height: 200px;
  }

  /* Enforce max-width: 100%; height: auto; for all images in content area */
  .page-faq img {
    max-width: 100%;
    height: auto;
  }

  /* Specific rule for content images to ensure min-width */
  .page-faq__guide-card-image,
  .page-faq__hero-image {
    min-width: 200px; /* Ensure content images are not too small */
    min-height: 200px;
  }
}

/* Ensure all content area images meet minimum size requirements */
.page-faq img:not(.shared-logo, .shared-icon) { /* Exclude shared components from this rule */
  min-width: 200px;
  min-height: 200px;
}