.page-resources {
  color: #333333; /* Dark text for default light body background */
  line-height: 1.6;
  font-family: Arial, sans-serif;
}

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

.page-resources__hero-section {
  background-color: #f8f8f8;
  padding: var(--header-offset, 120px) 20px 60px; /* Ensure space for fixed header on desktop */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.page-resources__hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-resources__hero-title {
  font-size: 3.2em;
  color: #E44D26; /* Primary brand color */
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

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

.page-resources__hero-button {
  display: inline-block;
  background-color: #FFB300; /* Secondary brand color */
  color: #333333;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-resources__hero-button:hover {
  background-color: #E44D26; /* Primary brand color on hover */
  color: #ffffff;
  transform: translateY(-3px);
}

.page-resources__hero-image-wrapper {
  margin-top: 40px;
  width: 100%;
  max-width: 1000px; /* Adjust max-width for hero image */
}

.page-resources__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

.page-resources__intro-section {
  padding: 60px 20px;
  background-color: #ffffff;
  text-align: center;
}

.page-resources__intro-heading {
  font-size: 2.5em;
  color: #E44D26;
  margin-bottom: 20px;
}

.page-resources__intro-text {
  font-size: 1.1em;
  color: #666666;
  max-width: 900px;
  margin: 0 auto;
}

.page-resources__articles-section {
  padding: 80px 20px;
  background-color: #f0f0f0;
}

.page-resources__articles-heading {
  font-size: 2.8em;
  color: #E44D26;
  text-align: center;
  margin-bottom: 50px;
}

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

.page-resources__article-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 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(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-resources__article-image-wrapper {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  overflow: hidden;
}

.page-resources__article-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
  min-width: 200px;
  min-height: 200px;
}

.page-resources__article-card:hover .page-resources__article-image {
  transform: scale(1.05);
}

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

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

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

.page-resources__article-title a:hover {
  color: #FFB300;
}

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

.page-resources__article-button {
  display: inline-block;
  background-color: #FFB300;
  color: #333333;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  transition: background-color 0.3s ease, color 0.3s ease;
  align-self: flex-start;
}

.page-resources__article-button:hover {
  background-color: #E44D26;
  color: #ffffff;
}

.page-resources__pagination {
  display: flex;
  justify-content: center;
  margin-top: 50px;
  gap: 10px;
}

.page-resources__pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #ffffff;
  color: #E44D26;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  border: 2px solid #E44D26;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-resources__pagination-link:hover,
.page-resources__pagination-link--active {
  background-color: #E44D26;
  color: #ffffff;
}

.page-resources__cta-section {
  background-color: #E44D26; /* Primary brand color */
  padding: 80px 20px;
  text-align: center;
  color: #ffffff;
}

.page-resources__cta-heading {
  font-size: 2.8em;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-resources__cta-text {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-resources__cta-button {
  display: inline-block;
  background-color: #FFB300; /* Secondary brand color */
  color: #333333;
  padding: 18px 35px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-resources__cta-button:hover {
  background-color: #ffffff;
  color: #E44D26;
  transform: translateY(-5px);
}

.page-resources__deep-content {
  padding: 80px 20px;
  background-color: #ffffff;
}

.page-resources__deep-content-title {
  font-size: 2.8em;
  color: #E44D26;
  margin-bottom: 30px;
  text-align: center;
  line-height: 1.3;
}

.page-resources__deep-content-subtitle {
  font-size: 2.2em;
  color: #FFB300;
  margin-top: 40px;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-resources__deep-content-sub-subtitle {
  font-size: 1.8em;
  color: #E44D26;
  margin-top: 30px;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-resources__deep-content-paragraph {
  font-size: 1.1em;
  color: #444444;
  margin-bottom: 20px;
  line-height: 1.7;
}

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

  .page-resources__articles-heading,
  .page-resources__cta-heading,
  .page-resources__deep-content-title {
    font-size: 2.5em;
  }

  .page-resources__deep-content-subtitle {
    font-size: 2em;
  }

  .page-resources__deep-content-sub-subtitle {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding-top: var(--header-offset, 120px); /* Keep padding for fixed header on mobile */
    padding-bottom: 40px;
  }

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

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

  .page-resources__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-resources__hero-image-wrapper {
    margin-top: 30px;
  }

  .page-resources__hero-image {
    max-width: 100%;
    height: auto;
  }

  .page-resources__intro-heading {
    font-size: 2em;
  }

  .page-resources__intro-text {
    font-size: 1em;
  }

  .page-resources__articles-section {
    padding: 50px 15px;
  }

  .page-resources__articles-heading,
  .page-resources__cta-heading,
  .page-resources__deep-content-title {
    font-size: 2em;
  }

  .page-resources__article-card {
    margin-bottom: 20px;
  }

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

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

  .page-resources__article-summary {
    font-size: 0.95em;
  }

  .page-resources__article-button {
    padding: 8px 15px;
    font-size: 0.9em;
  }

  .page-resources__pagination {
    margin-top: 30px;
  }

  .page-resources__pagination-link {
    width: 35px;
    height: 35px;
    font-size: 1em;
  }

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

  .page-resources__cta-button {
    padding: 15px 30px;
    font-size: 1.1em;
  }

  .page-resources__deep-content {
    padding: 50px 15px;
  }

  .page-resources__deep-content-subtitle {
    font-size: 1.8em;
  }

  .page-resources__deep-content-sub-subtitle {
    font-size: 1.4em;
  }

  .page-resources__deep-content-paragraph {
    font-size: 1em;
  }

  /* Mobile image scaling */
  .page-resources img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure minimum size is maintained even on mobile */
    min-height: 200px;
  }

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

  /* Ensure no image filter properties are used */
  .page-resources__hero-image,
  .page-resources__article-image {
    filter: none; /* Explicitly ensure no filters */
  }
}