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

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

.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Min size requirement */
}

.page-faq__hero-content {
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Pull content up slightly over the image for visual flow */
  position: relative; /* Ensure content is above the image */
  z-index: 1;
  background-color: var(--page-faq-card-bg); /* Use card background for content block */
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--page-faq-border-color);
}

.page-faq__hero-title {
  color: var(--page-faq-text-main);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem); /* H1 font size with clamp */
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.2;
}

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

.page-faq__hero-button {
  display: inline-block;
  background: var(--page-faq-button-gradient);
  color: var(--page-faq-button-text);
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-faq__hero-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

.page-faq__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* body already handles --header-offset */
  box-sizing: border-box;
}

.page-faq__video-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  background-color: var(--page-faq-card-bg);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--page-faq-border-color);
}

.page-faq__video-link {
  display: block;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  position: relative;
  cursor: pointer;
}

.page-faq__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

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

.page-faq__section-title {
  color: var(--page-faq-gold-color);
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-faq__section-intro {
  color: var(--page-faq-text-secondary);
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-faq__faq-item {
  background-color: var(--page-faq-card-bg);
  border-radius: 10px;
  border: 1px solid var(--page-faq-border-color);
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  color: var(--page-faq-text-main);
}

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

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

.page-faq__faq-question {
  flex-grow: 1;
  color: var(--page-faq-text-main);
}

.page-faq__faq-toggle {
  font-size: 1.5rem;
  margin-left: 15px;
  color: var(--page-faq-glow-color);
  transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(45deg);
}

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

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

.page-faq__cta-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  overflow: hidden;
  box-sizing: border-box;
}

.page-faq__cta-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Min size requirement */
}

.page-faq__cta-content {
  padding: 40px 20px;
  max-width: 800px;
  position: relative; /* Ensure content is above the image */
  z-index: 1;
  background-color: var(--page-faq-deep-green); /* Use deep green for CTA background */
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--page-faq-border-color);
  margin-top: -100px; /* Pull content up slightly */
}

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

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

.page-faq__cta-button {
  display: inline-block;
  background: var(--page-faq-button-gradient);
  color: var(--page-faq-button-text);
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  margin: 0 10px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__cta-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

.page-faq__cta-button--secondary {
  background: none;
  border: 2px solid var(--page-faq-border-color);
  color: var(--page-faq-text-main);
  box-shadow: none;
}

.page-faq__cta-button--secondary:hover {
  background: rgba(46, 122, 78, 0.2); /* Lighter version of border color */
  transform: translateY(-2px);
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-faq__hero-content,
  .page-faq__cta-content {
    margin-top: -70px;
    padding: 30px 15px;
  }
  .page-faq__hero-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
  }
  .page-faq__section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .page-faq {
    font-size: 15px;
  }

  .page-faq__hero-content,
  .page-faq__cta-content {
    margin-top: -50px;
    padding: 25px 15px;
  }

  .page-faq__hero-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem) !important;
  }

  .page-faq__hero-description,
  .page-faq__section-intro,
  .page-faq__cta-description {
    font-size: 1rem;
  }

  .page-faq__hero-button,
  .page-faq__cta-button {
    font-size: 1rem;
    padding: 10px 20px;
    margin: 5px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-faq__hero-section,
  .page-faq__video-section,
  .page-faq__content-area,
  .page-faq__cta-section {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }

  .page-faq__video-section {
    padding-top: 10px !important;
  }

  .page-faq__video-container,
  .page-faq__video-link,
  .page-faq__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

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

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

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

  .page-faq__section,
  .page-faq__card,
  .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-faq__hero-content,
  .page-faq__video-container,
  .page-faq__cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

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