.page-faq {
  font-family: Arial, sans-serif;
  color: var(--text-main, #1F2D3D);
  background-color: var(--background, #F4F7FB);
}

.page-faq__hero-section {
  position: relative;
  overflow: hidden;
  padding-bottom: 40px;
  padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-faq__hero-content-wrapper {
  display: flex;
  flex-direction: column; /* Default to column for mobile first */
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover; /* Ensures image covers the area */
  margin-bottom: 30px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.page-faq__hero-text-content {
  text-align: center;
  max-width: 900px;
}

.page-faq__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main, #1F2D3D);
  margin-bottom: 20px;
}

.page-faq__hero-description {
  font-size: 1.1em;
  line-height: 1.6;
  color: var(--text-main, #1F2D3D);
  margin-bottom: 30px;
}

.page-faq__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  width: 100%; /* Ensure container takes full width */
  max-width: 100%;
  box-sizing: border-box;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  border: none;
}

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

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

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

.page-faq__faq-list-section {
  padding: 50px 0;
  background-color: var(--card-bg, #FFFFFF);
  border-radius: 12px;
  margin: 30px auto;
  max-width: 1200px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

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

.page-faq__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--text-main, #1F2D3D);
  text-align: center;
  margin-bottom: 40px;
}

.page-faq__faq-category {
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border-color, #D6E2FF);
  padding-bottom: 20px;
}

.page-faq__faq-category:last-of-type {
  border-bottom: none;
}

.page-faq__category-title {
  font-size: 1.8em;
  font-weight: 600;
  color: var(--text-main, #1F2D3D);
  margin-bottom: 25px;
  padding-left: 10px;
}

.page-faq__faq-item {
  background-color: #fcfdff;
  border: 1px solid var(--border-color, #D6E2FF);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-faq__faq-item[open] {
  background-color: #eaf2ff;
  border-color: var(--primary-color, #2F6BFF);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: var(--text-main, #1F2D3D);
  cursor: pointer;
  list-style: none; /* Hide default marker */
  user-select: none;
}

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

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

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--primary-color, #2F6BFF);
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(45deg); /* Plus sign rotates to form an X or just a minus */
  content: '−'; /* Change to minus sign */
}

.page-faq__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  line-height: 1.7;
  color: var(--custom-color-1776249996415, #000000);
}

.page-faq__faq-answer p {
  margin: 0;
}

.page-faq__contact-cta {
  text-align: center;
  padding: 40px 20px;
  margin-top: 40px;
  background-color: #fcfdff;
  border: 1px solid var(--border-color, #D6E2FF);
  border-radius: 12px;
}

.page-faq__contact-title {
  font-size: 2em;
  font-weight: 700;
  color: var(--text-main, #1F2D3D);
  margin-bottom: 15px;
}

.page-faq__contact-description {
  font-size: 1.1em;
  line-height: 1.6;
  color: var(--text-main, #1F2D3D);
  margin-bottom: 30px;
}

.page-faq__contact-cta .page-faq__btn-primary {
  margin-top: 20px;
}

/* General image responsiveness */
.page-faq img {
  max-width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;
}

/* Desktop styles for hero content wrapper */
@media (min-width: 769px) {
  .page-faq__hero-content-wrapper {
    flex-direction: column; /* Keep column for consistency, image above text */
  }
  .page-faq__hero-image {
    max-width: 1200px; /* Ensure it doesn't exceed container width */
  }
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .page-faq__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
    padding-bottom: 30px;
  }

  .page-faq__hero-image {
    object-fit: contain !important; /* Ensure image is fully visible, not cropped */
    max-height: none !important; /* Remove any max-height constraints */
    aspect-ratio: unset !important; /* Remove aspect ratio for better fitting */
    margin-bottom: 20px;
  }

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

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

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

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-faq__faq-list-section {
    padding: 30px 0;
    margin: 20px auto;
  }

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

  .page-faq__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-faq__category-title {
    font-size: 1.5em;
    margin-bottom: 20px;
    padding-left: 0;
  }

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

  .page-faq__faq-toggle {
    font-size: 1.3em;
  }

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

  .page-faq__contact-cta {
    padding: 30px 15px;
    margin-top: 30px;
  }

  .page-faq__contact-title {
    font-size: 1.8em;
  }

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

  /* General image responsiveness for all content images */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__hero-content-wrapper,
  .page-faq__cta-buttons,
  .page-faq__contact-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons within containers */
  .page-faq__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-faq__cta-buttons .page-faq__btn-primary, 
  .page-faq__cta-buttons .page-faq__btn-secondary {
    flex: 1 1 100%; /* Make buttons take full width */
  }
}