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

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

.page-resources__hero-section {
  background-color: #0A192F; /* Dark blue background */
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.page-resources__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.page-resources__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Overlay effect */
  filter: brightness(0.7); /* Darken the image slightly */
}

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

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

.page-resources__hero-button {
  display: inline-block;
  background-color: #FFD700; /* Gold button */
  color: #0A192F; /* Dark blue text on gold */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

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

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

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

.page-resources__article-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;
  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 10px 30px rgba(0, 0, 0, 0.2);
}

.page-resources__article-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
}

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

.page-resources__card-title {
  font-size: 1.5em;
  color: #0A192F;
  margin-bottom: 15px;
  line-height: 1.3;
  flex-grow: 1;
}

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

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

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

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

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

.page-resources__deep-dive-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.page-resources__deep-dive-title {
  font-size: 2.8em;
  color: #0A192F;
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
}

.page-resources__deep-dive-intro {
  font-size: 1.2em;
  color: #444444;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 60px auto;
  line-height: 1.8;
}

.page-resources__deep-article {
  margin-bottom: 60px;
  padding: 30px;
  background-color: #f0f5f9;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.page-resources__deep-article-title {
  font-size: 2em;
  color: #0A192F;
  margin-bottom: 20px;
  border-bottom: 2px solid #FFD700;
  padding-bottom: 10px;
}

.page-resources__deep-article p {
  font-size: 1.05em;
  color: #555555;
  margin-bottom: 15px;
  line-height: 1.7;
}

.page-resources__list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-resources__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 8px;
  background-size: 16px;
  padding-left: 30px;
  margin-bottom: 10px;
  color: #444444;
}

.page-resources__cta-bottom {
  background-color: #0A192F;
  color: #ffffff;
  padding: 60px 40px;
  text-align: center;
  border-radius: 10px;
  margin-top: 60px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-resources__cta-title {
  font-size: 2.2em;
  color: #FFD700;
  margin-bottom: 20px;
}

.page-resources__cta-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__cta-button {
  display: inline-block;
  background-color: #FFD700;
  color: #0A192F;
  padding: 18px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 3em;
  }
  .page-resources__section-title {
    font-size: 2.2em;
  }
  .page-resources__deep-dive-title {
    font-size: 2.5em;
  }
  .page-resources__deep-article-title {
    font-size: 1.8em;
  }
  .page-resources__article-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-resources__article-image {
    height: 220px;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding: 60px 15px;
  }
  .page-resources__hero-title {
    font-size: 2.5em;
  }
  .page-resources__hero-description {
    font-size: 1.1em;
  }
  .page-resources__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-resources__articles-section,
  .page-resources__deep-dive-section {
    padding: 40px 0;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-resources__article-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__article-image {
    height: 200px;
  }
  .page-resources__card-title {
    font-size: 1.3em;
  }
  .page-resources__card-summary {
    font-size: 0.9em;
  }
  .page-resources__deep-dive-title {
    font-size: 2em;
  }
  .page-resources__deep-dive-intro {
    font-size: 1.05em;
    margin-bottom: 40px;
  }
  .page-resources__deep-article {
    padding: 20px;
    margin-bottom: 40px;
  }
  .page-resources__deep-article-title {
    font-size: 1.6em;
  }
  .page-resources__deep-article p {
    font-size: 1em;
  }
  .page-resources__list li {
    font-size: 0.95em;
  }
  .page-resources__cta-bottom {
    padding: 40px 20px;
    margin-top: 40px;
  }
  .page-resources__cta-title {
    font-size: 1.8em;
  }
  .page-resources__cta-description {
    font-size: 1.1em;
  }
  .page-resources__cta-button {
    padding: 15px 30px;
    font-size: 1.1em;
  }
  /* Ensure all images within .page-resources are responsive and do not overflow */
  .page-resources img {
    max-width: 100%;
    height: auto;
  }
  .page-resources__article-image {
    width: 100%;
    height: auto; /* Allow height to adjust */
    min-height: 200px; /* Ensure minimum size */
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__deep-dive-title {
    font-size: 1.8em;
  }
  .page-resources__deep-article-title {
    font-size: 1.4em;
  }
  .page-resources__cta-title {
    font-size: 1.6em;
  }
}