.page-resources {
  color: #FFFFFF; /* Default text color for the page content, contrasting with dark sections */
  background-color: #000000; /* Overall dark background for the page */
  padding-top: var(--header-offset, 120px); /* Ensures 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: #000000;
  padding: 80px 20px;
  text-align: center;
  color: #FFFFFF;
}

.page-resources__hero-title {
  font-size: 3.5em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FCBC45; /* Gold accent for title */
  line-height: 1.2;
}

.page-resources__hero-description {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin: 10px;
  font-size: 1.1em;
}

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

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

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

.page-resources__button--secondary:hover {
  background-color: #FCBC45;
  color: #000000;
}

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

.page-resources__button--download:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
}

.page-resources__articles-section {
  padding: 60px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
  color: #FFFFFF;
}

.page-resources__section-title {
  font-size: 2.8em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 50px;
  color: #FCBC45;
}

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

.page-resources__article-card {
  background-color: #000000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources__article-image {
  width: 100%;
  height: 300px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  min-width: 200px; /* Ensures image is not too small */
  min-height: 200px; /* Ensures image is not too small */
}

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

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

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

.page-resources__article-title a:hover {
  text-decoration: underline;
}

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

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

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

.page-resources__cta-description {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

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

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

@media (max-width: 768px) {
  .page-resources__hero-section,
  .page-resources__articles-section,
  .page-resources__cta-section {
    padding: 50px 15px;
  }

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

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

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

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

  .page-resources__article-image {
    height: 250px;
    max-width: 100%;
    height: auto;
  }

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

  .page-resources__button {
    padding: 12px 25px;
    font-size: 1em;
    margin: 8px;
  }

  .page-resources__hero-button {
    margin-top: 20px;
  }

  .page-resources__cta-buttons {
    flex-direction: column;
  }

  .page-resources__cta-buttons .page-resources__button {
    width: 80%;
    margin: 10px auto;
  }

  .page-resources__article-image {
    max-width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
  }
}

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

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

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