.page-resources {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  color: #333333; /* Default text color for light body background */
  background-color: #FFFFFF; /* Ensures a consistent background */
}

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

.page-resources__hero-container {
  position: relative;
  width: 100%;
  max-width: 1920px; /* Max width for hero content */
  margin: 0 auto;
}

.page-resources__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  opacity: 0.6;
}

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

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FCBC45;
}

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

.page-resources__hero-cta-button {
  display: inline-block;
  background-color: #FCBC45;
  color: #000000;
  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: #FFD700;
  transform: translateY(-3px);
}

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

.page-resources__section-title {
  font-size: 2.8em;
  text-align: center;
  margin-bottom: 50px;
  color: #000000;
}

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

.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;
  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.8em;
  margin-bottom: 15px;
  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: 1em;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources__card-link {
  display: inline-block;
  background-color: #000000;
  color: #FFFFFF;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  align-self: flex-start;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

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

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

.page-resources__cta-container {
  padding: 0;
}

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

.page-resources__cta-description {
  font-size: 1.2em;
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

.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;
  color: #000000;
}

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

.page-resources__cta-button--login {
  background-color: #FCBC45;
  color: #000000;
}

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

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

@media (max-width: 768px) {
  .page-resources__hero-title {
    font-size: 2.5em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-resources__articles-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }
  .page-resources__card-title {
    font-size: 1.5em;
  }
  .page-resources__card-summary {
    font-size: 0.95em;
  }
  .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: 250px;
  }
  /* Ensure images do not overflow on mobile */
  .page-resources__hero-image, .page-resources__card-image {
    max-width: 100%;
    height: auto;
  }
  /* Content area image minimum size check for mobile, ensuring it doesn't go below 200px display width */
  .page-resources__articles-section img, .page-resources__hero-section img {
    min-width: 200px;
    min-height: 200px;
  }
}

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