.page-resources {
  color: #333333; /* Deep gray for text on light background */
}

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

.page-resources__hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  padding: 20px;
}

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: #ffc107; /* Auxiliary brand color for emphasis */
}

.page-resources__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__hero-button {
  display: inline-block;
  background-color: #ffc107; /* Auxiliary brand color */
  color: #007bff; /* Primary brand color for text */
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid #ffc107;
}

.page-resources__hero-button:hover {
  background-color: #e0a800;
  transform: translateY(-3px);
}

.page-resources__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.2;
  z-index: 1;
  pointer-events: none;
}

.page-resources__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-resources__articles-section {
  padding: 80px 20px;
  background-color: #f8f9fa; /* Light background for content contrast */
}

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

.page-resources__articles-heading {
  font-size: 2.8em;
  color: #007bff;
  text-align: center;
  margin-bottom: 60px;
  font-weight: 700;
}

.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: 15px;
  box-shadow: 0 8px 25px 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 12px 30px rgba(0, 0, 0, 0.15);
}

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

.page-resources__article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.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.4;
  font-weight: 600;
}

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

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

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

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

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

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

.page-resources__cta-heading {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #ffc107;
  font-weight: 700;
}

.page-resources__cta-text {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.page-resources__cta-button {
  display: inline-block;
  background-color: #ffc107;
  color: #007bff;
  padding: 18px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid #ffc107;
}

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

.page-resources__faq-section {
  padding: 80px 20px;
  background-color: #f8f9fa;
}

.page-resources__faq-heading {
  font-size: 2.8em;
  color: #007bff;
  text-align: center;
  margin-bottom: 60px;
  font-weight: 700;
}

.page-resources__faq-list {
  display: grid;
  gap: 25px;
}

.page-resources__faq-item {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-resources__faq-question {
  font-size: 1.4em;
  color: #007bff;
  margin-bottom: 10px;
  font-weight: 600;
}

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

/* Responsive Design */
@media (max-width: 992px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__hero-description {
    font-size: 1.1em;
  }
  .page-resources__articles-heading, .page-resources__faq-heading {
    font-size: 2.2em;
  }
  .page-resources__article-title {
    font-size: 1.4em;
  }
  .page-resources__cta-heading {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding-top: var(--header-offset, 80px);
    padding-bottom: 60px;
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-resources__articles-section, .page-resources__cta-section, .page-resources__faq-section {
    padding: 60px 15px;
  }
  .page-resources__articles-heading, .page-resources__faq-heading {
    font-size: 1.8em;
    margin-bottom: 40px;
  }
  .page-resources__article-image {
    height: 200px;
  }
  .page-resources__article-title {
    font-size: 1.3em;
  }
  .page-resources__article-summary {
    font-size: 0.95em;
  }
  .page-resources__cta-heading {
    font-size: 1.8em;
  }
  .page-resources__cta-text {
    font-size: 1em;
  }
  .page-resources__cta-button {
    padding: 15px 30px;
    font-size: 1.1em;
  }
  .page-resources__faq-question {
    font-size: 1.2em;
  }
  .page-resources__faq-answer {
    font-size: 1em;
  }

  /* Mobile content image overflow prevention */
  .page-resources__hero-image img,
  .page-resources__article-image img {
    max-width: 100%;
    height: auto;
  }
  .page-resources__container {
    padding: 0;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__hero-description {
    font-size: 0.9em;
  }
  .page-resources__articles-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__articles-heading, .page-resources__faq-heading {
    font-size: 1.6em;
  }
  .page-resources__cta-heading {
    font-size: 1.6em;
  }
  .page-resources__faq-item {
    padding: 20px;
  }
  .page-resources__faq-question {
    font-size: 1.1em;
  }
}