/* style/faq.css */

/* Base styles for the FAQ page */
.page-faq {
  font-family: 'Arial', sans-serif;
  color: var(--text-main, #F2FFF6); /* Default text color for the page, from custom palette */
  background-color: var(--background, #08160F); /* Page background, from custom palette */
  line-height: 1.6;
  padding-bottom: 40px; /* Add some padding at the bottom */
}

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  text-align: center;
  padding: 10px 20px 60px; /* Small top padding, larger bottom for content */
  background-color: var(--background, #08160F);
}

.page-faq__hero-image {
  width: 100%;
  max-width: 1200px; /* Constrain image width */
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 30px; /* Space between image and text */
}

.page-faq__hero-content {
  max-width: 900px;
  margin: 0 auto;
}

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

.page-faq__description {
  font-size: 1.1em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 30px;
}

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary,
.page-faq__btn-tertiary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  margin: 10px 10px 10px 0;
  max-width: 100%; /* Ensure buttons are responsive */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
}

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

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

.page-faq__btn-secondary {
  background-color: transparent;
  color: var(--text-main, #F2FFF6);
  border: 2px solid var(--border, #2E7A4E); /* Custom border color */
}

.page-faq__btn-secondary:hover {
  background-color: var(--deep-green, #0A4B2C); /* Custom deep green */
  color: var(--text-main, #F2FFF6);
}

.page-faq__btn-tertiary {
  background-color: var(--card-bg, #11271B); /* Custom card background */
  color: var(--text-secondary, #A7D9B8);
  border: 1px solid var(--divider, #1E3A2A);
}

.page-faq__btn-tertiary:hover {
  background-color: var(--deep-green, #0A4B2C);
  color: var(--text-main, #F2FFF6);
}

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

.page-faq__container {
  max-width: 1000px;
  margin: 0 auto;
}

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

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

.page-faq__faq-item {
  background-color: var(--card-bg, #11271B); /* Custom card background */
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border, #2E7A4E); /* Custom border color */
}

.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-weight: 600;
  color: var(--text-main, #F2FFF6);
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

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

.page-faq__faq-item summary:hover {
  background-color: var(--deep-green, #0A4B2C); /* Custom deep green */
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 24px;
  text-align: center;
  color: var(--glow, #57E38D); /* Custom glow color */
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(0deg); /* No rotation for minus sign */
}

.page-faq__faq-answer {
  padding: 0 25px 20px;
  color: var(--text-secondary, #A7D9B8);
  font-size: 0.95em;
}

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

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

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

/* Image wrappers within content */
.page-faq__image-wrapper {
  margin: 30px auto;
  max-width: 800px; /* Adjust max-width as needed */
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 8px;
}

.page-faq__content-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Ensure all images are responsive and not tiny */
.page-faq img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .page-faq {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-faq__hero-section {
    padding: 10px 15px 40px;
  }

  .page-faq__main-title {
    font-size: 2em; /* Smaller H1 for mobile */
  }

  .page-faq__description {
    font-size: 1em;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary,
  .page-faq__btn-tertiary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    margin-right: 0; /* Remove right margin for full width */
  }

  .page-faq__hero-content .page-faq__btn-primary {
    margin-bottom: 10px; /* Space between buttons if stacked */
  }

  .page-faq__faq-section {
    padding: 40px 15px;
  }

  .page-faq__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

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

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

  /* Image responsiveness for content area */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-faq__image-wrapper {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-faq__section,
  .page-faq__card,
  .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Video specific rules (if any, ensuring max-width: 100% is present) */
  .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;
    padding-left: 15px;
    padding-right: 15px;
    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;
  }

  /* Button group responsiveness */
  .page-faq__faq-answer .page-faq__btn-secondary {
    margin-left: 0;
  }
  .page-faq__faq-answer a[class*="btn"] {
    margin-right: 0;
    margin-bottom: 10px;
  }
  .page-faq__faq-answer a[class*="btn"]:last-child {
    margin-bottom: 0;
  }
  .page-faq__faq-answer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
}