.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: #000000; /* Main brand color for hero background */
  color: #FFFFFF;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

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

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

.page-resources__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FCBC45; /* Login button color for highlight */
}

.page-resources__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
}

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

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

.page-resources__articles-section,
.page-resources__additional-content,
.page-resources__faq-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

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

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

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

.page-resources__article-card {
  background-color: #f9f9f9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.page-resources__article-card:hover {
  transform: translateY(-5px);
}

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

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

.page-resources__card-title {
  font-size: 1.6em;
  margin-bottom: 10px;
}

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

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

.page-resources__card-category {
  font-size: 0.9em;
  color: #888888;
  margin-bottom: 10px;
}

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

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

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

.page-resources__pagination {
  text-align: center;
  margin-top: 40px;
}

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

.page-resources__pagination-link:hover,
.page-resources__pagination-link--active {
  background-color: #FCBC45;
  color: #000000;
  border-color: #FCBC45;
}

.page-resources__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources__feature-item {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-resources__feature-image {
  width: 100%; /* Ensure images are responsive within their containers */
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-resources__feature-title {
  font-size: 1.8em;
  color: #000000;
  margin-bottom: 15px;
}

.page-resources__feature-description {
  font-size: 1em;
  color: #666666;
}

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

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

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

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

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

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

.page-resources__cta-button--secondary {
  background-color: #FFFFFF;
  color: #000000;
}

.page-resources__cta-button--secondary:hover {
  background-color: #f0f0f0;
}

.page-resources__faq-list {
  margin-top: 40px;
  text-align: left;
}

.page-resources__faq-item {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-resources__faq-question {
  font-size: 1.4em;
  color: #000000;
  margin-bottom: 10px;
}

.page-resources__faq-answer {
  font-size: 1em;
  color: #555555;
}

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

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

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

  .page-resources__section-subtitle {
    font-size: 0.9em;
  }

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

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

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

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

  .page-resources__cta-button {
    display: block;
    margin: 15px auto;
    width: 80%;
  }

  /* Mobile content image overflow prevention */
  .page-resources img {
    max-width: 100%;
    height: auto;
  }
  .page-resources__hero-image-wrapper {
    position: relative;
    height: 250px;
    margin-bottom: 30px;
  }
  .page-resources__hero-section {
    padding: 40px 15px;
    min-height: auto;
  }
  .page-resources__hero-content {
    padding-top: 0; /* Adjust for mobile if hero image is not absolute */
  }
  .page-resources__article-image,
  .page-resources__feature-image {
    height: auto; /* Allow height to adjust naturally */
    max-width: 100%;
  }
  .page-resources__articles-section, .page-resources__additional-content, .page-resources__faq-section {
    padding: 40px 0;
  }
  .page-resources__container {
    padding: 0 15px;
  }
  .page-resources__feature-item {
    padding: 20px;
  }
  .page-resources__faq-item {
    padding: 20px;
  }
}