.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #F5F7FA; /* Custom background color */
}

.page-faq__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-faq__hero-image-container {
  width: 100%;
  max-width: 1200px; /* Max width for hero image container */
  margin-bottom: 20px;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover; /* Cover for desktop */
}

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

.page-faq__main-title {
  font-size: clamp(2em, 4vw, 3em); /* Responsive font size for H1 */
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #ffffff;
}

.page-faq__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

.page-faq__introduction-section {
  padding: 60px 0;
  background-color: #F5F7FA;
}

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

.page-faq__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: #E53935;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-faq__section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #FF5A4F 0%, #E53935 100%);
  margin: 10px auto 0;
  border-radius: 2px;
}

.page-faq__section-description {
  font-size: 1.1em;
  color: #333333;
  text-align: center;
  margin-bottom: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-faq__feature-item {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-faq__feature-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-faq__feature-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
}

.page-faq__feature-title {
  font-size: 1.5em;
  color: #E53935;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-faq__feature-text {
  color: #555555;
  margin-bottom: 25px;
}

.page-faq__faq-list-section {
  padding: 60px 0;
  background-color: #F5F7FA;
}

.page-faq__faq-item-group {
  margin-bottom: 50px;
}

.page-faq__faq-item {
  background-color: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #FFFFFF;
  transition: background-color 0.3s ease;
  list-style: none; /* Remove default marker for <summary> */
}

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

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

.page-faq__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #E53935;
  margin-left: 15px;
  pointer-events: none; /* Prevent click on toggle from triggering twice */
}

.page-faq__faq-item[open] > .page-faq__faq-question .page-faq__faq-toggle {
  content: '−'; /* Change to minus when open */
}

.page-faq__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #555555;
  line-height: 1.7;
}

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

.page-faq__faq-answer .page-faq__btn-primary {
  margin-top: 10px;
}

.page-faq__cta-section {
  padding: 80px 0;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  text-align: center;
}

.page-faq__cta-section .page-faq__section-title {
  color: #ffffff;
}

.page-faq__cta-section .page-faq__section-description {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
}

.page-faq__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  justify-content: center;
  gap: 20px;
}

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

.page-faq__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-faq__btn-primary:hover {
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
  box-shadow: 0 8px 25px rgba(229, 57, 53, 0.4);
}

.page-faq__btn-secondary {
  background-color: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
}

.page-faq__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #E53935;
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.page-faq__small-btn {
  padding: 10px 20px;
  font-size: 0.9em;
  border-radius: 25px;
}

.page-faq__large-btn {
  padding: 18px 40px;
  font-size: 1.2em;
  border-radius: 60px;
}

.page-faq__conclusion-section {
  padding: 60px 0 80px;
  background-color: #F5F7FA;
  text-align: center;
}

.page-faq__advice-list {
  list-style: none;
  padding: 0;
  margin: 40px auto 50px auto;
  max-width: 800px;
  text-align: left;
}

.page-faq__advice-list li {
  background-color: #FFFFFF;
  border-left: 5px solid #E53935;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  color: #333333;
  font-size: 1.05em;
}

/* Ensure all images are responsive by default */
.page-faq img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

  .page-faq__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Hero section */
  .page-faq__hero-section {
    flex-direction: column;
    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;
    aspect-ratio: unset !important;
  }

  .page-faq__main-title {
    font-size: 2em; /* Adjust H1 size for mobile */
  }

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

  .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-left: 15px;
    padding-right: 15px;
    text-align: center;
  }
  
  .page-faq__cta-buttons,
  .page-faq__button-group,
  .page-faq__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
  }

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

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

  .page-faq__feature-grid {
    grid-template-columns: 1fr; /* Single column for features */
    gap: 20px;
  }

  .page-faq__feature-item {
    padding: 20px;
  }

  .page-faq__feature-image {
    height: 180px;
  }

  .page-faq__feature-title {
    font-size: 1.3em;
  }

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

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

  .page-faq__cta-section {
    padding: 50px 0;
  }

  .page-faq__cta-section .page-faq__section-title {
    font-size: 2em;
  }

  .page-faq__cta-section .page-faq__section-description {
    margin-bottom: 30px;
  }

  .page-faq__advice-list {
    margin: 30px auto 40px auto;
  }

  .page-faq__advice-list li {
    font-size: 0.95em;
    padding: 12px 15px;
    margin-bottom: 10px;
  }

  /* General image responsiveness for content areas */
  .page-faq__section img,
  .page-faq__card img,
  .page-faq__container img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-faq__section,
  .page-faq__card,
  .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* @media (max-width: 1024px) for tablet, if needed. For this page, 768px covers most mobile/tablet needs. */
@media (max-width: 1024px) {
  .page-faq__feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
}

.page-faq__dark-section {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
}

.page-faq__dark-section .page-faq__section-title {
  color: #ffffff;
}

.page-faq__dark-section .page-faq__section-description {
  color: rgba(255, 255, 255, 0.9);
}

/* Default card background and text */
.page-faq__card {
  background: #ffffff; /* White background */
  color: #333333; /* Dark text */
  border: 1px solid #E0E0E0; /* Border color */
}

.page-faq__faq-answer strong {
  color: #E53935;
}