.page-resources-yy777-latest-news {
  color: #333333;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px);
}

.page-resources-yy777-latest-news__hero-section {
  position: relative;
  overflow: hidden;
  background-color: #000000; /* Dark background for hero section */
  color: #FFFFFF;
  padding: 0;
  text-align: center;
}

.page-resources-yy777-latest-news__hero-container {
  position: relative;
  width: 100%;
  max-width: 1920px; /* Constrain hero image width */
  margin: 0 auto;
}

.page-resources-yy777-latest-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.7;
}

.page-resources-yy777-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.6); /* Semi-transparent overlay for readability */
  border-radius: 10px;
}

.page-resources-yy777-latest-news__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FCBC45; /* Login color for emphasis */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

.page-resources-yy777-latest-news__hero-cta-button {
  display: inline-block;
  background-color: #FCBC45;
  color: #000000;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-resources-yy777-latest-news__hero-cta-button:hover {
  background-color: #e0a53a;
}

.page-resources-yy777-latest-news__articles-section {
  padding: 60px 20px;
  background-color: #FFFFFF;
}

.page-resources-yy777-latest-news__container {
  max-width: 800px;
  margin: 0 auto;
}

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

.page-resources-yy777-latest-news__article-card {
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
  overflow: hidden;
  border: 1px solid #eee;
}

.page-resources-yy777-latest-news__article-image {
  width: 100%;
  height: auto;
  display: block;
  min-height: 200px; /* Ensure images are not too small */
  object-fit: cover;
}

.page-resources-yy777-latest-news__article-content {
  padding: 30px;
}

.page-resources-yy777-latest-news__article-title {
  font-size: 1.8em;
  margin-bottom: 10px;
  color: #000000;
}

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

.page-resources-yy777-latest-news__article-title a:hover {
  color: #FCBC45;
}

.page-resources-yy777-latest-news__article-meta {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 15px;
}

.page-resources-yy777-latest-news__article-excerpt {
  font-size: 1.1em;
  color: #333;
  margin-bottom: 20px;
}

.page-resources-yy777-latest-news__read-more-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;
}

.page-resources-yy777-latest-news__read-more-button:hover {
  background-color: #333333;
}

.page-resources-yy777-latest-news__back-link-wrapper {
  text-align: center;
  margin-top: 50px;
}

.page-resources-yy777-latest-news__back-link {
  color: #000000;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: color 0.3s ease;
}

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

.page-resources-yy777-latest-news__cta-section {
  background-color: #000000;
  color: #FFFFFF;
  padding: 80px 20px;
  text-align: center;
}

.page-resources-yy777-latest-news__cta-container {
  max-width: 900px;
  margin: 0 auto;
}

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

.page-resources-yy777-latest-news__cta-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources-yy777-latest-news__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  margin: 0 10px;
  transition: all 0.3s ease;
}

.page-resources-yy777-latest-news__cta-button--register {
  background-color: #FFFFFF;
  color: #000000;
}

.page-resources-yy777-latest-news__cta-button--register:hover {
  background-color: #e0e0e0;
}

.page-resources-yy777-latest-news__cta-button--login {
  background-color: #FCBC45;
  color: #000000;
}

.page-resources-yy777-latest-news__cta-button--login:hover {
  background-color: #e0a53a;
}

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

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

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

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

  .page-resources-yy777-latest-news__article-excerpt {
    font-size: 0.95em;
  }

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

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

  .page-resources-yy777-latest-news__cta-button {
    display: block;
    margin: 15px auto;
    width: 80%;
  }

  /* Ensure content area images do not overflow */
  .page-resources-yy777-latest-news__articles-section img, 
  .page-resources-yy777-latest-news__article-image {
    max-width: 100%;
    height: auto;
  }
}

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

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

  .page-resources-yy777-latest-news__hero-cta-button {
    padding: 10px 20px;
    font-size: 1em;
  }

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

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

  .page-resources-yy777-latest-news__article-content {
    padding: 20px;
  }

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