/* style/faq.css */

/* General styles for the page-faq scope */
.page-faq {
  font-family: Arial, sans-serif;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  line-height: 1.6;
  padding-bottom: 60px; /* Ensure space above footer */
}

/* Specific color contrast rule for body (assumed dark) */
.page-faq p,
.page-faq li,
.page-faq h1,
.page-faq h2,
.page-faq h3,
.page-faq__faq-answer p {
  color: #F2FFF6; /* Text Main for readability on dark background */
}

.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #0A4B2C; /* Deep Green for hero section background */
  overflow: hidden; /* Prevent content overflow */
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 1920px;
  margin-bottom: 30px;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-faq__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.page-faq__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive H1 font size */
  font-weight: 700;
  margin-bottom: 15px;
  color: #F2C14E; /* Gold for main title */
  line-height: 1.2;
}

.page-faq__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #A7D9B8; /* Text Secondary */
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #F2FFF6; /* Text Main for contrast */
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-faq__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-faq__btn-secondary {
  background: transparent;
  color: #57E38D; /* Glow for secondary button text */
  border: 2px solid #57E38D; /* Glow for secondary button border */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-faq__btn-secondary:hover {
  background: rgba(87, 227, 141, 0.1); /* Slight background on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__section {
  padding: 60px 20px;
  background-color: #08160F; /* Background */
}

.page-faq__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #F2C14E; /* Gold for section titles */
  position: relative;
  padding-bottom: 10px;
}

.page-faq__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #57E38D; /* Glow */
  border-radius: 2px;
}

.page-faq__container {
  width: 100%; /* Ensure desktop width is 100% before max-width */
  max-width: 1200px;
  margin: 0 auto;
}

.page-faq__sub-title {
  font-size: 1.8em;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #F2FFF6; /* Text Main */
}

.page-faq__text-block {
  font-size: 1.05em;
  margin-bottom: 20px;
  color: #A7D9B8; /* Text Secondary */
}

.page-faq__image-wrapper {
  margin: 30px auto;
  text-align: center;
  width: 100%; /* Ensure desktop width is 100% */
}

.page-faq__image-wrapper--right {
    float: right;
    margin-left: 30px;
    margin-bottom: 20px;
    max-width: 50%;
    width: 100%; /* Ensure desktop width is 100% within its max-width */
}

.page-faq__content-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-faq__list,
.page-faq__ordered-list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #A7D9B8; /* Text Secondary */
}

.page-faq__list li,
.page-faq__ordered-list li {
  margin-bottom: 10px;
  font-size: 1.05em;
  color: #F2FFF6; /* Text Main for list items */
}
.page-faq__list li strong,
.page-faq__ordered-list li strong {
    color: #F2C14E; /* Gold for strong text in lists */
}

/* FAQ specific styles */
.page-faq__faq-list {
  background-color: #0A4B2C; /* Deep Green */
}

.page-faq__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-faq__faq-item:hover {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  background-color: #11271B; /* Card BG */
  position: relative;
  list-style: none; /* For details/summary */
}

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

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

.page-faq__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #57E38D; /* Glow */
  transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle,
.page-faq__faq-item.active .page-faq__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' or '-' */
}

.page-faq__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1.05em;
  color: #A7D9B8; /* Text Secondary */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.page-faq__faq-item[open] .page-faq__faq-answer,
.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 2000px; /* Sufficiently large to show content */
  padding-top: 10px;
  transition: max-height 0.7s ease-in, padding 0.7s ease-in;
}

.page-faq__cta-buttons--center {
    margin-top: 40px;
}

/* Clearfix for floats */
.page-faq__image-wrapper--right::after {
    content: "";
    display: table;
    clear: both;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-faq__image-wrapper--right {
        float: none;
        margin: 30px auto;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
  .page-faq {
    font-size: 16px;
    line-height: 1.6;
  }

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

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

  .page-faq__description {
    font-size: 1em;
  }

  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to container */
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }
  
  .page-faq__section {
    padding: 40px 15px;
  }

  .page-faq__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-faq__sub-title {
    font-size: 1.5em;
  }

  .page-faq__text-block,
  .page-faq__list li,
  .page-faq__ordered-list li,
  .page-faq__faq-answer p {
    font-size: 0.95em;
  }

  .page-faq__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  
  /* Mobile image responsiveness */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers with images/content */
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__hero-image-wrapper,
  .page-faq__image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent content overflow */
  }
  /* Remove extra padding from container within a section already padded */
  .page-faq__section .page-faq__container {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Ensure images minimum size is respected (over 200x200) for content images */
.page-faq__content-image {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}
/* This rule applies to all images within .page-faq, ensuring no small icons */
.page-faq img:not(.shared-logo):not(.shared-icon) {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}