/* style/faq.css */

/* Base Styles */
.page-faq {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Dark text for light body background */
  line-height: 1.6;
  background-color: #f4f4f4; /* Inherited from shared, explicit for clarity */
}

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

/* Hero Intro Section */
.page-faq__hero-intro-section {
  position: relative;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background: linear-gradient(135deg, #FFD700, #8B0000); /* Brand colors */
  color: #ffffff;
  overflow: hidden; /* Prevent image overflow */
}

.page-faq__main-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-faq__intro-description {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 30px;
  color: #f0f0f0;
}

.page-faq__hero-image-wrapper {
  position: relative;
  margin: 30px auto;
  max-width: 1000px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

.page-faq__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #FFD700; /* Primary brand color */
  color: #333333; /* Dark text for contrast */
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: none;
}

.page-faq__cta-button:hover {
  background: #e6c200; /* Slightly darker gold on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Content Area */
.page-faq__content-area {
  padding: 60px 0;
  background-color: #f4f4f4;
}

.page-faq__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #8B0000; /* Secondary brand color */
}

.page-faq__section-description {
  font-size: 17px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
  color: #555555;
}

/* FAQ List Styles */
.page-faq__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  z-index: 1;
}

.page-faq__faq-item.active .page-faq__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  background-color: #f9f9f9;
}

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

.page-faq__faq-question:active {
  background: #e5e5e5;
}

.page-faq__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #333333;
  pointer-events: none; /* Prevents h3 from blocking click event */
}

.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #8B0000; /* Secondary brand color */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevents icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' effect, or simply change text */
  color: #FFD700; /* Primary brand color */
}

.page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-top: none;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  color: #555555;
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 2000px !important; /* Sufficiently large for content */
  padding: 20px 25px !important;
  opacity: 1;
}

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

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

.page-faq__faq-answer ul li,
.page-faq__faq-answer ol li {
  margin-bottom: 5px;
  font-size: 16px;
}

.page-faq__faq-answer a {
  color: #8B0000; /* Secondary brand color for links */
  text-decoration: underline;
  font-weight: bold;
}

.page-faq__faq-answer a:hover {
  color: #FFD700; /* Primary brand color on hover */
  text-decoration: none;
}

/* Image within FAQ answer */
.page-faq__image-content {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* General Button Styles */
.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  margin-top: 15px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
  box-sizing: border-box; /* Ensure padding/border are included in width */
}

.page-faq__btn-primary {
  background: #FFD700; /* Primary brand color */
  color: #333333; /* Dark text for contrast */
}

.page-faq__btn-primary:hover {
  background: #e6c200;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-faq__btn-secondary {
  background: #8B0000; /* Secondary brand color */
  color: #ffffff; /* White text for contrast */
}

.page-faq__btn-secondary:hover {
  background: #6a0000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Call to Action Section */
.page-faq__call-to-action-section {
  background: #8B0000; /* Secondary brand color */
  color: #ffffff;
  text-align: center;
  padding: 80px 20px;
}

.page-faq__cta-title {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFD700; /* Primary brand color for contrast */
}

.page-faq__cta-description {
  font-size: 20px;
  max-width: 900px;
  margin: 0 auto 40px;
  color: #f0f0f0;
}

.page-faq__cta-button--large {
  padding: 18px 50px;
  font-size: 22px;
  background: #FFD700; /* Primary brand color */
  color: #333333; /* Dark text for contrast */
}

.page-faq__cta-button--large:hover {
  background: #e6c200;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: 42px;
  }
  .page-faq__cta-title {
    font-size: 36px;
  }
}

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

  /* Hero Intro Section */
  .page-faq__hero-intro-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile specific offset */
    padding-bottom: 40px;
  }
  .page-faq__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .page-faq__intro-description {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-faq__hero-image-wrapper {
    margin: 20px auto;
    border-radius: 8px;
  }
  .page-faq__cta-button {
    font-size: 18px;
    padding: 12px 30px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Content Area */
  .page-faq__content-area {
    padding: 40px 0;
  }
  .page-faq__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-faq__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  /* FAQ List */
  .page-faq__faq-item {
    margin-bottom: 10px;
  }
  .page-faq__faq-question {
    padding: 15px 20px;
  }
  .page-faq__faq-question h3 {
    font-size: 16px;
  }
  .page-faq__faq-toggle {
    font-size: 24px;
    width: 25px;
    height: 25px;
  }
  .page-faq__faq-answer {
    padding: 0 20px;
  }
  .page-faq__faq-item.active .page-faq__faq-answer {
    padding: 15px 20px !important;
  }
  .page-faq__faq-answer p,
  .page-faq__faq-answer ul li,
  .page-faq__faq-answer ol li {
    font-size: 15px;
  }

  /* Images */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-faq__image-content {
    margin: 15px auto;
  }
  .page-faq__faq-answer .page-faq__btn-primary,
  .page-faq__faq-answer .page-faq__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Call to Action Section */
  .page-faq__call-to-action-section {
    padding: 50px 15px;
  }
  .page-faq__cta-title {
    font-size: 30px;
    margin-bottom: 15px;
  }
  .page-faq__cta-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-faq__cta-button--large {
    font-size: 18px;
    padding: 15px 30px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
}

/* Ensure no images are smaller than 200px in content area */
/* This rule applies to all img elements within .page-faq, except header/footer which are shared */
.page-faq img:not(.shared-header img):not(.shared-footer img) {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover; /* Ensures images fill their space without distorting */
}

/* Specific overrides for smaller images if they exist, to ensure they meet min-size */
/* This is a general safeguard, actual image sizes should be large as per requirements */
@media (min-width: 769px) {
  .page-faq__image-content {
    min-width: 400px; /* Example: Ensure content images are at least 400px wide on desktop */
    min-height: 300px; /* Example: Ensure content images are at least 300px high on desktop */
  }
}

@media (max-width: 768px) {
  .page-faq__image-content {
    min-width: 200px !important; /* On mobile, ensure images are at least 200px, but still responsive */
    min-height: 200px !important;
  }
}