/* style/faq.css */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #F2FFF6); /* Default text color from custom palette */
  background-color: var(--bg-main, #08160F); /* Default background color from custom palette */
}

.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;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
  color: var(--text-main, #F2FFF6);
}

.page-faq__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

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

.page-faq__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 20px;
  background: rgba(17, 39, 27, 0.7); /* Card BG with opacity for readability */
  border-radius: 10px;
  backdrop-filter: blur(5px);
}

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

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

/* Buttons */
.page-faq__btn-primary {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom Button Color */
  color: #ffffff; /* White text for contrast */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-faq__btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--main-color, #11A84E); /* Main color for text */
  border: 2px solid var(--border-color, #2E7A4E); /* Border color */
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

.page-faq__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--gold-color, #F2C14E);
}

.page-faq__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: var(--text-secondary, #A7D9B8);
}

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

.page-faq__faq-item {
  background-color: var(--card-bg, #11271B); /* Card Background Color */
  border: 1px solid var(--border-color, #2E7A4E); /* Border Color */
  border-radius: 10px;
  overflow: hidden;
  color: var(--text-main, #F2FFF6);
}

.page-faq__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-faq__faq-item summary::-webkit-details-marker {
  display: none;
}

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

.page-faq__faq-qtext {
  flex-grow: 1;
  color: var(--text-main, #F2FFF6);
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: var(--glow-color, #57E38D);
}

.page-faq__faq-answer {
  padding: 20px 25px 25px;
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
  border-top: 1px solid var(--divider-color, #1E3A2A);
}

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

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

/* CTA Section */
.page-faq__cta-section {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--deep-green, #0A4B2C); /* Deep Green Background */
  color: var(--text-main, #F2FFF6);
}

.page-faq__cta-title {
  font-size: 2.2em;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--gold-color, #F2C14E);
}

.page-faq__cta-description {
  font-size: 1.1em;
  max-width: 700px;
  margin: 0 auto 40px auto;
  color: var(--text-secondary, #A7D9B8);
}

/* General Image styles (ensure min size and no filters) */
.page-faq img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 5px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
  /* No filter properties to change image color */
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-faq__container {
    padding: 0 15px;
  }

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

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

  .page-faq__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

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

  .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;
    padding-right: 15px;
    margin-bottom: 10px;
  }

  .page-faq__faq-section {
    padding: 50px 0;
  }

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

  .page-faq__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

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

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

  .page-faq__cta-section {
    padding: 50px 15px;
  }

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

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

  /* Mobile image responsiveness */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: unset !important; /* Allow smaller display if needed, but original size is large */
    min-height: unset !important;
  }

  .page-faq__hero-image-wrapper,
  .page-faq__hero-section,
  .page-faq__faq-section,
  .page-faq__cta-section,
  .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
}