/* style/faq.css */
/* Body background color: #08160F (dark) from custom colors. */
/* Main text color should be #F2FFF6 (light) for contrast. */

:root {
  --bg-color: #08160F;
  --card-bg-color: #11271B;
  --text-main-color: #F2FFF6;
  --text-secondary-color: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --deep-green-color: #0A4B2C;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --button-highlight-gradient: linear-gradient(180deg, #57E38D 0%, #2AD16F 100%);
}

.page-faq {
  background-color: var(--bg-color);
  color: var(--text-main-color);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  color: var(--text-main-color); /* Ensure hero text is light */
  text-align: center;
}

.page-faq__hero-image-wrapper {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 300px; /* Ensure images are not too small */
}

.page-faq__hero-content {
  max-width: 900px;
  margin-top: 40px;
  padding: 0 20px;
}

.page-faq__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-main-color);
  /* No fixed font-size for H1, rely on default or clamp if necessary */
  /* Example clamp if needed: font-size: clamp(2.5rem, 5vw, 3.5rem); */
}

.page-faq__description {
  font-size: 1.1em;
  margin-top: 20px;
  color: var(--text-secondary-color); /* Secondary text color */
}

.page-faq__cta-button {
  display: inline-block;
  margin-top: 30px;
  padding: 12px 30px;
  background: var(--button-gradient);
  color: var(--text-main-color); /* Button text color */
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: opacity 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
}

.page-faq__cta-button:hover {
  opacity: 0.9;
}

.page-faq__accordion-section {
  padding: 60px 20px;
  background-color: var(--bg-color);
}

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

.page-faq__section-title {
  font-size: 2.5em;
  color: var(--text-main-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

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

.page-faq__faq-item {
  background-color: var(--card-bg-color); /* Card BG color */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  color: var(--text-main-color); /* Main text color for question */
  font-weight: bold;
  font-size: 1.15em;
  user-select: none;
  background-color: var(--card-bg-color);
  transition: background-color 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-question {
  background-color: var(--deep-green-color); /* Deep Green for open state */
}

.page-faq__faq-question:hover {
  background-color: var(--deep-green-color); /* Deep Green on hover */
}

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

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--glow-color); /* Glow color for toggle icon */
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(45deg); /* Rotate '+' to 'x' */
}

.page-faq__faq-answer {
  padding: 15px 25px 25px 25px;
  color: var(--text-secondary-color); /* Secondary text color for answer */
  font-size: 1em;
  line-height: 1.7;
}

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

.page-faq__faq-answer img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-top: 15px;
  border-radius: 8px;
  object-fit: cover;
  min-height: 200px;
}

.page-faq__btn-secondary {
  display: inline-block;
  margin-top: 15px;
  margin-right: 10px;
  padding: 10px 20px;
  background-color: var(--text-main-color); /* White background */
  color: #11A84E; /* Brand primary color for text */
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  border: 2px solid #11A84E;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
}

.page-faq__btn-secondary:hover {
  background-color: #11A84E;
  color: var(--text-main-color);
}

.page-faq__cta-bottom {
  text-align: center;
  margin-top: 60px;
  padding: 40px 20px;
  background-color: var(--deep-green-color); /* Deep Green background */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  color: var(--text-main-color);
}

.page-faq__cta-title {
  font-size: 2em;
  color: var(--text-main-color);
  margin-bottom: 15px;
}

.page-faq__cta-description {
  font-size: 1.1em;
  color: var(--text-secondary-color);
  margin-bottom: 30px;
}

.page-faq__cta-button--highlight {
  background: var(--button-highlight-gradient); /* Brighter gradient for highlight */
  margin-left: 15px;
}

.page-faq__cta-button--highlight:hover {
  opacity: 0.8;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: 2.8em;
  }
  .page-faq__section-title {
    font-size: 2em;
  }
  .page-faq__faq-question {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-faq {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-faq__hero-section {
    padding: 10px 0 40px 0;
  }
  .page-faq__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem); /* Using clamp for H1 on mobile */
  }
  .page-faq__description {
    font-size: 1em;
  }
  .page-faq__cta-button,
  .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;
    padding-right: 15px;
    margin-top: 10px;
    margin-right: 0;
  }
  .page-faq__hero-content .page-faq__cta-button {
    margin-left: 0;
  }
  .page-faq__cta-bottom .page-faq__cta-button {
    margin-left: 0;
  }
  .page-faq__accordion-section {
    padding: 40px 15px;
  }
  .page-faq__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-faq__faq-question {
    padding: 15px 20px;
    font-size: 0.95em;
  }
  .page-faq__faq-answer {
    padding: 10px 20px 20px 20px;
  }
  .page-faq__faq-answer img,
  .page-faq__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-faq__container,
  .page-faq__faq-item,
  .page-faq__cta-bottom {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-faq__cta-bottom .page-faq__cta-button--highlight {
    margin-left: 0;
    margin-top: 10px;
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: clamp(1.8rem, 9vw, 2.2rem);
  }
  .page-faq__section-title {
    font-size: 1.5em;
  }
  .page-faq__faq-question {
    font-size: 0.9em;
  }
  .page-faq__hero-content {
    margin-top: 30px;
  }
  .page-faq__cta-title {
    font-size: 1.5em;
  }
  .page-faq__cta-description {
    font-size: 0.95em;
  }
}