/* style/faq.css */

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

/* Base styles for the FAQ page */
.page-faq {
  background-color: var(--bk8-background);
  color: var(--bk8-text-main);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.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;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden;
}

.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;
  opacity: 0.3; /* Subtle overlay */
}

.page-faq__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

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

.page-faq__btn-primary {
  background: var(--bk8-button-gradient);
  color: var(--bk8-text-main);
  margin-right: 15px;
}

.page-faq__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(34, 199, 104, 0.4);
}

.page-faq__btn-secondary {
  background-color: transparent;
  color: var(--bk8-primary-green);
  border-color: var(--bk8-primary-green);
}

.page-faq__btn-secondary:hover {
  background-color: var(--bk8-primary-green);
  color: var(--bk8-text-main);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(17, 168, 78, 0.2);
}

/* FAQ List Section */
.page-faq__faq-list-section {
  padding: 60px 0;
  background-color: var(--bk8-card-bg);
}

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

.page-faq__faq-item {
  background-color: var(--bk8-background);
  border: 1px solid var(--bk8-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-faq__faq-item[open] {
  border-color: var(--bk8-primary-green);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--bk8-text-main);
  background-color: var(--bk8-deep-green);
  border-bottom: 1px solid var(--bk8-divider);
  list-style: none; /* For details/summary */
}

.page-faq__faq-question::-webkit-details-marker { /* For details/summary */
  display: none;
}

.page-faq__faq-qtext {
  flex-grow: 1;
  margin-right: 15px;
}

.page-faq__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--bk8-gold);
}

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

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

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

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

.page-faq__faq-answer a {
  color: var(--bk8-secondary-green);
  text-decoration: none;
}

.page-faq__faq-answer a:hover {
  text-decoration: underline;
}

/* Call to Action Section */
.page-faq__cta-section {
  background-color: var(--bk8-background);
  padding: 80px 0;
  text-align: center;
}

.page-faq__cta-title {
  color: var(--bk8-text-main);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 20px;
}

.page-faq__cta-description {
  color: var(--bk8-text-secondary);
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-faq__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Global image responsiveness for content area */
.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__container,
  .page-faq__hero-content,
  .page-faq__cta-buttons {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

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

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

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

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

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

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

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

  .page-faq__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

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

/* Ensure content area images are not too small */
.page-faq__faq-answer img {
  min-width: 200px;
  min-height: 200px;
  object-fit: contain;
  margin: 15px auto;
}

/* No filter on images */
.page-faq img {
  filter: none;
}