/* style/faq.css */

/* General styles for the page-faq scope */
.page-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
}

/* Hero Section */
.page-faq__hero-section {
  width: 100%;
  display: flex;
  flex-direction: column; /* Stacks image and content vertically */
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  text-align: center;
  background-color: #08160F; /* Background color for the section */
  overflow: hidden;
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Constrain image width */
  margin-bottom: 30px; /* Space between image and content */
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px; /* Slightly rounded corners for image */
}

.page-faq__hero-content {
  max-width: 800px;
  padding: 0 20px 40px; /* Padding for content below image */
  box-sizing: border-box;
}

.page-faq__main-title {
  font-size: clamp(2rem, 5vw, 3.5rem); /* Responsive font size */
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-faq__hero-description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

.page-faq__hero-cta {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Container for general content */
.page-faq__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* Section Titles and Descriptions */
.page-faq__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-faq__section-description {
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ List Section */
.page-faq__faq-list-section {
  background-color: #11271B; /* Card BG */
  padding: 60px 0;
}

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

.page-faq__faq-item {
  background-color: #0A4B2C; /* Deep Green, slightly lighter than background */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  color: #F2FFF6; /* Text Main */
}

.page-faq__faq-item[open] {
  background-color: #0A4B2C; /* Deep Green */
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: bold;
  cursor: pointer;
  color: #F2FFF6; /* Text Main */
  background-color: #13994A; /* Slightly darker green for summary */
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-bottom-color 0.3s ease;
  list-style: none; /* Hide default marker for details */
}

.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: #11A84E; /* Main color when open */
  border-bottom-color: #2E7A4E; /* Border */
}

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

.page-faq__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #2AD16F; /* Lighter green */
  color: #0A4B2C; /* Deep Green for contrast */
  transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to form an X or diamond */
  background-color: #F2C14E; /* Gold when open */
  color: #11271B; /* Dark text for gold background */
}

.page-faq__faq-answer {
  padding: 15px 25px 25px;
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
}

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

.page-faq__faq-answer ul,
.page-faq__faq-answer ol {
  margin-left: 20px;
  margin-bottom: 15px;
  list-style-position: inside;
}

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

.page-faq__faq-answer strong {
  color: #F2FFF6; /* Text Main */
}

.page-faq__security-image-wrapper {
  margin-top: 20px;
  text-align: center;
}

.page-faq__security-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

/* CTA Section */
.page-faq__cta-section {
  padding: 60px 20px;
  text-align: center;
  background-color: #08160F; /* Background */
}

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  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 */
  border: 2px solid transparent;
}

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

.page-faq__btn-secondary {
  background-color: transparent;
  color: #2AD16F; /* Lighter green for text */
  border: 2px solid #2AD16F; /* Lighter green border */
}

.page-faq__btn-secondary:hover {
  background-color: #2AD16F;
  color: #0A4B2C; /* Deep Green for contrast */
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-faq__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow buttons to wrap */
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-faq__hero-content {
    max-width: 600px;
  }
}

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

  .page-faq__hero-section {
    padding-left: 0;
    padding-right: 0;
  }

  .page-faq__hero-image-wrapper {
    padding: 0 15px; /* Add padding to image wrapper on mobile */
    margin-bottom: 20px;
  }

  .page-faq__hero-image {
    max-height: 350px;
  }

  .page-faq__hero-content {
    padding: 0 15px 30px; /* Adjust padding for content on mobile */
  }

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

  .page-faq__hero-description {
    font-size: clamp(0.9rem, 3vw, 1rem);
    margin-bottom: 20px;
  }

  .page-faq__hero-cta {
    flex-direction: column;
    gap: 10px;
  }

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

  .page-faq__container {
    padding: 30px 15px;
  }

  .page-faq__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 15px;
  }

  .page-faq__section-description {
    font-size: clamp(0.9rem, 3vw, 1rem);
    margin-bottom: 30px;
  }

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

  .page-faq__faq-answer {
    padding: 10px 20px 20px;
  }

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

  /* Image responsiveness for all images */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Video responsiveness */
  .page-faq video,
  .page-faq__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-faq__video-section,
  .page-faq__video-container,
  .page-faq__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* All containers with images/videos/buttons must have proper padding and width */
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__faq-list-section,
  .page-faq__cta-section,
  .page-faq__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-faq__faq-item {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

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

/* Ensure no text color issues on different backgrounds */
.page-faq__dark-bg {
  color: #F2FFF6; /* Text Main */
  background: #08160F; /* Background */
}

.page-faq__light-bg {
  color: #333333; /* Dark text for light background */
  background: #ffffff;
}

.page-faq__medium-bg {
  color: #F2FFF6; /* Text Main */
  background: #11A84E; /* Main color */
}

/* Contrast fix for text */
.page-faq p,
.page-faq li {
  color: #A7D9B8; /* Text Secondary */
}

/* Ensure headings maintain contrast */
.page-faq h1, .page-faq h2, .page-faq h3, .page-faq h4, .page-faq h5, .page-faq h6 {
  color: #F2FFF6; /* Text Main */
}

/* Ensure link text in answers is also readable */
.page-faq__faq-answer a {
  color: #2AD16F; /* Lighter green for links */
  text-decoration: underline;
}

.page-faq__faq-answer a:hover {
  color: #57E38D; /* Glow */
}