.page-resources {
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
  color: #333333; /* Dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-resources__hero-section {
  position: relative;
  overflow: hidden;
  background-color: #000000; /* Dark background for hero content, image will overlay */
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.page-resources__hero-container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

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

.page-resources__hero-content {
  position: relative;
  z-index: 2;
}

.page-resources__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  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;
}

.page-resources__hero-cta-button {
  display: inline-block;
  background-color: #FCBC45; /* Login button color */
  color: #000000; /* Dark text for contrast */
  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-cta-button:hover {
  background-color: #e6a73c;
  transform: translateY(-2px);
}

.page-resources__articles-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
}

.page-resources__section-header {
  text-align: center;
  margin-bottom: 40px;
}

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

.page-resources__section-description {
  font-size: 1.1em;
  color: #555555;
  max-width: 800px;
  margin: 0 auto;
}

.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 8px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-resources__article-image {
  width: 100%;
  height: 225px; /* Fixed height for consistent card appearance */
  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;
  color: #000000;
  line-height: 1.3;
}

.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-summary {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources__card-button {
  display: inline-block;
  background-color: #000000; /* Main brand color */
  color: #FFFFFF; /* White text for contrast */
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  align-self: flex-start;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-resources__card-button:hover {
  background-color: #333333;
  transform: translateY(-2px);
}

.page-resources__cta-section {
  background-color: #000000; /* Dark background */
  color: #FFFFFF;
  padding: 80px 20px;
  text-align: center;
  margin-top: 60px;
}

.page-resources__cta-container {
  max-width: 800px;
  margin: 0 auto;
}

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

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

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

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

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

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

.page-resources__cta-button--login {
  background-color: #FCBC45; /* Login button color */
  color: #000000;
  border: 2px solid #FCBC45;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-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.4em;
  }
}

@media (max-width: 768px) {
  .page-resources {
    padding-top: var(--header-offset, 120px);
  }

  .page-resources__hero-section {
    min-height: 400px;
    padding: 60px 15px;
  }

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

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

  .page-resources__articles-section {
    margin: 30px auto;
    padding: 15px;
  }

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

  /* Ensure all images within .page-resources are responsive and do not overflow */
  .page-resources img {
    max-width: 100%;
    height: auto;
  }

  /* Content area image size check - ensures no images are displayed smaller than 200px */
  .page-resources__article-image,
  .page-resources__hero-image {
    min-width: 200px;
    min-height: 200px;
  }
  .page-resources__article-image {
    height: 180px;
  }

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

  .page-resources__cta-section {
    padding: 60px 15px;
  }

  .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: 280px;
  }
}

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

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

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