/* style/faq.css */

/* Base styles for the FAQ page */
.page-faq {
  color: #ffffff; /* Body background is dark (#1a1a2e), so use light text */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-faq__dark-bg {
  background-color: #26A9E0; /* Brand primary color for dark sections */
  color: #ffffff;
}

.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  text-align: center;
  background-color: #26A9E0;
  background: linear-gradient(135deg, #26A9E0, #1a7bbd); /* Gradient for visual appeal */
}

.page-faq__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
  max-width: 800px;
}

.page-faq__description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 30px;
  color: #f0f0f0;
  max-width: 900px;
}

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

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

.page-faq__btn-primary {
  background-color: #EA7C07; /* Login color for primary action */
  color: #ffffff;
  border: 2px solid transparent;
}

.page-faq__btn-primary:hover {
  background-color: #d16b05;
  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: #1a7bbd;
  transform: translateY(-2px);
}

.page-faq__image-section {
  padding: 40px 0;
  background-color: #1a1a2e; /* Body background color */
}

.page-faq__main-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

.page-faq__faq-list-section {
  padding: 60px 0;
  background-color: #1a1a2e; /* Body background color */
  color: #ffffff;
}

.page-faq__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0; /* Brand primary color for titles */
}

.page-faq__intro-text {
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: #f0f0f0;
}

.page-faq__faq-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-faq__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark background */
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff; /* Light text for dark background */
}

.page-faq__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #ffffff;
  padding-right: 10px;
}

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

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-faq__faq-qtext {
  flex-grow: 1;
  padding-right: 15px;
}

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

.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(45deg); /* Rotate '+' to 'x' or '-' */
}

.page-faq__faq-answer {
  padding-top: 15px;
  font-size: clamp(0.9rem, 1.7vw, 1.05rem);
  color: #f0f0f0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 15px;
}

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

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

.page-faq__contact-cta-section {
  padding: 60px 0;
  text-align: center;
  background-color: #26A9E0;
  background: linear-gradient(135deg, #1a7bbd, #26A9E0); /* Gradient for visual appeal */
  color: #ffffff;
}

.page-faq__contact-description {
  font-size: clamp(1rem, 2vw, 1.1rem);
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #f0f0f0;
}

/* Responsive styles */
@media (max-width: 768px) {
  .page-faq__container {
    padding: 0 15px;
  }

  .page-faq__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-faq__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .page-faq__description,
  .page-faq__intro-text,
  .page-faq__contact-description {
    font-size: clamp(0.9rem, 3.5vw, 1.1rem);
  }

  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 15px;
    font-size: 1rem;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-faq__image-section {
    padding: 30px 0;
  }

  .page-faq__main-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-faq__faq-list-section,
  .page-faq__contact-cta-section {
    padding: 40px 0;
  }

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

  .page-faq__faq-item summary {
    font-size: clamp(0.95rem, 4vw, 1.1rem);
  }

  .page-faq__faq-answer {
    font-size: clamp(0.85rem, 3.5vw, 1rem);
  }

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

  .page-faq__faq-item img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
}

/* Ensure all images are responsive and not tiny */
.page-faq img {
  max-width: 100%;
  height: auto;
  display: block;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

/* No filter properties for images */
.page-faq img[style*="filter"] { filter: none !important; }
.page-faq img { filter: none; }

/* Content area images CSS size lower bound */
.page-faq__faq-answer img,
.page-faq__image-section img {
  width: auto;
  height: auto;
  max-width: 100%;
  min-width: 200px;
  min-height: 200px;
}