/* style/faq.css */

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

/* Hero Section */
.page-faq__hero-section {
  padding-top: 10px; /* Small top padding, relying on body padding for header offset */
  padding-bottom: 40px;
  background-color: #F4F7FB; /* Match body background */
}

.page-faq__hero-container {
  max-width: 1170px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 40px 16px;
  gap: 24px;
}

.page-faq__hero-content {
  flex: 1 1 45%;
  min-width: 300px;
  color: #1F2D3D; /* Text Main */
}

.page-faq__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Responsive H1 font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #000000; /* Custom Color_1776249996415 for prominence */
  max-width: 600px;
}

.page-faq__hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #1F2D3D;
  max-width: 650px;
}

.page-faq__cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  transition: all 0.3s ease;
  min-width: 160px; /* Minimum width for better appearance */
  text-align: center;
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
  color: #FFFFFF; /* White text for contrast */
  border: 2px solid transparent;
}

.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-color: #FFFFFF; /* Card BG */
  color: #2F6BFF; /* Main brand color */
  border: 2px solid #2F6BFF;
}

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

.page-faq__hero-image {
  flex: 1 1 50%;
  min-width: 300px;
  text-align: center;
}

.page-faq__hero-side-image {
  max-width: 600px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: block; /* Ensure it behaves as a block element */
  margin: 0 auto; /* Center image */
  min-width: 200px;
  min-height: 200px;
}

/* FAQ Section */
.page-faq__faq-section {
  padding: 60px 0;
  background-color: #F4F7FB; /* Background */
}

.page-faq__container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 16px;
}

.page-faq__section-title {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 700;
  color: #000000; /* Custom Color_1776249996415 */
  text-align: center;
  margin-bottom: 20px;
}

.page-faq__section-description {
  font-size: 18px;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-faq__faq-item[open] {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border-color: #2F6BFF; /* Main brand color */
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 600;
  color: #000000; /* Custom Color_1776249996415 */
  cursor: pointer;
  list-style: none; /* Remove default marker */
  -webkit-touch-callout: none; /* Disable text selection on mobile */
  -webkit-user-select: none; /* Disable text selection on mobile */
  -moz-user-select: none; /* Disable text selection on mobile */
  -ms-user-select: none; /* Disable text selection on mobile */
  user-select: none; /* Disable text selection on mobile */
}

.page-faq__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Webkit browsers */
}

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

.page-faq__faq-toggle {
  font-size: 24px;
  font-weight: 300;
  margin-left: 15px;
  color: #2F6BFF; /* Main brand color */
}

.page-faq__faq-answer {
  padding: 0 25px 20px;
  font-size: 16px;
  color: #1F2D3D; /* Text Main */
  animation: fadeIn 0.3s ease-out; /* Smooth fade in for content */
}

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

.page-faq__faq-answer img.page-faq__faq-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin-top: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-faq__faq-answer .page-faq__cta-buttons {
  margin-top: 20px;
  justify-content: flex-start;
}

/* Contact Promo Section */
.page-faq__contact-promo-section {
  padding: 60px 0;
  background-color: #F4F7FB; /* Background */
  text-align: center;
}

.page-faq__section-title--alt {
  color: #000000; /* Custom Color_1776249996415 */
}

.page-faq__section-description--alt {
  color: #1F2D3D; /* Text Main */
  margin-bottom: 30px;
}

.page-faq__cta-buttons--center {
  justify-content: center;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faq__hero-container {
    padding: 30px 20px;
  }

  .page-faq__main-title {
    font-size: clamp(26px, 4.5vw, 42px);
  }

  .page-faq__hero-description {
    font-size: 17px;
  }

  .page-faq__faq-question {
    padding: 18px 20px;
    font-size: 17px;
  }

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

  .page-faq__section-title {
    font-size: clamp(22px, 4vw, 36px);
  }

  .page-faq__section-description {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  /* HERO Section */
  .page-faq__hero-section {
    padding-top: 10px !important; /* Small top padding, relying on body padding for header offset */
    padding-bottom: 30px;
  }

  .page-faq__hero-container {
    flex-direction: column;
    padding: 20px 15px;
    gap: 20px;
  }

  .page-faq__hero-content {
    order: 2; /* Content below image on mobile */
    text-align: center;
  }

  .page-faq__hero-image {
    order: 1; /* Image above content on mobile */
  }

  .page-faq__main-title {
    font-size: clamp(24px, 8vw, 36px);
    margin-bottom: 15px;
  }

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

  .page-faq__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    width: 100% !important; /* Ensure container fills width */
    max-width: 100% !important;
    padding: 0 15px;
    box-sizing: border-box !important;
  }
  
  .page-faq__cta-buttons > a {
    width: 100% !important; /* Buttons fill container width */
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
    white-space: normal !important; /* Allow text wrap */
    word-wrap: break-word !important; /* Allow text wrap */
  }

  /* General Images */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  
  /* Ensure all containers with images also adapt */
  .page-faq__container,
  .page-faq__hero-section,
  .page-faq__faq-section,
  .page-faq__contact-promo-section,
  .page-faq__faq-item,
  .page-faq__faq-answer {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* FAQ Section */
  .page-faq__faq-section {
    padding: 40px 0;
  }

  .page-faq__section-title {
    font-size: clamp(20px, 7vw, 32px);
    margin-bottom: 15px;
  }

  .page-faq__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

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

  .page-faq__faq-toggle {
    font-size: 20px;
  }

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

  /* Contact Promo Section */
  .page-faq__contact-promo-section {
    padding: 40px 0;
  }

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