.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 space for fixed header */
}

.page-resources__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px; /* Minimum height for hero section */
  background-color: #000000; /* Fallback background */
}

.page-resources__hero-container {
  position: relative;
  width: 100%;
  max-width: 1400px; /* Max width for content within hero */
}

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

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

.page-resources__main-title {
  font-size: 3.2em;
  margin-bottom: 15px;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

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

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

.page-resources__button--register:hover {
  background-color: #F0F0F0;
  transform: translateY(-2px);
}

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

.page-resources__button--login:hover {
  background-color: #E0A83A;
  transform: translateY(-2px);
}

.page-resources__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #FFFFFF;
}

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

.page-resources__text-block {
  font-size: 1.1em;
  color: #333333;
  margin-bottom: 30px;
  text-align: justify;
}

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

.page-resources__article-card {
  background-color: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  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 6px 20px rgba(0, 0, 0, 0.1);
}

.page-resources__article-image {
  width: 100%;
  height: 250px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  display: block;
}

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

.page-resources__article-title {
  font-size: 1.5em;
  color: #000000;
  margin-bottom: 10px;
  flex-grow: 1;
}

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

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

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

.page-resources__button--read-more {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
  text-align: center;
  padding: 10px 20px;
  align-self: flex-start;
}

.page-resources__button--read-more:hover {
  background-color: #333333;
  border-color: #333333;
}

.page-resources__cta-banner {
  background-color: #000000;
  color: #FFFFFF;
  padding: 50px 30px;
  text-align: center;
  border-radius: 10px;
  margin-top: 60px;
}

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

.page-resources__cta-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #F0F0F0;
}

.page-resources__button--primary {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  padding: 15px 35px;
  font-size: 1.2em;
}

.page-resources__button--primary:hover {
  background-color: #E0A83A;
  border-color: #E0A83A;
  transform: translateY(-3px);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-resources__main-title {
    font-size: 2.8em;
  }
  .page-resources__hero-description {
    font-size: 1.1em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__cta-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    min-height: 300px;
  }
  .page-resources__hero-content {
    padding: 15px;
  }
  .page-resources__main-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__button {
    width: 80%;
    margin: 0 auto;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__text-block {
    font-size: 1em;
  }
  .page-resources__article-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__article-image {
    height: 200px;
  }
  .page-resources__cta-banner {
    padding: 40px 20px;
  }
  .page-resources__cta-title {
    font-size: 1.8em;
  }
  .page-resources__cta-description {
    font-size: 1.1em;
  }
  /* Ensure all content area images are responsive and not smaller than 200px */
  .page-resources__hero-image,
  .page-resources__article-image {
    max-width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px; /* Enforce minimum display size for mobile */
  }
}

@media (max-width: 480px) {
  .page-resources__main-title {
    font-size: 1.8em;
  }
  .page-resources__hero-description {
    font-size: 0.9em;
  }
  .page-resources__button {
    padding: 10px 20px;
    font-size: 1em;
  }
  .page-resources__section-title {
    font-size: 1.6em;
  }
  .page-resources__cta-title {
    font-size: 1.6em;
  }
  .page-resources__cta-description {
    font-size: 1em;
  }
}