/* style/faq.css */

/* Base styles for the FAQ page */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: transparent; /* Body background handled by shared.css */
  padding-top: var(--header-offset, 120px); /* Space for fixed header */
}

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

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  width: 100%;
  height: 500px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: #ffffff;
  background-color: #1a1a1a; /* Fallback dark background */
}

.page-faq__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-faq__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(139, 0, 0, 0.7), rgba(255, 215, 0, 0.5)); /* Dark Red to Gold gradient */
  z-index: 2;
}

.page-faq__hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  padding: 20px;
}

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

.page-faq__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-faq__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  margin: 0 10px;
  box-sizing: border-box;
}

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

.page-faq__btn-primary:hover {
  background-color: #e6c200;
  color: #6a0000;
}

.page-faq__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
}

.page-faq__btn-secondary:hover {
  background-color: #FFD700;
  color: #8B0000;
}

/* Content Section */
.page-faq__content-section {
  padding: 60px 0;
  background-color: #1a1a1a; /* Dark background for content */
  color: #f0f0f0; /* Light text */
}

.page-faq__section-title {
  font-size: 2.5em;
  color: #FFD700; /* Gold */
  text-align: center;
  margin-bottom: 40px;
}

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

.page-faq__faq-item {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter dark background */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: rgba(255, 215, 0, 0.1); /* Light gold tint for question */
  transition: background-color 0.3s ease;
}

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

.page-faq__question-title {
  font-size: 1.3em;
  color: #FFD700; /* Gold for questions */
  margin: 0;
  flex-grow: 1;
}

.page-faq__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #FFD700; /* Gold */
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  transform: rotate(45deg);
  color: #8B0000; /* Dark Red when active */
}

.page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px;
}

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

.page-faq__faq-answer ul {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 15px;
}

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

.page-faq__faq-answer strong {
  color: #FFD700; /* Gold for strong text in answers */
}

.page-faq__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  display: block;
}

.page-faq__image--centered {
  margin-left: auto;
  margin-right: auto;
}

/* Contact CTA Section */
.page-faq__contact-cta {
  text-align: center;
  padding: 50px 20px;
  margin-top: 40px;
  background-color: rgba(139, 0, 0, 0.1); /* Dark Red tint */
  border-radius: 8px;
  border: 1px solid rgba(139, 0, 0, 0.3);
}

.page-faq__contact-title {
  font-size: 2em;
  color: #FFD700; /* Gold */
  margin-bottom: 15px;
}

.page-faq__contact-description {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: 2.8em;
  }
  .page-faq__hero-description {
    font-size: 1.1em;
  }
  .page-faq__section-title {
    font-size: 2.2em;
  }
  .page-faq__question-title {
    font-size: 1.2em;
  }
}

@media (max-width: 768px) {
  .page-faq {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding-top */
  }

  .page-faq__hero-section {
    height: 400px;
  }

  .page-faq__main-title {
    font-size: 2.2em;
  }

  .page-faq__hero-description {
    font-size: 1em;
  }

  .page-faq__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 10px 0;
  }

  .page-faq__hero-content .page-faq__cta-button:first-of-type {
    margin-top: 20px;
  }

  .page-faq__contact-cta .page-faq__cta-button {
    margin: 10px auto;
  }

  .page-faq__content-section {
    padding: 40px 0;
  }

  .page-faq__section-title {
    font-size: 1.8em;
  }

  .page-faq__question-title {
    font-size: 1.1em;
  }

  .page-faq__faq-question {
    padding: 15px;
  }

  .page-faq__faq-answer {
    padding: 0 15px;
  }

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

  /* Mobile image responsiveness */
  .page-faq img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-faq__container,
  .page-faq__hero-section,
  .page-faq__content-section,
  .page-faq__faq-item,
  .page-faq__contact-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .page-faq__contact-cta .page-faq__cta-button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: 1.8em;
  }
  .page-faq__hero-section {
    height: 350px;
  }
  .page-faq__section-title {
    font-size: 1.5em;
  }
  .page-faq__question-title {
    font-size: 1em;
  }
}