.page-resources {
  color: #333333;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

.page-resources__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  background-color: #007bff;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

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

.page-resources__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffc107;
}

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

.page-resources__hero-button {
  display: inline-block;
  background-color: #ffc107;
  color: #007bff;
  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: #e0a800;
  transform: translateY(-2px);
}

.page-resources__hero-image-wrapper {
  margin-top: 40px;
  max-width: 100%;
}

.page-resources__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Ensure minimum display size */
  min-height: 200px; /* Ensure minimum display size */
}

.page-resources__articles-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}

.page-resources__section-title {
  font-size: 2.5em;
  margin-bottom: 40px;
  color: #007bff;
  font-weight: bold;
}

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

.page-resources__article-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.page-resources__article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.page-resources__card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  min-width: 200px; /* Ensure minimum display size */
  min-height: 200px; /* Ensure minimum display size */
}

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

.page-resources__card-title {
  font-size: 1.8em;
  margin-bottom: 10px;
  color: #007bff;
  font-weight: bold;
}

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

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

.page-resources__card-category {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 15px;
  text-transform: uppercase;
}

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

.page-resources__card-button {
  display: inline-block;
  background-color: #ffc107;
  color: #007bff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  transition: background-color 0.3s ease;
}

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

.page-resources__cta-section {
  background-color: #007bff;
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.page-resources__cta-content {
  max-width: 800px;
}

.page-resources__cta-title {
  font-size: 2.8em;
  margin-bottom: 25px;
  color: #ffc107;
  font-weight: bold;
}

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

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

.page-resources__cta-button {
  display: inline-block;
  padding: 18px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.15em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-resources__cta-button--primary {
  background-color: #ffc107;
  color: #007bff;
}

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

.page-resources__cta-button--secondary {
  background-color: transparent;
  border: 2px solid #ffc107;
  color: #ffc107;
}

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

.page-resources__cta-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Ensure minimum display size */
  min-height: 200px; /* Ensure minimum display size */
}

/* Responsive adjustments */
@media (min-width: 769px) {
  .page-resources__hero-section {
    flex-direction: row;
    text-align: left;
    justify-content: space-around;
    padding: 80px 40px;
  }

  .page-resources__hero-content {
    text-align: left;
    margin-right: 40px;
  }

  .page-resources__hero-image-wrapper {
    margin-top: 0;
    max-width: 50%;
  }

  .page-resources__cta-section {
    flex-direction: row;
    padding: 100px 40px;
    justify-content: center;
    gap: 80px;
  }
}

@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__articles-grid {
    grid-template-columns: 1fr;
  }

  .page-resources__article-card {
    margin-bottom: 20px;
  }

  .page-resources__card-image {
    height: 180px; /* Adjust for smaller screens */
    max-width: 100% !important;
  }

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

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

  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources__cta-button {
    width: 100%;
    max-width: 300px;
  }

  /* Ensure all content images are responsive and don't overflow */
  .page-resources img {
    max-width: 100% !important;
    height: auto !important;
  }
}