.page-resources {
  color: #333333; /* Default text color for light body background */
}

.page-resources__hero-section {
  position: relative;
  overflow: hidden;
  padding: 0; /* Adjust padding as needed, but header offset handled by main */
  background-color: #0A2463; /* Dark blue background for hero */
}

.page-resources__hero-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-resources__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly darken image for text readability */
  max-height: 600px; /* Limit hero image height */
}

.page-resources__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  color: #ffffff;
  max-width: 90%;
}

.page-resources__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFD700; /* Gold for emphasis */
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-resources__hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-resources__button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__button--primary {
  background-color: #FFD700;
  color: #0A2463;
}

.page-resources__button--primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-resources__button--secondary {
  background-color: #0A2463;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-resources__button--secondary:hover {
  background-color: #071c4c;
  transform: translateY(-2px);
}

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

.page-resources__section-title {
  font-size: 2.5em;
  color: #0A2463;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-resources__section-description {
  font-size: 1.1em;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: 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 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

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

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

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

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

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

.page-resources__card-button {
  display: inline-block;
  background-color: #FFD700;
  color: #0A2463;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  align-self: flex-start;
}

.page-resources__card-button:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-resources__in-depth-analysis-section {
  padding: 60px 20px;
  background-color: #f9f9f9;
}

.page-resources__in-depth-analysis-section .page-resources__section-title {
  margin-bottom: 30px;
}

.page-resources__sub-title {
  font-size: 1.8em;
  color: #0A2463;
  margin-top: 40px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-resources__in-depth-text {
  font-size: 1.05em;
  line-height: 1.7;
  color: #444444;
  margin-bottom: 20px;
}

.page-resources__feature-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.page-resources__feature-list li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%23FFD700"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>') no-repeat left center;
  background-size: 18px;
  padding-left: 30px;
  margin-bottom: 10px;
  font-size: 1.05em;
  color: #333333;
}

.page-resources__feature-list li strong {
  color: #0A2463;
}

.page-resources__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 50px;
  flex-wrap: wrap;
}

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

@media (max-width: 768px) {
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-resources__button {
    width: 80%;
    margin: 0 auto;
  }
  .page-resources__articles-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__sub-title {
    font-size: 1.4em;
  }
  .page-resources__card-image {
    height: 200px;
  }
  /* Ensure content images do not overflow */
  .page-resources__articles-section img, 
  .page-resources__in-depth-analysis-section img, 
  .page-resources__hero-image {
    max-width: 100%;
    height: auto;
  }
  .page-resources__hero-content {
    max-width: 95%;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__hero-description {
    font-size: 0.9em;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__sub-title {
    font-size: 1.2em;
  }
  .page-resources__button {
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-resources__container {
    padding: 20px 15px;
  }
}

/* Fixed header offset for main content */
.page-content.page-resources {
  padding-top: var(--header-offset, 120px); /* Apply header offset */
}

/* Image sizing for content area - ensure minimum 200px */
.page-resources__articles-section .page-resources__card-image,
.page-resources__in-depth-analysis-section img {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

/* Filter property is forbidden for color change, but brightness is allowed for readability on hero */
.page-resources__hero-image {
  filter: brightness(0.6);
}