/* style/faq.css */
/* 
  Body padding-top is handled by shared.css:
  body { padding-top: var(--header-offset); }
  So, .page-faq sections should not re-apply var(--header-offset).
*/

:root {
  /* Custom Colors from palette */
  --page-faq-bg-primary: #08160F; /* Background */
  --page-faq-card-bg: #11271B; /* Card BG */
  --page-faq-text-main: #F2FFF6; /* Text Main */
  --page-faq-text-secondary: #A7D9B8; /* Text Secondary */
  --page-faq-border: #2E7A4E; /* Border */
  --page-faq-glow: #57E38D; /* Glow */
  --page-faq-gold: #F2C14E; /* Gold */
  --page-faq-divider: #1E3A2A; /* Divider */
  --page-faq-deep-green: #0A4B2C; /* Deep Green */
  --page-faq-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  --page-faq-primary-color: #11A84E; /* Main color */
  --page-faq-secondary-color: #22C768; /* Auxiliary color */
}

.page-faq {
  background-color: var(--page-faq-bg-primary); /* Assuming body background is dark, this sets a consistent background */
  color: var(--page-faq-text-main); /* Main text color for dark background */
  font-family: 'Arial', sans-serif; /* Example font */
  line-height: 1.6;
  padding-bottom: 60px; /* Add some padding at the bottom for overall page */
}

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 500px;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-faq__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: 600px; /* Limit hero image height */
  overflow: hidden;
  z-index: 1;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Darken image slightly for text readability */
}

.page-faq__hero-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  z-index: 2;
  background: rgba(8, 22, 15, 0.7); /* Semi-transparent overlay to ensure text contrast */
}

.page-faq__hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem); /* Responsive H1 font size */
  color: var(--page-faq-text-main);
  margin-bottom: 15px;
  font-weight: 700;
  max-width: 900px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.page-faq__hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--page-faq-text-secondary);
  margin-bottom: 30px;
  max-width: 800px;
  line-height: 1.8;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.page-faq__cta-button {
  display: inline-block;
  background: var(--page-faq-btn-gradient);
  color: var(--page-faq-text-main);
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  max-width: 100%; /* For mobile responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__cta-button:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Main Content Wrapper */
.page-faq__main-content-wrapper {
  padding: 60px 0;
  background-color: var(--page-faq-bg-primary);
}

.page-faq__container {
  width: 100%; /* desktop width for flex-item */
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-faq__section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--page-faq-gold);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  position: relative;
  padding-bottom: 15px;
}

.page-faq__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--page-faq-primary-color);
  border-radius: 2px;
}

.page-faq__intro-text {
  font-size: 1.1rem;
  color: var(--page-faq-text-secondary);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
}

/* Accordion Group */
.page-faq__accordion-group {
  margin-bottom: 50px;
  border-radius: 10px;
  overflow: hidden;
  background-color: var(--page-faq-card-bg);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-faq__accordion-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--page-faq-gold);
  background-color: var(--page-faq-deep-green);
  padding: 25px 30px;
  margin: 0;
  border-bottom: 1px solid var(--page-faq-divider);
  font-weight: 600;
  text-align: center;
}

/* FAQ Item */
.page-faq__faq-item {
  margin-bottom: 0; /* Details element has default margin */
  border-bottom: 1px solid var(--page-faq-divider);
  color: var(--page-faq-text-main);
}

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

.page-faq__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  cursor: pointer;
  outline: none;
  list-style: none; /* Remove default marker */
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--page-faq-text-main);
  transition: background-color 0.3s ease;
}

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

.page-faq__faq-item summary:hover {
  background-color: rgba(var(--page-faq-primary-color), 0.1); /* Use rgba for hover effect */
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

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

.page-faq__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  color: var(--page-faq-primary-color);
  font-weight: 300;
  transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to form an X or minus */
}

.page-faq__faq-answer {
  padding: 0 30px 20px 30px;
  font-size: 1rem;
  color: var(--page-faq-text-secondary);
  line-height: 1.7;
  max-height: 0; /* For initial hidden state, JS will handle or browser for <details> */
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

/* For <details> native behavior, max-height/overflow not strictly needed but good for transition if JS is used */
.page-faq__faq-item[open] .page-faq__faq-answer {
  max-height: 1000px; /* Arbitrary large value for smooth transition */
  padding-top: 10px;
  transition: max-height 0.5s ease-in, padding 0.5s ease-in;
}


.page-faq__faq-answer p {
  margin-bottom: 10px;
  color: var(--page-faq-text-secondary);
}

.page-faq__faq-answer ul,
.page-faq__faq-answer ol {
  margin: 10px 0 10px 20px;
  padding: 0;
  list-style-position: inside;
  color: var(--page-faq-text-secondary);
}

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

.page-faq__faq-answer a {
  color: var(--page-faq-secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-faq__faq-answer a:hover {
  text-decoration: underline;
  color: var(--page-faq-gold);
}

.page-faq__btn-small {
  display: inline-block;
  background: var(--page-faq-btn-gradient);
  color: var(--page-faq-text-main);
  padding: 8px 18px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  margin-top: 15px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%; /* For mobile responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-small:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.page-faq__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 20px 0;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Call to Action Section */
.page-faq__cta-section {
  background-color: var(--page-faq-deep-green);
  padding: 40px 30px;
  text-align: center;
  border-radius: 10px;
  margin-top: 50px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  display: flex; /* Make it flex for button arrangement */
  flex-direction: column;
  align-items: center;
  gap: 15px; /* Spacing between elements */
}

.page-faq__cta-text {
  font-size: 1.2rem;
  color: var(--page-faq-text-main);
  margin-bottom: 0; /* Reset default margin */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.page-faq__cta-section .page-faq__cta-button {
  margin-top: 0; /* Reset margin for buttons in flex container */
  min-width: 200px; /* Ensure buttons have a minimum width */
}

.page-faq__cta-button--primary {
  background: var(--page-faq-btn-gradient);
}


/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faq__hero-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-faq__hero-description {
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  }
  .page-faq__section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  }
  .page-faq__accordion-title {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  }
  .page-faq__faq-item summary {
    font-size: 1.1rem;
    padding: 18px 25px;
  }
  .page-faq__faq-answer {
    padding: 0 25px 18px 25px;
  }
}

@media (max-width: 768px) {
  .page-faq {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-faq__hero-section {
    min-height: 400px;
    padding: 40px 15px;
    padding-top: 10px !important; /* body has padding-top, this is for visual spacing only */
  }
  .page-faq__hero-content {
    padding: 15px;
  }
  .page-faq__hero-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
  .page-faq__hero-description {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    margin-bottom: 20px;
  }
  .page-faq__cta-button {
    padding: 12px 25px;
    font-size: 1rem;
    width: 100%;
    margin-bottom: 10px; /* Add margin between buttons on mobile */
  }
  .page-faq__cta-section .page-faq__cta-button {
    margin-left: 0; /* Reset margin for buttons in flex container */
    margin-right: 0; /* Reset margin for buttons in flex container */
  }
  .page-faq__main-content-wrapper {
    padding: 40px 0;
  }
  .page-faq__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-faq__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 30px;
  }
  .page-faq__intro-text {
    font-size: 1rem;
    margin-bottom: 40px;
  }
  .page-faq__accordion-group {
    margin-bottom: 40px;
  }
  .page-faq__accordion-title {
    font-size: clamp(1.2rem, 5vw, 1.5rem);
    padding: 20px 20px;
  }
  .page-faq__faq-item summary {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-faq__faq-answer {
    padding: 0 20px 15px 20px;
  }
  .page-faq__btn-small {
    padding: 7px 15px;
    font-size: 0.85rem;
  }
  .page-faq__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin-left: auto;
    margin-right: auto;
  }
  .page-faq__cta-section {
    padding: 30px 20px;
    margin-top: 40px;
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px; /* Spacing between buttons */
  }
  .page-faq__cta-text {
    font-size: 1rem;
    margin-bottom: 15px; /* Adjust margin for stacked buttons */
  }

  /* Ensure all images are responsive */
  .page-faq img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  /* Ensure all containers with images/videos are responsive */
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__video-section,
  .page-faq__video-container,
  .page-faq__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure content doesn't overflow */
  }
  /* Specific padding for content containers on mobile */
  .page-faq__container,
  .page-faq__cta-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Ensure all buttons are responsive */
  .page-faq__cta-button,
  .page-faq__btn-primary,
  .page-faq__btn-secondary,
  .page-faq a[class*="button"],
  .page-faq a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: 0 !important; /* Reset margin for multiple buttons */
    margin-right: 0 !important; /* Reset margin for multiple buttons */
  }

  /* Button groups */
  .page-faq__cta-section {
    display: flex;
    flex-direction: column; /* Mobile: vertical stack */
    gap: 15px; /* Spacing between buttons */
  }
}

@media (max-width: 480px) {
  .page-faq__hero-title {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
  }
  .page-faq__hero-description {
    font-size: clamp(0.85rem, 3vw, 0.95rem);
  }
  .page-faq__cta-button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  .page-faq__accordion-title {
    font-size: clamp(1.1rem, 6vw, 1.4rem);
  }
  .page-faq__faq-item summary {
    font-size: 0.95rem;
  }
  .page-faq__faq-answer {
    font-size: 0.9rem;
  }
  .page-faq__cta-text {
    font-size: 0.95rem;
  }
}