.page-hoi-dap-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #ffffff; /* Default body background */
}

.page-hoi-dap-faq__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, relying on shared for body padding-top */
  background-color: #f0f0f0;
}

.page-hoi-dap-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 675px;
}

.page-hoi-dap-faq__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Adjust to place content slightly over image, but not covering text */
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-hoi-dap-faq__main-title {
  font-size: 2.8em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-hoi-dap-faq__description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 30px;
}

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

.page-hoi-dap-faq__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-hoi-dap-faq__btn--primary {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

.page-hoi-dap-faq__btn--primary:hover {
  background-color: #005f2e;
  transform: translateY(-2px);
}

.page-hoi-dap-faq__btn--secondary {
  background-color: #C30808;
  color: #FFFF00;
  border: 2px solid #C30808;
}

.page-hoi-dap-faq__btn--secondary:hover {
  background-color: #a30606;
  transform: translateY(-2px);
}

.page-hoi-dap-faq__btn--tertiary {
  background-color: #f0f0f0;
  color: #017439;
  border: 1px solid #017439;
}

.page-hoi-dap-faq__btn--tertiary:hover {
  background-color: #e0e0e0;
  transform: translateY(-2px);
}

.page-hoi-dap-faq__content-section {
  padding: 60px 0;
  background-color: #ffffff;
}

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

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

.page-hoi-dap-faq__intro-text {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 50px;
  color: #555555;
}

.page-hoi-dap-faq__faq-list {
  margin-bottom: 60px;
}

.page-hoi-dap-faq__faq-category-title {
  font-size: 1.8em;
  color: #017439;
  margin-top: 40px;
  margin-bottom: 25px;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 10px;
}

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

.page-hoi-dap-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #ffffff;
  list-style: none; /* For details/summary */
}

.page-hoi-dap-faq__faq-question::-webkit-details-marker {
  display: none;
}

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

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

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

.page-hoi-dap-faq__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #555555;
  background-color: #f9f9f9;
  border-top: 1px solid #e0e0e0;
}

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

.page-hoi-dap-faq__faq-answer .page-hoi-dap-faq__btn--small {
  padding: 8px 15px;
  font-size: 0.9em;
  margin-top: 10px;
}

.page-hoi-dap-faq__content-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 20px 0;
  object-fit: cover;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-hoi-dap-faq__promo-box {
  background-color: #017439;
  color: #ffffff;
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  margin-top: 50px;
}

.page-hoi-dap-faq__promo-title {
  font-size: 2em;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-hoi-dap-faq__promo-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* Ensure images within content area are responsive */
.page-hoi-dap-faq img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-hoi-dap-faq {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-hoi-dap-faq__hero-section {
    padding-top: 10px !important; /* Fixed header spacing */
  }

  .page-hoi-dap-faq__hero-content {
    padding: 30px 15px;
    margin-top: -50px; /* Adjust for smaller screens */
    max-width: 100%;
    box-sizing: border-box !important;
  }

  .page-hoi-dap-faq__main-title {
    font-size: 2em;
  }

  .page-hoi-dap-faq__description {
    font-size: 1em;
  }

  .page-hoi-dap-faq__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-hoi-dap-faq__btn {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-hoi-dap-faq__content-section {
    padding: 30px 0;
  }

  .page-hoi-dap-faq__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-hoi-dap-faq__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-hoi-dap-faq__intro-text {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-hoi-dap-faq__faq-category-title {
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 20px;
  }

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

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

  .page-hoi-dap-faq__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-hoi-dap-faq__promo-box {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-hoi-dap-faq__promo-title {
    font-size: 1.5em;
  }

  .page-hoi-dap-faq__promo-text {
    font-size: 1em;
  }

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

  .page-hoi-dap-faq__section,
  .page-hoi-dap-faq__card,
  .page-hoi-dap-faq__container,
  .page-hoi-dap-faq__faq-list,
  .page-hoi-dap-faq__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-hoi-dap-faq__hero-content .page-hoi-dap-faq__cta-buttons {
    padding-left: 0;
    padding-right: 0;
  }

  .page-hoi-dap-faq__faq-answer .page-hoi-dap-faq__cta-buttons {
    padding-left: 0;
    padding-right: 0;
  }

  .page-hoi-dap-faq__promo-box .page-hoi-dap-faq__cta-buttons {
    padding-left: 0;
    padding-right: 0;
  }
}