.page-resources {
  color: #333333; /* Dark text for light body background */
}

.page-resources__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  background-color: #000000; /* Primary background for hero */
  color: #FFFFFF;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

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

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFFFF;
}

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

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

.page-resources__btn {
  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;
  font-size: 1.1em;
}

.page-resources__btn--primary {
  background-color: #FCBC45; /* Login button color for primary CTA */
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-resources__btn--primary:hover {
  background-color: #e0a53b;
  border-color: #e0a53b;
}

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

.page-resources__btn--secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

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

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

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

.page-resources__section-description {
  font-size: 1.2em;
  color: #555555;
  text-align: center;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

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

.page-resources__article-card {
  background-color: #f9f9f9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  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 12px 30px rgba(0, 0, 0, 0.15);
}

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

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

.page-resources__article-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  line-height: 1.4;
}

.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-summary {
  font-size: 1em;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources__btn--link {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
  align-self: flex-start;
  padding: 8px 0;
  transition: color 0.3s ease;
}

.page-resources__btn--link:hover {
  color: #e0a53b;
}

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

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

.page-resources__cta-title {
  font-size: 3em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFFFF;
}

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

.page-resources__btn--cta {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  padding: 18px 40px;
  font-size: 1.2em;
  border-radius: 10px;
}

.page-resources__btn--cta:hover {
  background-color: #e0a53b;
  border-color: #e0a53b;
}

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

  .page-resources__section-title {
    font-size: 2.2em;
  }

  .page-resources__cta-title {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-container {
    padding: 60px 20px;
  }

  .page-resources__hero-title {
    font-size: 2.5em;
  }

  .page-resources__hero-description {
    font-size: 1.1em;
  }

  .page-resources__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources__btn {
    width: 100%;
    max-width: 300px;
  }

  .page-resources__section-title {
    font-size: 2em;
  }

  .page-resources__section-description {
    font-size: 1em;
  }

  .page-resources__article-grid {
    grid-template-columns: 1fr;
  }

  .page-resources__article-image {
    height: 200px;
  }

  .page-resources__article-title {
    font-size: 1.5em;
  }

  .page-resources__cta-section {
    padding: 60px 20px;
  }

  .page-resources__cta-title {
    font-size: 2em;
  }

  .page-resources__cta-description {
    font-size: 1.1em;
  }

  /* Ensure content images are responsive and don't overflow */
  .page-resources__articles-section img,
  .page-resources__hero-section img {
    max-width: 100%;
    height: auto;
  }

  .page-resources {
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 2em;
  }

  .page-resources__hero-description {
    font-size: 0.95em;
  }

  .page-resources__section-title {
    font-size: 1.8em;
  }

  .page-resources__article-title {
    font-size: 1.3em;
  }

  .page-resources__cta-title {
    font-size: 1.8em;
  }
}