/* style/resources-faq.css */
.page-resources-faq {
  color: #ffffff; /* Default text color for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-resources-faq__hero-section {
  position: relative;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px);
  background: linear-gradient(135deg, #0A2239, #000000);
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}

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

.page-resources-faq__main-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #FFD700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

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

.page-resources-faq__btn-primary {
  display: inline-block;
  background-color: #FFD700;
  color: #0A2239;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

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

.page-resources-faq__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  opacity: 0.3;
}

.page-resources-faq__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(50%);
}

.page-resources-faq__content-area {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for content on dark body */
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.page-resources-faq__section-title {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 20px;
}

.page-resources-faq__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-resources-faq__faq-list {
  margin-top: 30px;
}

.page-resources-faq__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.page-resources-faq__faq-item:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-resources-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #ffffff;
  background-color: #0A2239;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources-faq__faq-question h3 {
  margin: 0;
  color: #ffffff;
}

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

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

.page-resources-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #e0e0e0;
}

.page-resources-faq__faq-item.active .page-resources-faq__faq-answer {
  max-height: 1000px !important; /* Ensure content is fully visible */
  padding: 20px;
  padding-top: 10px; /* Adjust padding slightly for better flow */
}

.page-resources-faq__faq-answer p {
  margin-bottom: 15px;
}

.page-resources-faq__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
}

.page-resources-faq__btn-secondary {
  display: inline-block;
  background-color: #0A2239;
  color: #FFD700;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid #FFD700;
  cursor: pointer;
  margin-top: 10px;
}

.page-resources-faq__btn-secondary:hover {
  background-color: #FFD700;
  color: #0A2239;
  transform: translateY(-2px);
}

.page-resources-faq__btn-tertiary {
  display: inline-block;
  background-color: transparent;
  color: #FFD700;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid #FFD700;
  cursor: pointer;
  margin-top: 10px;
}

.page-resources-faq__btn-tertiary:hover {
  background-color: #FFD700;
  color: #0A2239;
  transform: translateY(-2px);
}

.page-resources-faq__cta-section {
  background-color: #0A2239;
  border-radius: 10px;
  padding: 40px;
  text-align: center;
  margin-top: 40px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-resources-faq__cta-description {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-resources-faq__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }

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

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

  .page-resources-faq__btn-primary,
  .page-resources-faq__btn-secondary,
  .page-resources-faq__btn-tertiary,
  .page-resources-faq a[class*="button"],
  .page-resources-faq a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 10px;
  }

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

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

  .page-resources-faq__section-description {
    font-size: 0.95em;
  }

  .page-resources-faq__faq-question {
    font-size: 1em;
    padding: 15px;
  }

  .page-resources-faq__faq-answer {
    padding: 0 15px;
  }

  .page-resources-faq__faq-item.active .page-resources-faq__faq-answer {
    padding: 15px;
    padding-top: 5px;
  }

  .page-resources-faq__cta-section {
    padding: 30px 15px;
  }

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

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

  /* Mobile image responsiveness */
  .page-resources-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-resources-faq__section,
  .page-resources-faq__card,
  .page-resources-faq__container,
  .page-resources-faq__hero-image-wrapper,
  .page-resources-faq__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .page-resources-faq__hero-image-wrapper {
    margin: 0 auto;
  }

  .page-resources-faq__cta-buttons,
  .page-resources-faq__button-group,
  .page-resources-faq__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-resources-faq__cta-section .page-resources-faq__btn-primary {
    margin-left: 0;
    margin-right: 0;
  }
}