/* Variables for color scheme */
:root {
  --primary-color: #1A2B4C; /* Deep Tech Blue / Royal Purple */
  --secondary-color: #FFD700; /* Imperial Gold */
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f8f8f8;
  --background-medium: #e9e9e9;
  --border-color: #e0e0e0;
}

.page-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-light);
}

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

/* Hero Section */
.page-faq .hero-faq-banner {
  background: linear-gradient(135deg, var(--primary-color) 0%, #3a4f72 100%); /* Lighter variant of primary for gradient */
  padding: 80px 0;
  color: var(--text-light);
  text-align: center;
}

.page-faq .hero-faq-banner .page-faq-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: var(--secondary-color); /* Gold title */
  font-weight: bold;
}

.page-faq .hero-faq-banner .page-faq-description {
  font-size: 1.3em;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: rgba(255, 255, 255, 0.9); /* Good contrast on dark background */
}

.page-faq .page-faq-cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--primary-color); /* Dark text on gold button for contrast */
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-faq .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);
}

/* FAQ Section */
.page-faq .faq-section {
  padding: 60px 0;
}

.page-faq .page-faq-heading {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-faq .page-faq-intro-text {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #555555; /* Darker text for good contrast on light background */
}

.page-faq .faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-faq .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--text-light);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-faq .faq-question:hover {
  background: var(--background-medium);
}

.page-faq .faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: var(--primary-color); /* Primary color for question text */
  font-weight: 600;
}

.page-faq .faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color); /* Secondary color for toggle icon */
  transition: transform 0.3s ease;
  line-height: 1; /* Ensure + and - are centered */
}

/* FAQ Answer - Hidden by default */
.page-faq .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out; /* Add padding to transition */
  padding: 0 25px; /* Initial padding */
  background: var(--background-light);
}

/* FAQ Answer - Active state */
.page-faq .faq-item.active .faq-answer {
  max-height: 800px; /* Sufficient height to show content */
  padding: 25px; /* Expanded padding */
  border-top: 1px solid var(--border-color);
}

.page-faq .faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.page-faq .faq-answer p {
  margin-bottom: 15px;
  color: #444444; /* Dark grey for good readability */
}

.page-faq .faq-answer .page-faq-image-content {
    width: 100%;
    max-width: 600px; /* Example max-width for content images */
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.page-faq .faq-answer .page-faq-link-button {
    display: inline-block;
    padding: 10px 25px;
    background: var(--primary-color);
    color: var(--text-light); /* Light text on dark button */
    text-decoration: none;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.page-faq .faq-answer .page-faq-link-button:hover {
    background: #3a4f72; /* Slightly lighter primary on hover */
    transform: translateY(-1px);
}

/* Contact Prompt Section */
.page-faq .contact-prompt {
  padding: 60px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
  text-align: center;
}

.page-faq .contact-prompt .page-faq-heading {
  color: var(--secondary-color); /* Gold heading on dark background */
  margin-bottom: 15px;
}

.page-faq .contact-prompt .page-faq-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: rgba(255, 255, 255, 0.9); /* Good contrast on dark background */
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-faq .hero-faq-banner .page-faq-title {
    font-size: 2.8em;
  }
  .page-faq .hero-faq-banner .page-faq-description {
    font-size: 1.1em;
  }
  .page-faq .page-faq-heading {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-faq .hero-faq-banner {
    padding: 60px 0;
  }
  .page-faq .hero-faq-banner .page-faq-title {
    font-size: 2.2em;
  }
  .page-faq .page-faq-cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-faq .faq-section {
    padding: 40px 0;
  }
  .page-faq .faq-question {
    padding: 15px 20px;
    flex-wrap: wrap; /* Allow question and toggle to wrap */
  }
  .page-faq .faq-question h3 {
    font-size: 1.1em;
    flex-basis: 90%; /* Occupy most of the space */
    margin-bottom: 5px;
  }
  .page-faq .faq-toggle {
    font-size: 20px;
    flex-basis: 10%; /* Occupy remaining space */
    text-align: right;
  }
  .page-faq .faq-item.active .faq-answer {
    padding: 20px;
  }
  .page-faq .contact-prompt {
    padding: 40px 0;
  }
  .page-faq .contact-prompt .page-faq-heading {
    font-size: 1.8em;
  }
  .page-faq .contact-prompt .page-faq-description {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-faq .hero-faq-banner .page-faq-title {
    font-size: 1.8em;
  }
  .page-faq .faq-question h3 {
    font-size: 1em;
    flex-basis: 85%;
  }
  .page-faq .faq-toggle {
    font-size: 18px;
    flex-basis: 15%;
  }
  .page-faq .faq-item.active .faq-answer {
    padding: 15px;
  }
}