.page-faq {
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  background-color: #f8f8f8; /* Light background for contrast with dark text */
  color: #333333; /* Dark text for readability */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-faq__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #0A2342 0%, #1a3a5e 100%); /* Dark primary color gradient */
  color: #ffffff;
  position: relative;
  overflow: hidden;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

.page-faq__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.15;
}

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

.page-faq__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.page-faq__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #E5B80B; /* Auxiliary color for emphasis */
  line-height: 1.2;
}

.page-faq__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-faq__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-faq__button--primary {
  background-color: #E5B80B; /* Auxiliary color */
  color: #0A2342; /* Primary color for text */
  border: 2px solid #E5B80B;
}

.page-faq__button--primary:hover {
  background-color: #d4a70a;
  transform: translateY(-2px);
}

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

.page-faq__button--secondary:hover {
  background-color: rgba(229, 184, 11, 0.1);
  transform: translateY(-2px);
}

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

.page-faq__section-title {
  font-size: 2.5em;
  color: #0A2342;
  text-align: center;
  margin-bottom: 50px;
}

.page-faq__accordion {
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
}

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

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

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

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

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

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

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

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

.page-faq__accordion-body p {
  margin-bottom: 15px;
  color: #555555;
}

.page-faq__button-inline {
  display: inline-block;
  padding: 10px 20px;
  background-color: #E5B80B;
  color: #0A2342;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 0.95em;
  transition: background-color 0.3s ease;
}

.page-faq__button-inline:hover {
  background-color: #d4a70a;
}

.page-faq__cta-bottom {
  text-align: center;
  margin-top: 60px;
  padding: 40px;
  background-color: #0A2342;
  color: #ffffff;
  border-radius: 10px;
}

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

/* Related Resources Section */
.page-faq__related-resources {
  padding: 60px 0;
  background-color: #f0f0f0;
}

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

.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;
}

.page-faq__resource-card:hover {
  transform: translateY(-5px);
}

.page-faq__resource-card img {
  width: 100%;
  height: 250px; /* Minimum 200px height */
  object-fit: cover;
  display: block;
}

.page-faq__resource-card-title {
  font-size: 1.4em;
  color: #0A2342;
  padding: 20px 20px 10px;
}

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

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

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

.page-faq__button-link {
  display: inline-block;
  padding: 10px 20px;
  margin: 0 20px 20px;
  background-color: transparent;
  color: #0A2342;
  border: 1px solid #0A2342;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-faq__button-link:hover {
  background-color: #0A2342;
  color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-faq__hero-title {
    font-size: 2.8em;
  }
  .page-faq__hero-description {
    font-size: 1.2em;
  }
  .page-faq__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 60px 15px;
  }
  .page-faq__hero-title {
    font-size: 2.2em;
  }
  .page-faq__hero-description {
    font-size: 1.1em;
  }
  .page-faq__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-faq__button {
    width: 100%;
  }
  .page-faq__accordion-section {
    padding: 40px 0;
  }
  .page-faq__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-faq__accordion-header {
    font-size: 1.1em;
    padding: 18px 20px;
  }
  .page-faq__accordion-body.open {
    padding: 15px 20px;
  }
  .page-faq__resource-grid {
    grid-template-columns: 1fr;
  }
  .page-faq__resource-card img {
    height: 200px; /* Ensure minimum 200px height for mobile */
  }

  /* Mobile content image constraint */
  .page-faq img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-faq__hero-title {
    font-size: 1.8em;
  }
  .page-faq__hero-description {
    font-size: 1em;
  }
  .page-faq__button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-faq__section-title {
    font-size: 1.6em;
  }
  .page-faq__accordion-header {
    font-size: 1em;
    padding: 15px 18px;
  }
  .page-faq__cta-text {
    font-size: 1.2em;
  }
  .page-faq__resource-card-title {
    font-size: 1.2em;
  }
}