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

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

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding as body handles header offset */
  padding-bottom: 60px;
  text-align: center;
  background-color: #F4F7FB; /* Ensure consistent background */
}

.page-faq__hero-image-wrapper {
  width: 100%;
  overflow: hidden;
  margin-bottom: 30px;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-faq__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-faq__main-title {
  font-size: clamp(2.2rem, 4vw, 3rem); /* Using clamp for responsive H1 */
  color: #2F6BFF; /* Main Color */
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

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

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  min-width: 180px; /* Ensure buttons are not too small */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word;
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button gradient */
  color: #ffffff; /* White text for contrast */
  border: none;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

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

.page-faq__btn-secondary {
  background: #ffffff; /* Card BG */
  color: #2F6BFF; /* Main Color */
  border: 2px solid #2F6BFF; /* Main Color border */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-faq__btn-secondary:hover {
  background: #F4F7FB; /* Background */
  color: #4A8BFF;
  border-color: #4A8BFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-faq__btn-text {
  color: #2F6BFF; /* Main Color */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-faq__btn-text:hover {
  color: #6FA3FF; /* Auxiliary Color */
  text-decoration: underline;
}

/* FAQ Section */
.page-faq__faq-section {
  padding: 60px 0;
  background-color: #ffffff; /* Card BG */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 40px;
}

.page-faq__section-title {
  font-size: 2.2rem;
  color: #2F6BFF; /* Main Color */
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

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

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

.page-faq__faq-category-title {
  font-size: 1.8rem;
  color: #000000; /* Custom Color_1776249996415 */
  margin-top: 40px;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 2px solid #D6E2FF; /* Border color */
  font-weight: 600;
}

.page-faq__faq-item {
  background-color: #F4F7FB; /* Background */
  border: 1px solid #D6E2FF; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #1F2D3D; /* Text Main */
  cursor: pointer;
  list-style: none; /* Hide default marker */
  position: relative;
  user-select: none;
}

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

.page-faq__faq-question::before {
  content: '+';
  font-size: 1.5rem;
  font-weight: bold;
  color: #2F6BFF; /* Main Color */
  margin-left: 15px;
  transition: transform 0.3s ease;
}

details[open] > .page-faq__faq-question::before {
  content: '-';
  transform: rotate(0deg); /* No rotation for '-' */
}

.page-faq__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: #1F2D3D;
  border-top: 1px solid #D6E2FF; /* Border color */
  margin-top: -1px; /* Overlap border */
}

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

.page-faq__faq-answer ul {
  list-style: disc inside;
  padding-left: 20px;
  margin-bottom: 15px;
}

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

.page-faq__image-container {
  margin: 30px auto;
  max-width: 800px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-faq__content-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-faq__related-links {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  text-align: center;
}

.page-faq__related-links li {
  margin-bottom: 10px;
}

.page-faq__related-links a {
  color: #2F6BFF; /* Main Color */
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.page-faq__related-links a:hover {
  color: #6FA3FF; /* Auxiliary Color */
  text-decoration: underline;
}

.page-faq__cta-buttons--bottom {
  margin-top: 50px;
  margin-bottom: 30px;
}

/* Section spacing for consistency */
.page-faq__section-spacing {
  margin-top: 40px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-faq__container {
    padding: 0 15px;
  }

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

  .page-faq__hero-content {
    padding: 0 15px;
  }

  .page-faq__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem); /* Adjust H1 for mobile */
  }

  .page-faq__hero-description,
  .page-faq__section-description {
    font-size: 1rem;
  }

  .page-faq__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px; /* Add padding to button container */
    width: 100% !important; /* Ensure container is full width */
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary,
  .page-faq a[class*="button"],
  .page-faq a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px; /* Adjust padding for smaller buttons */
    font-size: 0.95rem;
  }

  .page-faq__faq-section {
    padding: 40px 0;
  }

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

  .page-faq__faq-category {
    padding: 0 15px;
  }

  .page-faq__faq-category-title {
    font-size: 1.5rem;
  }

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

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

  /* Mobile image adaptation */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-faq__hero-image-wrapper,
  .page-faq__image-container,
  .page-faq__hero-content,
  .page-faq__faq-category {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Ensure no horizontal scroll for content areas */
  .page-faq__faq-section .page-faq__container {
    overflow-x: hidden;
  }
}