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

.page-resources__hero-section {
  padding-top: var(--header-offset, 120px); /* Fixed header offset for desktop */
  background-color: #000000; /* Dark background for hero section */
  color: #FFFFFF; /* Light text for dark hero background */
  text-align: center;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.page-resources__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FCBC45; /* Emphasize title with a vibrant color */
}

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

.page-resources__hero-cta-button {
  display: inline-block;
  background-color: #FFFFFF; /* Register button color */
  color: #000000; /* Dark text for contrast */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid #FFFFFF;
}

.page-resources__hero-cta-button:hover {
  background-color: #FCBC45;
  border-color: #FCBC45;
  color: #000000;
}

.page-resources__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.page-resources__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
  display: block;
}

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

.page-resources__introduction-section {
  padding: 60px 0;
  background-color: #FFFFFF;
  color: #000000;
}

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

.page-resources__section-description {
  font-size: 1.1em;
  line-height: 1.8;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px auto;
  color: #333333;
}

.page-resources__articles-section {
  padding: 60px 0;
  background-color: #f5f5f5;
  color: #000000;
}

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

.page-resources__article-card {
  background-color: #FFFFFF;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-resources__article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.page-resources__article-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  line-height: 1.4;
}

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

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

.page-resources__article-category {
  font-size: 0.9em;
  color: #666666;
  margin-bottom: 15px;
}

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

.page-resources__article-button {
  display: inline-block;
  background-color: #000000;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-resources__article-button:hover {
  background-color: #FCBC45;
  color: #000000;
}

.page-resources__additional-guides {
  padding: 60px 0;
  background-color: #FFFFFF;
  color: #000000;
}

.page-resources__additional-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 40px;
}

.page-resources__list-item {
  background-color: #f5f5f5;
  border-left: 5px solid #FCBC45;
  padding: 25px;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-resources__list-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  color: #000000;
}

.page-resources__list-summary {
  font-size: 0.95em;
  line-height: 1.6;
  color: #333333;
  margin-bottom: 15px;
}

.page-resources__list-button {
  display: inline-block;
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-resources__list-button:hover {
  color: #000000;
}

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

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

.page-resources__cta-description {
  font-size: 1.1em;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-resources__cta-button,
.page-resources__cta-login-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  margin: 0 10px;
  border: 2px solid;
}

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

.page-resources__cta-button:hover {
  background-color: transparent;
  color: #FFFFFF;
  border-color: #FFFFFF;
}

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

.page-resources__cta-login-button:hover {
  background-color: transparent;
  color: #FCBC45;
  border-color: #FCBC45;
}

/* Ensure all content area images are at least 200px wide/high */
.page-resources__container img,
.page-resources__article-image img {
  min-width: 200px;
  min-height: 200px;
  width: 100%; /* Ensure responsive scaling */
  height: auto;
  object-fit: cover;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }

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

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

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

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

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

  .page-resources__introduction-section,
  .page-resources__articles-section,
  .page-resources__additional-guides,
  .page-resources__cta-section {
    padding: 40px 0;
  }

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

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

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

  .page-resources__section-description {
    font-size: 0.95em;
  }

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

  .page-resources__cta-button,
  .page-resources__cta-login-button {
    display: block;
    margin: 15px auto;
    width: 80%;
  }

  /* Mobile content area images must not cause horizontal scroll */
  .page-resources img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  /* Ensure no image filter is applied */
  .page-resources__hero-image img {
    filter: brightness(0.4); /* Allowed for readability, not color change */
  }
}

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

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

  .page-resources__hero-cta-button {
    padding: 12px 25px;
  }

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

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