/* style/resources-qh888-login-faq.css */
:root {
  --primary-color: #007bff;
  --secondary-color: #ffc107;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark-section: #007bff; /* Using primary color for dark sections */
  --bg-light-section: #ffffff; /* Using white for light sections */
  --border-color: #e0e0e0;
}

.page-resources-qh888-login-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  /* Text color for the main content area will be set by specific sections based on their background */
}

.page-resources-qh888-login-faq__hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  box-sizing: border-box;
  background-color: var(--primary-color); /* Fallback in case image fails */
}

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

.page-resources-qh888-login-faq__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.page-resources-qh888-login-faq__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
  color: var(--text-light);
}

.page-resources-qh888-login-faq__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: var(--text-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  line-height: 1.2;
}

.page-resources-qh888-login-faq__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: var(--text-light);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-resources-qh888-login-faq__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-resources-qh888-login-faq__section {
  padding: 80px 0;
}

.page-resources-qh888-login-faq__dark-bg {
  background-color: var(--bg-dark-section);
  color: var(--text-light);
}

.page-resources-qh888-login-faq__light-bg {
  background-color: var(--bg-light-section);
  color: var(--text-dark);
}

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

.page-resources-qh888-login-faq__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: inherit; /* Inherit color from parent section (dark-bg or light-bg) */
}

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

.page-resources-qh888-login-faq__text-block a {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-resources-qh888-login-faq__text-block a:hover {
  color: #ffda6a; /* Lighter shade of secondary color */
}

.page-resources-qh888-login-faq__ordered-list,
.page-resources-qh888-login-faq__unordered-list {
  list-style-position: inside;
  margin-bottom: 20px;
  padding-left: 0;
}

.page-resources-qh888-login-faq__list-item {
  font-size: 1.1em;
  margin-bottom: 15px;
}

.page-resources-qh888-login-faq__list-title {
  font-size: 1.3em;
  color: inherit;
  margin-bottom: 5px;
}

.page-resources-qh888-login-faq__image-wrapper {
  text-align: center;
  margin: 40px 0;
}

.page-resources-qh888-login-faq__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources-qh888-login-faq__faq-list {
  margin-top: 40px;
}

.page-resources-qh888-login-faq__faq-item {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-light);
}

.page-resources-qh888-login-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: var(--primary-color);
  color: var(--text-light);
  transition: background-color 0.3s ease;
}

.page-resources-qh888-login-faq__faq-question:hover {
  background-color: #0056b3; /* Darker primary color on hover */
}

.page-resources-qh888-login-faq__faq-title {
  margin: 0;
  color: inherit;
}

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

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

.page-resources-qh888-login-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 30px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: rgba(0, 0, 0, 0.3); /* Darker semi-transparent for answer background */
  color: var(--text-light);
}

.page-resources-qh888-login-faq__faq-item.active .page-resources-qh888-login-faq__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to contain content */
  padding: 20px 30px !important;
}

.page-resources-qh888-login-faq__faq-answer p {
  margin-bottom: 10px;
  color: var(--text-light);
}

/* Buttons */
.page-resources-qh888-login-faq__btn-primary,
.page-resources-qh888-login-faq__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow word breaking */
}

.page-resources-qh888-login-faq__btn-primary {
  background-color: var(--secondary-color);
  color: var(--text-dark); /* Ensure dark text on bright secondary color */
  border: 2px solid var(--secondary-color);
}

.page-resources-qh888-login-faq__btn-primary:hover {
  background-color: #e6b000; /* Darker secondary color */
  border-color: #e6b000;
}

.page-resources-qh888-login-faq__btn-secondary {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.page-resources-qh888-login-faq__btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--text-dark); /* Ensure dark text on bright secondary color */
}

.page-resources-qh888-login-faq__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

.page-resources-qh888-login-faq__cta-buttons--center {
  justify-content: center;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-resources-qh888-login-faq__hero-title {
    font-size: 2.5em;
  }

  .page-resources-qh888-login-faq__hero-description {
    font-size: 1.1em;
  }

  .page-resources-qh888-login-faq__hero-cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .page-resources-qh888-login-faq__btn-primary,
  .page-resources-qh888-login-faq__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
  }

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

  .page-resources-qh888-login-faq__text-block,
  .page-resources-qh888-login-faq__list-item {
    font-size: 1em;
  }

  .page-resources-qh888-login-faq__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

  .page-resources-qh888-login-faq__faq-answer {
    padding: 15px 20px !important;
  }

  /* Images and their containers */
  .page-resources-qh888-login-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-resources-qh888-login-faq__image-wrapper,
  .page-resources-qh888-login-faq__container,
  .page-resources-qh888-login-faq__hero-section,
  .page-resources-qh888-login-faq__section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .page-resources-qh888-login-faq__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure space for fixed header on mobile */
    height: auto; /* Allow hero to adapt height */
    min-height: 500px;
  }
}

@media (max-width: 480px) {
  .page-resources-qh888-login-faq__hero-title {
    font-size: 2em;
  }
  .page-resources-qh888-login-faq__section-title {
    font-size: 1.8em;
  }
}

/* Ensure color contrast for dark body background and specific sections */
/* The body background is var(--bg-dark) which is dark, so default text color should be light. */
/* Sections with dark-bg use primary color and light text. */
/* Sections with light-bg use white background and dark text. */

.page-resources-qh888-login-faq__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-resources-qh888-login-faq__light-bg {
  background-color: var(--bg-light-section);
  color: var(--text-dark);
}