/* style/resources.css */
.page-resources {
  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-resources__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  padding: 120px 20px 80px; /* Adjust padding-top for header offset */
  text-align: center;
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

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

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

/* General Section Styling */
.page-resources__introduction-section,
.page-resources__strategy-section,
.page-resources__faq-section {
  padding: 60px 0;
  background-color: #ffffff; /* Light background for contrast */
  color: #333333;
}

.page-resources__guide-section,
.page-resources__security-section,
.page-resources__cta-final-section {
  padding: 60px 0;
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
}

.page-resources__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: inherit; /* Inherit color from section background */
}

.page-resources__sub-title {
  font-size: 1.8em;
  margin-top: 40px;
  margin-bottom: 20px;
  color: inherit; /* Inherit color from section background */
}

.page-resources__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.7;
  color: inherit;
}

.page-resources__list {
  list-style: disc inside;
  margin-bottom: 20px;
  padding-left: 20px;
  color: inherit;
}

.page-resources__list-item {
  margin-bottom: 10px;
  color: inherit;
}

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

.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  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;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

.page-resources__btn-primary:hover {
  background-color: #d46b00;
  border-color: #d46b00;
}

.page-resources__btn-secondary {
  background-color: transparent;
  color: #26A9E0; /* Brand primary color */
  border: 2px solid #26A9E0;
}

.page-resources__guide-section .page-resources__btn-secondary,
.page-resources__security-section .page-resources__btn-secondary,
.page-resources__cta-final-section .page-resources__btn-secondary {
  color: #ffffff;
  border-color: #ffffff;
}

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

.page-resources__guide-section .page-resources__btn-secondary:hover,
.page-resources__security-section .page-resources__btn-secondary:hover,
.page-resources__cta-final-section .page-resources__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

/* Images */
.page-resources__image-wrapper {
  text-align: center;
  margin: 40px 0;
}

.page-resources__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block; /* Ensure it behaves as a block element for max-width */
  margin: 0 auto;
}

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

.page-resources__faq-item {
  background-color: #f8f8f8; /* Light background for FAQ items */
  color: #333333;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-resources__faq-item.active {
  background-color: #e0f2f7; /* Lighter brand color for active state */
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #333333;
}

.page-resources__faq-item.active .page-resources__faq-question {
  color: #26A9E0;
}

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

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

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

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value for content */
  padding: 15px 20px 20px;
}

.page-resources__faq-answer p {
  margin-bottom: 0;
}

.page-resources__faq-answer a {
  color: #26A9E0;
  text-decoration: underline;
}

/* Dark background sections should have light text */
.page-resources__dark-bg .page-resources__section-title,
.page-resources__dark-bg .page-resources__sub-title,
.page-resources__dark-bg .page-resources__paragraph,
.page-resources__dark-bg .page-resources__list-item {
  color: #ffffff;
}

/* Ensure proper contrast for links within dark background sections */
.page-resources__dark-bg a {
  color: #f0f0f0; /* Slightly off-white for links */
  text-decoration: underline;
}

.page-resources__dark-bg a:hover {
  color: #ffffff;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .page-resources__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    min-height: 400px;
  }

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

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

  .page-resources__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-resources__sub-title {
    font-size: 1.4em;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-resources__paragraph,
  .page-resources__list-item {
    font-size: 1em;
  }

  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

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

  .page-resources__image {
    max-width: 100% !important;
    height: auto !important;
  }
  
  .page-resources__image-wrapper,
  .page-resources__faq-item,
  .page-resources__faq-question,
  .page-resources__faq-answer,
  .page-resources__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  .page-resources__introduction-section,
  .page-resources__guide-section,
  .page-resources__strategy-section,
  .page-resources__security-section,
  .page-resources__faq-section,
  .page-resources__cta-final-section {
    padding: 40px 0;
  }

  .page-resources__faq-answer {
    padding: 0 15px; /* Adjust padding for mobile */
  }

  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px 15px 20px; /* Adjust padding for mobile active state */
  }
}