.page-resources-latest-news {
  color: #333333; /* Dark text for light body background */
  background-color: #FFFFFF;
}

.page-resources-latest-news__hero-section {
  padding-top: var(--header-offset, 120px);
  background-color: #000000; /* Dark background for hero */
  color: #FFFFFF;
  text-align: center;
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.page-resources-latest-news__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-resources-latest-news__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: #FFFFFF;
}

.page-resources-latest-news__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-resources-latest-news__hero-button {
  display: inline-block;
  padding: 15px 30px;
  margin: 0 10px 10px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

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

.page-resources-latest-news__button--register:hover {
  background-color: #f0f0f0;
  transform: translateY(-3px);
}

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

.page-resources-latest-news__button--login:hover {
  background-color: #e0a53b;
  transform: translateY(-3px);
}

.page-resources-latest-news__hero-image {
  margin-top: 40px;
}

.page-resources-latest-news__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
  border-radius: 10px;
}

.page-resources-latest-news__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-resources-latest-news__breadcrumb {
  font-size: 0.9em;
  margin-bottom: 30px;
  color: #666666;
}

.page-resources-latest-news__breadcrumb-link {
  color: #000000;
  text-decoration: none;
}

.page-resources-latest-news__breadcrumb-link:hover {
  text-decoration: underline;
}

.page-resources-latest-news__breadcrumb-current {
  font-weight: 600;
  color: #333333;
}

.page-resources-latest-news__articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.page-resources-latest-news__article-card {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #333333;
}

.page-resources-latest-news__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-resources-latest-news__article-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #e0e0e0;
}

.page-resources-latest-news__article-title {
  font-size: 1.5em;
  margin: 20px 20px 10px;
  line-height: 1.4;
  font-weight: 700;
}

.page-resources-latest-news__article-link {
  color: #000000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources-latest-news__article-link:hover {
  color: #FCBC45;
}

.page-resources-latest-news__article-meta {
  font-size: 0.85em;
  color: #666666;
  margin: 0 20px 15px;
}

.page-resources-latest-news__article-excerpt {
  font-size: 1em;
  line-height: 1.7;
  margin: 0 20px 20px;
  flex-grow: 1;
}

.page-resources-latest-news__button--read-more {
  display: inline-block;
  padding: 10px 20px;
  background-color: #FCBC45;
  color: #000000;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  margin: 0 20px 20px;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-resources-latest-news__button--read-more:hover {
  background-color: #e0a53b;
}

.page-resources-latest-news__back-link-container {
  text-align: center;
  margin-top: 60px;
}

.page-resources-latest-news__back-link {
  display: inline-block;
  padding: 12px 25px;
  background-color: #000000;
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.page-resources-latest-news__back-link:hover {
  background-color: #333333;
}

.page-resources-latest-news__cta-banner {
  background-color: #000000;
  color: #FFFFFF;
  padding: 60px 20px;
  text-align: center;
  margin-top: 60px;
  border-top: 5px solid #FCBC45;
  position: relative;
  overflow: hidden;
}

.page-resources-latest-news__cta-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.page-resources-latest-news__cta-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  font-weight: 700;
  color: #FFFFFF;
}

.page-resources-latest-news__cta-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-resources-latest-news__cta-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.2;
  z-index: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-resources-latest-news__hero-title {
    font-size: 3em;
  }
}

@media (max-width: 768px) {
  .page-resources-latest-news__hero-section {
    padding: 40px 15px;
  }

  .page-resources-latest-news__hero-title {
    font-size: 2.5em;
  }

  .page-resources-latest-news__hero-description {
    font-size: 1.1em;
  }

  .page-resources-latest-news__hero-button {
    padding: 12px 25px;
    font-size: 1em;
    margin: 0 5px 10px;
  }

  .page-resources-latest-news__articles-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-resources-latest-news__article-image,
  .page-resources-latest-news__article-card img {
    max-width: 100%;
    height: auto; /* Ensure images scale correctly */
    min-height: 200px;
  }

  .page-resources-latest-news__article-title {
    font-size: 1.3em;
  }

  .page-resources-latest-news__cta-title {
    font-size: 2em;
  }

  .page-resources-latest-news__cta-description {
    font-size: 1em;
  }

  /* Ensure all content images are at least 200px wide/high */
  .page-resources-latest-news__content-area img {
    max-width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
  }
}

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

  .page-resources-latest-news__hero-description {
    font-size: 1em;
  }

  .page-resources-latest-news__hero-button {
    display: block;
    margin: 10px auto;
    width: calc(100% - 40px);
  }

  .page-resources-latest-news__cta-title {
    font-size: 1.8em;
  }

  .page-resources-latest-news__cta-description {
    font-size: 0.9em;
  }
}