/* style/resources-faq.css */
.page-resources-faq {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Dark gray for readability */
  line-height: 1.6;
}

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

.page-resources-faq__hero {
  background-color: #0A246A; /* Primary color */
  background-image: linear-gradient(135deg, #0A246A 0%, #2a4b91 100%); /* Gradient based on primary */
  padding: 80px 0 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.page-resources-faq__title {
  font-size: 3.2em;
  color: #FFD700; /* Secondary color for emphasis */
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-resources-faq__description {
  font-size: 1.1em;
  color: #E0E0E0; /* Light gray for contrast on dark background */
  max-width: 800px;
  margin: 0 auto 30px;
}

.page-resources-faq__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}

.page-resources-faq__btn--primary {
  background-color: #FFD700; /* Secondary color */
  color: #0A246A; /* Primary color for text */
  border: 2px solid #FFD700;
}

.page-resources-faq__btn--primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

.page-resources-faq__btn--secondary {
  background-color: #0A246A; /* Primary color */
  color: #FFD700; /* Secondary color for text */
  border: 2px solid #FFD700;
}

.page-resources-faq__btn--secondary:hover {
  background-color: #FFD700;
  color: #0A246A;
}

.page-resources-faq__btn--inline {
  margin-top: 15px;
  font-size: 0.9em;
  padding: 8px 15px;
}

.page-resources-faq__btn--outline {
  background-color: transparent;
  color: #0A246A; /* Primary color */
  border: 2px solid #0A246A;
}

.page-resources-faq__btn--outline:hover {
  background-color: #0A246A;
  color: #FFFFFF;
}

.page-resources-faq__content-wrapper {
  padding: 40px 0;
  background-color: #F8F8F8; /* Light background for main content */
}

.page-resources-faq__content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .page-resources-faq__content-grid {
    grid-template-columns: 280px 1fr;
  }
}

.page-resources-faq__sidebar {
  background-color: #FFFFFF;
  padding: 30px 25px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  height: fit-content;
  position: sticky;
  top: 20px; /* Adjust based on header height */
}

.page-resources-faq__sidebar-title {
  font-size: 1.6em;
  color: #0A246A; /* Primary color */
  margin-bottom: 25px;
  border-bottom: 2px solid #FFD700; /* Secondary color for accent */
  padding-bottom: 10px;
}

.page-resources-faq__toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-resources-faq__toc li {
  margin-bottom: 12px;
}

.page-resources-faq__toc a {
  text-decoration: none;
  color: #555555;
  font-size: 1em;
  transition: color 0.3s ease;
  display: block;
  padding: 5px 0;
}

.page-resources-faq__toc a:hover,
.page-resources-faq__toc a.active {
  color: #0A246A; /* Primary color on hover/active */
  font-weight: bold;
}

.page-resources-faq__promo-card {
  background-color: #0A246A; /* Primary color */
  color: #FFFFFF;
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  margin-top: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-resources-faq__promo-title {
  font-size: 1.4em;
  color: #FFD700; /* Secondary color */
  margin-bottom: 15px;
}

.page-resources-faq__promo-text {
  font-size: 0.95em;
  margin-bottom: 20px;
  color: #E0E0E0;
}

.page-resources-faq__promo-image {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 4px;
  margin-bottom: 20px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.page-resources-faq__article-content {
  background-color: #FFFFFF;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.page-resources-faq__section-title {
  font-size: 2em;
  color: #0A246A; /* Primary color */
  margin-top: 40px;
  margin-bottom: 25px;
  border-bottom: 2px solid #FFD700; /* Secondary color for accent */
  padding-bottom: 10px;
}

.page-resources-faq__section-title:first-of-type {
  margin-top: 0;
}

.page-resources-faq__faq-item {
  margin-bottom: 30px;
  border: 1px solid #EEEEEE;
  border-radius: 6px;
  background-color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-resources-faq__question {
  font-size: 1.25em;
  color: #0A246A; /* Primary color */
  padding: 18px 25px;
  margin: 0;
  cursor: pointer;
  background-color: #F0F5F9; /* Light background for question */
  border-bottom: 1px solid #E0E0E0;
  border-radius: 6px 6px 0 0;
  position: relative;
  display: flex;
  align-items: center;
}

.page-resources-faq__question::after {
  content: '+';
  position: absolute;
  right: 25px;
  font-size: 1.5em;
  font-weight: normal;
  transition: transform 0.3s ease;
}

.page-resources-faq__question.active::after {
  content: '-';
  transform: rotate(180deg);
}

.page-resources-faq__answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #555555;
  display: none; /* Hidden by default */
  border-top: none;
  border-radius: 0 0 6px 6px;
}

.page-resources-faq__answer.active {
  display: block;
}

.page-resources-faq__answer p {
  margin-bottom: 15px;
}

.page-resources-faq__answer ol,
.page-resources-faq__answer ul {
  margin-left: 25px;
  margin-bottom: 15px;
  padding-left: 0;
}

.page-resources-faq__answer li {
  margin-bottom: 8px;
}

.page-resources-faq__article-image {
  width: 100%;
  max-width: 700px;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-resources-faq__return-link {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #E0E0E0;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .page-resources-faq__hero {
    padding: 60px 0 30px;
  }

  .page-resources-faq__title {
    font-size: 2.5em;
  }

  .page-resources-faq__description {
    font-size: 1em;
  }

  .page-resources-faq__sidebar {
    position: static;
    margin-bottom: 30px;
  }

  .page-resources-faq__article-content {
    padding: 20px;
  }

  .page-resources-faq__section-title {
    font-size: 1.8em;
    margin-top: 30px;
  }

  .page-resources-faq__question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-resources-faq__question::after {
    right: 20px;
  }

  .page-resources-faq__answer {
    padding: 15px 20px;
  }
}