.page-resources {
  color: #ffffff; /* Default text color for the entire main content area, assuming a dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Main content area will inherit body background */
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-resources__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  background-color: #26A9E0; /* Use brand primary color for hero background */
  color: #FFFFFF;
  text-align: center;
  overflow: hidden;
}

.page-resources__hero-content {
  max-width: 900px;
  z-index: 1;
  position: relative;
}

.page-resources__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFFFFF;
  line-height: 1.2;
}

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #F0F0F0;
}

.page-resources__hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-resources__btn-primary:hover {
  background-color: #d46f06;
  border-color: #d46f06;
  transform: translateY(-2px);
}

.page-resources__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0; /* Primary brand color for secondary action text */
  border: 2px solid #26A9E0;
}

.page-resources__btn-secondary:hover {
  background-color: #e0f2f7;
  color: #208cb5;
  transform: translateY(-2px);
}

.page-resources__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-resources__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2; /* Subtle background image */
}

.page-resources__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-resources__section-title {
  font-size: 2.5em;
  color: #26A9E0; /* Primary brand color for section titles */
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

.page-resources__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #EA7C07; /* Accent color for underline */
  border-radius: 2px;
}

.page-resources__subsection-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-resources__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #333333; /* Dark text on lighter section backgrounds */
}

.page-resources__image-content {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-resources__list-numbered,
.page-resources__list-bullet {
  margin-bottom: 20px;
  padding-left: 25px;
  color: #333333;
}

.page-resources__list-numbered li,
.page-resources__list-bullet li {
  margin-bottom: 10px;
  font-size: 1.05em;
}

.page-resources__list-numbered li strong,
.page-resources__list-bullet li strong {
  color: #26A9E0;
}

/* Specific section background adjustments for contrast */
.page-resources__introduction-section,
.page-resources__guides-section,
.page-resources__security-section,
.page-resources__stories-section,
.page-resources__faq-section,
.page-resources__contact-section,
.page-resources__conclusion-section {
  background-color: #FFFFFF; /* White background for main content sections */
  color: #333333; /* Dark text for contrast on white background */
  padding: 60px 0;
  border-bottom: 1px solid #f0f0f0;
}

.page-resources__introduction-section p,
.page-resources__guides-section p,
.page-resources__security-section p,
.page-resources__stories-section p,
.page-resources__faq-section p,
.page-resources__contact-section p,
.page-resources__conclusion-section p,
.page-resources__introduction-section li,
.page-resources__guides-section li,
.page-resources__security-section li,
.page-resources__stories-section li,
.page-resources__faq-section li,
.page-resources__contact-section li,
.page-resources__conclusion-section li {
  color: #333333; /* Ensure dark text on white backgrounds */
}

/* FAQ Section */
.page-resources__faq-list {
  margin-top: 30px;
}

.page-resources__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  background-color: #FFFFFF;
  transition: background-color 0.3s ease;
}

.page-resources__faq-question:hover {
  background-color: #f0f0f0;
}

.page-resources__faq-title {
  font-size: 1.2em;
  color: #333333;
  margin: 0;
}

.page-resources__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
  transform: rotate(45deg);
  color: #EA7C07;
}

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

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 1000px !important; /* Ensure it expands fully */
  padding: 15px 25px;
}

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

/* Contact List */
.page-resources__contact-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-resources__contact-list li {
  font-size: 1.1em;
  margin-bottom: 10px;
  color: #333333;
}

.page-resources__contact-list li strong {
  color: #26A9E0;
}

/* CTA Buttons group */
.page-resources__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__subsection-title {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  .page-resources {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding top is set */
  }

  .page-resources__hero-section {
    padding: 60px 15px;
  }

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

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

  .page-resources__hero-cta {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
  }

  .page-resources__container {
    padding: 30px 15px;
  }

  .page-resources__section-title {
    font-size: 1.8em;
  }

  .page-resources__section-title::after {
    width: 60px;
  }

  .page-resources__subsection-title {
    font-size: 1.4em;
  }

  .page-resources__text-block,
  .page-resources__list-numbered li,
  .page-resources__list-bullet li,
  .page-resources__contact-list li,
  .page-resources__faq-title {
    font-size: 1em;
  }

  /* Mobile image responsiveness */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Ensure containers with images are responsive */
  .page-resources__introduction-section,
  .page-resources__guides-section,
  .page-resources__security-section,
  .page-resources__stories-section,
  .page-resources__faq-section,
  .page-resources__contact-section,
  .page-resources__conclusion-section,
  .page-resources__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-resources__hero-section {
    padding-left: 0;
    padding-right: 0;
  }
  .page-resources__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* FAQ specific mobile styles */
  .page-resources__faq-question {
    padding: 15px 20px;
  }
  .page-resources__faq-answer {
    padding: 0 20px;
  }
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 10px 20px;
  }
  
  /* Button group for mobile */
  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
  }
}