.page-faqs {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light background */
  background: #ffffff; /* Default body background */
}

/* Hero Section */
.page-faqs__hero-section {
  padding-top: 10px; /* Small top padding, assuming body handles header offset */
  padding-bottom: 40px;
  background-color: #26A9E0; /* Primary brand color */
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-faqs__hero-section .page-faqs__container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-faqs__hero-content {
  flex: 1;
  text-align: left;
  z-index: 1;
}

.page-faqs__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #ffffff;
  max-width: 600px;
}

.page-faqs__description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 600px;
}

.page-faqs__hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 0;
  min-width: 200px; /* Minimum size for content images */
}

.page-faqs__hero-image img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Minimum size for content images */
  min-height: 200px;
}

/* General Section Styles */
.page-faqs__intro-section,
.page-faqs__faq-list-section,
.page-faqs__cta-section {
  padding: 60px 0;
}

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

.page-faqs__section-title {
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0; /* Primary brand color */
}

.page-faqs__intro-section .page-faqs__section-title {
    color: #333333;
}

.page-faqs__cta-section .page-faqs__section-title {
    color: #ffffff;
}

.page-faqs__text-block {
  font-size: 16px;
  line-height: 1.7;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

/* FAQ List Section */
.page-faqs__faq-items {
  max-width: 900px;
  margin: 0 auto;
}

details.page-faqs__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
details.page-faqs__faq-item summary.page-faqs__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;
  font-size: 17px; /* Slightly larger for questions */
  font-weight: 600;
  line-height: 1.5;
  color: #333333;
}
details.page-faqs__faq-item summary.page-faqs__faq-question::-webkit-details-marker {
  display: none;
}
details.page-faqs__faq-item summary.page-faqs__faq-question:hover {
  background: #f5f5f5;
}
.page-faqs__faq-qtext {
  flex: 1;
  text-align: left;
}
.page-faqs__faq-toggle {
  font-size: 28px; /* Larger for better visibility */
  font-weight: bold;
  color: #26A9E0; /* Primary color for toggle icon */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-faqs__faq-item .page-faqs__faq-answer {
  padding: 0 25px 20px;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
}
.page-faqs__faq-answer p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 15px;
  color: #555555;
}
.page-faqs__faq-answer ul {
  list-style: disc;
  padding-left: 25px;
  margin-bottom: 15px;
  color: #555555;
}
.page-faqs__faq-answer ul li {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.6;
}

/* CTA Section */
.page-faqs__cta-section {
  background-color: #26A9E0; /* Primary brand color */
  color: #ffffff;
  text-align: center;
  padding: 80px 0;
}

.page-faqs__cta-section .page-faqs__text-block {
    color: #ffffff;
}

.page-faqs__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  margin-top: 40px;
}

/* Buttons */
.page-faqs__btn-primary,
.page-faqs__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure buttons don't overflow */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-faqs__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-faqs__btn-primary:hover {
  background-color: #d16e06;
  border-color: #d16e06;
}

.page-faqs__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0; /* Primary brand color */
  border: 2px solid #26A9E0;
}

.page-faqs__btn-secondary:hover {
  background-color: #f0f8ff;
  color: #1e87c0;
  border-color: #1e87c0;
}

/* Images in content */
.page-faqs__faq-answer img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  min-width: 200px;
  min-height: 200px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faqs__hero-section .page-faqs__container {
    flex-direction: column;
    text-align: center;
  }
  .page-faqs__hero-content {
    text-align: center;
  }
  .page-faqs__main-title,
  .page-faqs__description {
    max-width: 100%;
  }
  .page-faqs__hero-image {
    order: -1; /* Image above text on tablet/mobile */
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  /* HERO Chủ đề chính */
  .page-faqs__hero-section {
    padding-top: 10px;
    padding-bottom: 30px;
  }
  .page-faqs__hero-section .page-faqs__container {
    padding: 0 15px;
    gap: 20px;
  }
  .page-faqs__main-title {
    font-size: clamp(24px, 7vw, 36px);
    margin-bottom: 10px;
  }
  .page-faqs__description {
    font-size: 15px;
    margin-bottom: 20px;
  }
  .page-faqs__hero-image img {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Hình ảnh và vùng chứa chung */
  .page-faqs img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  .page-faqs__container,
  .page-faqs__intro-section,
  .page-faqs__faq-list-section,
  .page-faqs__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-faqs__intro-section,
  .page-faqs__faq-list-section,
  .page-faqs__cta-section {
    padding: 40px 0;
  }

  /* Tiêu đề phần và vùng SEO văn bản dài */
  .page-faqs__section-title {
    font-size: clamp(20px, 6vw, 30px);
    margin-bottom: 30px;
    text-align: center;
    max-width: 100%;
    word-wrap: break-word;
  }
  .page-faqs__text-block {
    font-size: 15px;
    margin-bottom: 20px;
    text-align: center;
    max-width: 100%;
    word-wrap: break-word;
  }

  /* Kiểu FAQ */
  details.page-faqs__faq-item summary.page-faqs__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }
  .page-faqs__faq-qtext {
    flex-basis: calc(100% - 45px); /* Điều chỉnh chiều rộng cho biểu tượng chuyển đổi */
  }
  .page-faqs__faq-toggle {
    font-size: 24px;
    width: 25px;
    margin-left: 10px;
  }
  details.page-faqs__faq-item .page-faqs__faq-answer {
    padding: 0 20px 15px;
  }
  .page-faqs__faq-answer p,
  .page-faqs__faq-answer ul li {
    font-size: 14px;
  }
  .page-faqs__faq-answer ul {
    padding-left: 20px;
  }

  /* Nút và vùng chứa nút */
  .page-faqs__cta-buttons {
    flex-direction: column; /* Xếp chồng các nút theo chiều dọc */
    gap: 15px;
    margin-top: 30px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-faqs__btn-primary,
  .page-faqs__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 15px;
  }
}