/* style/faq.css */

/* Base styles for the FAQ page */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Light text for dark background */
  background-color: #08160F; /* Deep Green from custom colors */
}

/* Ensure main content is not covered by fixed header */
/* body { padding-top: var(--header-offset); } is handled by shared.css */

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

.page-faq__section-title {
  font-size: clamp(28px, 4vw, 42px);
  color: #F2FFF6; /* Main text color */
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.2;
}

.page-faq__section-description {
  font-size: 18px;
  color: #A7D9B8; /* Secondary text color */
  text-align: center;
  margin-bottom: 20px;
}

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding-top: 10px; /* Small top padding for the first section */
  overflow: hidden;
  text-align: center;
}

.page-faq__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-faq__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
  background: rgba(8, 22, 15, 0.7); /* Semi-transparent background for readability */
  border-radius: 10px;
  margin-top: 50px; /* Adjust as needed to not overlap header */
}

.page-faq__main-title {
  font-size: clamp(36px, 5vw, 56px);
  color: #F2FFF6; /* Main text color */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.1;
}

.page-faq__hero-description {
  font-size: 20px;
  color: #A7D9B8; /* Secondary text color */
  margin-bottom: 30px;
}

.page-faq__hero-cta {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

/* General Section */
.page-faq__intro-section,
.page-faq__safety-section {
  padding: 60px 0;
}

.page-faq__intro-section .page-faq__section-title,
.page-faq__safety-section .page-faq__section-title {
  color: #F2FFF6; /* Main text color for light background */
}

.page-faq__intro-section .page-faq__section-description,
.page-faq__safety-section .page-faq__section-description {
  color: #A7D9B8; /* Secondary text color */
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

/* FAQ List Section */
.page-faq__faq-list-section {
  padding: 60px 0;
}

.page-faq__faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 40px;
}

.page-faq__faq-item {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #F2FFF6; /* Main text color */
}

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

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

.page-faq__faq-question:hover {
  background-color: rgba(46, 122, 78, 0.2); /* Slightly lighter hover for border color */
}

.page-faq__faq-toggle {
  font-size: 24px;
  line-height: 1;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #57E38D; /* Glow color */
}

.page-faq__faq-answer {
  padding: 0 20px 20px;
  font-size: 16px;
  color: #A7D9B8; /* Secondary text color */
}

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

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

/* Call to Action Section */
.page-faq__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #0A4B2C; /* Deep Green */
}

.page-faq__cta-section .page-faq__section-title {
  color: #F2FFF6; /* Main text color */
  margin-bottom: 20px;
}

.page-faq__cta-section .page-faq__section-description {
  color: #A7D9B8; /* Secondary text color */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

.page-faq__cta-button {
  display: inline-block;
  padding: 18px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 20px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Buttons */
.page-faq__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6; /* Main text color */
  border: none;
  cursor: pointer;
}

.page-faq__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(87, 227, 141, 0.4);
}

/* Illustration Images */
.page-faq__illustration-image {
  display: block;
  margin: 40px auto 0;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  height: auto;
}

/* Responsive Styles */
@media (min-width: 769px) {
  .page-faq__faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-faq__hero-content {
    padding: 60px 40px;
  }
}

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

  .page-faq__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-faq__section-title {
    font-size: 28px;
  }

  .page-faq__section-description {
    font-size: 16px;
  }

  .page-faq__hero-section {
    min-height: 400px;
  }

  .page-faq__main-title {
    font-size: 32px;
  }

  .page-faq__hero-description {
    font-size: 18px;
  }

  .page-faq__hero-cta,
  .page-faq__cta-button {
    padding: 12px 25px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-faq__hero-content {
    padding: 30px 15px;
  }

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

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

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

  /* Images responsive */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-faq__section,
  .page-faq__card,
  .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons responsive */
  .page-faq__btn-primary,
  .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;
  }

  .page-faq__cta-buttons,
  .page-faq__button-group,
  .page-faq__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-faq__cta-buttons {
    display: flex;
    flex-direction: column; 
  }
}