/* style/faq.css */

/* Base styles for the FAQ page */
.page-faq {
  background-color: #08160F; /* Custom background color */
  color: #F2FFF6; /* Main text color for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: 0; /* Handled by body padding-top in shared.css */
}

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

/* Hero Section */
.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, not --header-offset */
  text-align: center;
  background-color: #08160F;
}

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

.page-faq__hero-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

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

.page-faq__main-title {
  font-size: clamp(2.2em, 4vw, 3.2em); /* Responsive font size for H1 */
  font-weight: 700;
  color: #F2FFF6;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-faq__hero-description {
  font-size: 1.1em;
  color: #A7D9B8;
  margin-bottom: 30px;
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button gradient */
  color: #F2FFF6;
  border: 2px solid transparent;
}

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

.page-faq__btn-secondary {
  background-color: transparent;
  color: #F2FFF6;
  border: 2px solid #2E7A4E; /* Custom border color */
}

.page-faq__btn-secondary:hover {
  background-color: #11271B; /* Card BG color */
  color: #57E38D; /* Glow color */
  border-color: #57E38D;
}

/* Introduction Section */
.page-faq__introduction-section {
  padding: 60px 0;
  background-color: #08160F;
}

.page-faq__section-title {
  font-size: 2.5em;
  color: #F2FFF6;
  margin-bottom: 30px;
  text-align: center;
  font-weight: 600;
}

.page-faq__text-block {
  font-size: 1.1em;
  color: #A7D9B8;
  text-align: justify;
  margin-bottom: 20px;
}

/* FAQ Section */
.page-faq__faq-section {
  padding: 60px 0;
  background-color: #08160F;
}

.page-faq__faq-section.page-faq__dark-section {
  background-color: #11271B; /* Card BG color for alternating sections */
}

.page-faq__faq-item {
  background-color: #11271B; /* Card BG color */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #F2FFF6;
}

.page-faq__faq-item summary {
  list-style: none;
  cursor: pointer;
  outline: none;
}

.page-faq__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: 600;
  color: #F2FFF6;
  background-color: #11271B;
  border-bottom: 1px solid #1E3A2A; /* Divider color */
}

.page-faq__faq-item[open] .page-faq__faq-question {
  background-color: #0A4B2C; /* Deep Green for active question */
  border-bottom-color: #2E7A4E;
}

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

.page-faq__faq-answer {
  padding: 20px;
  font-size: 1em;
  color: #A7D9B8;
  background-color: #11271B;
  border-top: 1px solid #1E3A2A; /* Divider color */
}

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

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

.page-faq__faq-answer img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 6px;
  object-fit: cover;
}

.page-faq__faq-answer a {
  color: #57E38D; /* Glow color for links */
  text-decoration: underline;
}

.page-faq__faq-answer a:hover {
  color: #F2C14E; /* Gold color on hover */
}

/* Conclusion Section */
.page-faq__conclusion-section {
  padding: 60px 0;
  background-color: #11271B; /* Card BG color */
  text-align: center;
}

/* General text styles */
.page-faq h1, .page-faq h2, .page-faq h3, .page-faq h4, .page-faq h5, .page-faq h6 {
  color: #F2FFF6;
}

.page-faq p, .page-faq li {
  color: #A7D9B8;
}

.page-faq a {
  color: #57E38D; /* Default link color */
  text-decoration: none;
}

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

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

  .page-faq__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

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

  .page-faq__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .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;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-faq__introduction-section,
  .page-faq__faq-section,
  .page-faq__conclusion-section {
    padding: 40px 0;
  }

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

  .page-faq__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }

  .page-faq__faq-answer {
    padding: 15px;
  }

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

  .page-faq__hero-image-wrapper,
  .page-faq__faq-answer {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}