/* style/faq.css */
/* body đã có padding-top: var(--header-offset) từ shared.css, không thêm vào đây nữa */
.page-faq {
  font-family: 'Arial', sans-serif;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  line-height: 1.6;
}

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Ensure image is above content */
  align-items: center;
  justify-content: center;
  padding-bottom: 60px; /* Space below content */
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #08160F;
}

.page-faq__hero-image-container {
  width: 100%;
  max-width: 1920px; /* Max width for the image */
  overflow: hidden;
  margin-bottom: 30px; /* Space between image and content */
}

.page-faq__hero-image-container img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Ensure minimum size */
}

.page-faq__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.page-faq__main-title {
  font-size: clamp(2rem, 5vw, 3.2rem); /* Responsive font size */
  font-weight: bold;
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-faq__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  gap: 20px;
  justify-content: center;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure button adapts to width */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  text-align: center;
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #F2FFF6;
  border: 2px solid transparent;
}

.page-faq__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-faq__btn-secondary {
  background-color: transparent;
  color: #2AD16F;
  border: 2px solid #2AD16F;
}

.page-faq__btn-secondary:hover {
  background-color: rgba(42, 209, 111, 0.1);
  color: #F2FFF6;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.2);
}

/* Content Section */
.page-faq__content-section {
  padding: 60px 0;
  background-color: #08160F; /* Background */
}

.page-faq__dark-section {
  background-color: #08160F; /* Deep Green */
  color: #F2FFF6; /* Text Main */
}

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

.page-faq__section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: #F2C14E; /* Gold */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-faq__text-block {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #A7D9B8; /* Text Secondary */
}

.page-faq__text-block strong {
  color: #F2FFF6; /* Text Main */
}

/* Flex layout for content and image */
.page-faq__content-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  margin-bottom: 40px; /* Space below content-flex block */
}

.page-faq__text-wrapper {
  flex: 1;
  min-width: 300px; /* Minimum width for text before wrapping */
}

.page-faq__image-wrapper {
  flex: 1;
  min-width: 250px; /* Minimum width for image before wrapping */
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-faq__image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-height: 200px; /* Ensure minimum size */
}

/* Alternating image position */
.page-faq__image-wrapper--right {
  order: 2; /* Image on right */
}

.page-faq__image-wrapper--left {
  order: -1; /* Image on left */
}

/* Accordion Section */
.page-faq__accordion-section {
  padding: 60px 0;
  background-color: #08160F; /* Background */
}

.page-faq__faq-category {
  margin-bottom: 40px;
}

.page-faq__category-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  color: #2AD16F; /* A lighter green */
  margin-bottom: 30px;
  text-align: center;
  font-weight: bold;
  border-bottom: 2px solid #1E3A2A; /* Divider */
  padding-bottom: 15px;
}

.page-faq__faq-list {
  display: grid;
  gap: 15px;
}

.page-faq__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  overflow: hidden;
  color: #F2FFF6; /* Text Main */
}

.page-faq__faq-item details {
  /* Reset default details styling */
  list-style: none;
}

.page-faq__faq-item details > summary {
  list-style: none; /* Hide default marker */
}

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

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  background-color: #11271B; /* Card BG */
  color: #F2FFF6; /* Text Main */
  transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
  background-color: #1a3528; /* Slightly darker on hover */
}

.page-faq__faq-qtext {
  flex-grow: 1;
  color: #F2FFF6;
}

.page-faq__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  margin-left: 15px;
  color: #2AD16F; /* Glow color for toggle */
}

.page-faq__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.6;
}

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

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

.page-faq__link-contact,
.page-faq__link-download {
  color: #2AD16F;
  text-decoration: underline;
  font-weight: bold;
}

.page-faq__link-contact:hover,
.page-faq__link-download:hover {
  color: #57E38D;
}

/* Call to Action Bottom Section */
.page-faq__cta-bottom-section {
  padding: 60px 0;
  text-align: center;
  background-color: #0A4B2C; /* Deep Green */
}

.page-faq__cta-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  font-weight: bold;
}

.page-faq__cta-description {
  font-size: 1.1rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-faq__hero-section {
    padding-top: 10px !important; /* Ensure small top padding on mobile */
    padding-bottom: 40px;
  }

  .page-faq__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
    padding: 0 15px; /* Add padding to container */
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .page-faq__container {
    padding: 0 15px; /* Adjust padding for mobile */
  }

  .page-faq__section-title,
  .page-faq__category-title,
  .page-faq__cta-title {
    margin-bottom: 30px;
  }

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

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

  /* Image responsive rules */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-faq__hero-image-container,
  .page-faq__content-section,
  .page-faq__accordion-section,
  .page-faq__cta-bottom-section,
  .page-faq__container,
  .page-faq__faq-item {
    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 fix for hero image container padding */
  .page-faq__hero-image-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .page-faq__content-flex {
    flex-direction: column; /* Stack content and image vertically */
    gap: 20px;
  }

  .page-faq__image-wrapper--right,
  .page-faq__image-wrapper--left {
    order: unset; /* Reset order for mobile */
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }
  .page-faq__description {
    font-size: 1rem;
  }
  .page-faq__section-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }
  .page-faq__category-title {
    font-size: clamp(1.3rem, 6vw, 1.8rem);
  }
}