.page-resources {
  color: #333333; /* Dark text for light body background */
  line-height: 1.6;
  font-family: Arial, sans-serif;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-resources__hero-section {
  position: relative;
  overflow: hidden;
  background-color: #000000; /* Dark background for hero content */
  padding: 0; /* Image will handle visual space */
}

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

.page-resources__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  opacity: 0.7; /* Slightly dim image to make text pop */
}

.page-resources__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #FFFFFF;
  max-width: 900px;
  padding: 20px;
  z-index: 10;
}

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FCBC45; /* Highlight color for title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-resources__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #FFFFFF;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

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

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

.page-resources__hero-button--register {
  background-color: #FFFFFF; /* Register button color */
  color: #000000;
}

.page-resources__hero-button--register:hover {
  background-color: #e0e0e0;
  transform: translateY(-2px);
}

.page-resources__hero-button--login {
  background-color: #FCBC45; /* Login button color */
  color: #000000;
}

.page-resources__hero-button--login:hover {
  background-color: #e6a73c;
  transform: translateY(-2px);
}

.page-resources__articles-section {
  padding: 60px 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-intro {
  font-size: 1.1em;
  color: #555555;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

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

.page-resources__article-card {
  background-color: #f8f8f8;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px 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(-5px);
  box-shadow: 0 8px 25px 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;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-resources__article-title {
  font-size: 1.6em;
  margin-bottom: 10px;
  line-height: 1.3;
}

.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-category {
  font-size: 0.9em;
  color: #888888;
  margin-bottom: 15px;
  text-transform: uppercase;
}

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

.page-resources__read-more-button {
  display: inline-block;
  background-color: #000000;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  align-self: flex-start;
  transition: background-color 0.3s ease;
}

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

.page-resources__pagination {
  display: flex;
  justify-content: center;
  margin-top: 50px;
  gap: 10px;
}

.page-resources__pagination-link {
  display: inline-block;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  text-decoration: none;
  color: #000000;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.page-resources__pagination-link:hover:not(.page-resources__pagination-link--disabled):not(.page-resources__pagination-link--active) {
  background-color: #f0f0f0;
  border-color: #ccc;
}

.page-resources__pagination-link--active {
  background-color: #FCBC45;
  color: #000000;
  border-color: #FCBC45;
  font-weight: bold;
}

.page-resources__pagination-link--disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.page-resources__cta-banner {
  background-color: #000000;
  color: #FFFFFF;
  text-align: center;
  padding: 60px 30px;
  border-radius: 10px;
  margin-top: 60px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

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

.page-resources__cta-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__cta-button {
  display: inline-block;
  background-color: #FCBC45;
  color: #000000;
  padding: 18px 40px;
  border-radius: 8px;
  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: #e6a73c;
  transform: translateY(-3px);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__hero-description {
    font-size: 1.1em;
  }
  .page-resources__section-title {
    font-size: 2.2em;
  }
  .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-title {
    font-size: 2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__hero-button {
    width: 80%;
    max-width: 300px;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__section-intro {
    font-size: 0.95em;
  }
  .page-resources__article-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__article-image {
    height: 200px;
  }
  .page-resources__article-title {
    font-size: 1.4em;
  }
  .page-resources__cta-banner {
    padding: 40px 20px;
  }
  .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;
  }
  /* Ensure images do not overflow on mobile */
  .page-resources img {
    max-width: 100%;
    height: auto;
  }
}