/* style/faq.css */
.page-faq {
  font-family: 'Arial', sans-serif;
  color: #333333;
  background-color: var(--bg-color, #FFFFFF);
  line-height: 1.6;
}

.page-faq__hero-section {
  position: relative;
  width: 100%;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px);
  background-color: #017439;
  color: #FFFFFF;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

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

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

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

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

.page-faq__btn-primary {
  background-color: #C30808; /* Register/Login button color */
  color: #FFFF00; /* Register/Login font color */
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: 2px solid #C30808;
}

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

.page-faq__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Register/Login font color */
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid #FFFF00;
}

.page-faq__btn-secondary:hover {
  background-color: #FFFF00;
  color: #C30808;
}

.page-faq__content-area {
  padding: 60px 0;
  background-color: #FFFFFF;
  color: #333333;
}

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

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

.page-faq__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 900px;
  margin: 0 auto;
}

.page-faq__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-faq__faq-item.active {
  background-color: #e6f7ed;
  border-color: #017439;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
}

.page-faq__faq-item[open] > .page-faq__faq-question {
  background-color: #e6f7ed;
  border-bottom-color: #017439;
}

.page-faq__faq-item summary {
  list-style: none;
}

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

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

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

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

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

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

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

.page-faq__btn-text-link {
  color: #017439;
  text-decoration: underline;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-faq__btn-text-link:hover {
  color: #005a2e;
}

.page-faq__conclusion-block {
  text-align: center;
  margin-top: 60px;
  padding: 40px;
  background-color: #e6f7ed;
  border-radius: 12px;
  border: 1px solid #017439;
}

.page-faq__conclusion-title {
  font-size: 2em;
  color: #017439;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-faq__conclusion-text {
  font-size: 1.1em;
  color: #555555;
  max-width: 700px;
  margin: 0 auto 30px auto;
}

/* Responsive styles */
@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important;
    min-height: 300px;
  }

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

  .page-faq__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

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

  .page-faq__content-area {
    padding: 40px 0;
  }

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

  .page-faq__section-intro {
    font-size: 1em;
    margin-bottom: 30px;
  }

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

  .page-faq__faq-answer {
    padding: 15px 20px;
    font-size: 0.95em;
  }

  .page-faq__image {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 15px auto;
  }

  .page-faq__container,
  .page-faq__faq-list,
  .page-faq__conclusion-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-faq__conclusion-block {
    padding: 30px 20px;
  }

  .page-faq__conclusion-title {
    font-size: 1.6em;
  }

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

@media (max-width: 480px) {
  .page-faq__hero-title {
    font-size: 1.8em;
  }
  .page-faq__section-title {
    font-size: 1.6em;
  }
  .page-faq__faq-question {
    font-size: 1em;
  }
}