/* style/faq.css */

/* Base styles for the FAQ page */
.page-faq {
  background-color: var(--background-color, #08160F); /* Fallback to custom background if shared is not set */
  color: var(--text-main-color, #F2FFF6); /* Fallback to custom text main color */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 500px;
  filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-faq__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  max-width: 900px;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

.page-faq__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #F2FFF6;
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-faq__hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #A7D9B8;
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Introduction Section */
.page-faq__introduction-section {
  padding: 60px 0;
  background-color: #0A4B2C; /* Deep Green for contrast */
  color: #F2FFF6;
  text-align: center;
}

.page-faq__section-title {
  font-size: 2.5rem;
  color: #F2C14E; /* Gold for emphasis */
  margin-bottom: 20px;
}

.page-faq__section-description {
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto;
  color: #F2FFF6;
}

/* FAQ List Section */
.page-faq__faq-list-section {
  padding: 60px 0;
  background-color: #08160F;
}

.page-faq__faq-category {
  margin-bottom: 40px;
}

.page-faq__category-title {
  font-size: 2rem;
  color: #22C768; /* Auxiliary color */
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 2px solid #1E3A2A; /* Divider color */
}

.page-faq__faq-item {
  background-color: #11271B; /* Card BG */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E; /* Border color */
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.25rem;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
  background-color: rgba(34, 199, 104, 0.1); /* Lighter hover for contrast */
}

.page-faq__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: #22C768;
  margin-left: 15px;
}

.page-faq__faq-item[open] > .page-faq__faq-question .page-faq__faq-toggle {
  content: '−';
}

.page-faq__faq-answer {
  padding: 0 20px 20px;
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.7;
}

.page-faq__faq-item:not([open]) .page-faq__faq-answer {
  display: none;
}

/* Call to Action Section */
.page-faq__cta-section {
  padding: 80px 0;
  background-image: linear-gradient(to right, #11A84E, #22C768);
  text-align: center;
  color: #F2FFF6;
}

.page-faq__cta-title {
  font-size: 2.5rem;
  color: #F2FFF6;
  margin-bottom: 20px;
}

.page-faq__cta-description {
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #F2FFF6;
}

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

.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.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

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

.page-faq__btn-secondary {
  background: #11271B; /* Card BG */
  color: #2AD16F;
  border: 2px solid #2AD16F;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__btn-secondary:hover {
  background: #2AD16F;
  color: #11271B;
  transform: translateY(-3px);
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: clamp(2rem, 4vw, 3rem);
  }

  .page-faq__hero-description {
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  }

  .page-faq__section-title {
    font-size: 2rem;
  }

  .page-faq__category-title {
    font-size: 1.75rem;
  }

  .page-faq__faq-question {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .page-faq__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-faq__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px !important;
  }

  .page-faq__hero-content {
    padding: 15px;
  }

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

  .page-faq__hero-description {
    font-size: clamp(0.9rem, 3vw, 1rem) !important;
  }

  .page-faq__introduction-section,
  .page-faq__faq-list-section,
  .page-faq__cta-section {
    padding: 40px 0 !important;
  }

  .page-faq__section-title {
    font-size: 2rem !important;
  }

  .page-faq__category-title {
    font-size: 1.5rem !important;
  }

  .page-faq__faq-question {
    font-size: 1rem !important;
    padding: 15px !important;
  }

  .page-faq__faq-answer {
    font-size: 0.95rem !important;
    padding: 0 15px 15px !important;
  }

  .page-faq__cta-title {
    font-size: 2rem !important;
  }

  .page-faq__cta-description {
    font-size: 1rem !important;
  }

  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px !important;
    padding: 0 15px;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1rem !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    max-width: 100% !important;
  }

  /* Image responsive */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-faq__hero-image {
    height: 300px !important; /* Adjust hero image height for mobile */
  }
  .page-faq__section,
  .page-faq__card,
  .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Video responsive - not used on this page, but for completeness */
  .page-faq video,
  .page-faq__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-faq__video-section,
  .page-faq__video-container,
  .page-faq__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-faq__video-section {
    padding-top: 10px !important;
  }
  .page-faq__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}