:root {
  --primary-color: #2F6BFF;
  --secondary-color: #6FA3FF;
  --text-main: #1F2D3D;
  --text-black: #000000;
  --card-bg: #FFFFFF;
  --background-color-page: #F4F7FB;
  --border-color: #D6E2FF;
  --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  --glow-color: #A5C4FF;
}

.page-faq {
  font-family: Arial, sans-serif;
  color: var(--text-main); /* Default text color for the page */
  background-color: var(--background-color-page); /* Page specific background */
}

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

/* Hero Section */
.page-faq__hero-section {
  padding-top: 10px; /* Small top padding as body handles header offset */
  padding-bottom: 40px;
  background-color: var(--card-bg); /* Light background for hero */
}

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

.page-faq__hero-content {
  flex: 1 1 50%;
  min-width: 300px;
  color: var(--text-main);
}

.page-faq__hero-title {
  font-size: 2.8em;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--primary-color);
  max-width: 600px;
}

.page-faq__hero-description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 550px;
}

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

.page-faq__hero-image {
  flex: 1 1 40%;
  text-align: center;
}

.page-faq__hero-side-image {
  max-width: 600px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.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: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* For responsiveness */
  box-sizing: border-box; /* For responsiveness */
  white-space: normal; /* For responsiveness */
  word-wrap: break-word; /* For responsiveness */
}

.page-faq__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
}

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

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

.page-faq__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 4px 12px var(--glow-color);
}

/* FAQ Section */
.page-faq__faq-section {
  padding: 60px 0;
  background-color: var(--background-color-page);
}

.page-faq__section-title {
  font-size: 2.2em;
  font-weight: bold;
  color: var(--text-black);
  text-align: center;
  margin-bottom: 40px;
}

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

.page-faq__faq-item {
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--text-main);
  cursor: pointer;
  list-style: none; /* For <details> summary */
}

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

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

.page-faq__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(45deg); /* Rotate + to become X or - */
}

.page-faq__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  line-height: 1.7;
  color: var(--text-main);
}

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

.page-faq__faq-answer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-faq__faq-answer a:hover {
  text-decoration: underline;
}

.page-faq__faq-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin-top: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

/* Bottom CTA Section */
.page-faq__cta-bottom-section {
  padding: 60px 0;
  background: var(--primary-color); /* Dark background for bottom CTA */
  color: #ffffff; /* White text for dark background */
}

.page-faq__cta-bottom-content {
  text-align: center;
}

.page-faq__cta-bottom-title {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-faq__cta-bottom-description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Ensure all images adhere to the minimum size requirement */
.page-faq img {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover; /* Ensure images fill their space without distortion */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faq__hero-title {
    font-size: 2.4em;
  }
  .page-faq__section-title {
    font-size: 2em;
  }
  .page-faq__cta-bottom-title {
    font-size: 2.2em;
  }
  .page-faq__hero-container {
    padding: 30px 16px;
    gap: 30px;
  }
  .page-faq__container {
    padding: 30px 16px;
  }
}

@media (max-width: 768px) {
  /* General page padding for mobile */
  .page-faq__container,
  .page-faq__hero-container,
  .page-faq__cta-bottom-content {
    padding: 20px 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Hero Section */
  .page-faq__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
    padding-bottom: 30px;
  }
  .page-faq__hero-container {
    flex-direction: column;
    text-align: center;
  }
  .page-faq__hero-content {
    flex: 1 1 100%;
  }
  .page-faq__hero-title {
    font-size: 2em;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    color: var(--primary-color); /* Ensure contrast */
  }
  .page-faq__hero-description {
    font-size: 1em;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .page-faq__hero-cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
  .page-faq__hero-image {
    flex: 1 1 100%;
    order: -1; /* Image at top on mobile */
  }
  .page-faq__hero-side-image {
    min-width: 200px !important; /* Ensure minimum size */
    min-height: 200px !important;
    object-fit: cover !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Buttons for mobile */
  .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;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-faq__cta-bottom-buttons {
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  /* FAQ Section */
  .page-faq__faq-section {
    padding: 40px 0;
  }
  .page-faq__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
    color: var(--text-black); /* Ensure contrast */
  }
  .page-faq__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-faq__faq-answer {
    font-size: 0.95em;
    padding: 0 20px 15px;
  }
  .page-faq__faq-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
    object-fit: cover !important;
  }

  /* Bottom CTA Section */
  .page-faq__cta-bottom-section {
    padding: 40px 0;
  }
  .page-faq__cta-bottom-title {
    font-size: 1.8em;
    color: #ffffff; /* Ensure contrast */
  }
  .page-faq__cta-bottom-description {
    font-size: 1em;
  }

  /* Generic image responsiveness for content area */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important; /* Ensure content images are not small */
    min-height: 200px !important;
    object-fit: cover !important;
  }
}