.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  text-align: center;
}

.page-faq__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 1;
}

.page-faq__hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  max-width: 800px;
}

.page-faq__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff; 
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

/* General Section Styling */
.page-faq__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0;
  font-weight: bold;
}

.page-faq__text-block {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
}

/* Intro Section */
.page-faq__intro-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
  text-align: center;
}

.page-faq__intro-section .page-faq__text-block {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ List Section */
.page-faq__faq-list-section {
  padding: 80px 0;
  background-color: #f8f9fa;
  color: #333333;
}

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

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #26A9E0;
  cursor: pointer;
  background-color: #e0f2f7; /* Light background for question */
  border-bottom: 1px solid #d0e0e3;
}

.page-faq__faq-question:hover {
  background-color: #d0eaf2;
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  transform: rotate(45deg);
}

.page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to contain content */
  padding: 20px 25px;
  padding-top: 10px;
}

.page-faq__faq-answer p {
  margin-bottom: 15px;
  color: #555555;
}

.page-faq__faq-answer p:last-child {
  margin-bottom: 0;
}

/* Call to Action Section */
.page-faq__cta-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Brand color as background */
  color: #ffffff;
  text-align: center;
}

.page-faq__cta-section .page-faq__section-title {
  color: #ffffff;
}

.page-faq__cta-section .page-faq__text-block {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

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

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

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

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

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

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

.page-faq__resource-title {
  font-size: 1.3em;
  padding: 15px 20px 0;
  min-height: 70px;
}

.page-faq__resource-title a {
  color: #26A9E0;
  text-decoration: none;
}

.page-faq__resource-title a:hover {
  text-decoration: underline;
}

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

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

.page-faq__btn-primary {
  background-color: #EA7C07; /* Login color for primary action */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

.page-faq__btn-secondary {
  background-color: transparent;
  color: #ffffff; /* White text on dark background for secondary button in CTA section */
  border: 2px solid #ffffff;
}

.page-faq__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

/* For intro section secondary button */
.page-faq__intro-section .page-faq__btn-secondary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-faq__intro-section .page-faq__btn-secondary:hover {
  background-color: #1f8ec4;
  border-color: #1f8ec4;
}


/* Responsive Styles */
@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 {
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure content is below fixed header on mobile */
  }
  .page-faq__hero-title {
    font-size: 2em;
  }
  .page-faq__hero-description {
    font-size: 1em;
  }
  .page-faq__section-title {
    font-size: 1.8em;
  }
  .page-faq__intro-section,
  .page-faq__faq-list-section,
  .page-faq__cta-section,
  .page-faq__related-resources {
    padding: 40px 0;
  }
  .page-faq__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-faq__faq-answer {
    padding: 0 20px;
  }
  .page-faq__faq-item.active .page-faq__faq-answer {
    padding: 15px 20px;
    padding-top: 10px;
  }
  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-faq__container {
    padding: 0 15px;
  }
  /* Mobile image responsiveness */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-faq__section,
  .page-faq__card,
  .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-faq__video-section {
    padding-top: var(--header-offset, 120px) !important; /* with !important for mobile */
  }
  .page-faq__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-faq video,
  .page-faq__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-faq__video-section,
  .page-faq__video-container,
  .page-faq__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-faq__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .page-faq__hero-title {
    font-size: 1.8em;
  }
  .page-faq__hero-description {
    font-size: 0.9em;
  }
  .page-faq__section-title {
    font-size: 1.6em;
  }
  .page-faq__faq-question {
    font-size: 1em;
  }
}