/* style/faq.css */

/* General Page Styles */
.page-faq {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Dark text for light body background */
  line-height: 1.6;
  background-color: #f4f4f4; /* Ensure consistency with body background if needed */
}

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  background-color: #000; /* Dark background to make gold/red image pop */
  overflow: hidden; /* Ensure no image overflow */
}

.page-faq__hero-container {
  position: relative;
  width: 100%;
  max-width: 1200px; /* Wider container for image */
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  max-width: 1200px; /* Max width for the image */
  display: block;
  border-radius: 10px;
  object-fit: cover;
  margin-bottom: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  filter: brightness(0.7); /* Slightly dim image to make text pop */
  transition: filter 0.3s ease; /* Smooth transition for brightness */
}

.page-faq__hero-content {
  position: absolute; /* Overlay content on image */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  width: 90%;
  max-width: 700px;
  background: rgba(0, 0, 0, 0.6); /* Darker overlay for text readability */
  padding: 30px;
  border-radius: 10px;
}

.page-faq__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFD700; /* Gold for main title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  line-height: 1.2;
}

.page-faq__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0; /* Light text */
}

.page-faq__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%; /* Ensure container takes full width for wrapping */
  max-width: 600px; /* Limit max width for desktop */
  margin-left: auto;
  margin-right: auto;
}

.page-faq__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  min-width: 180px; /* Ensure buttons are not too small */
  text-align: center;
  box-sizing: border-box; /* Include padding in width calculation */
}

.page-faq__btn-primary {
  background: #FFD700; /* Gold */
  color: #8B0000; /* Dark red text for contrast */
  border: 2px solid #FFD700;
}

.page-faq__btn-primary:hover {
  background: #f0c200;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-faq__btn-secondary {
  background: #8B0000; /* Dark red */
  color: #FFD700; /* Gold text for contrast */
  border: 2px solid #8B0000;
}

.page-faq__btn-secondary:hover {
  background: #a00000;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Content Section */
.page-faq__content-section {
  padding: 50px 20px;
  background-color: #f4f4f4; /* Light background for content */
}

.page-faq__container {
  max-width: 900px;
  margin: 0 auto;
}

.page-faq__section-title {
  font-size: 2.5em;
  color: #8B0000; /* Dark red for section titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* FAQ List */
.page-faq__faq-list {
  padding-bottom: 80px;
}

.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background: #ffffff; /* White background for FAQ items */
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #FFD700; /* Gold background for questions */
  border: 1px solid #e0e0e0;
  border-radius: 10px; /* Rounded corners for initial state */
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-faq__faq-question:hover {
  background: #f0c200; /* Slightly darker gold on hover */
  border-color: #d0d0d0;
}

.page-faq__faq-item.active .page-faq__faq-question {
  border-bottom-left-radius: 0; /* No round corner when active */
  border-bottom-right-radius: 0;
  background: #8B0000; /* Dark red when active */
  color: #ffffff;
}

.page-faq__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  color: #8B0000; /* Dark red text for gold background */
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-faq__faq-item.active .page-faq__faq-question h3 {
  color: #ffffff; /* White text when active */
}

.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #8B0000; /* Dark red for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent 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 {
  color: #ffffff; /* White toggle when active */
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

.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; /* Light background for answer */
  border: 1px solid #e0e0e0;
  border-top: none;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  color: #333333; /* Dark text for light background */
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 2000px !important; /* Use !important to ensure priority, large enough value */
  padding: 20px 25px !important;
  opacity: 1;
  border-color: #d0d0d0;
}

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

.page-faq__faq-answer ul {
  margin-top: 10px;
  padding-left: 25px;
  list-style-type: disc;
}

.page-faq__faq-answer li {
  margin-bottom: 5px;
}

/* Specific button groups within answers */
.page-faq__download-buttons,
.page-faq__contact-buttons,
.page-faq__promo-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
  justify-content: center;
}

.page-faq__download-buttons .page-faq__cta-button,
.page-faq__contact-buttons .page-faq__cta-button,
.page-faq__promo-buttons .page-faq__cta-button {
  padding: 12px 25px;
  font-size: 1em;
  min-width: 150px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-faq__main-title {
    font-size: 2.5em;
  }
  .page-faq__intro-text {
    font-size: 1.1em;
  }
  .page-faq__section-title {
    font-size: 2em;
  }
  .page-faq__faq-question h3 {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header spacing */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-faq__hero-container {
    padding: 20px 15px;
  }

  .page-faq__hero-image {
    margin-bottom: 20px;
  }
  
  .page-faq__hero-content {
    position: relative; /* On mobile, stack content below image */
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    margin-top: 20px;
    background: linear-gradient(135deg, #FFD700, #8B0000); /* Use gradient as background on mobile content */
    padding: 20px;
  }

  .page-faq__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-faq__intro-text {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-faq__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-faq__cta-button {
    width: 100% !important; /* Full width for mobile buttons */
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-faq__content-section {
    padding: 30px 15px;
  }

  .page-faq__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-faq__faq-item {
    margin-bottom: 10px;
    border-radius: 8px;
  }

  .page-faq__faq-question {
    padding: 15px 20px;
    border-radius: 8px;
  }

  .page-faq__faq-question h3 {
    font-size: 0.95em;
  }

  .page-faq__faq-toggle {
    font-size: 24px;
    width: 25px;
    height: 25px;
    margin-left: 10px;
  }

  .page-faq__faq-answer {
    padding: 0 20px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
  }

  .page-faq__faq-item.active .page-faq__faq-answer {
    padding: 15px 20px !important;
  }

  /* Mobile image responsiveness */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .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__download-buttons,
  .page-faq__contact-buttons,
  .page-faq__promo-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-faq__download-buttons .page-faq__cta-button,
  .page-faq__contact-buttons .page-faq__cta-button,
  .page-faq__promo-buttons .page-faq__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}