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

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

.page-faq__hero-section {
  background-color: #0A192F; /* Primary dark blue */
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  position: relative;
  overflow: hidden;
}

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

.page-faq__hero-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #FFD700; /* Accent gold */
}

.page-faq__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.page-faq__hero-button {
  display: inline-block;
  background-color: #FFD700; /* Accent gold */
  color: #0A192F; /* Dark blue text */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-faq__hero-button:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

.page-faq__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0.2;
}

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

.page-faq__categories-section {
  padding: 60px 20px;
  background-color: #f5f5f5;
  text-align: center;
}

.page-faq__categories-title {
  font-size: 2.5em;
  color: #0A192F;
  margin-bottom: 20px;
}

.page-faq__categories-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #555555;
}

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

.page-faq__category-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-decoration: none;
  color: #0A192F;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-faq__category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-faq__category-icon {
  width: 100%; /* Ensure images are not tiny */
  max-width: 200px; /* Smallest allowed size for content images */
  height: auto;
  margin-bottom: 15px;
  border-radius: 8px;
  object-fit: cover;
}

.page-faq__category-card-title {
  font-size: 1.5em;
  margin: 0;
  color: #0A192F;
}

.page-faq__accordion-section {
  padding: 60px 20px;
}

.page-faq__section--dark {
  background-color: #0A192F;
  color: #ffffff;
}

.page-faq__section--dark .page-faq__section-title,
.page-faq__section--dark .page-faq__section-intro,
.page-faq__section--dark .page-faq__accordion-header,
.page-faq__section--dark .page-faq__accordion-content p,
.page-faq__section--dark .page-faq__accordion-content a {
  color: #ffffff;
}

.page-faq__section--dark .page-faq__accordion-header {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-faq__section--dark .page-faq__accordion-header:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-faq__section--dark .page-faq__accordion-content {
  background-color: rgba(255, 255, 255, 0.05);
}

.page-faq__section-title {
  font-size: 2.8em;
  color: #0A192F;
  text-align: center;
  margin-bottom: 20px;
}

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

.page-faq__accordion-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-faq__accordion-header {
  background-color: #ffffff;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.3em;
  font-weight: bold;
  color: #0A192F;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
  border-bottom: 1px solid #eee;
}

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

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

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

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

.page-faq__accordion-content.active {
  max-height: 500px; /* Adjust based on expected content length */
  padding: 25px;
}

.page-faq__accordion-content p {
  margin-bottom: 15px;
  color: #444444;
}

.page-faq__accordion-content p:last-child {
  margin-bottom: 0;
}

.page-faq__accordion-content a {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
}

.page-faq__accordion-content a:hover {
  text-decoration: underline;
}

.page-faq__cta-section {
  background-color: #FFD700; /* Accent gold */
  color: #0A192F; /* Dark blue text */
  padding: 80px 20px;
  text-align: center;
}

.page-faq__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #0A192F;
}

.page-faq__cta-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #0A192F;
}

.page-faq__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

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

.page-faq__cta-button--primary {
  background-color: #0A192F; /* Primary dark blue */
  color: #FFD700; /* Accent gold */
}

.page-faq__cta-button--primary:hover {
  background-color: #1a324b;
  transform: translateY(-3px);
}

.page-faq__cta-button--secondary {
  background-color: #ffffff;
  color: #0A192F; /* Dark blue text */
  border: 2px solid #0A192F;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-faq__hero-title {
    font-size: 2.5em;
  }
  .page-faq__section-title {
    font-size: 2.2em;
  }
  .page-faq__cta-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 60px 20px;
  }
  .page-faq__hero-title {
    font-size: 2em;
  }
  .page-faq__hero-description {
    font-size: 1em;
  }
  .page-faq__categories-section,
  .page-faq__accordion-section,
  .page-faq__cta-section {
    padding: 40px 20px;
  }
  .page-faq__section-title {
    font-size: 1.8em;
  }
  .page-faq__cta-title {
    font-size: 1.8em;
  }
  .page-faq__category-grid {
    grid-template-columns: 1fr;
  }
  .page-faq__accordion-header {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-faq__accordion-content {
    padding: 15px 20px;
  }
  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-faq__cta-button {
    width: 100%;
    max-width: 300px;
  }
  /* Ensure content images are responsive and not too small */
  .page-faq img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
    object-fit: cover;
  }
  .page-faq__category-icon {
    min-width: 200px;
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-faq__hero-title {
    font-size: 1.8em;
  }
  .page-faq__section-title {
    font-size: 1.6em;
  }
  .page-faq__cta-title {
    font-size: 1.6em;
  }
  .page-faq__hero-button,
  .page-faq__cta-button {
    font-size: 1em;
    padding: 12px 25px;
  }
}