/* style/faq.css */

/* General page layout */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background: var(--auxiliary-color, #FFFFFF); /* Inherit from body or default white */
}

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

/* Hero Section */
.page-faq__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  text-align: center;
  background: #FFFFFF; /* Ensure light background for contrast */
}

.page-faq__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-faq__hero-content {
  padding: 0 20px;
}

.page-faq__main-title {
  font-size: 42px;
  font-weight: 700;
  color: #017439;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-faq__description {
  font-size: 18px;
  color: #555555;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary {
  background: #C30808; /* Use custom color for register/login */
  color: #FFFF00; /* Use custom font color for register/login */
  border: 2px solid transparent;
}

.page-faq__btn-primary:hover {
  background: #a30606;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-faq__btn-secondary {
  background: #FFFFFF;
  color: #017439;
  border: 2px solid #017439;
}

.page-faq__btn-secondary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-faq__btn-primary--white-text {
  background: #C30808;
  color: #FFFF00;
}

.page-faq__btn-secondary--white-border {
  background: transparent;
  color: #FFFFFF;
  border-color: #FFFFFF;
}

.page-faq__btn-secondary--white-border:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border-color: #FFFFFF;
}

/* FAQ List Section */
.page-faq__faq-list-section {
  padding: 60px 0;
  background: #f9f9f9; /* Light background for FAQ list */
}

.page-faq__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
}

.page-faq__section-title--white {
  color: #FFFFFF;
}

/* FAQ Item Styles (using <details> structure) */
details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

details.page-faq__faq-item summary.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none; /* Hide default marker */
  transition: background-color 0.3s ease;
}

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

details.page-faq__faq-item summary.page-faq__faq-question:hover {
  background: #f5f5f5;
}

.page-faq__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}

.page-faq__faq-toggle {
  font-size: 28px; /* Larger for better visibility */
  font-weight: bold;
  color: #017439; /* Brand color for toggle */
  flex-shrink: 0;
  margin-left: 15px;
  width: 32px; /* Larger hit area */
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(1, 116, 57, 0.1); /* Light background for toggle */
}

details.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(0deg); /* No rotation, just change text to minus */
}

details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 20px 20px;
  background: #fcfcfc;
  border-top: 1px solid #eee;
  border-radius: 0 0 8px 8px;
}

.page-faq__faq-answer p {
  font-size: 16px;
  color: #555555;
  margin-top: 10px;
}

/* New Features Section */
.page-faq__features-section {
  padding: 60px 0;
  background: #f0f0f0; /* Slightly darker light background */
  text-align: center;
}

.page-faq__features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
  justify-items: center;
}

.page-faq__feature-card {
  background: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  max-width: 500px;
  box-sizing: border-box;
}

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

.page-faq__feature-title {
  font-size: 24px;
  font-weight: 700;
  color: #017439;
  margin-bottom: 15px;
}

.page-faq__feature-description {
  font-size: 16px;
  color: #555555;
  line-height: 1.6;
}

/* Contact CTA Section */
.page-faq__contact-cta-section {
  padding: 80px 0;
  background: #017439; /* Dark brand color background */
  text-align: center;
  color: #FFFFFF;
}

.page-faq__description--white {
  color: #f0f0f0;
}

/* --- Responsive Design (Mobile - @media (max-width: 768px)) --- */
@media (max-width: 768px) {
  .page-faq__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Hero Section */
  .page-faq__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
    padding-bottom: 30px;
  }

  .page-faq__hero-image {
    margin-bottom: 20px;
  }

  .page-faq__main-title {
    font-size: clamp(28px, 8vw, 36px); /* Clamp for H1 */
    margin-bottom: 15px;
  }

  .page-faq__description {
    font-size: 16px;
    margin-bottom: 25px;
    padding: 0 10px;
  }

  /* CTA Buttons */
  .page-faq__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    margin-top: 25px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

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

  .page-faq__section-title {
    font-size: 28px;
    margin-bottom: 30px;
    padding: 0 10px;
  }

  /* FAQ Item Styles */
  details.page-faq__faq-item summary.page-faq__faq-question {
    padding: 15px;
  }

  .page-faq__faq-qtext {
    font-size: 16px;
  }

  .page-faq__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
    margin-left: 10px;
  }

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

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

  /* New Features Section */
  .page-faq__features-section {
    padding: 40px 0;
  }

  .page-faq__features-grid {
    grid-template-columns: 1fr; /* Stack features vertically */
    gap: 20px;
    margin-top: 30px;
  }

  .page-faq__feature-card {
    padding: 25px;
  }

  .page-faq__feature-title {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .page-faq__feature-description {
    font-size: 15px;
  }

  /* Contact CTA Section */
  .page-faq__contact-cta-section {
    padding: 50px 0;
  }

  /* General image responsiveness */
  .page-faq img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
}

/* Ensure images within content areas are responsive */
.page-faq__content-area img,
.page-faq__text-block img,
.page-faq__card img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Contrast Fixes */
.page-faq__dark-bg {
  background: #017439;
  color: #ffffff;
}
.page-faq__light-bg {
  background: #ffffff;
  color: #333333;
}
.page-faq__card {
  background: #ffffff;
  color: #333333;
  border: 1px solid #e0e0e0;
}
.page-faq p,
.page-faq li {
  color: #333333;
}
.page-faq__btn-primary {
  background: #C30808;
  color: #FFFF00;
  border: 2px solid transparent;
}
.page-faq__btn-secondary {
  background: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}