/* style/faq.css */

/* Base styles for the FAQ page */
.page-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Main text color, assuming dark body background */
  background-color: #08160F; /* Default background for main content area if not inherited from body */
}

/* Ensure body padding-top is handled by shared.css, no duplicate here */

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  width: 100%;
  padding-bottom: 60px; /* Space below hero content */
  background-color: #0A4B2C; /* Deep Green background for hero */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden; /* Ensure no overflow */
  padding-top: 10px; /* Small top padding for visual separation */
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Minimum size */
}

.page-faq__hero-content {
  position: relative;
  z-index: 10;
  padding: 20px;
  max-width: 900px;
  margin-top: 20px; /* Space between image and content */
  color: #F2FFF6;
}

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

.page-faq__description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 30px;
  color: #A7D9B8; /* Secondary text color */
}

/* Content Section */
.page-faq__content-section {
  padding: 60px 20px;
  background-color: #08160F; /* Background */
}

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

.page-faq__section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 30px;
  text-align: center;
  color: #F2C14E; /* Gold for section titles */
  position: relative;
  padding-bottom: 10px;
}

.page-faq__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #11A84E; /* Main color */
  border-radius: 2px;
}

.page-faq__text-block {
  font-size: 1rem;
  margin-bottom: 25px;
  color: #A7D9B8; /* Secondary text color */
  text-align: justify;
}

/* FAQ List */
.page-faq__faq-list {
  margin-top: 40px;
}

.page-faq__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-faq__faq-item[open] {
  background-color: #0A4B2C; /* Deep Green when open */
  border-color: #11A84E; /* Main color when open */
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #F2FFF6; /* Main text color */
  cursor: pointer;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.page-faq__faq-item[open] .page-faq__faq-question {
  color: #F2C14E; /* Gold when open */
}

.page-faq__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
  color: #57E38D; /* Glow color */
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(45deg);
  color: #F2C14E; /* Gold when open */
}

/* Hide default details marker */
.page-faq__faq-item > summary {
  list-style: none;
}
.page-faq__faq-item > summary::-webkit-details-marker {
  display: none;
}

.page-faq__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: #A7D9B8; /* Secondary text color */
  text-align: justify;
}

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

.page-faq__faq-answer h3 {
  font-size: 1.1rem;
  color: #F2FFF6; /* Main text color */
  margin-top: 20px;
  margin-bottom: 10px;
}

.page-faq__faq-answer ul,
.page-faq__faq-answer ol {
  margin-left: 20px;
  margin-bottom: 15px;
  list-style-position: inside;
}

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

.page-faq__faq-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-top: 20px;
  min-height: 200px; /* Minimum size */
  object-fit: cover;
}

/* CTA Section */
.page-faq__cta-section {
  padding: 60px 20px;
  text-align: center;
  background-color: #0A4B2C; /* Deep Green background */
  border-top: 1px solid #1E3A2A; /* Divider */
}

.page-faq__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

/* Buttons */
.page-faq__cta-button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  color: #F2FFF6; /* Main text color for buttons */
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-faq__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-faq__cta-button--secondary {
  background: none;
  border: 2px solid #11A84E; /* Main color border */
  color: #11A84E; /* Main color text */
}

.page-faq__cta-button--secondary:hover {
  background: #11A84E; /* Main color background on hover */
  color: #F2FFF6; /* Main text color on hover */
}

.page-faq__cta-button--small {
    padding: 10px 20px;
    font-size: 0.95rem;
    border-radius: 30px;
    margin-top: 15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-faq__hero-section {
    padding-bottom: 40px;
  }

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

  .page-faq__main-title {
    font-size: 2.2rem;
  }

  .page-faq__description {
    font-size: 0.95rem;
  }

  .page-faq__content-section,
  .page-faq__cta-section {
    padding: 40px 15px;
  }

  .page-faq__section-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }

  .page-faq__text-block {
    font-size: 0.95rem;
  }

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

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

  .page-faq__faq-answer h3 {
    font-size: 1rem;
  }

  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-faq__cta-button {
    padding: 12px 25px;
    font-size: 1rem;
    width: 100% !important; /* Full width on mobile */
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Mobile image and video responsiveness */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__hero-image-wrapper,
  .page-faq__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-faq__hero-section {
    padding-left: 0;
    padding-right: 0;
  }
  .page-faq__content-section {
    padding-left: 0;
    padding-right: 0;
  }
  .page-faq__cta-section {
    padding-left: 0;
    padding-right: 0;
  }

  /* Ensure content area images are at least 200px wide */
  .page-faq__faq-image {
    min-width: 200px;
    min-height: 200px;
  }

  /* No filter on images */
  .page-faq img {
    filter: none !important;
  }
}

/* Contrast Fixes (if needed, but designed for good contrast initially) */
/* Assuming dark body background, light text is primary */
.page-faq__dark-bg {
  color: #F2FFF6;
  background: #11A84E;
}

.page-faq__light-bg {
  color: #333333;
  background: #ffffff;
}

.page-faq__medium-bg {
  color: #000000;
  background: #22C768;
}

.page-faq__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-faq__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}