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

.page-resources-latest-games__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content clears fixed header */
}

.page-resources-latest-games__hero-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 500px; /* Minimum height for hero section */
}

.page-resources-latest-games__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.page-resources-latest-games__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent dark overlay for text readability */
  border-radius: 10px;
  color: #FFFFFF; /* Light text on dark overlay */
}

.page-resources-latest-games__hero-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

.page-resources-latest-games__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-size: 1.1em;
}

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

.page-resources-latest-games__button--register:hover {
  background-color: transparent;
  color: #FFFFFF;
  transform: translateY(-2px);
}

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

.page-resources-latest-games__button--login:hover {
  background-color: transparent;
  color: #FCBC45;
  transform: translateY(-2px);
}

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

.page-resources-latest-games__article-container {
  max-width: 800px; /* Content width for comfortable reading */
  margin: 0 auto;
}

.page-resources-latest-games__back-link {
  display: inline-block;
  margin-bottom: 30px;
  color: #000000;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 15px;
  border: 1px solid #000000;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-resources-latest-games__back-link:hover {
  background-color: #000000;
  color: #FFFFFF;
}

.page-resources-latest-games__back-link--bottom {
  margin-top: 40px;
  text-align: center;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.page-resources-latest-games__article-title {
  font-size: 2.5em;
  color: #000000;
  margin-bottom: 15px;
  line-height: 1.2;
}

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

.page-resources-latest-games__article-content p {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #333333;
}

.page-resources-latest-games__sub-heading {
  font-size: 1.8em;
  color: #000000;
  margin-top: 40px;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-resources-latest-games__content-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-resources-latest-games__cta-button-wrapper {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 40px;
}

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

.page-resources-latest-games__button--download:hover {
  background-color: #333333;
  border-color: #333333;
}

.page-resources-latest-games__button--play-now {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-resources-latest-games__button--play-now:hover {
  background-color: #FFAA00;
  border-color: #FFAA00;
}

.page-resources-latest-games__related-resources {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #EEEEEE;
}

.page-resources-latest-games__related-title {
  font-size: 2em;
  color: #000000;
  margin-bottom: 25px;
}

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

.page-resources-latest-games__related-item {
  margin-bottom: 15px;
}

.page-resources-latest-games__related-item a {
  font-size: 1.1em;
  color: #000000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources-latest-games__related-item a:hover {
  color: #FCBC45;
  text-decoration: underline;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-resources-latest-games__hero-title {
    font-size: 2.5em;
  }

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

@media (max-width: 768px) {
  .page-resources-latest-games__hero-section {
    padding: var(--header-offset, 120px) 15px 40px;
  }

  .page-resources-latest-games__hero-content {
    padding: 30px 15px;
  }

  .page-resources-latest-games__hero-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-resources-latest-games__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-resources-latest-games__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources-latest-games__button {
    width: 100%;
  }

  .page-resources-latest-games__article-section {
    padding: 40px 15px;
  }

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

  .page-resources-latest-games__sub-heading {
    font-size: 1.5em;
  }

  .page-resources-latest-games__article-content p {
    font-size: 1em;
  }

  .page-resources-latest-games__content-image {
    max-width: 100%;
    height: auto;
  }

  /* IMPORTANT: Mobile content area images must be responsive and not cause overflow */
  .page-resources-latest-games img {
    max-width: 100%;
    height: auto;
  }

  /* Ensure main content area does not cause horizontal scrolling */
  .page-resources-latest-games {
    max-width: 100%;
    overflow-x: hidden;
  }
}