/* Base styles for the FAQ page */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: #FFFFFF; /* Default body background */
}

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, shared.css handles body padding-top */
  margin-bottom: 40px;
  overflow: hidden;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  overflow: hidden;
}

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

.page-faq__hero-content {
  position: relative;
  z-index: 10;
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transform: translateY(-50%); /* Pull up over image */
  margin-bottom: -150px; /* Adjust for translateY */
}

.page-faq__main-title {
  font-size: 40px;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-faq__description {
  font-size: 18px;
  color: #555555;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

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

.page-faq__btn-primary {
  background: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-faq__btn-primary:hover {
  background: #1e87c0;
  border-color: #1e87c0;
}

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

.page-faq__btn-secondary:hover {
  background: #e0f2f7;
  color: #1e87c0;
  border-color: #1e87c0;
}

/* General Section Styling */
.page-faq__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-faq__section-description {
  font-size: 18px;
  color: #555555;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

.page-faq__faq-section {
  padding: 60px 0;
  background-color: #f9f9f9; /* Light background for FAQ section */
}

.page-faq__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-faq__dark-bg .page-faq__section-title,
.page-faq__dark-bg .page-faq__section-description,
.page-faq__dark-bg .page-faq__article-subtitle {
  color: #ffffff;
}

.page-faq__dark-bg .page-faq__article-body p,
.page-faq__dark-bg .page-faq__article-body li,
.page-faq__dark-bg .page-faq__article-body figcaption {
  color: #e0f2f7;
}

.page-faq__dark-bg .page-faq__article-body a {
  color: #ffffff;
  text-decoration: underline;
}

/* FAQ Accordion Styling (details tag) */
details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

details.page-faq__faq-item summary.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

details.page-faq__faq-item summary.page-faq__faq-question::-webkit-details-marker {
  display: none;
}

details.page-faq__faq-item summary.page-faq__faq-question:hover {
  background: #f5f5f5;
}

.page-faq__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}

.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #26A9E0;
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 25px 25px;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
  color: #555555;
}

.page-faq__faq-answer p {
  margin-bottom: 15px;
  font-size: 16px;
  line-height: 1.7;
}

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

.page-faq__faq-answer a {
  color: #26A9E0;
  text-decoration: underline;
}

/* CTA Bottom */
.page-faq__cta-bottom {
  text-align: center;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid #e0e0e0;
}

.page-faq__cta-bottom p {
  font-size: 18px;
  color: #555555;
  margin-bottom: 25px;
}

.page-faq__cta-bottom p a {
  color: #26A9E0;
  text-decoration: underline;
  font-weight: bold;
}

/* Article Section */
.page-faq__article-section {
  padding: 80px 0;
  margin-top: -50px; /* Adjust for hero content overlap */
}

.page-faq__article-body {
  max-width: 900px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.8;
}

.page-faq__article-body h3.page-faq__article-subtitle {
  font-size: 28px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 20px;
  line-height: 1.4;
  color: #ffffff; /* For dark background */
}

.page-faq__article-body p {
  margin-bottom: 20px;
}

.page-faq__article-figure {
  margin: 40px 0;
  text-align: center;
}

.page-faq__article-figure img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  display: block;
  margin: 0 auto;
}

.page-faq__article-figure figcaption {
  margin-top: 15px;
  font-size: 15px;
  color: #e0f2f7; /* For dark background */
}

/* Responsive Styles */

/* For screens smaller than 1024px */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: 36px;
  }
  .page-faq__description {
    font-size: 17px;
  }
  .page-faq__section-title {
    font-size: 32px;
  }
  .page-faq__section-description {
    font-size: 16px;
  }
  .page-faq__hero-content {
    transform: translateY(-40%);
    margin-bottom: -100px;
  }
  .page-faq__article-body {
    font-size: 16px;
  }
  .page-faq__article-body h3.page-faq__article-subtitle {
    font-size: 26px;
  }
}

/* For screens smaller than 849px (specific for hero image object-fit) */
@media (max-width: 849px) {
  .page-faq__hero-image img {
    object-fit: contain !important;
    aspect-ratio: unset !important;
  }
}

/* For screens smaller than 768px */
@media (max-width: 768px) {
  .page-faq__hero-section {
    padding-top: 10px; /* Consistent small top padding */
    margin-bottom: 20px;
  }
  .page-faq__hero-content {
    padding: 30px 15px;
    transform: translateY(-30%);
    margin-bottom: -50px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }
  .page-faq__main-title {
    font-size: clamp(24px, 7vw, 32px);
    margin-bottom: 15px;
  }
  .page-faq__description {
    font-size: 15px;
    margin-bottom: 20px;
  }
  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .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;
    font-size: 16px;
  }
  .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-wrap: wrap !important;
    gap: 10px;
  }

  .page-faq__section-title {
    font-size: clamp(28px, 8vw, 30px);
    margin-bottom: 15px;
  }
  .page-faq__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }
  .page-faq__faq-section {
    padding: 40px 0;
  }
  details.page-faq__faq-item summary.page-faq__faq-question {
    padding: 15px;
  }
  .page-faq__faq-qtext {
    font-size: 16px;
  }
  .page-faq__faq-toggle {
    font-size: 24px;
    width: 24px;
  }
  details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 15px 15px;
  }
  .page-faq__faq-answer p {
    font-size: 15px;
  }
  .page-faq__cta-bottom {
    margin-top: 30px;
    padding-top: 20px;
  }
  .page-faq__cta-bottom p {
    font-size: 16px;
  }
  .page-faq__article-section {
    padding: 50px 0;
    margin-top: 0; /* Remove negative margin on mobile */
  }
  .page-faq__article-body {
    font-size: 15px;
    padding: 0 15px;
  }
  .page-faq__article-body h3.page-faq__article-subtitle {
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 15px;
  }
  .page-faq__article-figure {
    margin: 30px 0;
    padding: 0 15px;
  }
  .page-faq__article-figure img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}