/* style/faq.css */

/* Base styles for the FAQ page */
.page-faq {
  background-color: #08160F; /* Background from custom colors */
  color: #F2FFF6; /* Text Main from custom colors */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

.page-faq a {
  color: #57E38D; /* Glow color for links */
  text-decoration: none;
}

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

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

/* Hero Section */
.page-faq__hero-section {
  background-color: #11271B; /* Card BG from custom colors */
  padding: 60px 0;
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.page-faq__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-faq__main-title {
  color: #F2FFF6; /* Text Main */
  font-size: clamp(28px, 4vw, 48px); /* Responsive font size */
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
}

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

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons adapt to container */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word;
  text-align: center;
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #ffffff;
  border: none;
}

.page-faq__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-faq__btn-secondary {
  background: transparent;
  color: #57E38D; /* Glow color */
  border: 2px solid #2E7A4E; /* Border from custom colors */
}

.page-faq__btn-secondary:hover {
  background-color: rgba(87, 227, 141, 0.1); /* Light hover effect */
  transform: translateY(-2px);
}

.page-faq__btn-inline {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  font-size: 16px;
}

/* FAQ List Section */
.page-faq__faq-list-section {
  padding: 60px 0;
  background-color: #08160F; /* Background from custom colors */
}

.page-faq__section-title {
  color: #F2FFF6; /* Text Main */
  font-size: clamp(24px, 3vw, 38px);
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 15px;
  border-bottom: 2px solid #2E7A4E; /* Border from custom colors */
}

.page-faq__faq-category {
  margin-bottom: 40px;
}

.page-faq__category-title {
  color: #57E38D; /* Glow color */
  font-size: clamp(20px, 2.5vw, 30px);
  margin-bottom: 25px;
  text-align: left;
}

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

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  color: #F2FFF6; /* Text Main */
  font-weight: bold;
  font-size: 18px;
  user-select: none;
  list-style: none; /* Remove default marker */
}

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

.page-faq__faq-qtext {
  flex-grow: 1;
}

.page-faq__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: #57E38D; /* Glow color */
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  content: '−';
}

.page-faq__faq-answer {
  padding: 0 25px 20px;
  color: #A7D9B8; /* Text Secondary */
  font-size: 16px;
  line-height: 1.8;
  border-top: 1px solid #1E3A2A; /* Divider color */
  margin-top: 10px;
  padding-top: 20px;
}

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

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

.page-faq__image-block {
  text-align: center;
  margin-top: 50px;
  padding: 0 20px;
}

.page-faq__illustration-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

/* CTA Bottom Section */
.page-faq__cta-bottom-section {
  background-color: #11271B; /* Card BG from custom colors */
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-faq__cta-title {
  color: #F2FFF6; /* Text Main */
  font-size: clamp(24px, 3vw, 38px);
  font-weight: bold;
  margin-bottom: 20px;
}

.page-faq__cta-description {
  color: #A7D9B8; /* Text Secondary */
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-faq__cta-image {
  max-width: 100%;
  height: auto;
  margin-top: 40px;
  border-radius: 10px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-faq {
    font-size: 15px;
    line-height: 1.5;
  }

  .page-faq__container,
  .page-faq__hero-content,
  .page-faq__image-block,
  .page-faq__cta-bottom-section .page-faq__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-faq__hero-section {
    padding: 40px 0;
    padding-top: 10px !important; /* Small top padding for mobile */
    gap: 20px;
  }

  .page-faq__hero-image-wrapper {
    padding: 0;
  }

  .page-faq__main-title {
    font-size: clamp(24px, 8vw, 36px);
    margin-bottom: 15px;
  }

  .page-faq__description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-faq__cta-buttons {
    flex-direction: column !important;
    gap: 15px;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary,
  .page-faq__btn-inline {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-faq__faq-list-section,
  .page-faq__cta-bottom-section {
    padding: 40px 0;
  }

  .page-faq__section-title {
    font-size: clamp(20px, 7vw, 30px);
    margin-bottom: 30px;
  }

  .page-faq__category-title {
    font-size: clamp(18px, 6vw, 26px);
    margin-bottom: 20px;
  }

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

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

  .page-faq__faq-toggle {
    font-size: 20px;
  }

  .page-faq__cta-title {
    font-size: clamp(22px, 7vw, 34px);
    margin-bottom: 15px;
  }

  .page-faq__cta-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  /* Image responsiveness for all images */
  .page-faq img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: unset !important; /* Reset min-width for mobile */
    min-height: unset !important; /* Reset min-height for mobile */
  }
}