/* style/faq.css */
/* Base styles for page-faq */
.page-faq {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Text Main */
  background-color: #F5F7FA; /* Background */
  line-height: 1.6;
}

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding */
  text-align: center;
  overflow: hidden; /* Ensure content does not overflow */
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-bottom: 30px; /* Space between image and content */
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
  object-fit: cover;
  border-radius: 8px;
  filter: none !important; /* Ensure no CSS filter is used */
}

.page-faq__hero-content {
  max-width: 900px;
  margin: 0 auto;
  z-index: 1; /* Ensure content is above image if any overlap */
}

.page-faq__main-title {
  font-size: clamp(2.2rem, 5vw, 3rem); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  color: #E53935; /* Main color */
  margin-bottom: 20px;
}

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

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  min-width: 200px; /* Ensure button content doesn't shrink too much */
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button doesn't overflow */
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #FFFFFF;
  border: 2px solid transparent;
}

.page-faq__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

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

/* Content Area */
.page-faq__content-area {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #FFFFFF; /* Card BG */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-faq__section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #E53935;
  text-align: center;
  margin-bottom: 20px;
}

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

/* FAQ List */
.page-faq__faq-list {
  margin-top: 40px;
}

.page-faq__faq-item {
  background-color: #FFFFFF;
  border: 1px solid #E0E0E0; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #E0E0E0;
  transition: background-color 0.3s ease;
}

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

.page-faq__faq-item[open] .page-faq__faq-question {
  background-color: #f0f0f0;
  border-bottom: none;
}

.page-faq__faq-qtext {
  flex-grow: 1;
  margin-right: 10px;
}

.page-faq__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: #E53935;
  transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(45deg); /* Plus sign rotates to form an 'x' or minus */
}

/* Hide default details marker */
.page-faq__faq-item summary::-webkit-details-marker,
.page-faq__faq-item summary::marker {
  display: none;
}

.page-faq__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: #333333;
  background-color: #FFFFFF;
}

.page-faq__faq-answer p {
  margin-bottom: 15px;
}

.page-faq__faq-answer a {
  color: #E53935;
  text-decoration: none;
  font-weight: 600;
}

.page-faq__faq-answer a:hover {
  text-decoration: underline;
  color: #FF5A4F;
}

.page-faq__image {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 20px;
  border-radius: 8px;
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
  object-fit: cover;
  filter: none !important; /* Ensure no CSS filter is used */
}

/* CTA Section */
.page-faq__cta-section {
  background-color: #F5F7FA; /* Background */
  padding: 60px 20px;
  text-align: center;
  margin-top: 40px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.page-faq__cta-section .page-faq__cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #E53935;
  margin-bottom: 20px;
}

.page-faq__cta-section .page-faq__cta-description {
  font-size: 1.1rem;
  color: #333333;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__cta-section .page-faq__cta-buttons {
  margin-bottom: 30px;
}

.page-faq__cta-section .page-faq__image {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
  border-radius: 8px;
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
  object-fit: cover;
  filter: none !important; /* Ensure no CSS filter is used */
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: clamp(2rem, 4.5vw, 2.8rem);
  }
  .page-faq__section-title {
    font-size: 1.8rem;
  }
  .page-faq__cta-section .page-faq__cta-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }
  .page-faq__hero-content {
    padding: 0 15px;
  }
  .page-faq__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
  .page-faq__subtitle {
    font-size: 1rem;
  }
  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    padding: 12px 20px;
    font-size: 0.95rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-faq__content-area {
    padding: 30px 15px;
  }
  .page-faq__section-title {
    font-size: 1.6rem;
  }
  .page-faq__section-description {
    font-size: 0.95rem;
  }
  .page-faq__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }
  .page-faq__faq-answer {
    padding: 15px 20px;
    font-size: 0.95rem;
  }
  .page-faq__cta-section {
    padding: 40px 15px;
  }
  .page-faq__cta-section .page-faq__cta-title {
    font-size: 2rem;
  }
  .page-faq__cta-section .page-faq__cta-description {
    font-size: 0.95rem;
  }

  /* Image responsive */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-faq__hero-image-wrapper,
  .page-faq__content-area,
  .page-faq__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  /* Ensure hero image is not too small */
  .page-faq__hero-image {
    min-width: 200px !important;
    min-height: 112px !important; /* 16:9 aspect ratio for 200px width */
  }

  /* Specific content area images */
  .page-faq__faq-answer .page-faq__image,
  .page-faq__cta-section .page-faq__image {
    min-width: 200px !important;
    min-height: 150px !important; /* 4:3 aspect ratio for 200px width */
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
  }
  .page-faq__section-title {
    font-size: 1.4rem;
  }
  .page-faq__cta-section .page-faq__cta-title {
    font-size: 1.8rem;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    font-size: 0.9rem;
    padding: 10px 15px;
  }
}

/* Contrast Fixes */
.page-faq__dark-bg {
  color: #ffffff; /* Deep background color */
}

.page-faq__light-bg {
  color: #333333; /* Light background color */
}

/* Ensure content area images are at least 200px wide */
.page-faq p img,
.page-faq li img,
.page-faq__faq-answer img,
.page-faq__cta-section img {
    min-width: 200px;
    min-height: 200px; /* Or appropriate height based on aspect ratio */
    height: auto; /* Maintain aspect ratio */
    max-width: 100%; /* Responsive */
    filter: none !important; /* Ensure no CSS filter is used */
}

/* Ensure no CSS filter is used for images globally */
.page-faq img {
    filter: none !important;
}