.page-faq {
  color: #333333; /* Default text color for light body background */
  background-color: #f8f8f8; /* Light background for the FAQ page content */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-faq__hero-section {
  padding: 80px 20px;
  background-color: #0A1F3B; /* Dark blue primary color */
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px; /* Ensure hero section has a decent height */
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

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

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

.page-faq__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__hero-buttons {
  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;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-size: 1.1em;
}

.page-faq__button--primary {
  background-color: #FFD700; /* Gold */
  color: #0A1F3B; /* Dark blue */
  border: 2px solid #FFD700;
}

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

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

.page-faq__button--secondary:hover {
  background-color: rgba(255, 215, 0, 0.1);
  transform: translateY(-2px);
}

.page-faq__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3;
}

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

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

.page-faq__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  margin: 15px auto 0;
  border-radius: 2px;
}

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

.page-faq__category-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #eee;
}

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

.page-faq__category-icon {
  width: 200px; /* Min size 200px */
  height: 133px; /* Maintain aspect ratio for 600x400 */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
  border: 1px solid #FFD700;
}

.page-faq__category-heading {
  font-size: 1.8em;
  color: #0A1F3B;
  margin-bottom: 15px;
}

.page-faq__category-description {
  color: #555555;
  font-size: 1em;
}

.page-faq__accordion-container {
  margin-top: 60px;
}

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

.page-faq__accordion-header {
  font-size: 1.4em;
  color: #0A1F3B;
  padding: 20px 30px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fdfdfd;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
}

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

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

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

.page-faq__accordion-content {
  padding: 0 30px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
  color: #444444;
}

.page-faq__accordion-item.active .page-faq__accordion-content {
  max-height: 1000px; /* Adjust as needed */
  padding: 20px 30px;
}

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

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

.page-faq__accordion-content a {
  color: #0A1F3B;
  text-decoration: underline;
  font-weight: bold;
}

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

.page-faq__button--link {
  background-color: #0A1F3B;
  color: #FFD700;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.9em;
  margin-top: 15px;
  display: inline-block;
}

.page-faq__button--link:hover {
  background-color: #1a3a5e;
}

.page-faq__contact-cta {
  background-color: #0A1F3B;
  color: #ffffff;
  padding: 60px 30px;
  text-align: center;
  border-radius: 15px;
  margin-top: 80px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.page-faq__cta-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Floating Register/Login Buttons for Mobile */
.page-faq__floating-buttons-wrapper {
  display: none; /* Hidden by default, shown on mobile */
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 60px 15px;
    min-height: 300px;
  }

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

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

  .page-faq__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-faq__button {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-faq__content-area {
    padding: 40px 15px;
  }

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

  .page-faq__category-grid {
    grid-template-columns: 1fr;
  }

  .page-faq__category-card {
    padding: 20px;
  }

  .page-faq__accordion-header {
    font-size: 1.2em;
    padding: 15px 20px;
  }

  .page-faq__accordion-content {
    padding: 0 20px;
  }

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

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

  .page-faq__cta-description {
    font-size: 1em;
  }

  /* Mobile specific floating buttons */
  .page-faq__floating-buttons-wrapper {
    display: flex;
    position: sticky;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 31, 59, 0.95); /* Dark blue with transparency */
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    justify-content: space-around;
    padding: 10px 0;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    margin-top: 40px;
  }

  .page-faq__floating-button {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    margin: 0 5px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
  }

  .page-faq__floating-button--register {
    background-color: #FFD700; /* Gold */
    color: #0A1F3B; /* Dark blue */
  }

  .page-faq__floating-button--register:hover {
    background-color: #e6c200;
  }

  .page-faq__floating-button--login {
    background-color: #0A1F3B; /* Dark blue */
    color: #FFD700; /* Gold */
    border: 1px solid #FFD700;
  }

  .page-faq__floating-button--login:hover {
    background-color: #1a3a5e;
  }

  /* Ensure content images are responsive and do not overflow */
  .page-faq img {
    max-width: 100%;
    height: auto;
  }
}

@media (min-width: 769px) {
  .page-faq__floating-buttons-wrapper {
    display: none; /* Hide floating buttons on desktop */
  }
}