/* style/faq.css */
.page-faq {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Dark text on light body background */
  background-color: #FFFFFF; /* Default body background is white from shared.css */
}

.page-faq__hero-section {
  padding-top: 10px; /* Rely on body padding-top from shared.css, add small top margin */
  padding-bottom: 40px;
  background-color: #f8f8f8;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

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

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

.page-faq__description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 30px;
}

.page-faq__content-area {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #FFFFFF;
}

.page-faq__container {
  max-width: 960px;
  margin: 0 auto;
}

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

.page-faq__intro-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
}

/* FAQ Accordion Styles */
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 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  outline: none;
}

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

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

details.page-faq__faq-item[open] summary.page-faq__faq-question {
  background-color: #017439;
  color: #ffffff;
  border-bottom: 1px solid #017439;
  border-radius: 8px 8px 0 0;
}

details.page-faq__faq-item[open] summary.page-faq__faq-question .page-faq__faq-qtext {
  color: #ffffff;
}

details.page-faq__faq-item[open] summary.page-faq__faq-question .page-faq__faq-toggle {
  color: #ffffff;
}

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

.page-faq__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
  transition: transform 0.3s ease;
}

details.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(45deg);
}

details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 25px 25px;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
}

.page-faq__faq-answer p {
  margin-bottom: 10px;
  line-height: 1.7;
  font-size: 1rem;
  color: #555555;
}

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

.page-faq__faq-answer ol,
.page-faq__faq-answer ul {
  margin: 15px 0 15px 20px;
  padding: 0;
  list-style-type: disc;
  color: #555555;
}

.page-faq__faq-answer ol li,
.page-faq__faq-answer ul li {
  margin-bottom: 8px;
  line-height: 1.6;
  font-size: 1rem;
}

.page-faq__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* CTA Section */
.page-faq__cta-section,
.page-faq__contact-promo-section {
  background: #017439; /* Brand green background */
  color: #ffffff;
  padding: 60px 20px;
  text-align: center;
}

.page-faq__cta-content,
.page-faq__contact-promo-content {
  max-width: 800px;
  margin: 0 auto 30px;
}

.page-faq__cta-title,
.page-faq__contact-promo-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #ffffff;
}

.page-faq__cta-description,
.page-faq__contact-promo-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary {
  background: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-faq__btn-primary:hover {
  background: #e00b0b;
  border-color: #e00b0b;
}

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

.page-faq__btn-secondary:hover {
  background: #ffffff;
  color: #017439;
}

.page-faq__contact-promo-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  text-align: left;
}

.page-faq__contact-promo-content {
  flex: 1;
  margin-bottom: 0;
}

.page-faq__contact-promo-image-wrapper {
  flex-shrink: 0;
  width: 400px;
  max-width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__contact-promo-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-faq__btn-large {
  padding: 16px 35px;
  font-size: 1.15rem;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .page-faq__hero-section {
    padding-top: 10px !important; /* Small top padding */
    padding-bottom: 30px;
    gap: 15px;
  }

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

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

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

  .page-faq__content-area {
    padding: 30px 15px;
  }

  .page-faq__container {
    padding: 0;
  }

  .page-faq__section-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
  }

  .page-faq__intro-text {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  details.page-faq__faq-item summary.page-faq__faq-question {
    padding: 15px 20px;
  }

  .page-faq__faq-qtext {
    font-size: 1rem;
  }

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

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

  .page-faq__faq-answer p,
  .page-faq__faq-answer ol li,
  .page-faq__faq-answer ul li {
    font-size: 0.95rem;
  }

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

  .page-faq__content-image {
    margin: 15px auto;
  }

  .page-faq__cta-section,
  .page-faq__contact-promo-section {
    padding: 40px 15px;
  }

  .page-faq__cta-title,
  .page-faq__contact-promo-title {
    font-size: 2rem;
    margin-bottom: 10px;
  }

  .page-faq__cta-description,
  .page-faq__contact-promo-description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

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

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

  .page-faq__contact-promo-grid {
    flex-direction: column-reverse; /* Image above text for mobile */
    gap: 30px;
    text-align: center;
  }

  .page-faq__contact-promo-content {
    margin-bottom: 0;
  }

  .page-faq__contact-promo-image-wrapper {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
  }

  .page-faq__btn-large {
    padding: 14px 25px;
    font-size: 1.05rem;
  }

  /* Ensure all containers are responsive */
  .page-faq__hero-image-wrapper,
  .page-faq__content-area,
  .page-faq__cta-section,
  .page-faq__contact-promo-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-faq__cta-buttons,
  .page-faq__contact-promo-grid {
    padding-left: 15px;
    padding-right: 15px;
  }
}