.page-resources {
  color: #333333; /* Default text color for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-resources__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
  padding: 0; /* Hero content is positioned over the image */
}

.page-resources__hero-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px; /* Minimum height for hero section */
}

.page-resources__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-resources__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 40px 20px;
  background-color: rgba(26, 35, 126, 0.7); /* Main color with transparency */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-resources__hero-title {
  font-size: 3.2em;
  color: #FFC107; /* Auxiliary color for emphasis */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

.page-resources__hero-cta {
  display: inline-block;
  background-color: #FFC107; /* Auxiliary color for button */
  color: #1A237E; /* Main color for text */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

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

.page-resources__article-list-section,
.page-resources__in-depth-content {
  padding: 60px 0;
  background-color: #f8f8f8;
}

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

.page-resources__section-title {
  font-size: 2.5em;
  color: #1A237E; /* Main color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-resources__section-description {
  font-size: 1.1em;
  color: #555555;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

.page-resources__article-image {
  width: 100%;
  height: 250px; /* Fixed height for consistent card images */
  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.5em;
  color: #1A237E; /* Main color for article titles */
  margin-bottom: 10px;
  font-weight: bold;
}

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

.page-resources__article-title a:hover {
  color: #FFC107; /* Auxiliary color on hover */
}

.page-resources__article-category {
  display: block;
  font-size: 0.9em;
  color: #777777;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.page-resources__article-button {
  display: inline-block;
  background-color: #1A237E; /* Main color for button */
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  align-self: flex-start;
  transition: background-color 0.3s ease;
}

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

.page-resources__in-depth-content {
  background-color: #ffffff;
  padding-bottom: 80px;
}

.page-resources__in-depth-content p {
  margin-bottom: 20px;
  color: #333333;
  font-size: 1.05em;
}

.page-resources__in-depth-content ul {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
}

.page-resources__in-depth-content li {
  margin-bottom: 10px;
  color: #333333;
}

.page-resources__sub-section-title {
  font-size: 1.8em;
  color: #1A237E; /* Main color for sub-titles */
  margin-top: 40px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources__in-depth-cta {
  display: inline-block;
  background-color: #FFC107; /* Auxiliary color for button */
  color: #1A237E; /* Main color for text */
  padding: 15px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  margin-top: 30px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-resources__in-depth-cta:hover {
  background-color: #e5ac00;
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__section-title {
    font-size: 2.2em;
  }
  .page-resources__sub-section-title {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  .page-resources {
    padding-top: var(--header-offset, 80px); /* Adjust for mobile header */
  }
  .page-resources__hero-container {
    min-height: 400px;
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-content {
    padding: 30px 15px;
  }
  .page-resources__hero-cta {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__section-description {
    font-size: 1em;
  }
  .page-resources__articles-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__article-image {
    height: 200px;
  }
  .page-resources__article-title {
    font-size: 1.3em;
  }
  .page-resources__article-summary {
    font-size: 0.95em;
  }
  .page-resources__in-depth-content p,
  .page-resources__in-depth-content li {
    font-size: 0.95em;
  }
  .page-resources__sub-section-title {
    font-size: 1.4em;
  }
  .page-resources__in-depth-cta {
    padding: 12px 25px;
    font-size: 1em;
  }
  /* CRITICAL: Ensure all images within .page-resources are responsive */
  .page-resources img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__hero-description {
    font-size: 0.9em;
  }
  .page-resources__hero-cta {
    font-size: 0.9em;
    padding: 10px 20px;
  }
  .page-resources__section-title {
    font-size: 1.6em;
  }
  .page-resources__article-title {
    font-size: 1.2em;
  }
  .page-resources__sub-section-title {
    font-size: 1.2em;
  }
}