.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); /* Ensure content is below fixed header */
}

.page-resources__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #000000; /* Fallback background for hero */
}

.page-resources__hero-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

.page-resources__hero-image {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.7; /* Slightly dim image for text readability */
}

.page-resources__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #FFFFFF;
  z-index: 10;
  max-width: 90%;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
  border-radius: 8px;
}

.page-resources__hero-title {
  font-size: 2.8em;
  margin-bottom: 15px;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

.page-resources__hero-cta-button {
  display: inline-block;
  background-color: #FCBC45; /* Login button color */
  color: #000000; /* Dark text for the button */
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

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

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

.page-resources__articles-section,
.page-resources__deep-dive-section,
.page-resources__cta-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

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

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

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

.page-resources__article-card {
  background-color: #F8F8F8;
  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;
}

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

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

.page-resources__article-content {
  padding: 25px;
}

.page-resources__article-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  min-height: 70px; /* Ensure consistent card height */
}

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

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

.page-resources__article-abstract {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 20px;
  min-height: 100px; /* Ensure consistent card height */
}

.page-resources__article-button {
  display: inline-block;
  background-color: #000000;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  transition: background-color 0.3s ease;
}

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

.page-resources__content-block {
  background-color: #F8F8F8;
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-resources__content-subtitle {
  font-size: 1.8em;
  color: #000000;
  margin-bottom: 15px;
  border-bottom: 2px solid #FCBC45;
  padding-bottom: 10px;
}

.page-resources__content-block p {
  margin-bottom: 15px;
  color: #444444;
}

.page-resources__content-block a {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
}

.page-resources__content-block a:hover {
  text-decoration: underline;
}

.page-resources__cta-section {
  background-color: #000000;
  color: #FFFFFF;
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.page-resources__cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

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

.page-resources__cta-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  padding: 40px;
  border-radius: 10px;
}

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

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

.page-resources__cta-button {
  display: inline-block;
  background-color: #FCBC45;
  color: #000000;
  padding: 18px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1.1em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__article-title {
    font-size: 1.3em;
  }
  .page-resources__cta-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-resources {
    padding-top: var(--header-offset, 80px); /* Adjust for mobile header offset */
  }
  .page-resources__hero-image,
  .page-resources__article-image,
  .page-resources__cta-image {
    max-width: 100%;
    height: auto;
  }
  .page-resources__hero-content {
    padding: 15px;
    max-width: 95%;
  }
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-resources__hero-cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-resources__articles-section,
  .page-resources__deep-dive-section,
  .page-resources__cta-section {
    padding: 40px 0;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__section-intro {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-resources__article-list {
    grid-template-columns: 1fr;
  }
  .page-resources__article-image {
    height: 200px;
  }
  .page-resources__article-title {
    font-size: 1.2em;
    min-height: unset;
  }
  .page-resources__article-abstract {
    min-height: unset;
  }
  .page-resources__content-block {
    padding: 20px;
  }
  .page-resources__content-subtitle {
    font-size: 1.5em;
  }
  .page-resources__cta-title {
    font-size: 1.8em;
  }
  .page-resources__cta-description {
    font-size: 1em;
  }
  .page-resources__cta-button {
    padding: 15px 30px;
    font-size: 1.1em;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.5em;
  }
  .page-resources__hero-description {
    font-size: 0.9em;
  }
  .page-resources__hero-cta-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-resources__section-title {
    font-size: 1.5em;
  }
  .page-resources__cta-title {
    font-size: 1.5em;
  }
  .page-resources__cta-description {
    font-size: 0.9em;
  }
  .page-resources__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
}