/* style/faq.css */

/* Base styles for the FAQ page */
.page-faq {
  font-family: 'Arial', sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #f9f9f9;
}

.page-faq__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-faq__link-inline {
  color: #0A2463;
  text-decoration: none;
  font-weight: bold;
}

.page-faq__link-inline:hover {
  text-decoration: underline;
  color: #E3BA2E;
}

/* Hero Section */
.page-faq__hero-section {
  background: linear-gradient(135deg, #0A2463, #3B5998);
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
}

.page-faq__main-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #E3BA2E;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-faq__intro-text {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #f0f0f0;
}

/* Buttons */
.page-faq__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  margin: 10px;
  cursor: pointer;
}

.page-faq__button--primary {
  background-color: #E3BA2E;
  color: #0A2463;
  border: 2px solid #E3BA2E;
}

.page-faq__button--primary:hover {
  background-color: #c9a52a;
  border-color: #c9a52a;
}

.page-faq__button--secondary {
  background-color: transparent;
  color: #E3BA2E;
  border: 2px solid #E3BA2E;
}

.page-faq__button--secondary:hover {
  background-color: #E3BA2E;
  color: #0A2463;
}

/* Accordion Section */
.page-faq__accordion-section {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-faq__section-title {
  font-size: 2.2em;
  color: #0A2463;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

.page-faq__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #E3BA2E;
  border-radius: 2px;
}

.page-faq__accordion-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.page-faq__accordion-item {
  background-color: #f0f0f0;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-faq__accordion-question {
  font-size: 1.3em;
  color: #0A2463;
  padding: 20px 25px;
  cursor: pointer;
  position: relative;
  margin: 0;
  background-color: #fcfcfc;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
}

.page-faq__accordion-question:hover {
  background-color: #e8e8e8;
}

.page-faq__accordion-question::after {
  content: '+';
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5em;
  font-weight: bold;
  color: #E3BA2E;
  transition: transform 0.3s ease;
}

.page-faq__accordion-question.active::after {
  content: '-';
  transform: translateY(-50%) rotate(180deg);
}

.page-faq__accordion-answer {
  padding: 0 25px;
  background-color: #ffffff;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.page-faq__accordion-answer.active {
  max-height: 500px; /* Adjust as needed for content height */
  padding: 20px 25px;
}

.page-faq__accordion-answer p {
  margin-bottom: 15px;
  color: #555;
}

.page-faq__accordion-answer ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 15px;
  color: #555;
}

.page-faq__accordion-answer ul li {
  margin-bottom: 8px;
}

.page-faq__accordion-answer .page-faq__button {
  margin-top: 15px;
  margin-bottom: 5px;
}

/* Images within answers */
.page-faq__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 15px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: block; /* Ensure it takes its own line */
}

.page-faq__image--small {
  max-width: 60%; /* Smaller images for less prominent sections */
  margin-left: auto;
  margin-right: auto;
}

.page-faq__image--medium {
  max-width: 80%; /* Medium images */
  margin-left: auto;
  margin-right: auto;
}

/* Call to Action Section */
.page-faq__cta-section {
  background-color: #0A2463;
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
}

.page-faq__cta-content {
  max-width: 900px;
}

.page-faq__cta-title {
  font-size: 2.5em;
  color: #E3BA2E;
  margin-bottom: 20px;
}

.page-faq__cta-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-faq__main-title {
    font-size: 2em;
  }

  .page-faq__intro-text {
    font-size: 1em;
  }

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

  .page-faq__accordion-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-faq__accordion-question::after {
    right: 20px;
  }

  .page-faq__accordion-answer.active {
    padding: 15px 20px;
  }

  .page-faq__cta-title {
    font-size: 2em;
  }

  .page-faq__button {
    width: calc(100% - 20px);
    margin: 10px auto;
    display: block;
  }

  .page-faq__image--small,
  .page-faq__image--medium {
    max-width: 90%;
  }
}

@media (max-width: 480px) {
  .page-faq__hero-section,
  .page-faq__accordion-section,
  .page-faq__cta-section {
    padding: 40px 0;
  }

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

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

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