.page-resources {
  color: #333333; /* Dark text for light body background */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background-color: var(--secondary-color); /* Inherit body background from shared.css */
}

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

.page-resources__hero-section {
  position: relative;
  overflow: hidden;
  background-color: #000000; /* Dark background for hero section */
  padding-bottom: 40px; /* Add some padding below content */
}

.page-resources__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim the image to make text pop */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.page-resources__hero-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 500px; /* Ensure hero section has a decent height */
  padding: 80px 20px;
}

.page-resources__hero-content {
  color: #FFFFFF; /* Light text on dark hero background */
  max-width: 800px;
}

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

.page-resources__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  line-height: 1.6;
  color: #F0F0F0;
}

.page-resources__section-title {
  font-size: 2.8em;
  color: #000000;
  text-align: center;
  margin-bottom: 40px;
  padding-top: 60px;
}

.page-resources__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 60px auto;
  line-height: 1.6;
  color: #555555;
}

.page-resources__articles-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

.page-resources__article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-resources__article-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-resources__article-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-resources__article-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-resources__article-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-resources__article-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-resources__article-title a {
  color: #000000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__article-title a:hover {
  color: #FCBC45; /* Login button color for hover */
}

.page-resources__article-summary {
  font-size: 1em;
  color: #555555;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-align: center;
}

.page-resources__button--primary {
  background-color: #FCBC45; /* Login button color */
  color: #000000; /* Dark text on light button */
}

.page-resources__button--primary:hover {
  background-color: #e0a53a;
}

.page-resources__button--secondary {
  background-color: #000000; /* Main color */
  color: #FFFFFF; /* Light text on dark button */
}

.page-resources__button--secondary:hover {
  background-color: #333333;
}

.page-resources__content-area {
  padding: 60px 0;
  background-color: #F8F8F8;
}

.page-resources__sub-title {
  font-size: 2.2em;
  color: #000000;
  margin-top: 40px;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-resources__sub-sub-title {
  font-size: 1.8em;
  color: #000000;
  margin-top: 30px;
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-resources__paragraph {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #333333;
}

.page-resources__paragraph a {
  color: #FCBC45; /* Link color */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__paragraph a:hover {
  text-decoration: underline;
  color: #e0a53a;
}

.page-resources__list {
  list-style-type: decimal;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #333333;
}

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

.page-resources__list-item a {
  color: #FCBC45;
  text-decoration: none;
}

.page-resources__list-item a:hover {
  text-decoration: underline;
  color: #e0a53a;
}

.page-resources__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

.page-resources__faq-list {
  margin-top: 40px;
}

.page-resources__faq-item {
  background-color: #FFFFFF;
  border: 1px solid #EEEEEE;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-resources__faq-question {
  font-size: 1.4em;
  color: #000000;
  margin-bottom: 10px;
  cursor: pointer;
}

.page-resources__faq-answer {
  font-size: 1.1em;
  color: #555555;
  line-height: 1.7;
}

.page-resources__faq-answer a {
  color: #FCBC45;
  text-decoration: none;
}

.page-resources__faq-answer a:hover {
  text-decoration: underline;
  color: #e0a53a;
}

.page-resources__cta-banner {
  background-color: #000000;
  color: #FFFFFF;
  padding: 60px 40px;
  border-radius: 15px;
  text-align: center;
  margin-top: 60px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

.page-resources__cta-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.6;
  color: #F0F0F0;
}

/* Media Queries for responsiveness */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 3em;
  }

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

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

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

  .page-resources__sub-sub-title {
    font-size: 1.5em;
  }

  .page-resources__article-image {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-container {
    min-height: 400px;
    padding: 60px 20px;
  }

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

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

  .page-resources__button {
    padding: 10px 20px;
    font-size: 0.9em;
  }

  .page-resources__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-resources__section-intro {
    font-size: 1em;
    margin-bottom: 40px;
  }

  .page-resources__article-grid {
    grid-template-columns: 1fr;
  }

  .page-resources__article-image {
    height: 220px;
  }

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

  .page-resources__article-summary,
  .page-resources__paragraph,
  .page-resources__list-item,
  .page-resources__faq-answer {
    font-size: 0.95em;
  }

  .page-resources__sub-title {
    font-size: 1.6em;
  }

  .page-resources__sub-sub-title {
    font-size: 1.3em;
  }

  .page-resources__content-image {
    margin: 30px auto;
    max-width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
  }

  .page-resources__faq-question {
    font-size: 1.2em;
  }

  .page-resources__cta-banner {
    padding: 40px 20px;
  }

  .page-resources__cta-title {
    font-size: 2em;
  }

  .page-resources__cta-description {
    font-size: 1.1em;
  }

  /* Ensure all content images in .page-resources are responsive and do not overflow */
  .page-resources img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 2em;
  }

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

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

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

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