.page-faq {
  font-family: 'Arial', sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #f5f8fa;
}

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

.page-faq .intro-section {
  background: linear-gradient(135deg, var(--primary-color), #2a4c8a);
  color: #ffffff;
  padding: 60px 0;
  text-align: center;
}

.page-faq .main-heading {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: var(--auxiliary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-faq .intro-text {
  font-size: 1.1em;
  margin-bottom: 25px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq .intro-text.highlight {
  font-weight: bold;
  color: var(--auxiliary-color);
}

.page-faq .intro-text .cta-link {
  color: var(--auxiliary-color);
  text-decoration: underline;
  font-weight: bold;
}

.page-faq .intro-text .cta-link:hover {
  color: #fff;
}

.page-faq .cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-faq .cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-faq .cta-button.primary {
  background-color: var(--auxiliary-color);
  color: var(--primary-color);
  border: 2px solid var(--auxiliary-color);
}

.page-faq .cta-button.primary:hover {
  background-color: #fff;
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-faq .cta-button.secondary {
  background-color: transparent;
  color: var(--auxiliary-color);
  border: 2px solid var(--auxiliary-color);
}

.page-faq .cta-button.secondary:hover {
  background-color: var(--auxiliary-color);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-faq .faq-section {
  padding: 60px 0;
  background-color: #f5f8fa;
}

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

.page-faq .section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #555;
}

.page-faq .faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* FAQ item styles */
.faq-item {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #ffffff;
  cursor: pointer;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: #f0f4f8;
}

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

.faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--auxiliary-color);
  margin-left: 15px;
  transition: transform 0.3s ease;
  line-height: 1;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  color: #444;
}

.faq-item.active .faq-answer {
  max-height: 1000px; /* Sufficient height to accommodate content */
  padding: 20px 25px;
  background-color: #f9f9f9;
}

.faq-answer p {
  margin-bottom: 15px;
  font-size: 1.05em;
}

.faq-answer ol, .faq-answer ul {
  margin-bottom: 15px;
  padding-left: 25px;
}

.faq-answer li {
  margin-bottom: 8px;
}

.faq-answer a {
  color: var(--primary-color);
  text-decoration: underline;
}

.faq-answer a:hover {
  color: var(--auxiliary-color);
}

.page-faq .faq-image {
  width: 100%;
  height: auto;
  max-width: 600px;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.page-faq .cta-link-small {
  display: inline-block;
  background-color: var(--auxiliary-color);
  color: var(--primary-color);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 15px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-faq .cta-link-small:hover {
  background-color: #fff;
  color: var(--primary-color);
}

.page-faq .final-cta-section {
  background: linear-gradient(135deg, #2a4c8a, var(--primary-color));
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
}

.page-faq .final-cta-section .section-title {
  color: var(--auxiliary-color);
  margin-bottom: 25px;
}

.page-faq .final-cta-section .intro-text {
  max-width: 900px;
  margin: 0 auto 40px auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-faq .main-heading {
    font-size: 2.8em;
  }
  .page-faq .section-title {
    font-size: 2.2em;
  }
  .faq-question h3 {
    font-size: 1.15em;
  }
}

@media (max-width: 768px) {
  .page-faq .main-heading {
    font-size: 2.2em;
  }
  .page-faq .section-title {
    font-size: 1.8em;
  }
  .page-faq .intro-text,
  .page-faq .section-description,
  .faq-answer p {
    font-size: 1em;
  }
  .page-faq .cta-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-faq .cta-button {
    width: 80%;
    margin: 0 auto;
    padding: 12px 25px;
    font-size: 1em;
  }
  .faq-question {
    padding: 15px 20px;
  }
  .faq-question h3 {
    font-size: 1.05em;
  }
  .faq-toggle {
    font-size: 1.5em;
  }
  .faq-answer {
    padding: 0 20px;
  }
  .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
  .page-faq .faq-image {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .page-faq .main-heading {
    font-size: 1.8em;
  }
  .page-faq .section-title {
    font-size: 1.5em;
  }
  .page-faq .cta-button {
    width: 95%;
  }
  .faq-question h3 {
    font-size: 1em;
  }
  .faq-toggle {
    font-size: 1.2em;
  }
  .page-faq .intro-section,
  .page-faq .faq-section,
  .page-faq .final-cta-section {
    padding: 40px 0;
  }
}