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

.page-resources__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-resources__hero-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-resources__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 500px; /* Limit height for aesthetic */
  filter: brightness(0.7); /* Slightly darken image to improve text readability */
}

.page-resources__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 800px;
  color: #FFFFFF; /* White text on darkened image */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  z-index: 10;
}

.page-resources__hero-title {
  font-size: 3em;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #FFFFFF;
}

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.5;
  color: #FFFFFF;
}

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

.page-resources__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

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

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

.page-resources__article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  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;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #e0e0e0;
}

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

.page-resources__article-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  line-height: 1.3;
  color: #000000;
}

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

.page-resources__article-title a:hover {
  color: #FCBC45; /* Golden yellow for hover */
}

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

.page-resources__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  white-space: nowrap;
}

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

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

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

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

.page-resources__button--login {
  background-color: #FCBC45;
  color: #000000; /* Dark text for golden yellow background */
  border: 2px solid #FCBC45;
}

.page-resources__button--login:hover {
  background-color: #e0a83a;
  border-color: #e0a83a;
}

.page-resources__why-trust-section {
  background-color: #f8f8f8;
  padding: 60px 0;
  text-align: center;
}

.page-resources__trust-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 40px auto;
  max-width: 800px;
  text-align: left;
}

.page-resources__trust-item {
  font-size: 1.1em;
  color: #333333;
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
}

.page-resources__trust-item::before {
  content: '✔';
  color: #FCBC45; /* Checkmark color */
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

.page-resources__why-trust-actions {
  margin-top: 30px;
}

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

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

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

.page-resources__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

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

@media (max-width: 768px) {
  .page-resources {
    overflow-x: hidden;
  }
  .page-resources__hero-section {
    padding-top: var(--header-offset, 120px);
    min-height: 400px; /* Ensure hero section has a minimum height on mobile */
  }
  .page-resources__hero-image {
    max-height: 400px;
  }
  .page-resources__hero-content {
    width: 95%;
    padding: 20px;
  }
  .page-resources__hero-title {
    font-size: 2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-resources__article-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__article-image {
    max-width: 100%;
    height: auto; /* Ensure images are responsive */
  }
  .page-resources__cta-title {
    font-size: 2em;
  }
  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__button--primary,
  .page-resources__button--login {
    width: 100%;
    max-width: 250px;
  }
  /* Ensure all content area images 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;
  }
  .page-resources__article-image {
    min-width: unset; /* Override general img rule for article images to allow flexible width */
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__hero-description {
    font-size: 0.9em;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__cta-title {
    font-size: 1.8em;
  }
  .page-resources__trust-item {
    font-size: 1em;
  }
}