/* style/resources-latest-news.css */
.page-resources-latest-news {
  color: #ffffff; /* Light text for dark body background */
  padding-top: var(--header-offset, 120px);
}

.page-resources-latest-news__hero-section {
  position: relative;
  text-align: center;
  padding: 0;
  margin-bottom: 40px;
  overflow: hidden;
}

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

.page-resources-latest-news__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  max-width: 800px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 10px;
}

.page-resources-latest-news__hero-title {
  font-size: 2.8em;
  color: #FFFFFF;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-resources-latest-news__hero-description {
  font-size: 1.1em;
  color: #F0F0F0;
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-resources-latest-news__hero-button {
  display: inline-block;
  background-color: #FCBC45; /* Login button color */
  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.2s ease;
}

.page-resources-latest-news__hero-button:hover {
  background-color: #E6A53A;
  transform: translateY(-2px);
}

.page-resources-latest-news__article-section {
  padding: 40px 20px;
}

.page-resources-latest-news__article-container {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
  font-size: 1.05em;
}

.page-resources-latest-news__section-title {
  font-size: 2.2em;
  color: #FCBC45;
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.page-resources-latest-news__article-intro {
  font-size: 1.15em;
  margin-bottom: 30px;
  color: #E0E0E0;
}

.page-resources-latest-news__article-subtitle {
  font-size: 1.8em;
  color: #FFFFFF;
  margin-top: 40px;
  margin-bottom: 20px;
  border-left: 4px solid #FCBC45;
  padding-left: 15px;
}

.page-resources-latest-news__article-container p {
  margin-bottom: 20px;
  color: #F0F0F0;
}

.page-resources-latest-news__article-image {
  display: block;
  margin: 30px auto;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Ensure min size */
  min-height: 200px; /* Ensure min size */
}

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

.page-resources-latest-news__article-link:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.page-resources-latest-news__cta-block {
  background: rgba(255, 255, 255, 0.08);
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  margin-top: 60px;
  margin-bottom: 60px;
}

.page-resources-latest-news__cta-title {
  font-size: 2.2em;
  color: #FCBC45;
  margin-bottom: 15px;
}

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

.page-resources-latest-news__cta-button {
  display: inline-block;
  background-color: #FFFFFF; /* Register button color */
  color: #000000;
  padding: 15px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-resources-latest-news__cta-button:hover {
  background-color: #F0F0F0;
  transform: translateY(-2px);
}

.page-resources-latest-news__related-resources {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources-latest-news__related-title {
  font-size: 1.8em;
  color: #FFFFFF;
  margin-bottom: 20px;
}

.page-resources-latest-news__related-list {
  list-style: none;
  padding: 0;
}

.page-resources-latest-news__related-list li {
  margin-bottom: 10px;
}

.page-resources-latest-news__related-link {
  color: #FCBC45;
  text-decoration: none;
  font-size: 1.1em;
  transition: color 0.3s ease;
}

.page-resources-latest-news__related-link:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.page-resources-latest-news__back-link-wrapper {
  text-align: center;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources-latest-news__back-link {
  display: inline-block;
  background-color: #000000;
  color: #FCBC45;
  padding: 12px 25px;
  border: 1px solid #FCBC45;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

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

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

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

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

  .page-resources-latest-news__article-subtitle {
    font-size: 1.5em;
  }

  .page-resources-latest-news__article-container {
    font-size: 0.95em;
    padding: 0 10px;
  }

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

  .page-resources-latest-news__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-resources-latest-news__article-image,
  .page-resources-latest-news__hero-image {
    max-width: 100%;
    height: auto;
    width: 100%; /* Ensure width is 100% on mobile */
    min-width: 200px; /* Ensure min size */
    min-height: 200px; /* Ensure min size */
  }

  .page-resources-latest-news__hero-content {
    max-width: 90%;
    padding: 15px;
  }

  .page-resources-latest-news {
    overflow-x: hidden;
  }
}