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

.page-resources__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 20px 40px;
  background-color: #0A192F; /* Main brand color for hero background */
  position: relative;
  overflow: hidden;
}

.page-resources__hero-content {
  max-width: 900px;
  z-index: 1;
  position: relative;
}

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

.page-resources__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-resources__hero-cta-button {
  display: inline-block;
  background-color: #FFD700; /* Auxiliary brand color for CTA button */
  color: #0A192F; /* Dark text for light button */
  padding: 15px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

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

.page-resources__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Subtle background image */
  z-index: 0;
}

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

.page-resources__introduction-section,
.page-resources__articles-section,
.page-resources__deeper-dive-section,
.page-resources__cta-section {
  padding: 60px 0;
  background-color: #000000; /* Consistent dark background */
}

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

.page-resources__section-description,
.page-resources__paragraph {
  font-size: 1.1em;
  line-height: 1.8;
  color: #cccccc;
  margin-bottom: 25px;
  text-align: justify;
}

.page-resources__sub-section-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-resources__articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-resources__article-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter background for cards */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-resources__article-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  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;
  margin-bottom: 15px;
  font-weight: 600;
}

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

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

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

.page-resources__article-button {
  display: inline-block;
  background-color: #0A192F; /* Dark button background */
  color: #FFD700; /* Gold text for contrast */
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.95em;
  font-weight: 500;
  transition: background-color 0.3s ease, color 0.3s ease;
  align-self: flex-start;
  border: 1px solid #FFD700;
}

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

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

.page-resources__cta-content {
  max-width: 800px;
}

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

.page-resources__cta-description {
  font-size: 1.2em;
  color: #f0f0f0;
  line-height: 1.7;
  margin-bottom: 40px;
}

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

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__section-title {
    font-size: 2.2em;
  }
  .page-resources__cta-title {
    font-size: 2.4em;
  }
}

@media (max-width: 768px) {
  .page-resources {
    padding-top: var(--header-offset, 80px); /* Adjust for mobile header offset */
  }
  .page-resources__hero-section {
    padding: 60px 15px 30px;
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-cta-button {
    padding: 12px 25px;
    font-size: 1.1em;
  }
  .page-resources__introduction-section,
  .page-resources__articles-section,
  .page-resources__deeper-dive-section,
  .page-resources__cta-section {
    padding: 40px 0;
  }
  .page-resources__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-resources__sub-section-title {
    font-size: 1.5em;
  }
  .page-resources__section-description,
  .page-resources__paragraph {
    font-size: 0.95em;
    margin-bottom: 20px;
  }
  .page-resources__articles-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__article-image {
    height: 180px;
  }
  .page-resources__article-title {
    font-size: 1.3em;
  }
  .page-resources__article-summary {
    font-size: 0.9em;
  }
  .page-resources__article-button {
    padding: 8px 15px;
    font-size: 0.9em;
  }
  .page-resources__cta-title {
    font-size: 2em;
  }
  .page-resources__cta-description {
    font-size: 1em;
  }
  .page-resources__cta-button {
    padding: 15px 30px;
    font-size: 1.2em;
  }
  .page-resources__container img {
    max-width: 100%;
    height: auto;
  }
}