/* style/faq.css */
/* 
  Body background is #08160F (very dark), so text should be light.
  Using Text Main: #F2FFF6 and Text Secondary: #A7D9B8.
  Card BG: #11271B (darker green), so text inside cards should also be light.
*/
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg-color: #11271B;
  --bg-color: #08160F;
  --text-main-color: #F2FFF6;
  --text-secondary-color: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
}

.page-faq {
  font-family: Arial, sans-serif;
  color: var(--text-main-color, #F2FFF6); /* Default text color for the page */
  background-color: var(--bg-color, #08160F); /* Ensure consistency with body background */
}

/* Base container for content sections */
.page-faq__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Default to column for mobile first */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--card-bg-color, #11271B); /* Use a dark background */
  overflow: hidden;
}

.page-faq__hero-content {
    max-width: 800px;
    z-index: 1;
    position: relative;
    padding-bottom: 40px; /* Space between content and image on smaller screens */
}

.page-faq__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Adjust based on content width */
    margin-top: 40px; /* Space between content and image */
    position: relative;
    z-index: 0;
}

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


.page-faq__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main-color, #F2FFF6);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.page-faq__hero-description {
  font-size: 1.1em;
  color: var(--text-secondary-color, #A7D9B8);
  margin-bottom: 30px;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__cta-buttons {
  display: flex;
  flex-direction: column; /* Stack buttons on mobile */
  gap: 15px;
  justify-content: center;
  align-items: center;
  width: 100%; /* Ensure container fills width */
  max-width: 400px; /* Limit width of button group */
  margin: 0 auto;
  box-sizing: border-box;
  overflow: hidden;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure button itself is responsive */
  width: 100%; /* Fill available width in column layout */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-faq__btn-primary {
  background: var(--button-gradient, linear-gradient(180deg, #2AD16F 0%, #13994A 100%));
  color: #F2FFF6; /* Light text for dark gradient */
  border: none;
}

.page-faq__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-faq__btn-secondary {
  background-color: transparent;
  color: var(--primary-color, #11A84E); /* Use primary color for text */
  border: 2px solid var(--primary-color, #11A84E);
}

.page-faq__btn-secondary:hover {
  background-color: var(--primary-color, #11A84E);
  color: #F2FFF6;
  transform: translateY(-2px);
}

/* Why Choose Us Section */
.page-faq__why-choose-us-section {
  background-color: var(--bg-color, #08160F);
  padding: 80px 0;
  text-align: center;
}

.page-faq__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  font-weight: 700;
  color: var(--text-main-color, #F2FFF6);
  margin-bottom: 20px;
}

.page-faq__section-description {
  font-size: 1em;
  color: var(--text-secondary-color, #A7D9B8);
  margin-bottom: 50px;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-faq__feature-card {
  background-color: var(--card-bg-color, #11271B);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease;
  color: var(--text-main-color, #F2FFF6);
}

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

.page-faq__feature-icon {
  width: 100%; /* Make sure images fill card width */
  height: auto;
  max-width: 200px; /* Limit icon size */
  margin-bottom: 20px;
  border-radius: 8px; /* Slightly rounded images */
  display: block; /* Ensure block level for margin auto */
}

.page-faq__feature-title {
  font-size: 1.4em;
  font-weight: 600;
  color: var(--text-main-color, #F2FFF6);
  margin-bottom: 10px;
}

.page-faq__feature-text {
  font-size: 0.95em;
  color: var(--text-secondary-color, #A7D9B8);
  line-height: 1.6;
}

/* FAQ Section */
.page-faq__faq-section {
  background-color: var(--bg-color, #08160F);
  padding: 80px 0;
}

.page-faq__faq-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-faq__faq-item {
  background-color: var(--card-bg-color, #11271B);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: var(--text-main-color, #F2FFF6);
}

.page-faq__faq-item summary {
  list-style: none; /* Hide default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15em;
  font-weight: 600;
  color: var(--text-main-color, #F2FFF6);
  background-color: var(--card-bg-color, #11271B);
  border-bottom: 1px solid var(--divider-color, #1E3A2A); /* Subtle divider */
}

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

.page-faq__faq-question {
  flex-grow: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  font-weight: 500;
  margin-left: 15px;
  color: var(--primary-color, #11A84E); /* Plus/minus icon color */
  line-height: 1;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  content: "−"; /* Change to minus when open */
}

.page-faq__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: var(--text-secondary-color, #A7D9B8);
  line-height: 1.7;
  padding-top: 0; /* Adjust padding for visual flow */
}

.page-faq__faq-answer p {
  margin-bottom: 1em; /* Space between paragraphs in answer */
}

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

/* CTA Bottom Section */
.page-faq__cta-bottom-section {
  background-color: var(--bg-color, #08160F);
  padding: 80px 0;
  text-align: center;
}

/* Responsive adjustments */
@media (min-width: 769px) {
  .page-faq__hero-section {
    flex-direction: row; /* Desktop: row layout */
    text-align: left;
    padding-top: 60px; /* Restore desktop padding */
    padding-bottom: 80px;
  }

  .page-faq__hero-content {
    flex: 1;
    padding-right: 40px;
    padding-bottom: 0;
  }
  
  .page-faq__hero-image-wrapper {
      flex: 1;
      margin-top: 0;
      margin-left: 40px;
  }

  .page-faq__cta-buttons {
    flex-direction: row; /* Desktop: row layout for buttons */
    max-width: none; /* Remove max-width for desktop */
    justify-content: flex-start; /* Align buttons to start */
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: auto; /* Allow buttons to size to content */
    min-width: 180px; /* Minimum width for desktop buttons */
  }
}

/* Mobile specific styles */
@media (max-width: 768px) {
  .page-faq__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-faq__hero-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

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

  .page-faq__hero-image-wrapper {
      margin-top: 30px;
  }

  .page-faq__main-title {
    font-size: 2em;
  }

  .page-faq__hero-description {
    font-size: 1em;
  }

  .page-faq__cta-buttons {
    flex-direction: column; /* Ensure buttons stack on mobile */
    gap: 10px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-faq__section-title {
    font-size: 1.8em;
  }

  .page-faq__section-description {
    font-size: 0.95em;
  }

  .page-faq__features-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
  }

  .page-faq__feature-card {
    padding: 25px;
  }

  .page-faq__feature-title {
    font-size: 1.2em;
  }

  .page-faq__feature-text {
    font-size: 0.9em;
  }

  .page-faq__faq-item summary {
    font-size: 1em;
    padding: 18px 20px;
  }

  .page-faq__faq-answer {
    font-size: 0.95em;
    padding: 15px 20px;
  }

  /* Image responsiveness for all images within .page-faq */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure all containers for images are also responsive */
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-faq__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
}