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

.page-resources__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  background-color: #000000; /* Dark background for hero */
  color: #FFFFFF; /* Light text on dark background */
  position: relative;
  overflow: hidden;
}

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

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

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FCBC45; /* Login button color for highlight */
}

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

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

.page-resources__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

.page-resources__button--register:hover {
  background-color: #FCBC45;
  border-color: #FCBC45;
  color: #000000;
}

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

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

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

.page-resources__button--download:hover {
  background-color: #FCBC45;
  color: #000000;
}

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

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

.page-resources__section-description {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 40px;
  color: #333333;
}

.page-resources__why-jl99 .page-resources__section-description {
  text-align: left;
}

.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: #000000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__article-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

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

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

.page-resources__article-category {
  font-size: 0.9em;
  color: #FCBC45;
  margin-bottom: 10px;
  text-transform: uppercase;
  font-weight: bold;
}

.page-resources__article-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  line-height: 1.3;
}

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

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

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

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

.page-resources__read-more-button:hover {
  background-color: #FFFFFF;
  color: #000000;
}

.page-resources__cta-banner {
  background-color: #FCBC45; /* Login button color for a prominent banner */
  color: #000000;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

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

.page-resources__cta-banner-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.page-resources__cta-banner-title {
  font-size: 3em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #000000;
}

.page-resources__cta-banner-description {
  font-size: 1.2em;
  line-height: 1.7;
  margin-bottom: 40px;
  color: #333333;
}

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

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

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

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

  .page-resources__hero-section {
    padding: 40px 15px;
  }

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

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

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

  .page-resources__button {
    width: 100%;
    max-width: 300px;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-resources__section {
    padding: 40px 15px;
  }

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

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

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

  .page-resources__article-image {
    height: 200px;
  }

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

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

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

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

  /* Ensure content images do not overflow on mobile */
  .page-resources__hero-image,
  .page-resources__article-image,
  .page-resources__cta-banner-image,
  .page-resources__articles-grid img,
  .page-resources__why-jl99 img,
  .page-resources__cta-banner img {
    max-width: 100%;
    height: auto;
    object-fit: cover; /* Added for consistency */
  }

  /* Specific image rules to prevent small sizes */
  .page-resources__article-image {
    min-width: 200px; /* Enforce minimum width */
    min-height: 200px; /* Enforce minimum height */
    width: 100%; /* Take full width of card */
    height: 200px; /* Fixed height for consistency */
  }
}

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

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

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