/* style/faq.css */

/* Base styles for the FAQ page */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: #FFFFFF; /* Explicitly white background */
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-faq__section-title {
  color: #017439; /* Brand color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-size: 2.5em;
  font-weight: bold;
}

.page-faq__section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  font-size: 1.1em;
  color: #555555;
}

/* Hero Section */
.page-faq__hero-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 80px 0;
  background-color: #f8f8f8;
  gap: 40px;
}

.page-faq__hero-content {
  flex: 1;
  max-width: 50%;
  padding-left: 20px;
}

.page-faq__main-title {
  font-size: 3.2em;
  color: #017439;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-faq__hero-description {
  font-size: 1.2em;
  color: #555555;
  margin-bottom: 30px;
}

.page-faq__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: flex-start;
  margin-top: 30px;
}

.page-faq__cta-buttons--center {
  justify-content: center;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
}

.page-faq__btn-primary {
  background-color: #017439; /* Main brand color */
  color: #FFFFFF;
  border: 2px solid #017439;
}

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

.page-faq__btn-secondary {
  background-color: #FFFFFF;
  color: #017439;
  border: 2px solid #017439;
}

.page-faq__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005f2c;
  border-color: #005f2c;
}

.page-faq__hero-image-wrapper {
  flex: 1;
  max-width: 50%;
  text-align: right;
  padding-right: 20px;
}

.page-faq__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Overview Section */
.page-faq__overview-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

.page-faq__image-text-block {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
  text-align: left;
}

.page-faq__image-text-block:nth-child(even) {
  flex-direction: row-reverse;
}

.page-faq__content-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-faq__text-content {
  flex: 1;
  max-width: 50%;
}

.page-faq__content-heading {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 15px;
}

.page-faq__text-content p {
  margin-bottom: 15px;
  color: #444444;
}

.page-faq__text-content ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 20px;
  color: #444444;
}

.page-faq__text-content ul li {
  margin-bottom: 8px;
}

/* FAQ List Section */
.page-faq__faq-list-section {
  padding: 80px 0;
  background-color: #017439; /* Dark background for this section */
  color: #FFFFFF; /* White text for dark background */
}

.page-faq__faq-list-section .page-faq__section-title,
.page-faq__faq-list-section .page-faq__section-description {
  color: #FFFFFF; /* Ensure titles and descriptions are white */
}

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

.page-faq__faq-item {
  background-color: #005f2c; /* Slightly darker green for items */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #005f2c;
  color: #FFFFFF;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
  background-color: #004c23;
}

.page-faq__faq-heading {
  margin: 0;
  font-size: 1.2em;
  color: #FFFFFF;
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  transform: rotate(45deg);
}