.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 not hidden by fixed header */
}

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

.page-resources__hero-section {
  background-color: #f8f8f8;
  text-align: center;
  padding: 80px 20px 40px;
  position: relative;
  overflow: hidden;
}

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

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

.page-resources__hero-title {
  font-size: 3.2em;
  color: #000000;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

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

.page-resources__hero-cta {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-resources__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  font-size: 1.05em;
  min-width: 200px;
  text-align: center;
}

.page-resources__button--primary {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
}

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

.page-resources__button--secondary {
  background-color: transparent;
  color: #000000;
  border: 2px solid #000000;
}

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

.page-resources__button--tertiary {
  background-color: #FCBC45; /* Login color for tertiary */
  color: #000000;
  border: 2px solid #FCBC45;
  padding: 10px 20px;
  font-size: 0.95em;
  min-width: auto;
}

.page-resources__button--tertiary:hover {
  background-color: #e0a53b;
  border-color: #e0a53b;
  transform: translateY(-2px);
}

.page-resources__featured-articles,
.page-resources__deep-dive,
.page-resources__cta-banner {
  padding: 60px 0;
}

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

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

.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: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  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 25px rgba(0, 0, 0, 0.12);
}

.page-resources__article-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  min-height: 200px; /* Ensure min size */
}

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

.page-resources__article-title {
  font-size: 1.6em;
  color: #000000;
  margin-bottom: 15px;
  line-height: 1.3;
  font-weight: bold;
}

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

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

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

.page-resources__deep-dive {
  background-color: #f8f8f8;
}

.page-resources__subsection-title {
  font-size: 1.8em;
  color: #000000;
  margin-top: 40px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources__deep-dive p {
  font-size: 1.05em;
  color: #333333;
  margin-bottom: 20px;
}

.page-resources__cta-banner {
  background-color: #000000;
  color: #FFFFFF;
  text-align: center;
  padding: 80px 20px;
}

.page-resources__cta-content {
  max-width: 900px;
  margin: 0 auto;
}

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

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

/* Adjust buttons for CTA banner */
.page-resources__cta-banner .page-resources__button--primary {
  background-color: #FCBC45;
  color: #000000;
  border-color: #FCBC45;
}

.page-resources__cta-banner .page-resources__button--primary:hover {
  background-color: #e0a53b;
  border-color: #e0a53b;
}

.page-resources__cta-banner .page-resources__button--secondary {
  background-color: transparent;
  color: #FFFFFF;
  border-color: #FFFFFF;
}

.page-resources__cta-banner .page-resources__button--secondary:hover {
  background-color: #FFFFFF;
  color: #000000;
}

/* Responsive Design */
@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__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 {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  .page-resources__featured-articles,
  .page-resources__deep-dive,
  .page-resources__cta-banner {
    padding: 40px 0;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-resources__article-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__article-image {
    height: 220px;
  }
  .page-resources__article-content {
    padding: 20px;
  }
  .page-resources__article-title {
    font-size: 1.4em;
  }
  .page-resources__article-summary {
    font-size: 0.9em;
  }
  .page-resources__deep-dive p {
    font-size: 0.95em;
  }
  .page-resources__subsection-title {
    font-size: 1.6em;
  }
  .page-resources__cta-title {
    font-size: 2em;
  }
  .page-resources__cta-description {
    font-size: 1em;
  }

  .page-resources__container {
    padding: 0 15px;
  }
  /* Ensure all content images in mobile are responsive and not smaller than 200px */
  .page-resources img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce minimum width for content images */
    min-height: 200px; /* Enforce minimum height for content images */
  }
  .page-resources__article-image {
    min-height: 200px; /* Specific override for article images if needed */
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__cta-title {
    font-size: 1.8em;
  }
  .page-resources__button {
    padding: 12px 20px;
    font-size: 0.9em;
  }
}