/* style/faq.css */

/* Base styles for the page, ensuring light text on dark body background */
.page-faq {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Light text on dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
  line-height: 1.6;
}

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

.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 0;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background: linear-gradient(135deg, #26A9E0, #1a7bb0); /* Brand color gradient */
  overflow: hidden;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  max-width: 1200px; /* Constrain image width to container */
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-faq__hero-content {
  text-align: center;
  padding: 0 20px;
  color: #ffffff; /* Ensure light text on dark/brand background */
}

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

.page-faq__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-faq__btn-primary {
  background-color: #26A9E0; /* Main brand color */
  color: #ffffff; /* White text for contrast */
  border: 2px solid #26A9E0;
}

.page-faq__btn-primary:hover {
  background-color: #1a7bb0;
  border-color: #1a7bb0;
  transform: translateY(-2px);
}

.page-faq__btn-secondary {
  background-color: transparent;
  color: #ffffff; /* White text for contrast */
  border: 2px solid #ffffff;
}

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

.page-faq__faq-section {
  padding: 80px 0;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter dark background */
}

.page-faq__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
  color: #ffffff;
}

.page-faq__faq-list {
  display: grid;
  gap: 30px;
}

.page-faq__faq-category {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter background for category */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__category-title {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 600;
  color: #26A9E0; /* Brand color for category title */
  margin-bottom: 30px;
  text-align: center;
}

.page-faq__faq-item {
  background-color: rgba(255, 255, 255, 0.1); /* Lighter background for each FAQ item */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

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

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none; /* For <summary> tag */
}

.page-faq__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for <summary> */
}

.page-faq__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

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

.page-faq__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 20px;
  color: #26A9E0;
}

.page-faq__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.page-faq__faq-item[open] .page-faq__faq-question {
  background-color: rgba(255, 255, 255, 0.15);
}

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

.page-faq__image-inline {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px;
  object-fit: cover;
}

.page-faq__contact-cta {
  background-color: #26A9E0; /* Brand color background */
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  margin-top: 50px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  color: #ffffff; /* White text for contrast */
}

.page-faq__contact-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-faq__contact-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.page-faq__conclusion-section {
  padding: 80px 0;
  text-align: center;
  background-color: #0a0a0a; /* Ensure dark background */
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-faq__container {
    padding: 0 15px !important;
  }

  .page-faq__hero-section {
    padding: 40px 0 !important;
    padding-top: 10px !important; /* Keep small top padding */
  }

  .page-faq__hero-image {
    margin-bottom: 20px !important;
  }

  .page-faq__main-title {
    font-size: 2.2rem !important;
  }

  .page-faq__description {
    font-size: 1rem !important;
    margin-bottom: 20px !important;
  }

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

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1rem !important;
  }

  .page-faq__faq-section {
    padding: 60px 0 !important;
  }

  .page-faq__section-title {
    font-size: 2rem !important;
    margin-bottom: 30px !important;
  }

  .page-faq__category-title {
    font-size: 1.4rem !important;
    margin-bottom: 20px !important;
  }

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

  .page-faq__faq-toggle {
    font-size: 1.5rem !important;
  }

  .page-faq__faq-answer {
    font-size: 0.95rem !important;
    padding: 0 20px 15px !important;
  }

  .page-faq__image-inline {
    max-width: 100% !important;
    height: auto !important;
    width: 100% !important; /* Ensure image takes full width in mobile */
    box-sizing: border-box !important;
  }

  .page-faq__faq-item .page-faq__faq-answer img {
    max-width: 100% !important;
    height: auto !important;
    width: 100% !important; /* Ensure image takes full width in mobile */
    box-sizing: border-box !important;
  }

  /* Ensure all content sections and cards are responsive */
  .page-faq__hero-section,
  .page-faq__faq-section,
  .page-faq__conclusion-section,
  .page-faq__faq-category,
  .page-faq__contact-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-faq__contact-cta {
    padding: 30px 20px !important;
  }

  .page-faq__contact-title {
    font-size: 1.8rem !important;
  }

  .page-faq__contact-description {
    font-size: 1rem !important;
  }
}

/* Ensure all images in content areas are responsive and meet min size */
.page-faq img {
  max-width: 100%;
  height: auto;
  display: block;
  min-width: 200px; /* Enforce minimum size for content images */
  min-height: 200px;
  object-fit: cover; /* Ensure images fill their space without distortion */
}

/* Specific rules for images inside FAQ answers */
.page-faq__faq-answer img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 15px auto;
  border-radius: 8px;
  min-width: 200px; /* Enforce minimum size for content images */
  min-height: 200px;
  object-fit: cover;
}

/* Contrast fix for dark background */
.page-faq__dark-bg {
  color: #ffffff;
}

.page-faq__dark-bg h1, .page-faq__dark-bg h2, .page-faq__dark-bg h3, .page-faq__dark-bg h4, .page-faq__dark-bg h5, .page-faq__dark-bg h6 {
  color: #ffffff;
}

.page-faq__faq-category {
  color: #ffffff; /* Ensure category text is light */
}

.page-faq__faq-item {
  color: #ffffff; /* Ensure FAQ item text is light */
}

.page-faq__faq-answer p {
  color: rgba(255, 255, 255, 0.8); /* Slightly less opaque white for paragraph text */
}

.page-faq__btn-login {
  background-color: #EA7C07; /* Login button color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-faq__btn-login:hover {
  background-color: #d16e06;
  border-color: #d16e06;
}