/* style/resources.css */

/* Base Styles for the page-resources scope */
.page-resources {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: var(--secondary-color, #FFFFFF); /* Ensure light background for main content */
}

/* Header offset - applied to the first content section if shared.css doesn't handle body padding */
.page-resources__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
}

/* Sections */
.page-resources__section-title,
.page-resources__sub-title {
  color: #26A9E0; /* Brand color for titles */
  text-align: center;
  margin-bottom: 20px;
}

.page-resources__section-title {
  font-size: 2.5em;
  font-weight: bold;
}

.page-resources__sub-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-top: 30px;
  text-align: left; /* Sub-titles within sections can be left-aligned */
  color: #000000; /* Darker color for sub-titles for better contrast */
}

.page-resources__text-block {
  font-size: 1em;
  margin-bottom: 15px;
  color: #333333;
}

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

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  background-color: #26A9E0; /* Brand primary color */
  color: #FFFFFF; /* White text on brand color background */
  padding-bottom: 60px; /* Adjust as needed */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden; /* For image positioning */
}

.page-resources__hero-section .page-resources__container {
  position: relative;
  z-index: 1;
  padding-top: 40px; /* Add some padding here instead of main section */
  padding-bottom: 40px;
}

.page-resources__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.page-resources__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #FFFFFF;
}

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

.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-width: 180px; /* Ensure buttons have a decent minimum width */
  text-align: center;
  box-sizing: border-box; /* Include padding in width calculation */
}

.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: #d46a00;
  border-color: #d46a00;
}

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

.page-resources__btn-secondary:hover {
  background-color: #e0f2f7;
  color: #1a7ea6;
  border-color: #1a7ea6;
}

.page-resources__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2; /* Subtle background image */
  z-index: 0;
}

/* Content Sections */
.page-resources__content-section {
  padding: 60px 0;
}

/* Background Color Handling */
.page-resources__dark-bg {
  background-color: #26A9E0; /* Primary brand color */
  color: #FFFFFF;
}
.page-resources__dark-bg .page-resources__text-block,
.page-resources__dark-bg .page-resources__list-item {
  color: #FFFFFF; /* Ensure text is white on dark background */
}
.page-resources__dark-bg .page-resources__sub-title {
  color: #FFFFFF; /* Ensure sub-titles are white on dark background */
}


.page-resources__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}
.page-resources__light-bg .page-resources__text-block,
.page-resources__light-bg .page-resources__list-item {
  color: #333333; /* Ensure text is dark on light background */
}
.page-resources__light-bg .page-resources__sub-title {
  color: #26A9E0; /* Brand color for sub-titles on light background */
}


/* Images within content */
.page-resources__image-full {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

/* Lists */
.page-resources__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  padding-left: 0;
  color: #333333;
}

.page-resources__dark-bg .page-resources__list {
  list-style-type: disc;
  color: #FFFFFF;
}

.page-resources__list-item {
  margin-bottom: 10px;
  font-size: 1.1em;
}

/* 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;
  color: #333333;
}

.page-resources__dark-bg .page-resources__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #eaf7fc; /* Light blue for questions */
  color: #26A9E0; /* Brand color for question text */
}
.page-resources__dark-bg .page-resources__faq-question {
  background-color: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

.page-resources__faq-question::-webkit-details-marker,
.page-resources__faq-item summary::marker {
  display: none;
}

.page-resources__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 10px;
  color: #26A9E0; /* Brand color for toggle */
}
.page-resources__dark-bg .page-resources__faq-toggle {
  color: #FFFFFF;
}

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

.page-resources__dark-bg .page-resources__faq-answer {
  color: #f0f0f0;
}

.page-resources__faq-item[open] .page-resources__faq-answer {
  max-height: 500px; /* Sufficient height for content */
  padding-top: 15px;
}

/* Call to Action Section */
.page-resources__cta-section {
  text-align: center;
  padding: 80px 0;
  background-color: #26A9E0; /* Brand primary color */
  color: #FFFFFF;
}

.page-resources__cta-section .page-resources__section-title,
.page-resources__cta-section .page-resources__description {
  color: #FFFFFF;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__main-title {
    font-size: 3em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__sub-title {
    font-size: 1.5em;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding-bottom: 40px;
  }
  .page-resources__hero-section .page-resources__container {
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .page-resources__main-title {
    font-size: 2.2em;
  }
  .page-resources__description {
    font-size: 1em;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__sub-title {
    font-size: 1.3em;
  }
  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources__cta-buttons,
  .page-resources__button-group,
  .page-resources__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;
  }

  /* Mobile image and container responsive rules */
  .page-resources img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__content-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Re-apply for mobile if needed, but shared should handle body */
  }

  /* Specific image widths for content area - must not be less than 200px */
  .page-resources__image-full,
  .page-resources__image-center {
    min-width: 200px;
    min-height: 150px; /* Example min-height to ensure it's not too small, height: auto will adjust */
  }

  /* Ensure content area images are not less than 200px */
  .page-resources__content-area img {
      min-width: 200px;
      min-height: 200px; /* Placeholder, will be overridden by height: auto */
  }
}