.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for white body background */
  background-color: #ffffff; /* Explicitly set for clarity */
}

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

.page-faq__hero-section {
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
  padding-bottom: 40px;
  text-align: center;
  background-color: #ffffff;
}

.page-faq__hero-content {
  color: #333333;
}

.page-faq__main-title {
  font-size: 2.5em;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #017439; /* Brand color for main title */
  margin-bottom: 15px;
}

.page-faq__hero-description {
  font-size: 1.1em;
  color: #555555;
  max-width: 800px;
  margin: 0 auto 30px;
}

.page-faq__faq-list-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

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

.page-faq__faq-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-faq__faq-illustration {
  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__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.page-faq__faq-item[open] {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
  list-style: none;
  user-select: none; /* Prevent text selection on click */
  transition: background-color 0.3s ease;
}

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

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

.page-faq__faq-qtext {
  flex-grow: 1;
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #017439;
  transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(45deg); /* Change '+' to 'x' or rotate it */
}

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

.page-faq__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #555555;
  background-color: #ffffff;
}

.page-faq__faq-answer p {
  margin-bottom: 1em;
}

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

.page-faq__faq-answer a {
  color: #017439;
  text-decoration: underline;
}

.page-faq__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #017439; /* Dark brand color background */
  color: #ffffff; /* White text for dark background */
}

.page-faq__cta-title {
  font-size: 2.2em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-faq__cta-description {
  font-size: 1.1em;
  max-width: 700px;
  margin: 0 auto 30px;
  color: #f0f0f0;
}

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

.page-faq__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05em;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-faq__btn-register:hover {
  background-color: #a00606;
  border-color: #a00606;
}

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

.page-faq__btn-login:hover {
  background-color: #a00606;
  border-color: #a00606;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: 2.2em;
  }
  .page-faq__section-title {
    font-size: 1.8em;
  }
  .page-faq__cta-title {
    font-size: 2em;
  }
  .page-faq__faq-question {
    padding: 18px 20px;
  }
  .page-faq__faq-answer {
    padding: 18px 20px;
  }
}

@media (max-width: 768px) {
  .page-faq {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-faq__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }
  .page-faq__main-title {
    font-size: 1.8em;
  }
  .page-faq__hero-description {
    font-size: 1em;
  }
  .page-faq__faq-list-section {
    padding: 40px 0;
  }
  .page-faq__section-title {
    font-size: 1.6em;
    margin-bottom: 30px;
  }
  .page-faq__faq-item {
    margin: 0 15px; /* Add horizontal margin for smaller screens */
  }
  .page-faq__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-faq__faq-answer {
    font-size: 0.95em;
    padding: 15px 20px;
  }
  .page-faq__cta-section {
    padding: 50px 0;
  }
  .page-faq__cta-title {
    font-size: 1.8em;
  }
  .page-faq__cta-description {
    font-size: 1em;
  }
  .page-faq__cta-buttons {
    flex-direction: column !important;
    align-items: center;
    gap: 15px;
    padding: 0 15px;
  }
  .page-faq__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  /* Universal image responsive styles for mobile */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}