/* General styles for page-faq scope */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: #FFFFFF; /* Ensure content background is white if body is white */
}

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

.page-faq__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #26A9E0;
  padding-top: 10px; /* Minimal top padding, body handles header offset */
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.8); /* Slightly dim the image for text contrast */
  max-height: 500px;
}

.page-faq__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #ffffff;
  z-index: 10;
  max-width: 800px;
  padding: 20px;
  box-sizing: border-box;
}

.page-faq__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Clamp for responsive H1 */
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: -0.5px;
  max-width: 100%;
}

.page-faq__description {
  font-size: clamp(16px, 1.8vw, 20px);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
}

.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: #EA7C07; /* Login color for secondary action */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-faq__btn-secondary:hover {
  background-color: #d46e06;
  border-color: #d46e06;
}

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

.page-faq__section-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  text-align: center;
  color: #26A9E0;
  margin-bottom: 20px;
}

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

.page-faq__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

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;
  font-size: 18px;
  font-weight: 600;
  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;
  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;
}

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

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

.page-faq__faq-answer ul {
  margin-left: 20px;
  margin-bottom: 15px;
  list-style-type: disc;
}

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

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

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

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

.page-faq__contact-title {
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-faq__contact-description {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto 30px auto;
}

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

.page-faq__contact-cta .page-faq__btn-primary:hover {
  background-color: #e0f2f7;
  border-color: #e0f2f7;
}

/* --- Responsive Styles (Desktop/Tablet) --- */
@media (max-width: 1024px) {
  .page-faq__hero-image {
    max-height: 450px;
  }
  .page-faq__hero-content {
    padding: 15px;
  }
  .page-faq__main-title {
    font-size: clamp(26px, 4.5vw, 42px);
  }
  .page-faq__description {
    font-size: clamp(15px, 2vw, 18px);
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    padding: 12px 24px;
    font-size: 15px;
  }
  .page-faq__content-section {
    padding: 50px 0;
  }
  .page-faq__section-title {
    font-size: clamp(22px, 3.5vw, 32px);
  }
  details.page-faq__faq-item summary.page-faq__faq-question {
    padding: 16px 20px;
    font-size: 17px;
  }
  .page-faq__faq-toggle {
    font-size: 26px;
  }
  details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 20px 20px;
  }
  .page-faq__contact-cta {
    padding: 60px 20px;
  }
  .page-faq__contact-title {
    font-size: clamp(24px, 4vw, 38px);
  }
  .page-faq__contact-description {
    font-size: 17px;
  }
}

/* --- Responsive Styles (Mobile) --- */
@media (max-width: 768px) {
  .page-faq__hero-section {
    padding-top: 10px; /* Consistent small top padding */
  }
  .page-faq__hero-image {
    max-height: 350px !important;
  }
  .page-faq__hero-content {
    width: calc(100% - 40px); /* Adjust width for mobile padding */
    padding: 10px;
  }
  .page-faq__main-title {
    font-size: clamp(24px, 6vw, 36px) !important;
    margin-bottom: 10px;
  }
  .page-faq__description {
    font-size: 15px !important;
    margin-bottom: 20px;
  }
  .page-faq__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px !important;
    width: 100% !important; /* Ensure container is full width */
    box-sizing: border-box !important;
    padding: 0 15px;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 15px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  /* General image responsive rule for content area */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-faq__content-section {
    padding: 40px 0;
  }
  .page-faq__container {
    padding: 0 15px;
  }
  .page-faq__section-title {
    font-size: clamp(20px, 5vw, 28px) !important;
    margin-bottom: 15px;
  }
  .page-faq__intro-text {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-faq__faq-list {
    max-width: 100%;
  }
  details.page-faq__faq-item summary.page-faq__faq-question {
    padding: 15px;
    font-size: 16px;
  }
  .page-faq__faq-qtext {
    width: calc(100% - 45px); /* Adjust for toggle icon */
  }
  .page-faq__faq-toggle {
    font-size: 24px;
    width: 24px;
    margin-left: 10px;
  }
  details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 15px 15px;
  }
  .page-faq__contact-cta {
    padding: 50px 15px;
  }
  .page-faq__contact-title {
    font-size: clamp(22px, 5.5vw, 32px) !important;
    margin-bottom: 15px;
  }
  .page-faq__contact-description {
    font-size: 16px;
    margin-bottom: 25px;
  }
  
  /* Ensure all content containers are full width and have padding */
  .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;
  }
}