.page-faq {
  color: #333333; /* Dark text for default light body background */
}

.page-faq__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
  padding-bottom: 80px;
  background-color: #003366; /* Royal Blue primary color */
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}

.page-faq__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.2; /* Subtle background effect */
}

.page-faq__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-faq__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-faq__hero-title {
  font-size: 3.2em;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFD700; /* Gold accent for title */
}

.page-faq__hero-description {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 30px;
  opacity: 0.9;
}

.page-faq__hero-button {
  display: inline-block;
  background-color: #FFD700; /* Gold button */
  color: #003366; /* Royal Blue text */
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__hero-button:hover {
  background-color: #e6c200; /* Slightly darker gold on hover */
  transform: translateY(-3px);
}

.page-faq__accordion-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

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

.page-faq__section-title {
  font-size: 2.5em;
  color: #003366;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-faq__accordion-wrapper {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-faq__accordion-item {
  border-bottom: 1px solid #eee;
}

.page-faq__accordion-item:last-child {
  border-bottom: none;
}

.page-faq__accordion-header {
  background-color: #ffffff;
  color: #003366;
  padding: 20px 30px;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-faq__accordion-header::after {
  content: '+';
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-faq__accordion-header.active {
  background-color: #f0f0f0;
}

.page-faq__accordion-header.active::after {
  transform: rotate(45deg);
}

.page-faq__accordion-body {
  padding: 0 30px;
  background-color: #fcfcfc;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-faq__accordion-body p {
  padding: 20px 0;
  line-height: 1.7;
  font-size: 1.05em;
  color: #555555;
}

.page-faq__accordion-body a {
  color: #003366;
  text-decoration: underline;
  font-weight: 600;
}

.page-faq__accordion-body a:hover {
  color: #FFD700;
}

.page-faq__cta-card {
  background: linear-gradient(135deg, #003366, #1a4d80);
  border-radius: 15px;
  padding: 40px;
  margin-top: 60px;
  display: flex;
  align-items: center;
  gap: 30px;
  color: #ffffff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.page-faq__cta-content {
  flex: 1;
}

.page-faq__cta-title {
  font-size: 2em;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-faq__cta-description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 25px;
  opacity: 0.9;
}

.page-faq__cta-button {
  display: inline-block;
  background-color: #ffffff;
  color: #003366;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  margin-right: 15px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-faq__cta-button:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.page-faq__cta-button--primary {
  background-color: #FFD700;
  color: #003366;
}

.page-faq__cta-button--primary:hover {
  background-color: #e6c200;
}

.page-faq__cta-image-wrapper {
  flex-shrink: 0;
  width: 250px;
  height: 200px;
  border-radius: 10px;
  overflow: hidden;
}

.page-faq__cta-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-faq__related-resources {
  padding: 60px 0 80px;
  background-color: #f0f0f0;
}

.page-faq__resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-faq__resource-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-faq__resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-faq__resource-image {
  width: 100%;
  height: 200px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  display: block;
}

.page-faq__resource-title {
  font-size: 1.3em;
  color: #003366;
  padding: 20px 20px 10px;
  font-weight: 600;
}

.page-faq__resource-title a {
  color: inherit;
  text-decoration: none;
}

.page-faq__resource-title a:hover {
  color: #FFD700;
}

.page-faq__resource-description {
  font-size: 0.95em;
  color: #666666;
  padding: 0 20px 15px;
  line-height: 1.5;
}

.page-faq__resource-link {
  display: inline-block;
  color: #FFD700;
  text-decoration: none;
  font-weight: 600;
  padding: 0 20px 20px;
  transition: color 0.3s ease;
}

.page-faq__resource-link:hover {
  color: #003366;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-faq__hero-title {
    font-size: 2.8em;
  }
  .page-faq__section-title {
    font-size: 2em;
  }
  .page-faq__cta-card {
    flex-direction: column;
    text-align: center;
  }
  .page-faq__cta-button {
    margin-right: 10px;
    margin-bottom: 10px;
  }
  .page-faq__cta-image-wrapper {
    width: 100%;
    height: 250px;
  }
}

@media (max-width: 768px) {
  .page-faq {
    padding-top: var(--header-offset, 120px);
  }
  .page-faq__hero-section {
    padding-top: var(--header-offset, 120px);
    padding: 40px 15px;
  }
  .page-faq__hero-title {
    font-size: 2.2em;
  }
  .page-faq__hero-description {
    font-size: 1em;
  }
  .page-faq__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-faq__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-faq__accordion-header {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-faq__accordion-body {
    padding: 0 20px;
  }
  .page-faq__accordion-body p {
    padding: 15px 0;
  }
  .page-faq__cta-card {
    padding: 30px;
  }
  .page-faq__cta-title {
    font-size: 1.8em;
  }
  .page-faq__cta-description {
    font-size: 1em;
  }
  .page-faq__cta-button {
    margin-bottom: 15px;
  }
  .page-faq__resources-grid {
    grid-template-columns: 1fr;
  }
  /* Mobile image scaling for content area */
  .page-faq__hero-image,
  .page-faq__cta-image,
  .page-faq__resource-image {
    max-width: 100%;
    height: auto;
  }
  .page-faq__cta-image-wrapper {
    width: 100%;
    height: auto; /* Allow height to adjust based on aspect ratio */
  }
  .page-faq__resource-image {
    height: 180px; /* Adjust height for smaller screens */
  }
}

@media (max-width: 480px) {
  .page-faq__hero-title {
    font-size: 1.8em;
  }
  .page-faq__section-title {
    font-size: 1.5em;
  }
  .page-faq__cta-title {
    font-size: 1.5em;
  }
  .page-faq__cta-button {
    display: block;
    width: calc(100% - 20px); /* Adjust for padding */
    margin: 0 auto 15px auto;
  }
  .page-faq__cta-button:last-child {
    margin-bottom: 0;
  }
}