.page-hoi-dap-faq {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333333;
  line-height: 1.6;
  background-color: #FFFFFF; /* Default body background is white */
}

.page-hoi-dap-faq__hero-section {
  background-color: #f8f8f8; /* Light background for contrast with dark text */
  padding-top: 10px; /* Small top padding, shared.css handles body padding */
  padding-bottom: 60px;
}

.page-hoi-dap-faq__hero-container {
  max-width: 1170px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 40px 16px;
  gap: 40px;
}

.page-hoi-dap-faq__hero-content {
  flex: 1 1 45%;
  min-width: 300px;
  color: #333333; /* Dark text on light background */
}

.page-hoi-dap-faq__main-title {
  font-size: clamp(2.2rem, 4vw, 3rem); /* H1 font size constraint */
  font-weight: 700;
  line-height: 1.2;
  color: #017439; /* Brand primary color for H1 */
  margin-bottom: 20px;
}

.page-hoi-dap-faq__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

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

.page-hoi-dap-faq__btn-primary,
.page-hoi-dap-faq__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box; /* Crucial for button responsiveness */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
  max-width: 100%;
}

.page-hoi-dap-faq__btn-primary {
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color for register/login */
  border: 2px solid #C30808;
}

.page-hoi-dap-faq__btn-primary:hover {
  background-color: #d12a2a;
  border-color: #d12a2a;
}

.page-hoi-dap-faq__btn-secondary {
  background-color: #FFFFFF;
  color: #017439; /* Brand primary color */
  border: 2px solid #017439;
}

.page-hoi-dap-faq__btn-secondary:hover {
  background-color: #017439;
  color: #FFFFFF;
}

.page-hoi-dap-faq__hero-image {
  flex: 1 1 45%;
  text-align: center;
  min-width: 300px;
}

.page-hoi-dap-faq__hero-image img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-hoi-dap-faq__faq-section {
  padding: 60px 0;
  background-color: #FFFFFF; /* Light background */
}

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

.page-hoi-dap-faq__section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
}

.page-hoi-dap-faq__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

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

.page-hoi-dap-faq__faq-item summary {
  list-style: none; /* Hide default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  background-color: #ffffff;
  color: #017439;
  transition: background-color 0.3s ease;
}

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

.page-hoi-dap-faq__faq-item summary:hover {
  background-color: #f0f0f0;
}

.page-hoi-dap-faq__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: #017439;
}

.page-hoi-dap-faq__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  line-height: 1.7;
  color: #555555;
}

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

.page-hoi-dap-faq__faq-answer img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-top: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

/* Responsive styles */
@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; /* Small top padding, shared.css handles body padding */
    padding-bottom: 40px;
  }

  .page-hoi-dap-faq__hero-container {
    flex-direction: column;
    padding: 20px 15px; /* Added side padding */
    gap: 30px;
  }

  .page-hoi-dap-faq__hero-content {
    flex: 1 1 100%;
    text-align: center;
  }

  .page-hoi-dap-faq__main-title {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .page-hoi-dap-faq__description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .page-hoi-dap-faq__cta-buttons {
    flex-direction: column;
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-hoi-dap-faq__btn-primary,
  .page-hoi-dap-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px !important;
    font-size: 1rem !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-hoi-dap-faq__hero-image {
    flex: 1 1 100%;
  }

  .page-hoi-dap-faq__hero-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

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

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

  .page-hoi-dap-faq__section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .page-hoi-dap-faq__faq-item summary {
    padding: 15px 20px;
    font-size: 1rem;
  }

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

  .page-hoi-dap-faq__faq-answer img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

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

  /* Example for general content sections, adjust if specific ones are defined */
  .page-hoi-dap-faq__section,
  .page-hoi-dap-faq__card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}