/* General Styles for page-faq */
.page-faq {
  font-family: Arial, sans-serif;
  color: #333333; /* Default dark text for light body background */
  background-color: #FFFFFF;
}

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

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

.page-faq__section-description {
  font-size: 18px;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.page-faq__sub-title {
  font-size: 24px;
  font-weight: 600;
  color: #017439;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-faq p {
  line-height: 1.7;
  margin-bottom: 15px;
  font-size: 16px;
  color: #333333;
}

.page-faq ul {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 15px;
  color: #333333;
}

.page-faq ul li {
  margin-bottom: 8px;
  line-height: 1.6;
  font-size: 16px;
}

.page-faq__btn-primary,
.page-faq__btn-secondary,
.page-faq__btn-small,
.page-faq a[class*="button"],
.page-faq a[class*="btn"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-faq__btn-primary:hover {
  background-color: #e02a2a;
  transform: translateY(-2px);
}

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

.page-faq__btn-secondary:hover {
  background-color: #f0f0f0;
  border-color: #005a2b;
  transform: translateY(-2px);
}

.page-faq__btn-small {
  display: inline-block;
  padding: 8px 15px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  background-color: #017439;
  color: #FFFFFF;
  margin-top: 10px;
  margin-right: 10px;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-small:hover {
  background-color: #005a2b;
}

/* Hero Section */
.page-faq__hero-section {
  padding-top: 10px;
  padding-bottom: 60px;
  background: linear-gradient(135deg, #017439, #005a2b);
  color: #FFFFFF;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-faq__hero-content-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

.page-faq__hero-image {
  width: 100%;
  max-width: 1000px;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-faq__text-area {
  padding: 0 20px;
}

.page-faq__main-title {
  font-weight: 800;
  line-height: 1.2;
  color: #FFFFFF;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__description {
  font-size: 18px;
  line-height: 1.6;
  color: #f0f0f0;
  max-width: 900px;
  margin: 0 auto 30px;
}

.page-faq__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

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

.page-faq__faq-group {
  margin-bottom: 40px;
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-faq__group-title {
  font-size: 28px;
  font-weight: 700;
  color: #017439;
  margin-bottom: 25px;
  text-align: left;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 15px;
}

/* FAQ Item Styles (details/summary based) */
details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.3s ease;
}

details.page-faq__faq-item[open] {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  border-color: #017439;
}

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, color 0.3s ease;
  position: relative;
}

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 #005a2b;
}

details.page-faq__faq-item[open] summary.page-faq__faq-question:hover {
  background-color: #005a2b;
}

.page-faq__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: inherit; /* Inherit color from summary */
}

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

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

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

.page-faq__faq-answer {
  padding: 0 25px 25px;
  background: #fcfcfc;
  border-radius: 0 0 8px 8px;
  color: #333333;
}

.page-faq__faq-answer p {
  margin-top: 15px;
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.7;
}

/* Conclusion Section */
.page-faq__conclusion-section {
  padding: 60px 0;
  background-color: #FFFFFF;
  text-align: center;
}

.page-faq__conclusion-content {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}

.page-faq__conclusion-image {
  flex-shrink: 0;
  width: 400px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  object-fit: cover;
}

.page-faq__text-block {
  flex-grow: 1;
}

.page-faq__btn-contact {
  margin-top: 25px;
  width: auto;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faq__container {
    padding: 0 30px;
  }

  .page-faq__hero-image {
    max-width: 800px;
  }

  .page-faq__group-title {
    font-size: 26px;
  }

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

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

  .page-faq__faq-toggle {
    font-size: 26px;
    margin-left: 15px;
  }

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

  .page-faq__conclusion-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .page-faq__conclusion-image {
    width: 100%;
    max-width: 600px;
    margin-bottom: 30px;
  }

  .page-faq__text-block {
    padding: 0 20px;
  }

  .page-faq__text-block ul {
    margin-left: 0;
    text-align: left;
  }

  .page-faq__text-block ul li {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding-bottom: 40px;
  }

  .page-faq__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 0;
    margin-bottom: 20px;
  }

  .page-faq__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

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

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

  .page-faq__btn-primary,
  .page-faq__btn-secondary,
  .page-faq a[class*="button"],
  .page-faq a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-faq__btn-secondary {
    margin-left: 0;
  }

  .page-faq__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .page-faq__section-description {
    font-size: 16px;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  .page-faq__sub-title {
    font-size: 22px;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-faq__faq-list-section {
    padding: 40px 0;
  }

  .page-faq__faq-group {
    padding: 20px;
    margin-bottom: 30px;
  }

  .page-faq__group-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  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;
    margin-left: 10px;
  }

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

  .page-faq p,
  .page-faq ul li {
    font-size: 15px;
  }

  .page-faq__btn-small {
    padding: 8px 12px;
    font-size: 13px;
  }

  .page-faq__conclusion-section {
    padding: 40px 0;
  }

  .page-faq__conclusion-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin-bottom: 25px;
  }

  .page-faq__text-block {
    padding: 0 15px;
  }

  .page-faq__btn-contact {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Image responsiveness for all img tags */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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