/* style/faq.css */
.page-faq {
  background-color: #08160F; /* Nền tối */
  color: #F2FFF6; /* Chữ sáng */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Nhỏ gọn để tránh đệm kép với body */
  text-align: center;
  background-color: #0A4B2C;
  border-bottom: 2px solid #2E7A4E;
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.page-faq__hero-content-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.page-faq__hero-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  color: #F2C14E; /* Màu vàng Gold */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-faq__hero-description {
  font-size: 1.1rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

.page-faq__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
}

.page-faq__cta-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-faq__cta-button--large {
  padding: 18px 40px;
  font-size: 1.3rem;
  margin-top: 40px;
}

.page-faq__faq-list-section {
  padding: 60px 20px;
  background-color: #08160F;
}

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

.page-faq__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: #F2C14E; /* Màu vàng Gold */
  margin-bottom: 40px;
  text-align: center;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

.page-faq__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  background-color: #11271B;
  border-bottom: 1px solid #1E3A2A; /* Divider */
  transition: background-color 0.3s ease;
  list-style: none;
}

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

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

.page-faq__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: #57E38D; /* Glow */
  margin-left: 15px;
}

.page-faq__faq-answer {
  padding: 0 25px;
  color: #A7D9B8; /* Text Secondary */
  font-size: 1rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.page-faq__faq-item[open] .page-faq__faq-answer {
  max-height: 500px; /* Đủ lớn để chứa nội dung */
  padding: 20px 25px;
}

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

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

.page-faq__image-container {
  margin: 40px auto;
  max-width: 800px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-faq__content-image {
  width: 100%;
  height: auto;
  display: block;
  min-width: 200px; /* Yêu cầu tối thiểu 200px */
  min-height: 200px;
}

.page-faq__button-inline {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-faq__button-inline:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-1px);
}

.page-faq__conclusion-section {
  padding: 60px 20px;
  background-color: #0A4B2C;
  text-align: center;
  border-top: 2px solid #2E7A4E;
}

.page-faq__conclusion-text {
  font-size: 1.15rem;
  color: #A7D9B8;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-faq__hero-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .page-faq__hero-description {
    font-size: 1rem;
    padding: 0 5px;
  }

  .page-faq__cta-button {
    padding: 12px 25px;
    font-size: 1rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 10px 0;
  }
  
  .page-faq__cta-button--large {
    padding: 15px 30px;
    font-size: 1.1rem;
  }

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

  .page-faq__container {
    padding: 0 10px;
  }

  .page-faq__section-title {
    font-size: clamp(1.6rem, 7vw, 2rem);
    margin-bottom: 30px;
  }

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

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

  .page-faq__image-container {
    margin: 30px auto;
    padding: 0 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .page-faq__hero-image,
  .page-faq__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-faq__button-inline {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    text-align: center;
  }

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

  .page-faq__conclusion-text {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  /* Ensure all containers with images/buttons/videos are responsive */
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__hero-content-wrapper,
  .page-faq__hero-image-wrapper,
  .page-faq__image-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent content overflow */
  }

  /* Specific for buttons within flex containers if any */
  .page-faq__button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}

/* Ensure images within content areas are at least 200px on desktop */
.page-faq p img, .page-faq li img, .page-faq__faq-answer img {
  min-width: 200px;
  min-height: 200px;
  max-width: 100%; /* Responsive by default */
  height: auto;
  display: block;
  margin: 15px auto;
}