/* style/faq.css */

/* --- Base Styles --- */
.page-faq {
  font-family: Arial, sans-serif;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
  line-height: 1.6;
}

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

.page-faq__section-title {
  font-size: 2.5rem;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

/* --- Hero Section --- */
.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 0;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background: linear-gradient(180deg, #6FA3FF 0%, #F4F7FB 100%); /* Blend auxiliary color with background */
  overflow: hidden;
}

.page-faq__hero-section .page-faq__container {
  display: flex;
  flex-direction: row; /* Desktop: row layout */
  align-items: center;
  gap: 40px;
}

.page-faq__hero-content {
  flex: 1;
  text-align: left;
  max-width: 600px;
}

.page-faq__main-title {
  font-size: clamp(2.2rem, 4vw, 3rem); /* H1 font size with clamp */
  color: #1F2D3D; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-faq__subtitle {
  font-size: 1.1rem;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 30px;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
  color: #ffffff;
  border: 2px solid transparent;
  margin-right: 15px;
}

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

.page-faq__btn-secondary {
  background: #ffffff; /* Card BG */
  color: #2F6BFF; /* Main color */
  border: 2px solid #2F6BFF; /* Main color */
}

.page-faq__btn-secondary:hover {
  background: #f0f0f0;
  color: #2F6BFF;
  box-shadow: 0 2px 8px rgba(47, 107, 255, 0.2);
}

.page-faq__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

/* --- FAQ Section --- */
.page-faq__faq-section {
  padding: 80px 0;
  background-color: #ffffff; /* Card BG */
}

.page-faq__faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-faq__faq-item {
  background-color: #ffffff; /* Card BG */
  border: 1px solid #D6E2FF; /* Border color */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.page-faq__faq-item.active {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.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: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Light background for question */
  border-bottom: 1px solid #D6E2FF; /* Border color */
}

.page-faq__faq-item[open] > .page-faq__faq-question {
  border-bottom: 1px solid transparent;
}

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

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

.page-faq__faq-item[open] .page-faq__faq-toggle {
  content: '−';
}

.page-faq__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: #1F2D3D; /* Text Main */
  max-height: 0; /* For JS-driven accordion */
  overflow: hidden; /* For JS-driven accordion */
  transition: max-height 0.3s ease-out; /* For JS-driven accordion */
}

.page-faq__faq-item[open] .page-faq__faq-answer {
  max-height: fit-content; /* For <details> native behavior */
  overflow: visible;
}

.page-faq__faq-answer p {
  margin-bottom: 15px;
  color: #1F2D3D;
}

.page-faq__faq-answer ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 15px;
  color: #1F2D3D;
}

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

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

/* For <details> tag, hide default marker */
.page-faq__faq-item summary {
  list-style: none;
}
.page-faq__faq-item summary::-webkit-details-marker {
  display: none;
}

/* --- CTA Section --- */
.page-faq__cta-section {
  background-color: #F4F7FB; /* Background */
  padding: 80px 0;
  text-align: center;
}

.page-faq__cta-title {
  font-size: 2rem;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 20px;
  font-weight: bold;
}

.page-faq__cta-description {
  font-size: 1.1rem;
  color: #1F2D3D; /* Text Main */
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

/* --- Responsive Styles --- */
@media (max-width: 992px) {
  .page-faq__hero-section .page-faq__container {
    flex-direction: column;
    text-align: center;
  }

  .page-faq__hero-content {
    text-align: center;
    max-width: 100%;
  }

  .page-faq__hero-image-wrapper {
    margin-top: 40px;
  }

  .page-faq__main-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
  }

  .page-faq__section-title {
    font-size: 2rem;
  }

  .page-faq__cta-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .page-faq {
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-faq__hero-section {
    padding: 40px 0;
    padding-top: 10px !important;
  }

  .page-faq__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .page-faq__subtitle {
    font-size: 1rem;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-right: 0 !important;
  }

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

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

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

  /* Mobile image and video responsive rules */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-faq video,
  .page-faq__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__hero-section,
  .page-faq__faq-section,
  .page-faq__cta-section,
  .page-faq__video-section,
  .page-faq__video-container,
  .page-faq__video-wrapper
  {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-faq__content-image {
    min-width: 200px;
    min-height: 200px;
  }

  .page-faq__hero-section .page-faq__container {
    padding-left: 0;
    padding-right: 0;
  }
}