/* style/resources-faq.css */

/* Base styles for the page content, assuming dark body background from shared.css */
.page-resources-faq {
  color: #ffffff; /* Light text for dark background */
  background-color: transparent; /* Inherit body background from shared.css */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-resources-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 15px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  min-height: 500px;
  background-color: #0a0a0a; /* Ensure hero has a dark background consistent with body */
  color: #ffffff;
  overflow: hidden; /* Prevent image overflow */
}

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

.page-resources-faq__hero-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  max-width: 900px;
}

.page-resources-faq__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  color: #f0f0f0;
}

/* Buttons */
.page-resources-faq__btn-primary,
.page-resources-faq__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-resources-faq__btn-primary {
  background-color: #26A9E0; /* Main brand color */
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-resources-faq__btn-primary:hover {
  background-color: #1e87b7;
  border-color: #1e87b7;
}

.page-resources-faq__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
  margin-left: 15px;
}

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

/* Content Section */
.page-resources-faq__content-section {
  padding: 60px 0;
  background-color: #0a0a0a; /* Dark background for consistency */
  color: #ffffff; /* Light text */
}

.page-resources-faq__section-title {
  font-size: 2.2em;
  color: #26A9E0; /* Brand color for section titles */
  margin-bottom: 30px;
  text-align: center;
  padding-top: 20px;
}

.page-resources-faq__text-block {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0; /* Slightly off-white for readability */
}

/* FAQ List */
.page-resources-faq__faq-list {
  margin-top: 40px;
}

.page-resources-faq__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff; /* Light text for card content */
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-resources-faq__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.3em;
  font-weight: bold;
  cursor: pointer;
  outline: none;
  list-style: none; /* Remove default marker */
  color: #26A9E0; /* Brand color for questions */
}

.page-resources-faq__faq-item summary::-webkit-details-marker {
  display: none; /* Remove default marker for Webkit browsers */
}

.page-resources-faq__faq-question {
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.page-resources-faq__faq-qtext {
  margin-right: 10px;
}

.page-resources-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #ffffff; /* White for toggle icon */
}

.page-resources-faq__faq-item[open] .page-resources-faq__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-resources-faq__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.05em;
  color: #f0f0f0; /* Slightly off-white for answer text */
}

.page-resources-faq__faq-answer p,
.page-resources-faq__faq-answer ul,
.page-resources-faq__faq-answer ol {
  margin-bottom: 15px;
  color: #f0f0f0;
}

.page-resources-faq__faq-answer ul,
.page-resources-faq__faq-answer ol {
  padding-left: 20px;
}

.page-resources-faq__faq-answer li {
  margin-bottom: 8px;
  color: #f0f0f0;
}

/* Image styling within content */
.page-resources-faq__image-inline {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

/* CTA buttons at the end of content */
.page-resources-faq__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-faq__hero-title {
    font-size: 2.5em;
  }
  .page-resources-faq__section-title {
    font-size: 1.8em;
  }
  .page-resources-faq__faq-item summary {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-resources-faq__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
  }
  .page-resources-faq__hero-title {
    font-size: 2em;
  }
  .page-resources-faq__hero-description {
    font-size: 1em;
  }
  .page-resources-faq__section-title {
    font-size: 1.6em;
  }
  .page-resources-faq__text-block,
  .page-resources-faq__faq-answer p,
  .page-resources-faq__faq-answer li {
    font-size: 0.95em;
  }
  .page-resources-faq__faq-item summary {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-resources-faq__faq-answer {
    padding: 0 20px 15px;
  }
  .page-resources-faq__btn-primary,
  .page-resources-faq__btn-secondary,
  .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;
    margin-left: 0 !important; /* Remove margin for stack */
    padding: 10px 15px;
  }
  .page-resources-faq__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources-faq__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure video section also respects header offset */
  }
  /* Ensure content area images are not smaller than 200px, but responsive */
  .page-resources-faq__image-inline {
    min-width: unset; /* Allow it to shrink below 200px on mobile if needed for responsiveness, but generally large */
    min-height: unset;
  }
}

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