/* style/faq.css */
:root {
  --primary-color: #007bff;
  --secondary-color: #ffc107;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --background-light: #f8f9fa;
  --background-dark: #0056b3; /* A darker shade of primary for contrast */
  --border-color: #e0e0e0;
}

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

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

.page-faq .hero-faq {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%); /* Darker blue gradient */
  padding: 80px 0;
  text-align: center;
  color: var(--text-color-light);
}

.page-faq .hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--text-color-light);
  font-weight: bold;
}

.page-faq .hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px auto;
  line-height: 1.8;
}

.page-faq .cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--text-color-dark);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-faq .cta-button:hover {
  background: #e0a800; /* Darker secondary color */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  color: var(--text-color-dark);
}

.page-faq .faq-list-section {
  padding: 60px 0;
  background-color: var(--background-light);
}

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

.page-faq .section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: var(--text-color-dark);
}

.page-faq .faq-items-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--text-color-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.faq-question:hover {
  background: #f5f5f5;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.25em;
  color: var(--text-color-dark);
  flex-grow: 1;
}

.faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s ease;
  line-height: 1;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: var(--background-light);
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height for content */
  padding: 15px 25px 25px 25px;
  border-top: 1px solid var(--border-color);
}

.faq-answer p {
  margin-bottom: 10px;
  color: var(--text-color-dark);
}

.faq-answer ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 10px;
}

.faq-answer ul li {
  margin-bottom: 5px;
  color: var(--text-color-dark);
}

.page-faq .faq-button {
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.95em;
  margin-top: 15px;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-faq .faq-button:hover {
  background: var(--background-dark);
  color: var(--text-color-light);
}

.page-faq .image-small-center {
  display: block;
  margin: 20px auto;
  max-width: 300px; /* Example size, adjust as needed */
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-faq .contact-prompt-section .section-title {
  color: var(--text-color-light);
}

.page-faq .contact-prompt-section .section-description {
  color: var(--text-color-light);
  margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-faq .hero-title {
    font-size: 2.8em;
  }
  .page-faq .section-title {
    font-size: 2em;
  }
  .faq-question h3 {
    font-size: 1.1em;
  }
  .faq-question, .faq-answer {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 768px) {
  .page-faq .hero-faq {
    padding: 60px 0;
  }
  .page-faq .hero-title {
    font-size: 2.2em;
  }
  .page-faq .hero-description {
    font-size: 1em;
  }
  .page-faq .cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-faq .section-title {
    font-size: 1.8em;
  }
  .page-faq .faq-list-section {
    padding: 40px 0;
  }
  .faq-question {
    padding: 15px 20px;
    flex-direction: column;
    align-items: flex-start;
  }
  .faq-question h3 {
    margin-bottom: 10px;
    font-size: 1em;
  }
  .faq-toggle {
    align-self: flex-end;
    margin-top: -30px; /* Adjust to position correctly */
  }
  .faq-answer {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 480px) {
  .page-faq .hero-title {
    font-size: 1.8em;
  }
  .page-faq .hero-description {
    font-size: 0.9em;
  }
  .page-faq .cta-button {
    padding: 10px 25px;
    font-size: 0.9em;
  }
  .page-faq .section-title {
    font-size: 1.5em;
  }
  .faq-question h3 {
    font-size: 0.95em;
  }
  .faq-toggle {
    font-size: 24px;
  }
  .faq-answer {
    font-size: 0.9em;
  }
}