/* style/faq.css */

/* Custom Colors */
:root {
  --page-faq-card-bg: #11271B;
  --page-faq-background: #08160F;
  --page-faq-text-main: #F2FFF6;
  --page-faq-text-secondary: #A7D9B8;
  --page-faq-border: #2E7A4E;
  --page-faq-glow: #57E38D;
  --page-faq-gold: #F2C14E;
  --page-faq-divider: #1E3A2A;
  --page-faq-deep-green: #0A4B2C;
  --page-faq-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

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

.page-faq__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3; /* Slightly transparent to allow text readability */
}

.page-faq__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  color: var(--page-faq-text-main);
}

.page-faq__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--page-faq-text-main);
  line-height: 1.2;
}

.page-faq__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--page-faq-text-secondary);
}

.page-faq__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  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;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-faq__btn-primary {
  background: var(--page-faq-button-gradient);
  color: #ffffff;
  border: none;
}

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

.page-faq__btn-secondary {
  background-color: transparent;
  color: var(--page-faq-text-main);
  border: 2px solid var(--page-faq-border);
}

.page-faq__btn-secondary:hover {
  transform: translateY(-2px);
  background-color: var(--page-faq-border);
}

.page-faq__content-area,
.page-faq__cta-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-faq__container {
  padding: 20px;
  border-radius: 10px;
  background-color: var(--page-faq-card-bg);
  color: var(--page-faq-text-main);
}

.page-faq__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--page-faq-text-main);
  margin-bottom: 30px;
  text-align: center;
  font-weight: bold;
}

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

.page-faq__faq-item {
  background-color: var(--page-faq-background);
  border: 1px solid var(--page-faq-divider);
  border-radius: 8px;
  overflow: hidden;
}

.page-faq__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--page-faq-text-main);
  cursor: pointer;
  list-style: none; /* Remove default marker */
}

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

.page-faq__faq-question {
  flex-grow: 1;
}

.page-faq__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-faq-gold);
}

.page-faq__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1rem;
  color: var(--page-faq-text-secondary);
}

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

.page-faq__faq-answer img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  filter: brightness(0.8); /* Slightly dim images on dark background for better integration */
}

/* CTA Section Specific Styles */
.page-faq__cta-section .page-faq__container {
  text-align: center;
  background-color: var(--page-faq-deep-green);
  padding: 50px 30px;
  border-radius: 12px;
}

.page-faq__cta-section .page-faq__section-title {
  color: var(--page-faq-text-main);
  margin-bottom: 20px;
}

.page-faq__cta-section .page-faq__description {
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: var(--page-faq-text-secondary);
}

.page-faq__btn-large {
  padding: 18px 40px;
  font-size: 1.1rem;
}

/* Ensure images maintain original color and no filter applied */
.page-faq img {
  filter: none; /* Override any potential global filters */
}

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

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

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

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

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

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-faq__container,
  .page-faq__faq-item {
    padding: 0;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-faq__faq-answer {
    padding: 0 15px 15px 15px;
  }

  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-faq__hero-image,
  .page-faq__illustration-image {
    filter: none; /* Remove filter for mobile for clarity if needed, or keep for consistency */
  }

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

  /* Ensure all containers with images/buttons are responsive */
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__hero-content,
  .page-faq__cta-buttons,
  .page-faq__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: 1.8rem;
  }
  .page-faq__section-title {
    font-size: 1.6rem;
  }
  .page-faq__faq-item summary {
    font-size: 1rem;
  }
}