/* style/faq.css */

.page-faq {
  color: #333333;
  background-color: #FFFFFF;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-faq__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  background-color: #FFFFFF;
  text-align: center;
}

.page-faq__hero-image {
  width: 100%;
  max-width: 1920px;
  height: auto;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

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

.page-faq__main-title {
  font-size: 2.8em;
  color: #26A9E0;
  margin-bottom: 15px;
  line-height: 1.2;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

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

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

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

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

.page-faq__btn-secondary:hover {
  background-color: #e0f0f8;
  color: #26A9E0;
}

.page-faq__accordion-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

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

.page-faq__section-title {
  font-size: 2.2em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

.page-faq__accordion-list {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.page-faq__accordion-group {
  flex: 1 1 calc(50% - 15px);
  min-width: 300px;
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-faq__group-title {
  font-size: 1.8em;
  color: #000000;
  padding: 25px;
  background-color: #e0f0f8;
  margin: 0;
  border-bottom: 1px solid #d0e0e8;
}

.page-faq__faq-item {
  border-bottom: 1px solid #eeeeee;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-faq__faq-item:last-child {
  border-bottom: none;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #FFFFFF;
  transition: background-color 0.2s ease;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  list-style: none;
}

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

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

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

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  content: "−";
}

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

.page-faq__faq-item:not([open]) .page-faq__faq-answer {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.page-faq__contact-cta {
  background-color: #26A9E0;
  padding: 80px 0;
  color: #FFFFFF;
  text-align: center;
}

.page-faq__contact-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 50px;
}

.page-faq__contact-text {
  max-width: 600px;
  text-align: left;
}

.page-faq__contact-title {
  font-size: 2.5em;
  color: #FFFFFF;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-faq__contact-description {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-faq__contact-buttons {
  justify-content: flex-start;
}

.page-faq__contact-buttons .page-faq__btn-primary {
  background-color: #EA7C07;
  border-color: #EA7C07;
}

.page-faq__contact-buttons .page-faq__btn-primary:hover {
  background-color: #d16b06;
  border-color: #d16b06;
}

.page-faq__contact-buttons .page-faq__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0;
  border-color: #FFFFFF;
}

.page-faq__contact-buttons .page-faq__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #26A9E0;
}

.page-faq__contact-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  object-fit: contain;
}

/* General image styling for content areas */
.page-faq img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: 2.5em;
  }

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

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

  .page-faq__accordion-group {
    flex: 1 1 calc(100% - 0px);
  }

  .page-faq__contact-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-faq__contact-text,
  .page-faq__contact-image {
    max-width: 100%;
    text-align: center;
  }

  .page-faq__contact-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }

  .page-faq__hero-image {
    object-fit: contain !important; /* Ensure image is not cropped */
    aspect-ratio: unset !important;
    max-height: none !important;
  }

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

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

  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 10px;
    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-left: 15px;
    padding-right: 15px;
  }

  .page-faq__accordion-section {
    padding: 40px 0;
  }

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

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

  .page-faq__group-title {
    font-size: 1.5em;
    padding: 20px;
  }

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

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

  .page-faq__contact-cta {
    padding: 50px 0;
  }

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

  .page-faq__contact-description {
    font-size: 1em;
  }

  .page-faq__contact-text {
    text-align: center;
  }

  .page-faq__contact-buttons {
    justify-content: center;
    flex-direction: column;
  }

  /* General image and container responsive styles */
  .page-faq 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;
  }

  /* Ensure no horizontal scroll for content areas */
  .page-faq {
    overflow-x: hidden;
  }
}