/* style/faq.css */

/* Color variables from the prompt */
:root {
  --main-color: #11A84E; /* Primary */
  --secondary-color: #22C768; /* Secondary */
  --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --background-color: #08160F; /* Body background */
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border: #2E7A4E;
  --glow: #57E38D;
  --gold: #F2C14E;
  --divider: #1E3A2A;
  --deep-green: #0A4B2C;
}

.page-faq {
  font-family: Arial, sans-serif;
  color: var(--text-main); /* Default to light text for dark background */
  background-color: var(--background-color); /* #08160F */
  line-height: 1.6;
}

.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px; /* Small top padding, more bottom padding */
  text-align: center;
  overflow: hidden;
  background-color: var(--background-color); /* Ensure hero section background matches body */
}

.page-faq__hero-image-container {
  width: 100%;
  max-height: 700px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

.page-faq__main-title {
  font-size: clamp(2rem, 5vw, 3.5rem); /* Responsive font size for H1 */
  font-weight: 700;
  color: var(--gold); /* Use gold for main title */
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-faq__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 180px;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary {
  background: var(--btn-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-faq__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%); /* Reverse gradient on hover */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.page-faq__btn-secondary {
  background: var(--card-bg); /* Match card background for secondary button */
  color: var(--glow); /* Use glow color for text */
  border: 2px solid var(--glow);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-faq__btn-secondary:hover {
  background: var(--glow);
  color: var(--background-color); /* Dark text on light background */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.page-faq__content-area {
  max-width: 1200px;
  margin: 40px auto;
  padding: 40px 20px;
  background: var(--card-bg); /* Use card background for the main content area */
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  color: var(--text-main); /* Light text on dark card background */
  border: 1px solid var(--border);
}

.page-faq__section-title {
  font-size: 2.5rem;
  color: var(--gold);
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
}

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

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

.page-faq__faq-category-title {
  font-size: 2rem;
  color: var(--glow);
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--divider);
  padding-bottom: 10px;
}

.page-faq__faq-item {
  background: var(--deep-green); /* Slightly different dark background for FAQ items */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  background: var(--deep-green);
  transition: background-color 0.3s ease;
  list-style: none; /* Remove default marker for details summary */
}

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

.page-faq__faq-item[open] > .page-faq__faq-question {
  background-color: var(--main-color); /* Highlight when open */
  color: #ffffff;
}

.page-faq__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--glow);
  margin-left: 15px;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  color: #ffffff; /* White toggle when open */
}

.page-faq__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: var(--text-secondary);
  max-height: 0; /* For animation with JS fallback */
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding-top 0.3s ease-out;
}

.page-faq__faq-item[open] .page-faq__faq-answer {
  max-height: 1000px; /* Sufficiently large to show content */
  padding-top: 15px;
  transition: max-height 0.5s ease-in, padding-top 0.3s ease-in;
}

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

.page-faq__faq-answer p:last-child {
  margin-bottom: 0;
}

.page-faq__answer-list {
  margin-left: 20px;
  margin-bottom: 15px;
  list-style: disc;
}

.page-faq__answer-list li {
  margin-bottom: 8px;
}

.page-faq__answer-list li strong {
  color: var(--text-main);
}

.page-faq__faq-answer .page-faq__btn-primary,
.page-faq__faq-answer .page-faq__btn-secondary {
  margin-top: 20px;
  margin-bottom: 5px; /* Adjust margin for buttons inside answers */
}


.page-faq__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-top: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
  object-fit: cover;
}

.page-faq__cta-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  text-align: center;
  background-color: var(--background-color); /* Use body background for this section */
  color: var(--text-main);
  overflow: hidden;
}

.page-faq__cta-content {
  max-width: 800px;
  margin-bottom: 40px;
}

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

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

.page-faq__cta-image-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

/* General text and link styling for dark background */
.page-faq p,
.page-faq li {
  color: var(--text-secondary);
}

.page-faq a {
  color: var(--glow);
  text-decoration: none;
}

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

/* Ensure contrast for specific elements if needed */
/* The general approach is dark background, light text, which inherently has good contrast */
/* If any elements have light backgrounds, their text should be dark */
/* For this page, all custom backgrounds are dark, so light text is appropriate */
.page-faq__dark-section {
  background: var(--background-color);
  color: var(--text-main);
}
/* Ensure links within dark sections maintain visibility */
.page-faq__dark-section a {
  color: var(--glow);
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-faq__hero-content {
    margin-top: -80px;
    padding: 30px 20px;
  }
  .page-faq__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-faq__section-title {
    font-size: 2.2rem;
  }
  .page-faq__faq-question {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-content {
    margin-top: -60px;
    padding: 25px 15px;
    border-radius: 8px;
  }
  .page-faq__main-title {
    font-size: clamp(1.8rem, 6vw, 2.8rem);
    margin-bottom: 15px;
  }
  .page-faq__description {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px;
    font-size: 1rem;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-faq__content-area {
    margin: 20px auto;
    padding: 25px 15px;
    border-radius: 8px;
  }
  .page-faq__section-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
  }
  .page-faq__intro-text {
    font-size: 1rem;
    margin-bottom: 30px;
  }
  .page-faq__faq-category-title {
    font-size: 1.6rem;
    margin-top: 30px;
    margin-bottom: 15px;
  }
  .page-faq__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-faq__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95rem;
  }
  .page-faq__answer-list {
    margin-left: 15px;
  }
  .page-faq__image {
    margin-top: 20px;
    margin-bottom: 20px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-faq__cta-section {
    padding: 40px 15px;
  }
  .page-faq__cta-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 15px;
  }
  .page-faq__cta-description {
    font-size: 1rem;
    margin-bottom: 25px;
  }
  .page-faq__cta-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}

/* Ensure all images in content area are responsive and meet min size requirements */
.page-faq img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Content area images specific to prevent small sizes */
.page-faq__content-area img {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

/* Mobile specific overrides for images and containers */
@media (max-width: 768px) {
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-faq__hero-section,
  .page-faq__content-area,
  .page-faq__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Specific padding for hero section to avoid double padding with body */
  .page-faq__hero-section {
      padding-left: 0 !important;
      padding-right: 0 !important;
      padding-top: 10px !important; /* Small top padding as per rule */
  }

  /* Ensure video-section (if present) also follows the 10px rule */
  .page-faq__video-section {
    padding-top: 10px !important;
  }
}