.page-resources {
  color: #333333; /* Dark text for light body background */
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-resources__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #0A192F; /* Dark background for hero content overlay */
}

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

.page-resources__hero-container {
  position: relative;
}

.page-resources__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #ffffff;
  max-width: 900px;
  padding: 20px;
  z-index: 10;
}

.page-resources__hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #FFD700;
  line-height: 1.2;
}

.page-resources__hero-description {
  font-size: 1.25rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-resources__hero-button {
  display: inline-block;
  background-color: #FFD700;
  color: #0A192F;
  padding: 15px 40px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

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

.page-resources__intro-section {
  padding: 80px 20px;
  background-color: #F8F8F8;
}

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

.page-resources__intro-title {
  font-size: 2.8rem;
  color: #0A192F;
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
}

.page-resources__intro-text {
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: justify;
  margin-bottom: 40px;
}

.page-resources__intro-button {
  display: block;
  width: fit-content;
  margin: 0 auto;
  background-color: #0A192F;
  color: #FFD700;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-resources__intro-button:hover {
  background-color: #1a304a;
  transform: translateY(-2px);
}

.page-resources__articles-section {
  padding: 80px 20px;
  background-color: #F0F0F0;
}

.page-resources__articles-title {
  font-size: 2.8rem;
  color: #0A192F;
  text-align: center;
  margin-bottom: 50px;
  font-weight: 700;
}

.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;
  object-fit: cover;
  display: block;
  min-height: 200px; /* Ensure minimum size */
}

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

.page-resources__article-heading {
  font-size: 1.7rem;
  margin-bottom: 15px;
  line-height: 1.4;
  font-weight: 600;
}

.page-resources__article-heading a {
  color: #0A192F;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__article-heading a:hover {
  color: #FFD700;
}

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

.page-resources__article-button {
  display: inline-block;
  background-color: #FFD700;
  color: #0A192F;
  padding: 10px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  align-self: flex-start;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

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

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

.page-resources__cta-title {
  font-size: 3rem;
  font-weight: 700;
  color: #FFD700;
  margin-bottom: 25px;
}

.page-resources__cta-description {
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-resources__cta-button {
  display: inline-block;
  background-color: #FFD700;
  color: #0A192F;
  padding: 18px 50px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 700;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 3rem;
  }
  .page-resources__hero-description {
    font-size: 1.1rem;
  }
  .page-resources__articles-title {
    font-size: 2.2rem;
  }
  .page-resources__article-heading {
    font-size: 1.5rem;
  }
  .page-resources__cta-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
  }
  .page-resources__hero-description {
    font-size: 1rem;
    margin-bottom: 25px;
  }
  .page-resources__hero-button {
    padding: 12px 30px;
    font-size: 1rem;
  }
  .page-resources__intro-section,
  .page-resources__articles-section,
  .page-resources__cta-section {
    padding: 50px 15px;
  }
  .page-resources__intro-title,
  .page-resources__articles-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }
  .page-resources__article-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__article-image {
    height: 200px;
    max-width: 100%; /* Mobile content area image constraint */
  }
  .page-resources__article-card {
    margin-bottom: 20px;
  }
  .page-resources__article-heading {
    font-size: 1.3rem;
  }
  .page-resources__article-summary {
    font-size: 0.9rem;
  }
  .page-resources__cta-title {
    font-size: 2rem;
  }
  .page-resources__cta-description {
    font-size: 1rem;
  }
  .page-resources__cta-button {
    padding: 15px 40px;
    font-size: 1.1rem;
  }
  /* Ensure all images within .page-resources are responsive and don't overflow */
  .page-resources img {
    max-width: 100%;
    height: auto;
  }
  .page-resources__hero-content {
    padding: 15px;
  }
}