.page-resources-latest-news {
  color: #000000; /* Dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

.page-resources-latest-news__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #000000;
  padding-bottom: 50px; /* Adjust as needed */
}

.page-resources-latest-news__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-resources-latest-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 500px; /* Cap height for hero image */
  opacity: 0.7; /* Slightly dim image for text readability */
}

.page-resources-latest-news__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  color: #FFFFFF;
  padding: 20px;
  max-width: 90%;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for text */
  border-radius: 8px;
}

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

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

.page-resources-latest-news__hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-resources-latest-news__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}

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

.page-resources-latest-news__button--register:hover {
  background-color: #FCBC45;
  color: #000000;
  border-color: #FCBC45;
}

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

.page-resources-latest-news__button--login:hover {
  background-color: #FFFFFF;
  color: #000000;
  border-color: #FFFFFF;
}

.page-resources-latest-news__content-area {
  max-width: 800px; /* Content width for comfortable reading */
  margin: 40px auto;
  padding: 0 20px;
}

.page-resources-latest-news__back-link {
  display: inline-block;
  margin-bottom: 30px;
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
}

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

.page-resources-latest-news__section-title {
  font-size: 2.2em;
  margin-bottom: 25px;
  color: #000000;
  text-align: center;
}

.page-resources-latest-news__sub-section-title {
  font-size: 1.8em;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #000000;
}

.page-resources-latest-news__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-resources-latest-news__image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px;
}

.page-resources-latest-news__image--centered {
  text-align: center;
}

.page-resources-latest-news__inline-link {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
}

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

.page-resources-latest-news__button--promo {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  margin-top: 20px;
  margin-bottom: 40px;
  text-align: center;
  width: fit-content;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-resources-latest-news__button--promo:hover {
  background-color: #000000;
  color: #FCBC45;
  border-color: #000000;
}

.page-resources-latest-news__button--learn-more {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
  margin-top: 20px;
  margin-bottom: 40px;
  text-align: center;
  width: fit-content;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-resources-latest-news__button--learn-more:hover {
  background-color: #FCBC45;
  color: #000000;
  border-color: #FCBC45;
}

.page-resources-latest-news__call-to-action {
  background-color: #000000;
  color: #FFFFFF;
  padding: 60px 20px;
  text-align: center;
  margin-top: 60px;
  border-radius: 10px;
}

.page-resources-latest-news__call-to-action-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #FCBC45;
}

.page-resources-latest-news__call-to-action-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources-latest-news__call-to-action-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.page-resources-latest-news__button--register-footer:hover {
  background-color: #FCBC45;
  color: #000000;
  border-color: #FCBC45;
}

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

.page-resources-latest-news__button--download-app:hover {
  background-color: #FFFFFF;
  color: #000000;
  border-color: #FFFFFF;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-latest-news__hero-title {
    font-size: 2.4em;
  }
  .page-resources-latest-news__hero-description {
    font-size: 1.1em;
  }
  .page-resources-latest-news__section-title {
    font-size: 2em;
  }
  .page-resources-latest-news__sub-section-title {
    font-size: 1.6em;
  }
  .page-resources-latest-news__call-to-action-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-resources-latest-news__hero-title {
    font-size: 2em;
  }
  .page-resources-latest-news__hero-description {
    font-size: 1em;
  }
  .page-resources-latest-news__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources-latest-news__button {
    width: 80%;
    margin: 0 auto;
  }
  .page-resources-latest-news__content-area {
    padding: 0 15px;
  }
  .page-resources-latest-news__section-title {
    font-size: 1.8em;
  }
  .page-resources-latest-news__sub-section-title {
    font-size: 1.5em;
  }
  .page-resources-latest-news__paragraph {
    font-size: 1em;
  }
  .page-resources-latest-news__image {
    max-width: 100%;
    height: auto; /* Ensure images are responsive */
    min-width: 200px;
    min-height: 200px;
  }
  .page-resources-latest-news__call-to-action-title {
    font-size: 2em;
  }
  .page-resources-latest-news__call-to-action-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources-latest-news__call-to-action-buttons .page-resources-latest-news__button {
    width: 90%;
  }
  /* Ensure content area does not overflow */
  .page-resources-latest-news {
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .page-resources-latest-news__hero-title {
    font-size: 1.8em;
  }
  .page-resources-latest-news__hero-description {
    font-size: 0.9em;
  }
  .page-resources-latest-news__button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-resources-latest-news__section-title {
    font-size: 1.6em;
  }
  .page-resources-latest-news__sub-section-title {
    font-size: 1.3em;
  }
  .page-resources-latest-news__call-to-action-title {
    font-size: 1.8em;
  }
}