.page-faqs {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: #FFFFFF; /* Body background from shared.css */
}

.page-faqs__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page-faqs__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, not var(--header-offset) */
  padding-bottom: 50px;
  background: linear-gradient(135deg, #26A9E0 0%, #30C7FF 100%); /* Brand color gradient */
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.page-faqs__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.page-faqs__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover; /* Cover for desktop */
  display: block;
}

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

.page-faqs__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFFFF;
}

.page-faqs__description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-faqs__btn-primary {
  background: #EA7C07; /* Login color */
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

.page-faqs__btn-primary:hover {
  background: #d46f05;
  border-color: #d46f05;
  transform: translateY(-2px);
}

.page-faqs__btn-secondary {
  background: #FFFFFF;
  color: #26A9E0; /* Brand primary color */
  border: 2px solid #FFFFFF;
}

.page-faqs__btn-secondary:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.page-faqs__intro-section,
.page-faqs__content-area,
.page-faqs__contact-promo {
  padding: 60px 0;
}

.page-faqs__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0; /* Brand primary color */
}

.page-faqs__intro-text {
  font-size: 1.1rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 20px;
  color: #333333;
}

.page-faqs__highlight {
  color: #EA7C07;
  font-weight: bold;
}

.page-faqs__section-subtitle {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  margin-top: 50px;
  margin-bottom: 30px;
  color: #26A9E0;
  text-align: left;
  padding-left: 20px;
}

/* FAQ styles */
details.page-faqs__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-faqs__faq-item summary.page-faqs__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #333333;
}
details.page-faqs__faq-item summary.page-faqs__faq-question::-webkit-details-marker {
  display: none;
}
details.page-faqs__faq-item summary.page-faqs__faq-question:hover {
  background: #f5f5f5;
}
.page-faqs__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #26A9E0;
}
.page-faqs__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-faqs__faq-item .page-faqs__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
  color: #333333;
}
.page-faqs__faq-answer p {
  margin-bottom: 10px;
}
.page-faqs__faq-answer p:last-child {
  margin-bottom: 0;
}

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

.page-faqs__image-figure {
  margin: 30px 0;
  text-align: center;
}

.page-faqs__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  display: block;
  margin: 0 auto;
}

.page-faqs__image-caption {
  font-style: italic;
  font-size: 0.9rem;
  color: #666;
  margin-top: 10px;
}

.page-faqs__cta-section {
  background: linear-gradient(135deg, #26A9E0 0%, #30C7FF 100%);
  color: #FFFFFF;
  padding: 80px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  overflow: hidden;
  position: relative;
}

.page-faqs__cta-content {
  z-index: 1;
  max-width: 900px;
}

.page-faqs__cta-section .page-faqs__section-title {
  color: #FFFFFF;
  margin-bottom: 20px;
}

.page-faqs__cta-description {
  font-size: 1.15rem;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-faqs__cta-image-wrapper {
  width: 100%;
  max-height: 400px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-faqs__cta-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.page-faqs__contact-promo {
  text-align: center;
  padding: 60px 0;
  background-color: #f9f9f9;
}

.page-faqs__contact-promo .page-faqs__section-title {
  color: #26A9E0;
}

.page-faqs__contact-text {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #333333;
}

/* Mobile responsiveness */
@media (max-width: 1024px) {
  .page-faqs__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-faqs__description,
  .page-faqs__intro-text,
  .page-faqs__cta-description,
  .page-faqs__contact-text {
    font-size: 1rem;
  }
  .page-faqs__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }
  .page-faqs__section-subtitle {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
  }
  .page-faqs__faq-qtext {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .page-faqs__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-faqs__hero-section {
    padding-top: 10px; /* Still small top padding */
    padding-bottom: 30px;
  }

  .page-faqs__hero-image-wrapper {
    max-height: 300px;
  }
  
  .page-faqs__hero-image {
    object-fit: contain !important; /* HERO: object-fit:contain */
    aspect-ratio: unset !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-faqs__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-faqs__description {
    font-size: 0.95rem;
    margin-bottom: 25px;
  }

  .page-faqs__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

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

  .page-faqs__intro-section,
  .page-faqs__content-area,
  .page-faqs__contact-promo {
    padding: 40px 0;
  }

  .page-faqs__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    margin-bottom: 30px;
  }

  .page-faqs__intro-text {
    font-size: 0.95rem;
  }

  .page-faqs__section-subtitle {
    font-size: clamp(1.2rem, 5vw, 1.8rem);
    margin-top: 30px;
    margin-bottom: 20px;
    padding-left: 0; /* Align with container padding */
    text-align: center;
  }

  details.page-faqs__faq-item summary.page-faqs__faq-question {
    padding: 15px;
  }
  .page-faqs__faq-qtext {
    font-size: 0.95rem;
  }
  details.page-faqs__faq-item .page-faqs__faq-answer {
    padding: 0 15px 15px;
  }

  .page-faqs__image-figure {
    margin: 20px 0;
  }

  .page-faqs__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-faqs__cta-section {
    padding: 50px 0;
    flex-direction: column;
    gap: 20px;
  }

  .page-faqs__cta-section .page-faqs__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    margin-bottom: 15px;
  }

  .page-faqs__cta-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .page-faqs__cta-image-wrapper {
    max-height: 250px;
    width: 100%;
  }

  .page-faqs__cta-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-faqs__contact-promo .page-faqs__btn-primary {
    width: auto !important; /* Allow button to shrink if text is short */
    min-width: 180px;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Ensure all images inside page-faqs are responsive */
.page-faqs img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ensure all containers with images are responsive */
.page-faqs__section,
.page-faqs__card,
.page-faqs__container,
.page-faqs__hero-section,
.page-faqs__intro-section,
.page-faqs__content-area,
.page-faqs__cta-section,
.page-faqs__contact-promo {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Specific mobile overrides for image and container responsiveness */
@media (max-width: 768px) {
  .page-faqs img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-faqs__section,
  .page-faqs__card,
  .page-faqs__container,
  .page-faqs__hero-section,
  .page-faqs__intro-section,
  .page-faqs__content-area,
  .page-faqs__cta-section,
  .page-faqs__contact-promo {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}