/* Base styles for FAQ page */
.page-faq {
  font-family: Arial, sans-serif;
  color: var(--text-main); /* Default text color from custom palette */
  background-color: var(--bg-color); /* Default background from custom palette */
  line-height: 1.6;
}

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

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  overflow: hidden;
  padding-bottom: 24px; /* Small top padding, body handles header offset */
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
}

.page-faq__hero-content {
  text-align: center;
  padding: 40px 20px;
  background: var(--card-bg); /* Use custom card background */
  border-radius: 10px;
  margin-top: -80px; /* Overlap with image slightly for visual effect */
  position: relative;
  z-index: 2;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-faq__main-title {
  font-size: 3em; /* Use clamp if needed, but for h1, font-weight/line-height is preferred */
  color: var(--text-main); /* Use custom main text color */
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-faq__intro-text {
  font-size: 1.1em;
  color: var(--text-secondary); /* Use custom secondary text color */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__cta-button {
  display: inline-block;
  padding: 14px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button gradient */
  color: #F2FFF6; /* Custom main text color for buttons */
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-faq__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

/* FAQ List Section */
.page-faq__faq-list-section {
  padding: 60px 0;
  background-color: var(--bg-color); /* Use custom background color */
}

.page-faq__section-title {
  font-size: 2.5em;
  color: var(--text-main); /* Use custom main text color */
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-faq__faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

/* FAQ Item (details/summary structure) */
details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border-color); /* Custom border color */
  overflow: hidden;
  background: var(--card-bg); /* Custom card background */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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: var(--text-main); /* Custom main text color */
}
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(var(--primary-color-rgb), 0.1); /* Lighter hover effect */
}

.page-faq__faq-qtext {
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main);
}

.page-faq__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--text-secondary); /* Custom secondary text color */
  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: var(--deep-green); /* Use deep green for answer background */
  border-radius: 0 0 10px 10px;
  color: var(--text-secondary); /* Custom secondary text color */
}

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

.page-faq__faq-answer p:last-child {
  margin-bottom: 0;
}

.page-faq__faq-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.page-faq__answer-button {
  display: inline-block;
  padding: 10px 20px;
  background: var(--deep-green); /* Use deep green for secondary button */
  color: #F2FFF6;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  margin-top: 10px;
  margin-right: 10px;
  transition: background-color 0.3s ease;
  border: 1px solid var(--border-color);
}