/* style/faq.css */

/* --- General Styling --- */
.page-faq {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light body background */
  background-color: #f4f7f6; /* Body background from shared.css, for context */
  line-height: 1.6;
}

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

.page-faq__section-title {
  font-size: 2.5em;
  color: #11A84E; /* Main brand color for titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-faq__category-title {
  font-size: 1.8em;
  color: #11A84E;
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 2px solid #2E7A4E; /* Border color */
  padding-bottom: 10px;
  font-weight: 600;
}

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

/* --- Hero Section --- */
.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px; /* Minimum height for the hero section */
  overflow: hidden;
  padding-top: 10px; /* Small padding top, body handles header offset */
}

.page-faq__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-faq__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #F2FFF6; /* Main text color for dark background */
  padding: 40px 20px;
  max-width: 900px;
  background: rgba(8, 22, 15, 0.7); /* Deep Green with transparency for readability */
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  margin-top: 50px; /* Push content down slightly from top */
  margin-bottom: 50px;
}

.page-faq__main-title {
  font-size: clamp(2em, 5vw, 3.5em); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  letter-spacing: 0.05em;
  color: #F2FFF6; /* Ensure high contrast */
}

.page-faq__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #A7D9B8; /* Secondary text color */
}

.page-faq__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* --- Buttons --- */
.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Crucial for responsive buttons */
  max-width: 100%; /* Ensure button doesn't overflow */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
  text-align: center;
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button color */
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.page-faq__btn-secondary {
  background-color: transparent;
  color: #57E38D; /* Glow color for secondary button text */
  border: 2px solid #57E38D; /* Glow color for border */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-faq__btn-secondary:hover {
  background-color: #57E38D;
  color: #11271B; /* Darker text on hover */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.page-faq__btn-primary--small {
  padding: 10px 20px;
  font-size: 0.9em;
  border-radius: 30px;
  margin-top: 15px;
}

/* --- FAQ Section --- */
.page-faq__faq-section {
  padding: 60px 0;
  background-color: #f4f7f6; /* Light background for FAQ content */
  color: #333333; /* Dark text for light background */
}

.page-faq__faq-category {
  margin-bottom: 50px;
  background-color: #ffffff; /* White card background */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-faq__faq-item {
  background-color: #f9f9f9; /* Slightly off-white for individual items */
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: #11271B; /* Darker text for question */
  cursor: pointer;
  background-color: #ffffff;
  transition: background-color 0.3s ease;
  list-style: none; /* Remove default marker */
}

.page-faq__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Webkit browsers */
}

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

.page-faq__faq-item[open] .page-faq__faq-question {
  background-color: #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
}

.page-faq__faq-qtext {
  flex-grow: 1;
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #13994A; /* Green for toggle icon */
  margin-left: 15px;
}

.page-faq__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #333333;
  border-top: 1px solid transparent; /* To prevent double border */
}

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

.page-faq__faq-answer ul,
.page-faq__faq-answer ol {
  margin-left: 25px;
  margin-bottom: 15px;
}

.page-faq__faq-answer li {
  margin-bottom: 8px;
}

.page-faq__faq-answer a {
  color: #11A84E;
  text-decoration: underline;
}

.page-faq__faq-answer a:hover {
  color: #22C768;
}

/* --- Contact Promo --- */
.page-faq__contact-promo {
  text-align: center;
  padding: 50px 30px;
  background-color: #11271B; /* Card BG color */
  border-radius: 12px;
  margin-top: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__contact-text {
  font-size: 1.3em;
  color: #F2FFF6; /* Text main for dark background */
  margin-bottom: 25px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
  .page-faq__hero-content {
    padding: 30px 15px;
    margin-top: 30px;
    margin-bottom: 30px;
  }
  .page-faq__main-title {
    font-size: clamp(1.8em, 4.5vw, 3em);
  }
  .page-faq__description {
    font-size: 1em;
  }
  .page-faq__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }
  .page-faq__category-title {
    font-size: 1.6em;
    margin-top: 30px;
  }
  .page-faq__faq-question {
    font-size: 1.05em;
    padding: 18px 20px;
  }
  .page-faq__faq-answer {
    padding: 0 20px 18px;
  }
  .page-faq__faq-category {
    padding: 25px;
  }
}

@media (max-width: 768px) {
  .page-faq__container {
    padding: 0 15px;
  }
  .page-faq__hero-section {
    min-height: 300px;
  }
  .page-faq__hero-content {
    padding: 25px 15px;
    margin-top: 20px;
    margin-bottom: 20px;
  }
  .page-faq__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em);
    margin-bottom: 10px;
  }
  .page-faq__description {
    font-size: 0.95em;
    margin-bottom: 20px;
  }
  .page-faq__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    max-width: 100% !important; /* Force full width on mobile */
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-faq__faq-section {
    padding: 40px 0;
  }
  .page-faq__section-title {
    font-size: 1.8em;
    margin-bottom: 25px;
  }
  .page-faq__category-title {
    font-size: 1.4em;
    margin-top: 25px;
  }
  .page-faq__faq-question {
    font-size: 1em;
    padding: 15px 18px;
  }
  .page-faq__faq-toggle {
    font-size: 1.3em;
  }
  .page-faq__faq-answer {
    padding: 0 18px 15px;
    font-size: 0.95em;
  }
  .page-faq__contact-promo {
    padding: 30px 20px;
    margin-top: 40px;
  }
  .page-faq__contact-text {
    font-size: 1.1em;
  }

  /* Image responsive rules */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__faq-category,
  .page-faq__contact-promo {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-faq__hero-content {
    margin-top: 15px;
    margin-bottom: 15px;
  }
  .page-faq__main-title {
    font-size: clamp(1.2em, 8vw, 2em);
  }
  .page-faq__description {
    font-size: 0.9em;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    padding: 10px 15px;
    font-size: 0.9em;
  }
  .page-faq__section-title {
    font-size: 1.6em;
  }
  .page-faq__category-title {
    font-size: 1.2em;
  }
  .page-faq__faq-question {
    font-size: 0.95em;
    padding: 12px 15px;
  }
  .page-faq__faq-answer {
    padding: 0 15px 12px;
    font-size: 0.9em;
  }
  .page-faq__contact-text {
    font-size: 1em;
  }
}