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

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

.page-resources__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background-color: #007bff; /* Primary color background */
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}

.page-resources__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Darken image for text readability */
}

.page-resources__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 800px;
  padding: 20px;
  z-index: 1;
}

.page-resources__hero-title {
  font-size: 3em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.page-resources__hero-button {
  display: inline-block;
  background-color: #28a745; /* Auxiliary color */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  min-width: 200px; /* Ensure button is large enough */
  font-size: 1.1em;
}

.page-resources__hero-button:hover {
  background-color: #1e7e34;
}

.page-resources__about-section {
  padding: 60px 0;
  background-color: #f8f9fa;
}

.page-resources__about-title {
  font-size: 2.5em;
  color: #007bff;
  text-align: center;
  margin-bottom: 40px;
}

.page-resources__about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-resources__about-text {
  flex: 1 1 45%;
  font-size: 1.1em;
  color: #555555;
}

.page-resources__about-image {
  flex: 1 1 45%;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
  object-fit: cover;
}

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

.page-resources__articles-title {
  font-size: 2.5em;
  color: #007bff;
  text-align: center;
  margin-bottom: 40px;
}

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

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

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

.page-resources__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  min-width: 200px; /* Card image minimum size */
  min-height: 200px; /* Card image minimum size */
}

.page-resources__card-content {
  padding: 25px;
}

.page-resources__card-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-resources__card-title a {
  color: #007bff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__card-title a:hover {
  color: #0056b3;
}

.page-resources__card-category {
  font-size: 0.9em;
  color: #6c757d;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.page-resources__card-summary {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
}

.page-resources__card-button {
  display: inline-block;
  background-color: #007bff;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-resources__card-button:hover {
  background-color: #0056b3;
}

.page-resources__cta-section {
  padding: 80px 0;
  background-color: #007bff; /* Primary color background */
  color: #ffffff;
  text-align: center;
}

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

.page-resources__cta-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-resources__cta-button {
  display: inline-block;
  background-color: #28a745; /* Auxiliary color */
  color: #ffffff;
  padding: 18px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.4em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  min-width: 250px; /* Ensure button is large enough */
}

.page-resources__cta-button:hover {
  background-color: #1e7e34;
  transform: translateY(-3px);
}

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

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

  .page-resources__about-content {
    flex-direction: column;
  }

  .page-resources__about-text,
  .page-resources__about-image {
    flex: 1 1 100%;
  }

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

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

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

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

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding-top: var(--header-offset, 80px);
  }

  .page-resources__hero-content {
    padding: 15px;
  }

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

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

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

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

  .page-resources__about-text,
  .page-resources__card-summary {
    font-size: 0.95em;
  }

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

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

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

  .page-resources__cta-button {
    font-size: 1.1em;
    padding: 12px 25px;
  }

  /* Ensure all images in content area are responsive and not smaller than 200px */
  .page-resources img {
    max-width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
  }

  .page-resources__card-image {
    height: 200px; /* Adjust height for mobile */
  }
}

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

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

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

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

  .page-resources__cta-button {
    font-size: 1em;
    padding: 10px 20px;
  }
}