/* style/faq.css */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #1a1a2e; /* Body background from 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;
  padding: 100px 0 60px; /* Adjust top padding for header offset */
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  background: #017439;
  color: #ffffff;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.page-faq__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFFF00; /* Register/Login font color for title highlight */
}

.page-faq__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

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

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

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

.page-faq__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-faq__btn-large {
  padding: 18px 40px;
  font-size: 1.2em;
}

/* Content Area */
.page-faq__content-area {
  background-color: #FFFFFF; /* Light background for content */
  color: #333333; /* Dark text for light background */
  padding: 60px 0;
}

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

.page-faq__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
  color: #555555;
}

/* FAQ List */
.page-faq__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-faq__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
}

.page-faq__faq-item[open] {
  background-color: #f0f0f0;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  background-color: #eaf7ed; /* Lighter green for question background */
  border-bottom: 1px solid #d0e8d4;
  transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
  background-color: #d0e8d4;
}

.page-faq__faq-question::-webkit-details-marker, /* Hide default marker for Chrome/Safari */
.page-faq__faq-item summary {
  list-style: none;
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-faq__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #333333;
  border-top: 1px solid #e0e0e0;
}

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

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

/* Image Card */
.page-faq__image-card {
  background: #017439;
  color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  margin-top: 50px;
  align-items: center;
}

.page-faq__card-image {
  width: 50%;
  height: auto;
  object-fit: cover;
  display: block;
  min-width: 200px; /* Ensure min size */
  min-height: 200px;
}

.page-faq__card-content {
  width: 50%;
  padding: 40px;
  box-sizing: border-box;
}

.page-faq__card-title {
  font-size: 2em;
  margin-bottom: 15px;
  font-weight: bold;
  color: #FFFF00; /* Register/Login font color for highlight */
}

.page-faq__card-text {
  font-size: 1.1em;
  margin-bottom: 25px;
}

@media (max-width: 768px) {
  .page-faq__hero-title {
    font-size: 2.5em;
  }

  .page-faq__hero-description {
    font-size: 1em;
  }

  .page-faq__hero-cta {
    flex-direction: column;
  }

  .page-faq__btn-primary, .page-faq__btn-secondary {
    width: 100%;
  }

  .page-faq__section-title {
    font-size: 2em;
  }

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

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

  .page-faq__image-card {
    flex-direction: column;
  }

  .page-faq__card-image,
  .page-faq__card-content {
    width: 100%;
  }

  .page-faq__card-content {
    padding: 30px;
  }

  .page-faq__card-title {
    font-size: 1.8em;
  }

  .page-faq__card-text {
    font-size: 1em;
  }

  .page-faq__cta-title {
    font-size: 2em;
  }

  .page-faq__cta-description {
    font-size: 1em;
  }
}