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

.page-resources__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #000000; /* Main brand color for hero background */
  color: #FFFFFF;
  padding-bottom: 40px;
}

.page-resources__hero-content {
  max-width: 900px;
  padding: 40px 20px;
  margin-bottom: 20px;
}

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

.page-resources__hero-description {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 30px;
}

.page-resources__cta-button {
  display: inline-block;
  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__cta-button--primary {
  background-color: #FCBC45; /* Login button color */
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-resources__cta-button--primary:hover {
  background-color: #e0a53d;
  transform: translateY(-2px);
}

.page-resources__cta-button--secondary {
  background-color: #FFFFFF; /* Register button color */
  color: #000000;
  border: 2px solid #FFFFFF;
}

.page-resources__cta-button--secondary:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.page-resources__hero-image {
  width: 100%;
  height: auto;
  display: block;
  max-width: 1200px; /* Constrain image width */
  border-radius: 10px;
  object-fit: cover;
}

.page-resources__introduction-section,
.page-resources__articles-section,
.page-resources__beyond-guides-section,
.page-resources__cta-section--bottom {
  padding: 60px 20px;
  text-align: center;
}

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

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

.page-resources__section-subtitle {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 40px;
}

.page-resources__text-content {
  font-size: 1.05em;
  line-height: 1.7;
  margin-bottom: 25px;
  text-align: left;
  color: #333333;
}

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

.page-resources__article-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

.page-resources__article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-resources__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

.page-resources__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  line-height: 1.3;
}

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

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

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

.page-resources__read-more-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #000000; /* Main brand color */
  color: #FFFFFF;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  transition: background-color 0.3s ease;
  align-self: flex-start; /* Align button to start of flex container */
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-resources__hero-section {
    padding-top: var(--header-offset, 80px); /* Adjust for mobile header */
    padding: 40px 15px;
  }

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

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

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

  .page-resources__text-content {
    font-size: 0.95em;
  }

  .page-resources__article-grid {
    grid-template-columns: 1fr; /* Stack cards on mobile */
  }

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

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

  .page-resources__card-summary {
    font-size: 0.9em;
  }

  /* Ensure all images in content area are responsive and not smaller than 200px */
  .page-resources img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce minimum size for content images */
    min-height: 200px; /* Enforce minimum size for content images */
  }
}

@media (max-width: 480px) {
  .page-resources__hero-section {
    padding: 30px 10px;
  }

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

  .page-resources__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }

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

  .page-resources__card-image {
    height: 180px;
  }
}

/* Ensure no image filters are used */
.page-resources img {
  filter: none; /* Absolutely no filters */
}