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

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

.page-faq-hero {
  background: linear-gradient(135deg, var(--primary-color), #3a506b);
  color: #ffffff;
  padding: 60px 0;
  text-align: center;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  position: relative;
  overflow: hidden;
}

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

.page-faq-title {
  font-size: 3.2em;
  margin-bottom: 15px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-faq-subtitle {
  font-size: 1.3em;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: rgba(255, 255, 255, 0.9);
}

.page-faq-section {
  padding: 60px 0;
  background-color: #ffffff;
  border-radius: 15px;
  margin: -40px auto 40px auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

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

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

.page-faq-list {
  margin-top: 30px;
}

.faq-item {
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

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

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

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

.faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--secondary-color);
  margin-left: 20px;
  transition: transform 0.3s ease;
}

.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;
  background: #f9f9f9;
  color: #444444;
  font-size: 1.05em;
  border-top: 1px solid #eeeeee;
}

.faq-item.active .faq-answer {
  max-height: 800px; /* Sufficient height to accommodate content */
  padding: 25px;
}

.faq-answer p {
  margin: 0 0 15px 0;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.page-faq-action {
  margin-top: 20px;
  text-align: center;
}

.page-faq-btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--secondary-color);
  color: #1A2E44;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border: none;
}

.page-faq-btn:hover {
  background: #f0c26b;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.page-faq-btn-primary {
  background: var(--primary-color);
  color: #ffffff;
}

.page-faq-btn-primary:hover {
  background: #3a506b;
}

.page-faq-img-inline {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.page-faq-cta {
  background: var(--primary-color);
  color: #ffffff;
  text-align: center;
  padding: 60px 20px;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  margin-top: 40px;
}

.page-faq-cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
}

.page-faq-cta-description {
  font-size: 1.2em;
  max-width: 700px;
  margin: 0 auto 40px auto;
  color: rgba(255, 255, 255, 0.9);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-faq-title {
    font-size: 2.8em;
  }
  .page-faq-subtitle {
    font-size: 1.1em;
  }
  .page-faq-section-title {
    font-size: 2em;
  }
  .faq-question h3 {
    font-size: 1.1em;
  }
  .faq-toggle {
    font-size: 1.5em;
  }
  .faq-answer {
    font-size: 1em;
  }
  .page-faq-hero-image {
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  .page-faq-hero {
    padding: 40px 0;
  }
  .page-faq-title {
    font-size: 2.2em;
  }
  .page-faq-subtitle {
    font-size: 1em;
  }
  .page-faq-section {
    padding: 40px 0;
    margin: -20px auto 20px auto;
  }
  .page-faq-section-title {
    font-size: 1.8em;
  }
  .page-faq-description {
    font-size: 0.95em;
  }
  .faq-question {
    padding: 15px 20px;
  }
  .faq-question h3 {
    font-size: 1em;
  }
  .faq-toggle {
    font-size: 1.3em;
  }
  .faq-answer {
    padding: 15px 20px;
  }
  .page-faq-btn {
    padding: 10px 25px;
    font-size: 1em;
  }
  .page-faq-img-inline {
    max-width: 90%;
  }
  .page-faq-cta {
    padding: 40px 15px;
  }
  .page-faq-cta-title {
    font-size: 2em;
  }
  .page-faq-cta-description {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-faq-title {
    font-size: 1.8em;
  }
  .page-faq-subtitle {
    font-size: 0.9em;
  }
  .page-faq-section-title {
    font-size: 1.6em;
  }
  .faq-question h3 {
    font-size: 0.9em;
  }
  .faq-toggle {
    font-size: 1.2em;
  }
  .faq-answer {
    font-size: 0.9em;
  }
  .page-faq-btn {
    padding: 8px 20px;
    font-size: 0.9em;
  }
  .page-faq-hero-image {
    max-width: 100%;
  }
  .page-faq-cta-title {
    font-size: 1.8em;
  }
}