/* CSS cho trang Câu hỏi thường gặp (FAQ) */

/* Các biến màu tùy chỉnh */
:root {
  --lp88-primary-color: #2F6BFF;
  --lp88-secondary-color: #6FA3FF;
  --lp88-button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  --lp88-card-bg: #FFFFFF;
  --lp88-background: #F4F7FB;
  --lp88-text-main: #1F2D3D;
  --lp88-text-black: #000000;
  --lp88-border-color: #D6E2FF;
  --lp88-glow-color: #A5C4FF;
}

/* Body background color from shared.css, assuming light background */
.page-faq {
  color: var(--lp88-text-main);
  background-color: var(--lp88-background);
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: 10px; /* Small top padding, assuming body has padding-top from shared.css */
}

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

/* Hero Section */
.page-faq__hero-section {
  padding: 60px 0;
  text-align: center;
  background: var(--lp88-primary-color);
  color: #ffffff;
  margin-bottom: 40px;
}

.page-faq__main-title {
  font-size: clamp(2em, 2.5vw, 2.8em);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-faq__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-faq__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1em;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary {
  background: var(--lp88-button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-faq__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__btn-secondary {
  background: #ffffff;
  color: var(--lp88-primary-color);
  border: 2px solid var(--lp88-primary-color);
}

.page-faq__btn-secondary:hover {
  background: var(--lp88-primary-color);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Content Area */
.page-faq__content-area {
  padding: 40px 0 60px;
  background: var(--lp88-background);
  color: var(--lp88-text-main);
}

.page-faq__section-title {
  font-size: 2.2em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 25px;
  color: var(--lp88-text-black);
}

.page-faq__intro-text {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
  color: var(--lp88-text-main);
}

/* FAQ List */
.page-faq__faq-list {
  margin-top: 30px;
}

details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--lp88-border-color);
  overflow: hidden;
  background: var(--lp88-card-bg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

details.page-faq__faq-item summary.page-faq__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;
  color: var(--lp88-text-black);
}

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

details.page-faq__faq-item summary.page-faq__faq-question:hover {
  background: #f5f8fc;
}

.page-faq__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}

.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--lp88-primary-color);
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
}

details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 25px 20px;
  background: #fcfdfe;
  border-radius: 0 0 10px 10px;
  color: var(--lp88-text-main);
}

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

.page-faq__faq-answer ul,
.page-faq__faq-answer ol {
  margin-left: 25px;
  margin-bottom: 15px;
  list-style-type: disc;
}

.page-faq__faq-answer ol {
  list-style-type: decimal;
}

.page-faq__faq-answer li {
  margin-bottom: 8px;
}

.page-faq__faq-answer a {
  color: var(--lp88-primary-color);
  text-decoration: underline;
}

.page-faq__faq-answer a:hover {
  color: var(--lp88-secondary-color);
}

/* Call to Action */
.page-faq__call-to-action {
  text-align: center;
  margin-top: 50px;
  padding: 40px 20px;
  background: var(--lp88-card-bg);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-faq__call-to-action p {
  font-size: 1.2em;
  margin-bottom: 25px;
  color: var(--lp88-text-black);
}

/* Image Section */
.page-faq__image-section {
  padding: 40px 0 80px;
  text-align: center;
}

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

/* General Image Styling */
.page-faq img {
  max-width: 100%;
  height: auto;
  display: block;
  /* No filter properties to change image color */
}

/* General Button Styling for Mobile Responsiveness */
.page-faq a[class*="btn"],
.page-faq button[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__cta-buttons,
.page-faq__button-group,
.page-faq__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Responsive Design */
@media (max-width: 1023px) {
  /* No homepage specific CSS for this inner page. */
  /* If any general elements need adjustments for tablet, add here. */
}

@media (min-width: 1024px) {
  /* No homepage specific CSS for this inner page. */
  /* If any general elements need adjustments for desktop, add here. */
}

@media (max-width: 768px) {
  .page-faq {
    font-size: 15px;
    line-height: 1.6;
    padding-top: 0; /* body should handle padding-top */
  }

  .page-faq__hero-section {
    padding: 40px 0;
    margin-bottom: 30px;
  }

  .page-faq__main-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-faq__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    padding: 12px 20px;
    font-size: 0.95em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

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

  details.page-faq__faq-item summary.page-faq__faq-question {
    padding: 15px 20px;
  }

  .page-faq__faq-qtext {
    font-size: 1em;
    margin-right: 10px;
  }

  .page-faq__faq-toggle {
    font-size: 24px;
    margin-left: 10px;
  }

  details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 20px 15px;
  }

  .page-faq__call-to-action {
    margin-top: 40px;
    padding: 30px 15px;
  }

  .page-faq__call-to-action p {
    font-size: 1.1em;
    margin-bottom: 20px;
  }

  .page-faq__image-section {
    padding: 30px 0 60px;
  }

  /* Mobile image adaptation */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-faq__container,
  .page-faq__hero-section,
  .page-faq__content-area,
  .page-faq__call-to-action,
  .page-faq__image-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Color Contrast Fixes (if needed, though design aims for good contrast) */
.page-faq__dark-bg {
  color: #ffffff; /* Deep blue background, white text */
  background: var(--lp88-primary-color);
}

.page-faq__light-bg {
  color: var(--lp88-text-main); /* Light grey background, dark text */
  background: var(--lp88-background);
}

.page-faq__medium-bg {
  color: var(--lp88-text-black); /* Lighter blue background, black text */
  background: var(--lp88-secondary-color);
}

/* Ensure content text is readable */
.page-faq__content-area p,
.page-faq__content-area li {
  color: var(--lp88-text-main);
}

/* Card backgrounds (FAQ items are cards) */
details.page-faq__faq-item {
  background: var(--lp88-card-bg);
  color: var(--lp88-text-main);
}

/* Buttons */
.page-faq__btn-primary {
  background: var(--lp88-button-gradient);
  color: #ffffff;
}

.page-faq__btn-secondary {
  background: var(--lp88-card-bg);
  color: var(--lp88-primary-color);
  border: 2px solid var(--lp88-primary-color);
}

/* No homepage-specific CSS templates for this inner page */
/* The provided homepage CSS templates are explicitly for index.html and are omitted here. */