/* style/faq.css */
/* Body padding-top is handled by shared.css var(--header-offset) */

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

.page-faq {
  font-family: Arial, sans-serif;
  color: var(--page-faq-text-main);
  background-color: var(--page-faq-bg-primary); /* Fallback, but body handles this */
}

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

.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, body handles header offset */
  text-align: center;
  overflow: hidden;
  color: var(--page-faq-text-main);
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height to prevent image from being too tall */
  overflow: hidden;
  margin-bottom: 20px;
}

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

.page-faq__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 20px;
}

.page-faq__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--page-faq-gold);
  margin-bottom: 20px;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.5);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

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

.page-faq__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-faq__btn-primary,
.page-faq__btn-secondary,
.page-faq__btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
  box-sizing: border-box;
}

.page-faq__btn-primary {
  background: var(--page-faq-btn-gradient);
  color: #ffffff;
  border: 2px solid var(--page-faq-deep-green);
}

.page-faq__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(42, 209, 111, 0.4);
}

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

.page-faq__btn-secondary:hover {
  transform: translateY(-2px);
  background-color: var(--page-faq-deep-green);
  box-shadow: 0 6px 12px rgba(30, 58, 42, 0.4);
}

.page-faq__btn-link {
  background: none;
  color: var(--page-faq-gold);
  border: 1px solid var(--page-faq-gold);
  padding: 8px 15px;
  font-size: 0.9rem;
  margin-top: 10px;
}

.page-faq__btn-link:hover {
  color: #ffffff;
  background-color: var(--page-faq-gold);
}

.page-faq__faq-section {
  padding: 60px 0;
  background-color: var(--page-faq-bg-primary);
  color: var(--page-faq-text-main);
}

.page-faq__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--page-faq-gold);
  text-shadow: 0 0 5px rgba(242, 193, 78, 0.3);
}

.page-faq__faq-category {
  margin-bottom: 50px;
  border: 1px solid var(--page-faq-divider);
  border-radius: 10px;
  overflow: hidden;
  background-color: var(--page-faq-bg-card);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__category-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
  padding: 25px 30px;
  background-color: var(--page-faq-deep-green);
  color: var(--page-faq-text-main);
  border-bottom: 1px solid var(--page-faq-divider);
  margin: 0;
}

.page-faq__faq-item {
  border-bottom: 1px solid var(--page-faq-divider);
  padding: 0 30px;
  color: var(--page-faq-text-main);
}

.page-faq__faq-item:last-child {
  border-bottom: none;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  color: var(--page-faq-text-main);
  transition: color 0.3s ease;
}

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

.page-faq__faq-question:hover {
  color: var(--page-faq-gold);
}

.page-faq__faq-qtext {
  flex-grow: 1;
  pointer-events: none; /* Ensure click on summary triggers details toggle */
}

.page-faq__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  margin-left: 15px;
  color: var(--page-faq-gold);
  pointer-events: none; /* Ensure click on summary triggers details toggle */
}

.page-faq__faq-answer {
  padding-bottom: 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--page-faq-text-secondary);
  max-height: 0; /* For JS fallback */
  overflow: hidden; /* For JS fallback */
  transition: max-height 0.4s ease-out;
}

.page-faq__faq-item[open] .page-faq__faq-answer {
  max-height: 1000px; /* Sufficient height for content */
  overflow: visible;
}

.page-faq__faq-item.active .page-faq__faq-answer { /* For JS fallback */
  max-height: 1000px !important;
  overflow: visible !important;
}

.page-faq__faq-item p {
  margin-bottom: 10px;
}

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

.page-faq__cta-bottom {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--page-faq-deep-green);
  color: var(--page-faq-text-main);
}

.page-faq__cta-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--page-faq-gold);
}

.page-faq__cta-description {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: var(--page-faq-text-secondary);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faq__hero-content {
    padding: 0 30px;
  }
}

@media (max-width: 768px) {
  .page-faq__container {
    padding: 0 15px !important;
  }

  .page-faq__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
  }

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

  .page-faq__intro-text {
    font-size: 1rem;
  }

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

  .page-faq__btn-primary,
  .page-faq__btn-secondary,
  .page-faq__btn-link {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95rem;
  }

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

  .page-faq__section-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    margin-bottom: 30px;
  }

  .page-faq__category-title {
    font-size: clamp(1.2rem, 4.5vw, 1.6rem);
    padding: 20px 25px;
  }

  .page-faq__faq-item {
    padding: 0 25px;
  }

  .page-faq__faq-question {
    font-size: 1.05rem;
    padding: 15px 0;
  }

  .page-faq__faq-toggle {
    font-size: 1.3rem;
  }

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

  .page-faq__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  /* Ensure all image containers are responsive */
  .page-faq__faq-category,
  .page-faq__hero-section,
  .page-faq__cta-bottom {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

  .page-faq__cta-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

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

@media (max-width: 480px) {
  .page-faq__hero-content {
    padding: 0 15px;
  }

  .page-faq__faq-category {
    margin-bottom: 30px;
  }
}