/* -------------------------------------------------------------------------- */
/*                              Base & Utilities                              */
/* -------------------------------------------------------------------------- */
.page-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: var(--background-color, #FFFFFF);
}

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

.page-faq__section-title {
  font-size: 32px;
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-faq__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #26A9E0;
  border-radius: 2px;
}

.page-faq__sub-title {
  font-size: 24px;
  font-weight: 600;
  color: #333333;
  margin-top: 30px;
  margin-bottom: 20px;
}

.page-faq__text-block {
  font-size: 16px;
  margin-bottom: 15px;
}

.page-faq__link-more {
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  display: inline-block;
  margin-top: 10px;
}

.page-faq__link-more:hover {
  color: #1a7bb0;
  text-decoration: underline;
}

/* -------------------------------------------------------------------------- */
/*                                 Hero Section                               */
/* -------------------------------------------------------------------------- */
.page-faq__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, relying on body padding-top for header offset */
  padding-bottom: 40px;
  background-color: #f9f9f9;
  position: relative;
  overflow: hidden;
}

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

.page-faq__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Ensure width/height attributes are respected for CLS */
  /* HTML attributes width="1200" height="675" will set intrinsic ratio */
}

.page-faq__hero-content {
  max-width: 900px;
  padding: 0 20px;
  z-index: 1;
}

.page-faq__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size for H1 */
  font-weight: 800;
  color: #26A9E0;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-faq__hero-description {
  font-size: 18px;
  color: #555555;
  margin-bottom: 30px;
}

.page-faq__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  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;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons adapt to container width */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word;
}

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

.page-faq__btn-primary:hover {
  background-color: #1a7bb0;
  border-color: #1a7bb0;
  transform: translateY(-2px);
}

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

.page-faq__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1a7bb0;
  border-color: #1a7bb0;
  transform: translateY(-2px);
}

/* -------------------------------------------------------------------------- */
/*                                Intro Section                               */
/* -------------------------------------------------------------------------- */
.page-faq__intro-section {
  padding: 60px 0;
  background-color: #26A9E0; /* Dark background with white text */
  color: #ffffff;
}

.page-faq__intro-section .page-faq__section-title,
.page-faq__intro-section .page-faq__sub-title {
  color: #ffffff;
}

.page-faq__intro-section .page-faq__section-title::after {
  background-color: #ffffff;
}

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

details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

details.page-faq__faq-item[open] {
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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;
  position: relative;
  color: #333333;
}

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;
}

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

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

details.page-faq__faq-item .page-faq__faq-answer p {
  margin-bottom: 10px;
  font-size: 16px;
}

details.page-faq__faq-item .page-faq__faq-answer ol,
details.page-faq__faq-item .page-faq__faq-answer ul {
  margin-left: 20px;
  margin-bottom: 10px;
  font-size: 16px;
}

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

/* -------------------------------------------------------------------------- */
/*                              Conclusion Section                            */
/* -------------------------------------------------------------------------- */
.page-faq__conclusion-section {
  padding: 60px 0;
  background-color: #26A9E0; /* Dark background with white text */
  color: #ffffff;
  text-align: center;
}

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

.page-faq__conclusion-section .page-faq__section-title::after {
  background-color: #ffffff;
}

.page-faq__conclusion-section .page-faq__text-block {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  font-size: 18px;
}

/* -------------------------------------------------------------------------- */
/*                                Copyright Info                              */
/* -------------------------------------------------------------------------- */
.page-faq__copyright-info {
  padding: 20px;
  text-align: center;
  font-size: 14px;
  color: #777777;
  background-color: #eeeeee;
}

/* -------------------------------------------------------------------------- */
/*                                 Responsive Styles                          */
/* -------------------------------------------------------------------------- */

/* Mobile specific styles for devices up to 768px */
@media (max-width: 849px) {
  .page-faq__hero-image img {
    object-fit: contain !important; /* Prevent cropping on smaller screens */
    aspect-ratio: unset !important; /* Allow natural aspect ratio */
    height: auto !important;
    max-height: 300px; /* Limit height for contain */
  }
}

@media (max-width: 768px) {
  .page-faq__container {
    padding: 15px;
  }

  .page-faq__section-title {
    font-size: 26px;
    margin-bottom: 30px;
    padding-bottom: 10px;
  }

  .page-faq__sub-title {
    font-size: 20px;
    margin-top: 25px;
    margin-bottom: 15px;
  }

  .page-faq__text-block {
    font-size: 15px;
  }

  /* HERO Section Mobile */
  .page-faq__hero-section {
    padding-top: 10px; /* Small top padding, relying on body padding-top */
    padding-bottom: 30px;
  }

  .page-faq__main-title {
    font-size: 2em; /* Smaller H1 for mobile */
    margin-bottom: 10px;
  }

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

  .page-faq__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 16px;
    padding: 12px 20px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Intro & Conclusion Sections Mobile */
  .page-faq__intro-section,
  .page-faq__conclusion-section {
    padding: 40px 0;
  }

  /* FAQ List Section Mobile */
  .page-faq__faq-list-section {
    padding: 40px 0;
  }

  details.page-faq__faq-item summary.page-faq__faq-question {
    padding: 15px 18px;
  }

  .page-faq__faq-qtext {
    font-size: 16px;
  }

  .page-faq__faq-toggle {
    font-size: 24px;
    width: 24px;
    margin-left: 10px;
  }

  details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 18px 18px;
  }

  details.page-faq__faq-item .page-faq__faq-answer p,
  details.page-faq__faq-item .page-faq__faq-answer ol,
  details.page-faq__faq-item .page-faq__faq-answer ul {
    font-size: 15px;
  }

  /* General Image Responsiveness */
  .page-faq img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }

  /* Ensure content sections and containers are responsive */
  .page-faq__hero-content,
  .page-faq__intro-section .page-faq__container,
  .page-faq__faq-list-section .page-faq__container,
  .page-faq__conclusion-section .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* No products grid on FAQ page, so no specific rule needed for that */
  /* No article body on FAQ page, so no specific rule needed for that */
}